From 6100cfba41624e991a9874e5dad055e1dffa58fa Mon Sep 17 00:00:00 2001 From: Kevin Wooten Date: Wed, 15 May 2024 21:14:18 -0700 Subject: [PATCH 1/4] Automatically fix up libfyaml config.h to disable warnings --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 63e1e0d44..59ac728e4 100644 --- a/Makefile +++ b/Makefile @@ -58,6 +58,8 @@ update-fyaml: cd Sources/Cfyaml && ./bootstrap.sh cd Sources/Cfyaml && ./configure cd Sources/Cfyaml && sed -i '' 's/HAVE_LIBYAML 1/HAVE_LIBYAML 0/g' config.h + echo '\n#pragma clang diagnostic ignored "-Wconversion"' >> Sources/Cfyaml/config.h + doc-symbol-graphs: rm -rf .build/all-symbol-graphs || 0 From 32f485c871f00b4b7757f14d1d9a434e314e121e Mon Sep 17 00:00:00 2001 From: Kevin Wooten Date: Wed, 15 May 2024 20:47:40 -0700 Subject: [PATCH 2/4] Update libfyaml to v0.9 --- Package.swift | 2 + Sources/Cfyaml/.libtool-version | 2 +- Sources/Cfyaml/.tarball-version | 2 +- Sources/Cfyaml/Makefile | 73 +- Sources/Cfyaml/Makefile.in | 21 +- Sources/Cfyaml/aclocal.m4 | 972 +- Sources/Cfyaml/autom4te.cache/output.0 | 4592 +++--- Sources/Cfyaml/autom4te.cache/output.1 | 6334 ++++---- Sources/Cfyaml/autom4te.cache/output.2 | 6334 ++++---- Sources/Cfyaml/autom4te.cache/output.3 | 6334 ++++---- Sources/Cfyaml/autom4te.cache/requests | 938 +- Sources/Cfyaml/autom4te.cache/traces.0 | 1073 +- Sources/Cfyaml/autom4te.cache/traces.1 | 1148 +- Sources/Cfyaml/autom4te.cache/traces.2 | 1995 ++- Sources/Cfyaml/autom4te.cache/traces.3 | 1995 ++- Sources/Cfyaml/build-aux/config.guess | 107 +- Sources/Cfyaml/build-aux/config.guess~ | 1748 ++ Sources/Cfyaml/build-aux/config.sub | 236 +- Sources/Cfyaml/build-aux/config.sub~ | 1884 +++ Sources/Cfyaml/build-aux/install-sh | 8 +- Sources/Cfyaml/build-aux/install-sh~ | 541 + Sources/Cfyaml/config.h | 75 +- Sources/Cfyaml/config.h.in | 69 +- Sources/Cfyaml/config.h.in~ | 145 +- Sources/Cfyaml/config.log | 2038 ++- Sources/Cfyaml/config.status | 257 +- Sources/Cfyaml/configure | 5962 ++++--- Sources/Cfyaml/configure.ac | 258 +- Sources/Cfyaml/configure~ | 13430 +++++++++------- Sources/Cfyaml/doc/Makefile | 71 +- Sources/Cfyaml/doc/Makefile.in | 21 +- Sources/Cfyaml/include/libfyaml.h | 1070 +- Sources/Cfyaml/libfyaml.pc | 6 +- Sources/Cfyaml/libfyaml.pc.in | 4 +- Sources/Cfyaml/libtool | 34 +- Sources/Cfyaml/src/Makefile | 961 +- Sources/Cfyaml/src/Makefile.am | 154 +- Sources/Cfyaml/src/Makefile.in | 935 +- .../.deps/libb3avx2_la-blake3.Plo} | 0 .../.deps/libb3avx2_la-blake3_avx2.Plo} | 0 .../libb3avx2_la-blake3_avx2_x86-64_unix.Plo} | 0 .../blake3/.deps/libb3avx512_la-blake3.Plo | 1 + .../.deps/libb3avx512_la-blake3_avx512.Plo | 1 + ...bb3avx512_la-blake3_avx512_x86-64_unix.Plo | 1 + .../src/blake3/.deps/libb3neon_la-blake3.Plo | 1 + .../blake3/.deps/libb3neon_la-blake3_neon.Plo | 1 + .../blake3/.deps/libb3portable_la-blake3.Plo | 1 + .../libb3portable_la-blake3_portable.Plo | 1 + .../src/blake3/.deps/libb3sse2_la-blake3.Plo | 1 + .../blake3/.deps/libb3sse2_la-blake3_sse2.Plo | 1 + .../libb3sse2_la-blake3_sse2_x86-64_unix.Plo | 1 + .../src/blake3/.deps/libb3sse41_la-blake3.Plo | 1 + .../.deps/libb3sse41_la-blake3_sse41.Plo | 1 + ...libb3sse41_la-blake3_sse41_x86-64_unix.Plo | 1 + .../.deps/libfyaml_la-blake3_backend.Plo | 1 + .../.deps/libfyaml_la-blake3_be_cpusimd.Plo | 1 + .../.deps/libfyaml_la-blake3_host_state.Plo | 1 + .../blake3/.deps/libfyaml_la-fy-blake3.Plo | 1 + Sources/Cfyaml/src/blake3/blake3.c | 741 + Sources/Cfyaml/src/blake3/blake3.h | 164 + Sources/Cfyaml/src/blake3/blake3_avx2.c | 333 + .../src/blake3/blake3_avx2_x86-64_unix.S | 1815 +++ Sources/Cfyaml/src/blake3/blake3_avx512.c | 1227 ++ .../src/blake3/blake3_avx512_x86-64_unix.S | 2585 +++ Sources/Cfyaml/src/blake3/blake3_backend.c | 584 + Sources/Cfyaml/src/blake3/blake3_be_cpusimd.c | 239 + Sources/Cfyaml/src/blake3/blake3_host_state.c | 569 + Sources/Cfyaml/src/blake3/blake3_impl.h | 234 + Sources/Cfyaml/src/blake3/blake3_internal.h | 158 + Sources/Cfyaml/src/blake3/blake3_neon.c | 375 + Sources/Cfyaml/src/blake3/blake3_portable.c | 167 + Sources/Cfyaml/src/blake3/blake3_sse2.c | 573 + .../src/blake3/blake3_sse2_x86-64_unix.S | 2291 +++ Sources/Cfyaml/src/blake3/blake3_sse41.c | 567 + .../src/blake3/blake3_sse41_x86-64_unix.S | 2028 +++ Sources/Cfyaml/src/blake3/fy-blake3.c | 171 + .../src/internal/.deps/fy_b3sum-fy-b3sum.Po | 1 + .../src/internal/.deps/fy_thread-fy-thread.Po | 1 + Sources/Cfyaml/src/internal/fy-b3sum.c | 545 + Sources/Cfyaml/src/internal/fy-thread.c | 587 + Sources/Cfyaml/src/internal/libfyaml-parser.c | 387 +- Sources/Cfyaml/src/lib/fy-atom.c | 86 +- Sources/Cfyaml/src/lib/fy-atom.h | 13 + Sources/Cfyaml/src/lib/fy-composer.c | 34 + Sources/Cfyaml/src/lib/fy-diag.c | 135 +- Sources/Cfyaml/src/lib/fy-diag.h | 5 +- Sources/Cfyaml/src/lib/fy-doc.c | 289 +- Sources/Cfyaml/src/lib/fy-doc.h | 1 + Sources/Cfyaml/src/lib/fy-docbuilder.c | 24 + Sources/Cfyaml/src/lib/fy-docbuilder.h | 3 + Sources/Cfyaml/src/lib/fy-docstate.c | 53 + Sources/Cfyaml/src/lib/fy-emit.c | 296 +- Sources/Cfyaml/src/lib/fy-emit.h | 1 + Sources/Cfyaml/src/lib/fy-event.c | 187 +- Sources/Cfyaml/src/lib/fy-event.h | 5 +- Sources/Cfyaml/src/lib/fy-input.c | 78 +- Sources/Cfyaml/src/lib/fy-input.h | 2 + Sources/Cfyaml/src/lib/fy-parse.c | 1100 +- Sources/Cfyaml/src/lib/fy-parse.h | 73 + Sources/Cfyaml/src/lib/fy-path.c | 57 + Sources/Cfyaml/src/lib/fy-token.c | 193 +- Sources/Cfyaml/src/lib/fy-token.h | 7 + Sources/Cfyaml/src/lib/fy-types.c | 1 + .../thread/.deps/libfyaml_la-fy-thread.Plo | 1 + Sources/Cfyaml/src/thread/fy-thread.c | 1156 ++ Sources/Cfyaml/src/thread/fy-thread.h | 76 + Sources/Cfyaml/src/tool/fy-tool.c | 996 +- .../src/util/.deps/libfyaml_la-fy-blob.Plo | 1 + .../src/util/.deps/libfyaml_la-fy-ctype.Plo | 1 + .../src/util/.deps/libfyaml_la-fy-utf8.Plo | 1 + .../src/util/.deps/libfyaml_la-fy-utils.Plo | 1 + Sources/Cfyaml/src/util/fy-align.h | 95 + Sources/Cfyaml/src/util/fy-bit64.h | 86 + Sources/Cfyaml/src/util/fy-blob.c | 119 + Sources/Cfyaml/src/util/fy-blob.h | 455 + Sources/Cfyaml/src/{lib => util}/fy-ctype.c | 3 +- Sources/Cfyaml/src/{lib => util}/fy-ctype.h | 34 +- Sources/Cfyaml/src/util/fy-endian.h | 50 + Sources/Cfyaml/src/util/fy-id.h | 239 + Sources/Cfyaml/src/{lib => util}/fy-list.h | 0 .../Cfyaml/src/{lib => util}/fy-typelist.h | 2 - Sources/Cfyaml/src/{lib => util}/fy-utf8.c | 562 +- Sources/Cfyaml/src/{lib => util}/fy-utf8.h | 88 +- Sources/Cfyaml/src/{lib => util}/fy-utils.c | 243 + Sources/Cfyaml/src/{lib => util}/fy-utils.h | 41 + Sources/Cfyaml/src/valgrind/fy-valgrind.h | 1 - .../libfyaml_test-libfyaml-test-private-id.Po | 1 + Sources/Cfyaml/test/Makefile | 233 +- Sources/Cfyaml/test/Makefile.am | 45 +- Sources/Cfyaml/test/Makefile.in | 183 +- .../plain-scalars-with-commas.yaml | 6 + Sources/Cfyaml/test/libfyaml-test-core.c | 176 + .../Cfyaml/test/libfyaml-test-private-id.c | 359 + Sources/Cfyaml/test/libfyaml-test.c | 6 + Sources/Cfyaml/test/testsuite-resolution.test | 99 + Sources/PotentYAML/YAMLWriter.swift | 1 - Tests/YAMLTests.swift | 2 +- 137 files changed, 61288 insertions(+), 24905 deletions(-) create mode 100755 Sources/Cfyaml/build-aux/config.guess~ create mode 100755 Sources/Cfyaml/build-aux/config.sub~ create mode 100755 Sources/Cfyaml/build-aux/install-sh~ rename Sources/Cfyaml/src/{lib/.deps/libfyaml_la-fy-ctype.Plo => blake3/.deps/libb3avx2_la-blake3.Plo} (100%) rename Sources/Cfyaml/src/{lib/.deps/libfyaml_la-fy-utf8.Plo => blake3/.deps/libb3avx2_la-blake3_avx2.Plo} (100%) rename Sources/Cfyaml/src/{lib/.deps/libfyaml_la-fy-utils.Plo => blake3/.deps/libb3avx2_la-blake3_avx2_x86-64_unix.Plo} (100%) create mode 100644 Sources/Cfyaml/src/blake3/.deps/libb3avx512_la-blake3.Plo create mode 100644 Sources/Cfyaml/src/blake3/.deps/libb3avx512_la-blake3_avx512.Plo create mode 100644 Sources/Cfyaml/src/blake3/.deps/libb3avx512_la-blake3_avx512_x86-64_unix.Plo create mode 100644 Sources/Cfyaml/src/blake3/.deps/libb3neon_la-blake3.Plo create mode 100644 Sources/Cfyaml/src/blake3/.deps/libb3neon_la-blake3_neon.Plo create mode 100644 Sources/Cfyaml/src/blake3/.deps/libb3portable_la-blake3.Plo create mode 100644 Sources/Cfyaml/src/blake3/.deps/libb3portable_la-blake3_portable.Plo create mode 100644 Sources/Cfyaml/src/blake3/.deps/libb3sse2_la-blake3.Plo create mode 100644 Sources/Cfyaml/src/blake3/.deps/libb3sse2_la-blake3_sse2.Plo create mode 100644 Sources/Cfyaml/src/blake3/.deps/libb3sse2_la-blake3_sse2_x86-64_unix.Plo create mode 100644 Sources/Cfyaml/src/blake3/.deps/libb3sse41_la-blake3.Plo create mode 100644 Sources/Cfyaml/src/blake3/.deps/libb3sse41_la-blake3_sse41.Plo create mode 100644 Sources/Cfyaml/src/blake3/.deps/libb3sse41_la-blake3_sse41_x86-64_unix.Plo create mode 100644 Sources/Cfyaml/src/blake3/.deps/libfyaml_la-blake3_backend.Plo create mode 100644 Sources/Cfyaml/src/blake3/.deps/libfyaml_la-blake3_be_cpusimd.Plo create mode 100644 Sources/Cfyaml/src/blake3/.deps/libfyaml_la-blake3_host_state.Plo create mode 100644 Sources/Cfyaml/src/blake3/.deps/libfyaml_la-fy-blake3.Plo create mode 100644 Sources/Cfyaml/src/blake3/blake3.c create mode 100644 Sources/Cfyaml/src/blake3/blake3.h create mode 100644 Sources/Cfyaml/src/blake3/blake3_avx2.c create mode 100644 Sources/Cfyaml/src/blake3/blake3_avx2_x86-64_unix.S create mode 100644 Sources/Cfyaml/src/blake3/blake3_avx512.c create mode 100644 Sources/Cfyaml/src/blake3/blake3_avx512_x86-64_unix.S create mode 100644 Sources/Cfyaml/src/blake3/blake3_backend.c create mode 100644 Sources/Cfyaml/src/blake3/blake3_be_cpusimd.c create mode 100644 Sources/Cfyaml/src/blake3/blake3_host_state.c create mode 100644 Sources/Cfyaml/src/blake3/blake3_impl.h create mode 100644 Sources/Cfyaml/src/blake3/blake3_internal.h create mode 100644 Sources/Cfyaml/src/blake3/blake3_neon.c create mode 100644 Sources/Cfyaml/src/blake3/blake3_portable.c create mode 100644 Sources/Cfyaml/src/blake3/blake3_sse2.c create mode 100644 Sources/Cfyaml/src/blake3/blake3_sse2_x86-64_unix.S create mode 100644 Sources/Cfyaml/src/blake3/blake3_sse41.c create mode 100644 Sources/Cfyaml/src/blake3/blake3_sse41_x86-64_unix.S create mode 100644 Sources/Cfyaml/src/blake3/fy-blake3.c create mode 100644 Sources/Cfyaml/src/internal/.deps/fy_b3sum-fy-b3sum.Po create mode 100644 Sources/Cfyaml/src/internal/.deps/fy_thread-fy-thread.Po create mode 100644 Sources/Cfyaml/src/internal/fy-b3sum.c create mode 100644 Sources/Cfyaml/src/internal/fy-thread.c create mode 100644 Sources/Cfyaml/src/thread/.deps/libfyaml_la-fy-thread.Plo create mode 100644 Sources/Cfyaml/src/thread/fy-thread.c create mode 100644 Sources/Cfyaml/src/thread/fy-thread.h create mode 100644 Sources/Cfyaml/src/util/.deps/libfyaml_la-fy-blob.Plo create mode 100644 Sources/Cfyaml/src/util/.deps/libfyaml_la-fy-ctype.Plo create mode 100644 Sources/Cfyaml/src/util/.deps/libfyaml_la-fy-utf8.Plo create mode 100644 Sources/Cfyaml/src/util/.deps/libfyaml_la-fy-utils.Plo create mode 100644 Sources/Cfyaml/src/util/fy-align.h create mode 100644 Sources/Cfyaml/src/util/fy-bit64.h create mode 100644 Sources/Cfyaml/src/util/fy-blob.c create mode 100644 Sources/Cfyaml/src/util/fy-blob.h rename Sources/Cfyaml/src/{lib => util}/fy-ctype.c (96%) rename Sources/Cfyaml/src/{lib => util}/fy-ctype.h (90%) create mode 100644 Sources/Cfyaml/src/util/fy-endian.h create mode 100644 Sources/Cfyaml/src/util/fy-id.h rename Sources/Cfyaml/src/{lib => util}/fy-list.h (100%) rename Sources/Cfyaml/src/{lib => util}/fy-typelist.h (99%) rename Sources/Cfyaml/src/{lib => util}/fy-utf8.c (51%) rename Sources/Cfyaml/src/{lib => util}/fy-utf8.h (69%) rename Sources/Cfyaml/src/{lib => util}/fy-utils.c (72%) rename Sources/Cfyaml/src/{lib => util}/fy-utils.h (61%) create mode 100644 Sources/Cfyaml/test/.deps/libfyaml_test-libfyaml-test-private-id.Po create mode 100644 Sources/Cfyaml/test/emitter-examples/plain-scalars-with-commas.yaml create mode 100644 Sources/Cfyaml/test/libfyaml-test-private-id.c create mode 100755 Sources/Cfyaml/test/testsuite-resolution.test diff --git a/Package.swift b/Package.swift index e9155c1f2..0d12f0b2a 100644 --- a/Package.swift +++ b/Package.swift @@ -81,12 +81,14 @@ let package = Package( name: "Cfyaml", sources: [ "src/lib/", + "src/util/", "src/xxhash/" ], cSettings: [ .headerSearchPath("."), .headerSearchPath("include"), .headerSearchPath("src/lib"), + .headerSearchPath("src/util"), .headerSearchPath("src/valgrind"), .headerSearchPath("src/xxhash"), .define("HAVE_CONFIG_H") diff --git a/Sources/Cfyaml/.libtool-version b/Sources/Cfyaml/.libtool-version index b83a3978a..253108268 100644 --- a/Sources/Cfyaml/.libtool-version +++ b/Sources/Cfyaml/.libtool-version @@ -1 +1 @@ -1:2:0 +1:4:2 diff --git a/Sources/Cfyaml/.tarball-version b/Sources/Cfyaml/.tarball-version index 88a7b2285..b63ba696b 100644 --- a/Sources/Cfyaml/.tarball-version +++ b/Sources/Cfyaml/.tarball-version @@ -1 +1 @@ -0.7.12 +0.9 diff --git a/Sources/Cfyaml/Makefile b/Sources/Cfyaml/Makefile index a08db4818..cd75a55f5 100644 --- a/Sources/Cfyaml/Makefile +++ b/Sources/Cfyaml/Makefile @@ -86,8 +86,9 @@ POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : -build_triplet = aarch64-apple-darwin22.2.0 -host_triplet = aarch64-apple-darwin22.2.0 +build_triplet = aarch64-apple-darwin23.4.0 +host_triplet = aarch64-apple-darwin23.4.0 +target_triplet = aarch64-apple-darwin23.4.0 subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_enable_debug.m4 \ @@ -259,30 +260,33 @@ AM_DEFAULT_VERBOSITY = 1 AM_MAKEFLAGS = `test -z $V && echo -s` AR = ar AS = as +ASAN_CFLAGS = +ASAN_LIBS = AUTOCONF = ${SHELL} '/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/missing' autoconf AUTOHEADER = ${SHELL} '/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/missing' autoheader AUTOMAKE = ${SHELL} '/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/missing' automake-1.16 AWK = awk CC = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave cc gcc -CCAS = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave ccas +CCAS = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave ccas gcc +CCASDEPMODE = depmode=gcc3 +CCASFLAGS = CCDEPMODE = depmode=gcc3 -CFLAGS = -Wall -Wsign-compare -O2 +CFLAGS = -D_THREAD_SAFE -pthread -Wall -Wsign-compare -fvisibility=hidden -O2 CHECK_CFLAGS = CHECK_LDFLAGS = CHECK_LIBS = -CPP = gcc -E CPPFLAGS = CSCOPE = cscope CTAGS = ctags -CXX = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave cxx g++ -CXXCPP = g++ -E +CXX = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave cxx g++ -std=gnu++11 +CXXCPP = g++ -std=gnu++11 -E CXXDEPMODE = depmode=gcc3 CXXFLAGS = CYGPATH_W = echo DEFS = -DHAVE_CONFIG_H DEPDIR = .deps -DLLTOOL = dlltool -DOCKER = /usr/local/bin/docker +DLLTOOL = false +DOCKER = /Users/kdubb/.rd/bin/docker DSYMUTIL = dsymutil DUMPBIN = ECHO_C = \c @@ -296,16 +300,19 @@ F77 = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build- FC = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave fc FGREP = /usr/bin/grep -F FILECMD = file -GIT = /opt/homebrew/bin/git +GIT = /usr/bin/git GREP = /usr/bin/grep +HAVE_ASAN = 0 HAVE_CHECK = 0 HAVE_COMPATIBLE_CHECK = 0 HAVE_DEVMODE = 1 +HAVE_LIBCLANG = 0 HAVE_LIBYAML = 1 HAVE_NETWORK = 1 +HAVE_PORTABLE_TARGET = 0 HAVE_QSORT_R = 1 -INCLTDL = -I$(top_srcdir)/libltdl -INSTALL = /usr/bin/install -c +HAVE_STATIC = 1 +INSTALL = /opt/homebrew/bin/ginstall -c INSTALL_DATA = ${INSTALL} -m 644 INSTALL_PROGRAM = ${INSTALL} INSTALL_SCRIPT = ${INSTALL} @@ -316,17 +323,21 @@ JSONTESTSUITEURL = https://github.com/nst/JSONTestSuite LD = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld LDFLAGS = LEX = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave lex -LIBLTDL = $(top_build_prefix)libltdl/libltdl.la +LIBCLANG_CFLAGS = +LIBCLANG_CPPFLAGS = +LIBCLANG_LDFLAGS = +LIBCLANG_LIBS = +LIBLTDL = LIBOBJS = -LIBS = +LIBS = -lpthread LIBTOOL = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave-libtool '$(SHELL) $(top_builddir)/libtool' -LIBTOOL_VERSION = 1:2:0 +LIBTOOL_VERSION = 1:4:2 LIBYAML_CFLAGS = -I/opt/homebrew/Cellar/libyaml/0.2.5/include LIBYAML_LIBS = -L/opt/homebrew/Cellar/libyaml/0.2.5/lib -lyaml LIPO = lipo +LLVM_CONFIG = LN_S = ln -s -LTDLDEPS = $(top_build_prefix)libltdl/libltdl.la -LTDLINCL = -I$(top_srcdir)/libltdl +LTDLINCL = LTLIBOBJS = LT_SYS_LIBRARY_PATH = M4 = /usr/bin/m4 @@ -335,8 +346,8 @@ MAKEFLAGS = -s MAKEINFO = ${SHELL} '/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/missing' makeinfo MANIFEST_TOOL = : MCS = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave mcs -MINOR = 7 -MKDIR_P = ./build-aux/install-sh -c -d +MINOR = 9 +MKDIR_P = /opt/homebrew/bin/gmkdir -p NM = /usr/bin/nm -B NMEDIT = nmedit OBJC = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave objc @@ -347,11 +358,11 @@ OTOOL64 = : PACKAGE = libfyaml PACKAGE_BUGREPORT = pantelis.antoniou@konsulko.com PACKAGE_NAME = libfyaml -PACKAGE_STRING = libfyaml 0.7.12 +PACKAGE_STRING = libfyaml 0.9 PACKAGE_TARNAME = libfyaml PACKAGE_URL = -PACKAGE_VERSION = 0.7.12 -PATCH = 12 +PACKAGE_VERSION = 0.9 +PATCH = PATH_SEPARATOR = : PIP3 = PKG_CONFIG = /opt/homebrew/bin/pkg-config @@ -359,7 +370,7 @@ PKG_CONFIG_LIBDIR = PKG_CONFIG_PATH = PTHREAD_CC = gcc PTHREAD_CFLAGS = -D_THREAD_SAFE -pthread -PTHREAD_LIBS = +PTHREAD_LIBS = -lpthread Q = $(V:1=) RANLIB = ranlib SED = /usr/bin/sed @@ -370,7 +381,7 @@ STRIP = strip TESTSUITECHECKOUT = 6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f TESTSUITEURL = https://github.com/yaml/yaml-test-suite V = @ -VERSION = 0.7.12 +VERSION = 0.9 YACC = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave yacc abs_builddir = /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml abs_srcdir = /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml @@ -387,10 +398,10 @@ am__tar = $${TAR-tar} chof - "$$tardir" am__untar = $${TAR-tar} xf - ax_pthread_config = bindir = ${exec_prefix}/bin -build = aarch64-apple-darwin22.2.0 +build = aarch64-apple-darwin23.4.0 build_alias = build_cpu = aarch64 -build_os = darwin22.2.0 +build_os = darwin23.4.0 build_vendor = apple builddir = . datadir = ${datarootdir} @@ -398,10 +409,10 @@ datarootdir = ${prefix}/share docdir = ${datarootdir}/doc/${PACKAGE_TARNAME} dvidir = ${docdir} exec_prefix = ${prefix} -host = aarch64-apple-darwin22.2.0 +host = aarch64-apple-darwin23.4.0 host_alias = host_cpu = aarch64 -host_os = darwin22.2.0 +host_os = darwin23.4.0 host_vendor = apple htmldir = ${docdir} includedir = ${prefix}/include @@ -425,7 +436,11 @@ shavedir = /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux srcdir = . subdirs = libltdl sysconfdir = ${prefix}/etc +target = aarch64-apple-darwin23.4.0 target_alias = +target_cpu = aarch64 +target_os = darwin23.4.0 +target_vendor = apple top_build_prefix = top_builddir = . top_srcdir = . @@ -1044,7 +1059,7 @@ maintainer-clean-local: @rm -rf install artifacts docker: Dockerfile - /usr/local/bin/docker build -t libfyaml:$(VERSION) $(top_srcdir) + /Users/kdubb/.rd/bin/docker build -t libfyaml:$(VERSION) $(top_srcdir) # 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. diff --git a/Sources/Cfyaml/Makefile.in b/Sources/Cfyaml/Makefile.in index 04d321587..23f4ba62c 100644 --- a/Sources/Cfyaml/Makefile.in +++ b/Sources/Cfyaml/Makefile.in @@ -88,6 +88,7 @@ PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ +target_triplet = @target@ subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_enable_debug.m4 \ @@ -259,18 +260,21 @@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AM_MAKEFLAGS = @AM_MAKEFLAGS@ AR = @AR@ AS = @AS@ +ASAN_CFLAGS = @ASAN_CFLAGS@ +ASAN_LIBS = @ASAN_LIBS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCAS = @CCAS@ +CCASDEPMODE = @CCASDEPMODE@ +CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHECK_CFLAGS = @CHECK_CFLAGS@ CHECK_LDFLAGS = @CHECK_LDFLAGS@ CHECK_LIBS = @CHECK_LIBS@ -CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ @@ -298,13 +302,16 @@ FGREP = @FGREP@ FILECMD = @FILECMD@ GIT = @GIT@ GREP = @GREP@ +HAVE_ASAN = @HAVE_ASAN@ HAVE_CHECK = @HAVE_CHECK@ HAVE_COMPATIBLE_CHECK = @HAVE_COMPATIBLE_CHECK@ HAVE_DEVMODE = @HAVE_DEVMODE@ +HAVE_LIBCLANG = @HAVE_LIBCLANG@ HAVE_LIBYAML = @HAVE_LIBYAML@ HAVE_NETWORK = @HAVE_NETWORK@ +HAVE_PORTABLE_TARGET = @HAVE_PORTABLE_TARGET@ HAVE_QSORT_R = @HAVE_QSORT_R@ -INCLTDL = @INCLTDL@ +HAVE_STATIC = @HAVE_STATIC@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ @@ -316,6 +323,10 @@ JSONTESTSUITEURL = @JSONTESTSUITEURL@ LD = @LD@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ +LIBCLANG_CFLAGS = @LIBCLANG_CFLAGS@ +LIBCLANG_CPPFLAGS = @LIBCLANG_CPPFLAGS@ +LIBCLANG_LDFLAGS = @LIBCLANG_LDFLAGS@ +LIBCLANG_LIBS = @LIBCLANG_LIBS@ LIBLTDL = @LIBLTDL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ @@ -324,8 +335,8 @@ LIBTOOL_VERSION = @LIBTOOL_VERSION@ LIBYAML_CFLAGS = @LIBYAML_CFLAGS@ LIBYAML_LIBS = @LIBYAML_LIBS@ LIPO = @LIPO@ +LLVM_CONFIG = @LLVM_CONFIG@ LN_S = @LN_S@ -LTDLDEPS = @LTDLDEPS@ LTDLINCL = @LTDLINCL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ @@ -425,7 +436,11 @@ shavedir = @shavedir@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ +target = @target@ target_alias = @target_alias@ +target_cpu = @target_cpu@ +target_os = @target_os@ +target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ diff --git a/Sources/Cfyaml/aclocal.m4 b/Sources/Cfyaml/aclocal.m4 index 271859702..482687026 100644 --- a/Sources/Cfyaml/aclocal.m4 +++ b/Sources/Cfyaml/aclocal.m4 @@ -14,923 +14,12 @@ m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],, -[m4_warning([this file was generated for autoconf 2.71. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.72],, +[m4_warning([this file was generated for autoconf 2.72. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) -# ltdl.m4 - Configure ltdl for the target system. -*-Autoconf-*- -# -# Copyright (C) 1999-2008, 2011-2019, 2021-2022 Free Software -# Foundation, Inc. -# Written by Thomas Tanner, 1999 -# -# This file 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. - -# serial 21 LTDL_INIT - -# LT_CONFIG_LTDL_DIR(DIRECTORY, [LTDL-MODE]) -# ------------------------------------------ -# DIRECTORY contains the libltdl sources. It is okay to call this -# function multiple times, as long as the same DIRECTORY is always given. -AC_DEFUN([LT_CONFIG_LTDL_DIR], -[AC_BEFORE([$0], [LTDL_INIT]) -_$0($*) -])# LT_CONFIG_LTDL_DIR - -# We break this out into a separate macro, so that we can call it safely -# internally without being caught accidentally by the sed scan in libtoolize. -m4_defun([_LT_CONFIG_LTDL_DIR], -[dnl remove trailing slashes -m4_pushdef([_ARG_DIR], m4_bpatsubst([$1], [/*$])) -m4_case(_LTDL_DIR, - [], [dnl only set lt_ltdl_dir if _ARG_DIR is not simply '.' - m4_if(_ARG_DIR, [.], - [], - [m4_define([_LTDL_DIR], _ARG_DIR) - _LT_SHELL_INIT([lt_ltdl_dir=']_ARG_DIR['])])], - [m4_if(_ARG_DIR, _LTDL_DIR, - [], - [m4_fatal([multiple libltdl directories: ']_LTDL_DIR[', ']_ARG_DIR['])])]) -m4_popdef([_ARG_DIR]) -])# _LT_CONFIG_LTDL_DIR - -# Initialise: -m4_define([_LTDL_DIR], []) - - -# _LT_BUILD_PREFIX -# ---------------- -# If Autoconf is new enough, expand to '$(top_build_prefix)', otherwise -# to '$(top_builddir)/'. -m4_define([_LT_BUILD_PREFIX], -[m4_ifdef([AC_AUTOCONF_VERSION], - [m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]), [2.62]), - [-1], [m4_ifdef([_AC_HAVE_TOP_BUILD_PREFIX], - [$(top_build_prefix)], - [$(top_builddir)/])], - [$(top_build_prefix)])], - [$(top_builddir)/])[]dnl -]) - - -# LTDL_CONVENIENCE -# ---------------- -# sets LIBLTDL to the link flags for the libltdl convenience library and -# LTDLINCL to the include flags for the libltdl header and adds -# --enable-ltdl-convenience to the configure arguments. Note that -# AC_CONFIG_SUBDIRS is not called here. LIBLTDL will be prefixed with -# '$(top_build_prefix)' if available, otherwise with '$(top_builddir)/', -# and LTDLINCL will be prefixed with '$(top_srcdir)/' (note the single -# quotes!). If your package is not flat and you're not using automake, -# define top_build_prefix, top_builddir, and top_srcdir appropriately -# in your Makefiles. -AC_DEFUN([LTDL_CONVENIENCE], -[AC_BEFORE([$0], [LTDL_INIT])dnl -dnl Although the argument is deprecated and no longer documented, -dnl LTDL_CONVENIENCE used to take a DIRECTORY orgument, if we have one -dnl here make sure it is the same as any other declaration of libltdl's -dnl location! This also ensures lt_ltdl_dir is set when configure.ac is -dnl not yet using an explicit LT_CONFIG_LTDL_DIR. -m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl -_$0() -])# LTDL_CONVENIENCE - -# AC_LIBLTDL_CONVENIENCE accepted a directory argument in older libtools, -# now we have LT_CONFIG_LTDL_DIR: -AU_DEFUN([AC_LIBLTDL_CONVENIENCE], -[_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) -_LTDL_CONVENIENCE]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBLTDL_CONVENIENCE], []) - - -# _LTDL_CONVENIENCE -# ----------------- -# Code shared by LTDL_CONVENIENCE and LTDL_INIT([convenience]). -m4_defun([_LTDL_CONVENIENCE], -[case $enable_ltdl_convenience in - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; - "") enable_ltdl_convenience=yes - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; -esac -LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" -LTDLDEPS=$LIBLTDL -LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}" - -AC_SUBST([LIBLTDL]) -AC_SUBST([LTDLDEPS]) -AC_SUBST([LTDLINCL]) - -# For backwards non-gettext consistent compatibility... -INCLTDL=$LTDLINCL -AC_SUBST([INCLTDL]) -])# _LTDL_CONVENIENCE - - -# LTDL_INSTALLABLE -# ---------------- -# sets LIBLTDL to the link flags for the libltdl installable library -# and LTDLINCL to the include flags for the libltdl header and adds -# --enable-ltdl-install to the configure arguments. Note that -# AC_CONFIG_SUBDIRS is not called from here. If an installed libltdl -# is not found, LIBLTDL will be prefixed with '$(top_build_prefix)' if -# available, otherwise with '$(top_builddir)/', and LTDLINCL will be -# prefixed with '$(top_srcdir)/' (note the single quotes!). If your -# package is not flat and you're not using automake, define top_build_prefix, -# top_builddir, and top_srcdir appropriately in your Makefiles. -# In the future, this macro may have to be called after LT_INIT. -AC_DEFUN([LTDL_INSTALLABLE], -[AC_BEFORE([$0], [LTDL_INIT])dnl -dnl Although the argument is deprecated and no longer documented, -dnl LTDL_INSTALLABLE used to take a DIRECTORY orgument, if we have one -dnl here make sure it is the same as any other declaration of libltdl's -dnl location! This also ensures lt_ltdl_dir is set when configure.ac is -dnl not yet using an explicit LT_CONFIG_LTDL_DIR. -m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl -_$0() -])# LTDL_INSTALLABLE - -# AC_LIBLTDL_INSTALLABLE accepted a directory argument in older libtools, -# now we have LT_CONFIG_LTDL_DIR: -AU_DEFUN([AC_LIBLTDL_INSTALLABLE], -[_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) -_LTDL_INSTALLABLE]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBLTDL_INSTALLABLE], []) - - -# _LTDL_INSTALLABLE -# ----------------- -# Code shared by LTDL_INSTALLABLE and LTDL_INIT([installable]). -m4_defun([_LTDL_INSTALLABLE], -[if test -f "$prefix/lib/libltdl.la"; then - lt_save_LDFLAGS=$LDFLAGS - LDFLAGS="-L$prefix/lib $LDFLAGS" - AC_CHECK_LIB([ltdl], [lt_dlinit], [lt_lib_ltdl=yes]) - LDFLAGS=$lt_save_LDFLAGS - if test yes = "${lt_lib_ltdl-no}"; then - if test yes != "$enable_ltdl_install"; then - # Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install - AC_MSG_WARN([not overwriting libltdl at $prefix, force with '--enable-ltdl-install']) - enable_ltdl_install=no - fi - elif test no = "$enable_ltdl_install"; then - AC_MSG_WARN([libltdl not installed, but installation disabled]) - fi -fi - -# If configure.ac declared an installable ltdl, and the user didn't override -# with --disable-ltdl-install, we will install the shipped libltdl. -case $enable_ltdl_install in - no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no" - LIBLTDL=-lltdl - LTDLDEPS= - LTDLINCL= - ;; - *) enable_ltdl_install=yes - ac_configure_args="$ac_configure_args --enable-ltdl-install" - LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la" - LTDLDEPS=$LIBLTDL - LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}" - ;; -esac - -AC_SUBST([LIBLTDL]) -AC_SUBST([LTDLDEPS]) -AC_SUBST([LTDLINCL]) - -# For backwards non-gettext consistent compatibility... -INCLTDL=$LTDLINCL -AC_SUBST([INCLTDL]) -])# LTDL_INSTALLABLE - - -# _LTDL_MODE_DISPATCH -# ------------------- -m4_define([_LTDL_MODE_DISPATCH], -[dnl If _LTDL_DIR is '.', then we are configuring libltdl itself: -m4_if(_LTDL_DIR, [], - [], - dnl if _LTDL_MODE was not set already, the default value is 'subproject': - [m4_case(m4_default(_LTDL_MODE, [subproject]), - [subproject], [AC_CONFIG_SUBDIRS(_LTDL_DIR) - _LT_SHELL_INIT([lt_dlopen_dir=$lt_ltdl_dir])], - [nonrecursive], [_LT_SHELL_INIT([lt_dlopen_dir=$lt_ltdl_dir; lt_libobj_prefix=$lt_ltdl_dir/])], - [recursive], [], - [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])dnl -dnl Be careful not to expand twice: -m4_define([$0], []) -])# _LTDL_MODE_DISPATCH - - -# _LT_LIBOBJ(MODULE_NAME) -# ----------------------- -# Like AC_LIBOBJ, except that MODULE_NAME goes into _LT_LIBOBJS instead -# of into LIBOBJS. -AC_DEFUN([_LT_LIBOBJ], [ - m4_pattern_allow([^_LT_LIBOBJS$]) - _LT_LIBOBJS="$_LT_LIBOBJS $1.$ac_objext" -])# _LT_LIBOBJS - - -# LTDL_INIT([OPTIONS]) -# -------------------- -# Clients of libltdl can use this macro to allow the installer to -# choose between a shipped copy of the ltdl sources or a preinstalled -# version of the library. If the shipped ltdl sources are not in a -# subdirectory named libltdl, the directory name must be given by -# LT_CONFIG_LTDL_DIR. -AC_DEFUN([LTDL_INIT], -[dnl Parse OPTIONS -_LT_SET_OPTIONS([$0], [$1]) - -dnl We need to keep our own list of libobjs separate from our parent project, -dnl and the easiest way to do that is redefine the AC_LIBOBJs macro while -dnl we look for our own LIBOBJs. -m4_pushdef([AC_LIBOBJ], m4_defn([_LT_LIBOBJ])) -m4_pushdef([AC_LIBSOURCES]) - -dnl If not otherwise defined, default to the 1.5.x compatible subproject mode: -m4_if(_LTDL_MODE, [], - [m4_define([_LTDL_MODE], m4_default([$2], [subproject])) - m4_if([-1], [m4_bregexp(_LTDL_MODE, [\(subproject\|\(non\)?recursive\)])], - [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])]) - -AC_ARG_WITH([included_ltdl], - [AS_HELP_STRING([--with-included-ltdl], - [use the GNU ltdl sources included here])]) - -if test yes != "$with_included_ltdl"; then - # We are not being forced to use the included libltdl sources, so - # decide whether there is a useful installed version we can use. - AC_CHECK_HEADER([ltdl.h], - [AC_CHECK_DECL([lt_dlinterface_register], - [AC_CHECK_LIB([ltdl], [lt_dladvise_preload], - [with_included_ltdl=no], - [with_included_ltdl=yes])], - [with_included_ltdl=yes], - [AC_INCLUDES_DEFAULT - #include ])], - [with_included_ltdl=yes], - [AC_INCLUDES_DEFAULT] - ) -fi - -dnl If neither LT_CONFIG_LTDL_DIR, LTDL_CONVENIENCE nor LTDL_INSTALLABLE -dnl was called yet, then for old times' sake, we assume libltdl is in an -dnl eponymous directory: -AC_PROVIDE_IFELSE([LT_CONFIG_LTDL_DIR], [], [_LT_CONFIG_LTDL_DIR([libltdl])]) - -AC_ARG_WITH([ltdl_include], - [AS_HELP_STRING([--with-ltdl-include=DIR], - [use the ltdl headers installed in DIR])]) - -if test -n "$with_ltdl_include"; then - if test -f "$with_ltdl_include/ltdl.h"; then : - else - AC_MSG_ERROR([invalid ltdl include directory: '$with_ltdl_include']) - fi -else - with_ltdl_include=no -fi - -AC_ARG_WITH([ltdl_lib], - [AS_HELP_STRING([--with-ltdl-lib=DIR], - [use the libltdl.la installed in DIR])]) - -if test -n "$with_ltdl_lib"; then - if test -f "$with_ltdl_lib/libltdl.la"; then : - else - AC_MSG_ERROR([invalid ltdl library directory: '$with_ltdl_lib']) - fi -else - with_ltdl_lib=no -fi - -case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in - ,yes,no,no,) - m4_case(m4_default(_LTDL_TYPE, [convenience]), - [convenience], [_LTDL_CONVENIENCE], - [installable], [_LTDL_INSTALLABLE], - [m4_fatal([unknown libltdl build type: ]_LTDL_TYPE)]) - ;; - ,no,no,no,) - # If the included ltdl is not to be used, then use the - # preinstalled libltdl we found. - AC_DEFINE([HAVE_LTDL], [1], - [Define this if a modern libltdl is already installed]) - LIBLTDL=-lltdl - LTDLDEPS= - LTDLINCL= - ;; - ,no*,no,*) - AC_MSG_ERROR(['--with-ltdl-include' and '--with-ltdl-lib' options must be used together]) - ;; - *) with_included_ltdl=no - LIBLTDL="-L$with_ltdl_lib -lltdl" - LTDLDEPS= - LTDLINCL=-I$with_ltdl_include - ;; -esac -INCLTDL=$LTDLINCL - -# Report our decision... -AC_MSG_CHECKING([where to find libltdl headers]) -AC_MSG_RESULT([$LTDLINCL]) -AC_MSG_CHECKING([where to find libltdl library]) -AC_MSG_RESULT([$LIBLTDL]) - -_LTDL_SETUP - -dnl restore autoconf definition. -m4_popdef([AC_LIBOBJ]) -m4_popdef([AC_LIBSOURCES]) - -AC_CONFIG_COMMANDS_PRE([ - _ltdl_libobjs= - _ltdl_ltlibobjs= - if test -n "$_LT_LIBOBJS"; then - # Remove the extension. - _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' - for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | $SED "$_lt_sed_drop_objext" | sort -u`; do - _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" - _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" - done - fi - AC_SUBST([ltdl_LIBOBJS], [$_ltdl_libobjs]) - AC_SUBST([ltdl_LTLIBOBJS], [$_ltdl_ltlibobjs]) -]) - -# Only expand once: -m4_define([LTDL_INIT]) -])# LTDL_INIT - -# Old names: -AU_DEFUN([AC_LIB_LTDL], [LTDL_INIT($@)]) -AU_DEFUN([AC_WITH_LTDL], [LTDL_INIT($@)]) -AU_DEFUN([LT_WITH_LTDL], [LTDL_INIT($@)]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIB_LTDL], []) -dnl AC_DEFUN([AC_WITH_LTDL], []) -dnl AC_DEFUN([LT_WITH_LTDL], []) - - -# _LTDL_SETUP -# ----------- -# Perform all the checks necessary for compilation of the ltdl objects -# -- including compiler checks and header checks. This is a public -# interface mainly for the benefit of libltdl's own configure.ac, most -# other users should call LTDL_INIT instead. -AC_DEFUN([_LTDL_SETUP], -[AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([LT_SYS_MODULE_EXT])dnl -AC_REQUIRE([LT_SYS_MODULE_PATH])dnl -AC_REQUIRE([LT_SYS_DLSEARCH_PATH])dnl -AC_REQUIRE([LT_LIB_DLLOAD])dnl -AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl -AC_REQUIRE([LT_FUNC_DLSYM_USCORE])dnl -AC_REQUIRE([LT_SYS_DLOPEN_DEPLIBS])dnl -AC_REQUIRE([LT_FUNC_ARGZ])dnl - -m4_require([_LT_CHECK_OBJDIR])dnl -m4_require([_LT_HEADER_DLFCN])dnl -m4_require([_LT_CHECK_DLPREOPEN])dnl -m4_require([_LT_DECL_SED])dnl - -dnl Don't require this, or it will be expanded earlier than the code -dnl that sets the variables it relies on: -_LT_ENABLE_INSTALL - -dnl _LTDL_MODE specific code must be called at least once: -_LTDL_MODE_DISPATCH - -# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS -# the user used. This is so that ltdl.h can pick up the parent projects -# config.h file, The first file in AC_CONFIG_HEADERS must contain the -# definitions required by ltdl.c. -# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). -AC_CONFIG_COMMANDS_PRE([dnl -m4_pattern_allow([^LT_CONFIG_H$])dnl -m4_ifset([AH_HEADER], - [LT_CONFIG_H=AH_HEADER], - [m4_ifset([AC_LIST_HEADERS], - [LT_CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's|^[[ ]]*||;s|[[ :]].*$||'`], - [])])]) -AC_SUBST([LT_CONFIG_H]) - -AC_CHECK_HEADERS([unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h], - [], [], [AC_INCLUDES_DEFAULT]) - -AC_CHECK_FUNCS([closedir opendir readdir], [], [AC_LIBOBJ([lt__dirent])]) -AC_CHECK_FUNCS([strlcat strlcpy], [], [AC_LIBOBJ([lt__strl])]) - -m4_pattern_allow([LT_LIBEXT])dnl -AC_DEFINE_UNQUOTED([LT_LIBEXT],["$libext"],[The archive extension]) - -name= -eval "lt_libprefix=\"$libname_spec\"" -m4_pattern_allow([LT_LIBPREFIX])dnl -AC_DEFINE_UNQUOTED([LT_LIBPREFIX],["$lt_libprefix"],[The archive prefix]) - -name=ltdl -eval "LTDLOPEN=\"$libname_spec\"" -AC_SUBST([LTDLOPEN]) -])# _LTDL_SETUP - - -# _LT_ENABLE_INSTALL -# ------------------ -m4_define([_LT_ENABLE_INSTALL], -[AC_ARG_ENABLE([ltdl-install], - [AS_HELP_STRING([--enable-ltdl-install], [install libltdl])]) - -case ,$enable_ltdl_install,$enable_ltdl_convenience in - *yes*) ;; - *) enable_ltdl_convenience=yes ;; -esac - -m4_ifdef([AM_CONDITIONAL], -[AM_CONDITIONAL(INSTALL_LTDL, test no != "${enable_ltdl_install-no}") - AM_CONDITIONAL(CONVENIENCE_LTDL, test no != "${enable_ltdl_convenience-no}")]) -])# _LT_ENABLE_INSTALL - - -# LT_SYS_DLOPEN_DEPLIBS -# --------------------- -AC_DEFUN([LT_SYS_DLOPEN_DEPLIBS], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_CACHE_CHECK([whether deplibs are loaded by dlopen], - [lt_cv_sys_dlopen_deplibs], - [# PORTME does your system automatically load deplibs for dlopen? - # or its logical equivalent (e.g. shl_load for HP-UX < 11) - # For now, we just catch OSes we know something about -- in the - # future, we'll try test this programmatically. - lt_cv_sys_dlopen_deplibs=unknown - case $host_os in - aix3*|aix4.1.*|aix4.2.*) - # Unknown whether this is true for these versions of AIX, but - # we want this 'case' here to explicitly catch those versions. - lt_cv_sys_dlopen_deplibs=unknown - ;; - aix[[4-9]]*) - lt_cv_sys_dlopen_deplibs=yes - ;; - amigaos*) - case $host_cpu in - powerpc) - lt_cv_sys_dlopen_deplibs=no - ;; - esac - ;; - bitrig*) - lt_cv_sys_dlopen_deplibs=yes - ;; - darwin*) - # Assuming the user has installed a libdl from somewhere, this is true - # If you are looking for one http://www.opendarwin.org/projects/dlcompat - lt_cv_sys_dlopen_deplibs=yes - ;; - freebsd* | dragonfly* | midnightbsd*) - lt_cv_sys_dlopen_deplibs=yes - ;; - gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) - # GNU and its variants, using gnu ld.so (Glibc) - lt_cv_sys_dlopen_deplibs=yes - ;; - hpux10*|hpux11*) - lt_cv_sys_dlopen_deplibs=yes - ;; - interix*) - lt_cv_sys_dlopen_deplibs=yes - ;; - irix[[12345]]*|irix6.[[01]]*) - # Catch all versions of IRIX before 6.2, and indicate that we don't - # know how it worked for any of those versions. - lt_cv_sys_dlopen_deplibs=unknown - ;; - irix*) - # The case above catches anything before 6.2, and it's known that - # at 6.2 and later dlopen does load deplibs. - lt_cv_sys_dlopen_deplibs=yes - ;; - netbsd*) - lt_cv_sys_dlopen_deplibs=yes - ;; - openbsd*) - lt_cv_sys_dlopen_deplibs=yes - ;; - osf[[1234]]*) - # dlopen did load deplibs (at least at 4.x), but until the 5.x series, - # it did *not* use an RPATH in a shared library to find objects the - # library depends on, so we explicitly say 'no'. - lt_cv_sys_dlopen_deplibs=no - ;; - osf5.0|osf5.0a|osf5.1) - # dlopen *does* load deplibs and with the right loader patch applied - # it even uses RPATH in a shared library to search for shared objects - # that the library depends on, but there's no easy way to know if that - # patch is installed. Since this is the case, all we can really - # say is unknown -- it depends on the patch being installed. If - # it is, this changes to 'yes'. Without it, it would be 'no'. - lt_cv_sys_dlopen_deplibs=unknown - ;; - osf*) - # the two cases above should catch all versions of osf <= 5.1. Read - # the comments above for what we know about them. - # At > 5.1, deplibs are loaded *and* any RPATH in a shared library - # is used to find them so we can finally say 'yes'. - lt_cv_sys_dlopen_deplibs=yes - ;; - qnx*) - lt_cv_sys_dlopen_deplibs=yes - ;; - solaris*) - lt_cv_sys_dlopen_deplibs=yes - ;; - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - libltdl_cv_sys_dlopen_deplibs=yes - ;; - esac - ]) -if test yes != "$lt_cv_sys_dlopen_deplibs"; then - AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1], - [Define if the OS needs help to load dependent libraries for dlopen().]) -fi -])# LT_SYS_DLOPEN_DEPLIBS - -# Old name: -AU_ALIAS([AC_LTDL_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], []) - - -# LT_SYS_MODULE_EXT -# ----------------- -AC_DEFUN([LT_SYS_MODULE_EXT], -[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl -AC_CACHE_CHECK([what extension is used for runtime loadable modules], - [libltdl_cv_shlibext], -[ -module=yes -eval libltdl_cv_shlibext=$shrext_cmds -module=no -eval libltdl_cv_shrext=$shrext_cmds - ]) -if test -n "$libltdl_cv_shlibext"; then - m4_pattern_allow([LT_MODULE_EXT])dnl - AC_DEFINE_UNQUOTED([LT_MODULE_EXT], ["$libltdl_cv_shlibext"], - [Define to the extension used for runtime loadable modules, say, ".so".]) -fi -if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then - m4_pattern_allow([LT_SHARED_EXT])dnl - AC_DEFINE_UNQUOTED([LT_SHARED_EXT], ["$libltdl_cv_shrext"], - [Define to the shared library suffix, say, ".dylib".]) -fi -if test -n "$shared_archive_member_spec"; then - m4_pattern_allow([LT_SHARED_LIB_MEMBER])dnl - AC_DEFINE_UNQUOTED([LT_SHARED_LIB_MEMBER], ["($shared_archive_member_spec.o)"], - [Define to the shared archive member specification, say "(shr.o)".]) -fi -])# LT_SYS_MODULE_EXT - -# Old name: -AU_ALIAS([AC_LTDL_SHLIBEXT], [LT_SYS_MODULE_EXT]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LTDL_SHLIBEXT], []) - - -# LT_SYS_MODULE_PATH -# ------------------ -AC_DEFUN([LT_SYS_MODULE_PATH], -[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl -AC_CACHE_CHECK([what variable specifies run-time module search path], - [lt_cv_module_path_var], [lt_cv_module_path_var=$shlibpath_var]) -if test -n "$lt_cv_module_path_var"; then - m4_pattern_allow([LT_MODULE_PATH_VAR])dnl - AC_DEFINE_UNQUOTED([LT_MODULE_PATH_VAR], ["$lt_cv_module_path_var"], - [Define to the name of the environment variable that determines the run-time module search path.]) -fi -])# LT_SYS_MODULE_PATH - -# Old name: -AU_ALIAS([AC_LTDL_SHLIBPATH], [LT_SYS_MODULE_PATH]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LTDL_SHLIBPATH], []) - - -# LT_SYS_DLSEARCH_PATH -# -------------------- -AC_DEFUN([LT_SYS_DLSEARCH_PATH], -[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl -AC_CACHE_CHECK([for the default library search path], - [lt_cv_sys_dlsearch_path], - [lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec]) -if test -n "$lt_cv_sys_dlsearch_path"; then - sys_dlsearch_path= - for dir in $lt_cv_sys_dlsearch_path; do - if test -z "$sys_dlsearch_path"; then - sys_dlsearch_path=$dir - else - sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir - fi - done - m4_pattern_allow([LT_DLSEARCH_PATH])dnl - AC_DEFINE_UNQUOTED([LT_DLSEARCH_PATH], ["$sys_dlsearch_path"], - [Define to the system default library search path.]) -fi -])# LT_SYS_DLSEARCH_PATH - -# Old name: -AU_ALIAS([AC_LTDL_SYSSEARCHPATH], [LT_SYS_DLSEARCH_PATH]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LTDL_SYSSEARCHPATH], []) - - -# _LT_CHECK_DLPREOPEN -# ------------------- -m4_defun([_LT_CHECK_DLPREOPEN], -[m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl -AC_CACHE_CHECK([whether libtool supports -dlopen/-dlpreopen], - [libltdl_cv_preloaded_symbols], - [if test -n "$lt_cv_sys_global_symbol_pipe"; then - libltdl_cv_preloaded_symbols=yes - else - libltdl_cv_preloaded_symbols=no - fi - ]) -if test yes = "$libltdl_cv_preloaded_symbols"; then - AC_DEFINE([HAVE_PRELOADED_SYMBOLS], [1], - [Define if libtool can extract symbol lists from object files.]) -fi -])# _LT_CHECK_DLPREOPEN - - -# LT_LIB_DLLOAD -# ------------- -AC_DEFUN([LT_LIB_DLLOAD], -[m4_pattern_allow([^LT_DLLOADERS$]) -LT_DLLOADERS= -AC_SUBST([LT_DLLOADERS]) - -AC_LANG_PUSH([C]) -lt_dlload_save_LIBS=$LIBS - -LIBADD_DLOPEN= -AC_SEARCH_LIBS([dlopen], [dl], - [AC_DEFINE([HAVE_LIBDL], [1], - [Define if you have the libdl library or equivalent.]) - if test "$ac_cv_search_dlopen" != "none required"; then - LIBADD_DLOPEN=-ldl - fi - libltdl_cv_lib_dl_dlopen=yes - LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"], - [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_DLFCN_H -# include -#endif - ]], [[dlopen(0, 0);]])], - [AC_DEFINE([HAVE_LIBDL], [1], - [Define if you have the libdl library or equivalent.]) - libltdl_cv_func_dlopen=yes - LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"], - [AC_CHECK_LIB([svld], [dlopen], - [AC_DEFINE([HAVE_LIBDL], [1], - [Define if you have the libdl library or equivalent.]) - LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes - LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"])])]) -if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen" -then - lt_save_LIBS=$LIBS - LIBS="$LIBS $LIBADD_DLOPEN" - AC_CHECK_FUNCS([dlerror]) - LIBS=$lt_save_LIBS -fi -AC_SUBST([LIBADD_DLOPEN]) - -LIBADD_SHL_LOAD= -AC_CHECK_FUNC([shl_load], - [AC_DEFINE([HAVE_SHL_LOAD], [1], - [Define if you have the shl_load function.]) - LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"], - [AC_CHECK_LIB([dld], [shl_load], - [AC_DEFINE([HAVE_SHL_LOAD], [1], - [Define if you have the shl_load function.]) - LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" - LIBADD_SHL_LOAD=-ldld])]) -AC_SUBST([LIBADD_SHL_LOAD]) - -case $host_os in -darwin[[1567]].*) -# We only want this for pre-Mac OS X 10.4. - AC_CHECK_FUNC([_dyld_func_lookup], - [AC_DEFINE([HAVE_DYLD], [1], - [Define if you have the _dyld_func_lookup function.]) - LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"]) - ;; -beos*) - LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" - ;; -cygwin* | mingw* | pw32*) - AC_CHECK_DECLS([cygwin_conv_path], [], [], [[#include ]]) - LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" - ;; -esac - -AC_CHECK_LIB([dld], [dld_link], - [AC_DEFINE([HAVE_DLD], [1], - [Define if you have the GNU dld library.]) - LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"]) -AC_SUBST([LIBADD_DLD_LINK]) - -m4_pattern_allow([^LT_DLPREOPEN$]) -LT_DLPREOPEN= -if test -n "$LT_DLLOADERS" -then - for lt_loader in $LT_DLLOADERS; do - LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " - done - AC_DEFINE([HAVE_LIBDLLOADER], [1], - [Define if libdlloader will be built on this platform]) -fi -AC_SUBST([LT_DLPREOPEN]) - -dnl This isn't used anymore, but set it for backwards compatibility -LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" -AC_SUBST([LIBADD_DL]) - -LIBS=$lt_dlload_save_LIBS -AC_LANG_POP -])# LT_LIB_DLLOAD - -# Old name: -AU_ALIAS([AC_LTDL_DLLIB], [LT_LIB_DLLOAD]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LTDL_DLLIB], []) - - -# LT_SYS_SYMBOL_USCORE -# -------------------- -# does the compiler prefix global symbols with an underscore? -AC_DEFUN([LT_SYS_SYMBOL_USCORE], -[m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl -AC_CACHE_CHECK([for _ prefix in compiled symbols], - [lt_cv_sys_symbol_underscore], - [lt_cv_sys_symbol_underscore=no - cat > conftest.$ac_ext <<_LT_EOF -void nm_test_func(){} -int main(){nm_test_func;return 0;} -_LT_EOF - if AC_TRY_EVAL(ac_compile); then - # Now try to grab the symbols. - ac_nlist=conftest.nm - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then - # See whether the symbols have a leading underscore. - if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then - lt_cv_sys_symbol_underscore=yes - else - if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then - : - else - echo "configure: cannot find nm_test_func in $ac_nlist" >&AS_MESSAGE_LOG_FD - fi - fi - else - echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD - fi - else - echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD - cat conftest.c >&AS_MESSAGE_LOG_FD - fi - rm -rf conftest* - ]) - sys_symbol_underscore=$lt_cv_sys_symbol_underscore - AC_SUBST([sys_symbol_underscore]) -])# LT_SYS_SYMBOL_USCORE - -# Old name: -AU_ALIAS([AC_LTDL_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LTDL_SYMBOL_USCORE], []) - - -# LT_FUNC_DLSYM_USCORE -# -------------------- -AC_DEFUN([LT_FUNC_DLSYM_USCORE], -[AC_REQUIRE([_LT_COMPILER_PIC])dnl for lt_prog_compiler_wl -AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl for lt_cv_sys_symbol_underscore -AC_REQUIRE([LT_SYS_MODULE_EXT])dnl for libltdl_cv_shlibext -if test yes = "$lt_cv_sys_symbol_underscore"; then - if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then - AC_CACHE_CHECK([whether we have to add an underscore for dlsym], - [libltdl_cv_need_uscore], - [libltdl_cv_need_uscore=unknown - dlsym_uscore_save_LIBS=$LIBS - LIBS="$LIBS $LIBADD_DLOPEN" - libname=conftmod # stay within 8.3 filename limits! - cat >$libname.$ac_ext <<_LT_EOF -[#line $LINENO "configure" -#include "confdefs.h" -/* When -fvisibility=hidden is used, assume the code has been annotated - correspondingly for the symbols needed. */ -#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) -int fnord () __attribute__((visibility("default"))); -#endif -int fnord () { return 42; }] -_LT_EOF - - # ltfn_module_cmds module_cmds - # Execute tilde-delimited MODULE_CMDS with environment primed for - # $module_cmds or $archive_cmds type content. - ltfn_module_cmds () - {( # subshell avoids polluting parent global environment - module_cmds_save_ifs=$IFS; IFS='~' - for cmd in @S|@1; do - IFS=$module_cmds_save_ifs - libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext - rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=. - major=; versuffix=; verstring=; deplibs= - ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag= - eval $cmd - done - IFS=$module_cmds_save_ifs - )} - - # Compile a loadable module using libtool macro expansion results. - $CC $pic_flag -c $libname.$ac_ext - ltfn_module_cmds "${module_cmds:-$archive_cmds}" - - # Try to fetch fnord with dlsym(). - libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2 - cat >conftest.$ac_ext <<_LT_EOF -[#line $LINENO "configure" -#include "confdefs.h" -#if HAVE_DLFCN_H -#include -#endif -#include -#ifndef RTLD_GLOBAL -# ifdef DL_GLOBAL -# define RTLD_GLOBAL DL_GLOBAL -# else -# define RTLD_GLOBAL 0 -# endif -#endif -#ifndef RTLD_NOW -# ifdef DL_NOW -# define RTLD_NOW DL_NOW -# else -# define RTLD_NOW 0 -# endif -#endif -int main () { - void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW); - int status = $libltdl_dlunknown; - if (handle) { - if (dlsym (handle, "fnord")) - status = $libltdl_dlnouscore; - else { - if (dlsym (handle, "_fnord")) - status = $libltdl_dluscore; - else - puts (dlerror ()); - } - dlclose (handle); - } else - puts (dlerror ()); - return status; -}] -_LT_EOF - if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null - libltdl_status=$? - case x$libltdl_status in - x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;; - x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;; - x*) libltdl_cv_need_uscore=unknown ;; - esac - fi - rm -rf conftest* $libname* - LIBS=$dlsym_uscore_save_LIBS - ]) - fi -fi - -if test yes = "$libltdl_cv_need_uscore"; then - AC_DEFINE([NEED_USCORE], [1], - [Define if dlsym() requires a leading underscore in symbol names.]) -fi -])# LT_FUNC_DLSYM_USCORE - -# Old name: -AU_ALIAS([AC_LTDL_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LTDL_DLSYM_USCORE], []) - # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 12 (pkg-config-0.29.2) @@ -1303,6 +392,26 @@ esac AC_SUBST([AR])dnl ]) +# Figure out how to run the assembler. -*- Autoconf -*- + +# Copyright (C) 2001-2021 Free Software Foundation, Inc. +# +# This file 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. + +# AM_PROG_AS +# ---------- +AC_DEFUN([AM_PROG_AS], +[# By default we simply use the C compiler to build assembly code. +AC_REQUIRE([AC_PROG_CC]) +test "${CCAS+set}" = set || CCAS=$CC +test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS +AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)]) +AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)]) +_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl +]) + # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001-2021 Free Software Foundation, Inc. @@ -1355,6 +464,43 @@ AC_DEFUN([AM_AUX_DIR_EXPAND], am_aux_dir=`cd "$ac_aux_dir" && pwd` ]) +# AM_COND_IF -*- Autoconf -*- + +# Copyright (C) 2008-2021 Free Software Foundation, Inc. +# +# This file 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. + +# _AM_COND_IF +# _AM_COND_ELSE +# _AM_COND_ENDIF +# -------------- +# These macros are only used for tracing. +m4_define([_AM_COND_IF]) +m4_define([_AM_COND_ELSE]) +m4_define([_AM_COND_ENDIF]) + +# AM_COND_IF(COND, [IF-TRUE], [IF-FALSE]) +# --------------------------------------- +# If the shell condition COND is true, execute IF-TRUE, otherwise execute +# IF-FALSE. Allow automake to learn about conditional instantiating macros +# (the AC_CONFIG_FOOS). +AC_DEFUN([AM_COND_IF], +[m4_ifndef([_AM_COND_VALUE_$1], + [m4_fatal([$0: no such condition "$1"])])dnl +_AM_COND_IF([$1])dnl +if test -z "$$1_TRUE"; then : + m4_n([$2])[]dnl +m4_ifval([$3], +[_AM_COND_ELSE([$1])dnl +else + $3 +])dnl +_AM_COND_ENDIF([$1])dnl +fi[]dnl +]) + # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997-2021 Free Software Foundation, Inc. diff --git a/Sources/Cfyaml/autom4te.cache/output.0 b/Sources/Cfyaml/autom4te.cache/output.0 index 8f220b4a6..0a0d8e0d7 100644 --- a/Sources/Cfyaml/autom4te.cache/output.0 +++ b/Sources/Cfyaml/autom4te.cache/output.0 @@ -1,11 +1,11 @@ @%:@! /bin/sh @%:@ Guess values for system-dependent variables and create Makefiles. -@%:@ Generated by GNU Autoconf 2.71 for libfyaml 0.7.12. +@%:@ Generated by GNU Autoconf 2.72 for libfyaml 0.9. @%:@ @%:@ Report bugs to . @%:@ @%:@ -@%:@ Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, +@%:@ Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, @%:@ Inc. @%:@ @%:@ @@ -17,7 +17,6 @@ # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh @@ -26,12 +25,13 @@ then : # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else $as_nop - case `(set -o) 2>/dev/null` in @%:@( +else case e in @%:@( + e) case `(set -o) 2>/dev/null` in @%:@( *posix*) : set -o posix ;; @%:@( *) : ;; +esac ;; esac fi @@ -92,7 +92,7 @@ case $0 in @%:@(( for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -103,7 +103,7 @@ IFS=$as_save_IFS ;; esac -# We did not find ourselves, most probably we were run as `sh COMMAND' +# We did not find ourselves, most probably we were run as 'sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 @@ -133,15 +133,14 @@ case $- in @%:@ (((( esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. +# out after a failed 'exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then - as_bourne_compatible="as_nop=: -if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 + as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: @@ -149,12 +148,13 @@ then : # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST -else \$as_nop - case \`(set -o) 2>/dev/null\` in @%:@( +else case e in @%:@( + e) case \`(set -o) 2>/dev/null\` in @%:@( *posix*) : set -o posix ;; @%:@( *) : ;; +esac ;; esac fi " @@ -172,8 +172,9 @@ as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ) then : -else \$as_nop - exitcode=1; echo positional parameters were not saved. +else case e in @%:@( + e) exitcode=1; echo positional parameters were not saved. ;; +esac fi test x\$exitcode = x0 || exit 1 blah=\$(echo \$(echo blah)) @@ -183,7 +184,6 @@ test -x / || exit 1" as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 -test \$(( 1 + 1 )) = 2 || exit 1 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' @@ -191,23 +191,25 @@ test \$(( 1 + 1 )) = 2 || exit 1 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ - || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null then : as_have_required=yes -else $as_nop - as_have_required=no +else case e in @%:@( + e) as_have_required=no ;; +esac fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null then : -else $as_nop - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in @%:@( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -235,12 +237,13 @@ IFS=$as_save_IFS if $as_found then : -else $as_nop - if { test -f "$SHELL" || test -f "$SHELL.exe"; } && +else case e in @%:@( + e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$SHELL as_have_required=yes -fi +fi ;; +esac fi @@ -262,7 +265,7 @@ case $- in @%:@ (((( esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. +# out after a failed 'exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi @@ -282,7 +285,8 @@ $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 -fi +fi ;; +esac fi fi SHELL=${CONFIG_SHELL-/bin/sh} @@ -321,14 +325,6 @@ as_fn_exit () as_fn_set_status $1 exit $1 } @%:@ as_fn_exit -@%:@ as_fn_nop -@%:@ --------- -@%:@ Do nothing but, unlike ":", preserve the value of @S|@?. -as_fn_nop () -{ - return $? -} -as_nop=as_fn_nop @%:@ as_fn_mkdir_p @%:@ ------------- @@ -397,11 +393,12 @@ then : { eval $1+=\$2 }' -else $as_nop - as_fn_append () +else case e in @%:@( + e) as_fn_append () { eval $1=\$$1\$2 - } + } ;; +esac fi # as_fn_append @%:@ as_fn_arith ARG... @@ -415,21 +412,14 @@ then : { as_val=$(( $* )) }' -else $as_nop - as_fn_arith () +else case e in @%:@( + e) as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` - } + } ;; +esac fi # as_fn_arith -@%:@ as_fn_nop -@%:@ --------- -@%:@ Do nothing but, unlike ":", preserve the value of @S|@?. -as_fn_nop () -{ - return $? -} -as_nop=as_fn_nop @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] @%:@ ---------------------------------------- @@ -503,6 +493,8 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits /[$]LINENO/= ' <$as_myself | sed ' + t clear + :clear s/[$]LINENO.*/&-/ t lineno b @@ -551,7 +543,6 @@ esac as_@&t@echo='printf %s\n' as_@&t@echo_n='printf %s' - rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file @@ -563,9 +554,9 @@ if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. + # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. + # In both cases, we have to default to 'cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then @@ -590,12 +581,12 @@ as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" +as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated # Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - -lt_ltdl_dir='libltdl' +as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" +as_tr_sh="eval sed '$as_sed_sh'" # deprecated SHELL=${CONFIG_SHELL-/bin/sh} @@ -623,8 +614,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='libfyaml' PACKAGE_TARNAME='libfyaml' -PACKAGE_VERSION='0.7.12' -PACKAGE_STRING='libfyaml 0.7.12' +PACKAGE_VERSION='0.9' +PACKAGE_STRING='libfyaml 0.9' PACKAGE_BUGREPORT='pantelis.antoniou@konsulko.com' PACKAGE_URL='' @@ -666,6 +657,14 @@ ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIB@&t@OBJS +HAVE_LIBCLANG_FALSE +HAVE_LIBCLANG_TRUE +LIBCLANG_LIBS +LIBCLANG_LDFLAGS +LIBCLANG_CPPFLAGS +LIBCLANG_CFLAGS +HAVE_LIBCLANG +LLVM_CONFIG HAVE_JQ_FALSE HAVE_JQ_TRUE JQ @@ -706,7 +705,42 @@ LIBYAML_CFLAGS HAVE_QSORT_R_FALSE HAVE_QSORT_R_TRUE HAVE_QSORT_R +HAVE_ASAN_FALSE +HAVE_ASAN_TRUE +ASAN_LIBS +ASAN_CFLAGS +HAVE_ASAN +TARGET_HAS_NEON_FALSE +TARGET_HAS_NEON_TRUE +TARGET_HAS_AVX512_FALSE +TARGET_HAS_AVX512_TRUE +TARGET_HAS_AVX2_FALSE +TARGET_HAS_AVX2_TRUE +TARGET_HAS_SSE41_FALSE +TARGET_HAS_SSE41_TRUE +TARGET_HAS_SSE2_FALSE +TARGET_HAS_SSE2_TRUE +TARGET_CPU_ANY_ARM_FALSE +TARGET_CPU_ANY_ARM_TRUE +TARGET_CPU_ARM64_FALSE +TARGET_CPU_ARM64_TRUE +TARGET_CPU_ARM_FALSE +TARGET_CPU_ARM_TRUE +TARGET_CPU_ANY_X86_FALSE +TARGET_CPU_ANY_X86_TRUE +TARGET_CPU_X86_64_FALSE +TARGET_CPU_X86_64_TRUE +TARGET_CPU_X86_FALSE +TARGET_CPU_X86_TRUE +HAVE_PORTABLE_TARGET_FALSE +HAVE_PORTABLE_TARGET_TRUE +HAVE_PORTABLE_TARGET +HAVE_STATIC_FALSE +HAVE_STATIC_TRUE +HAVE_STATIC subdirs +LIBLTDL +LTDLINCL CXXCPP LT_SYS_LIBRARY_PATH OTOOL64 @@ -722,28 +756,16 @@ ac_ct_DUMPBIN DUMPBIN LD FGREP +EGREP +GREP SED LIBTOOL OBJDUMP DLLTOOL AS -host_os -host_vendor -host_cpu -host -build_os -build_vendor -build_cpu -build -INCLTDL -LTDLINCL -LTDLDEPS -LIBLTDL PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG -ACLOCAL_AMFLAGS -M4 LN_S am__fastdepCXX_FALSE am__fastdepCXX_TRUE @@ -753,9 +775,11 @@ CXXFLAGS CXX ac_ct_AR AR -EGREP -GREP -CPP +am__fastdepCCAS_FALSE +am__fastdepCCAS_TRUE +CCASDEPMODE +CCASFLAGS +CCAS am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE @@ -807,6 +831,20 @@ am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM +target_os +target_vendor +target_cpu +target +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +ACLOCAL_AMFLAGS +M4 target_alias host_alias build_alias @@ -860,8 +898,11 @@ with_aix_soname with_gnu_ld with_sysroot enable_libtool_lock +enable_portable_target +enable_asan enable_network enable_devmode +with_libclang ' ac_precious_vars='build_alias host_alias @@ -871,7 +912,8 @@ CFLAGS LDFLAGS LIBS CPPFLAGS -CPP +CCAS +CCASFLAGS CXX CXXFLAGS CCC @@ -996,7 +1038,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: \`$ac_useropt'" + as_fn_error $? "invalid feature name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1022,7 +1064,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: \`$ac_useropt'" + as_fn_error $? "invalid feature name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1235,7 +1277,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: \`$ac_useropt'" + as_fn_error $? "invalid package name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1251,7 +1293,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: \`$ac_useropt'" + as_fn_error $? "invalid package name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1281,8 +1323,8 @@ do | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; - -*) as_fn_error $? "unrecognized option: \`$ac_option' -Try \`$0 --help' for more information" + -*) as_fn_error $? "unrecognized option: '$ac_option' +Try '$0 --help' for more information" ;; *=*) @@ -1290,7 +1332,7 @@ Try \`$0 --help' for more information" # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) - as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + as_fn_error $? "invalid variable name: '$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; @@ -1340,7 +1382,7 @@ do as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done -# There might be people who depend on the old broken behavior: `$host' +# There might be people who depend on the old broken behavior: '$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias @@ -1408,7 +1450,7 @@ if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` @@ -1436,7 +1478,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures libfyaml 0.7.12 to adapt to many kinds of systems. +'configure' configures libfyaml 0.9 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1450,11 +1492,11 @@ Configuration: --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking ...' messages + -q, --quiet, --silent do not print 'checking ...' messages --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' + -C, --config-cache alias for '--cache-file=config.cache' -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] + --srcdir=DIR find the sources in DIR [configure dir or '..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX @@ -1462,10 +1504,10 @@ Installation directories: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX @<:@PREFIX@:>@ -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. +By default, 'make install' will install all the files in +'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify +an installation prefix other than '$ac_default_prefix' using '--prefix', +for instance '--prefix=\$HOME'. For better control, use the options below. @@ -1502,12 +1544,13 @@ Program names: System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] + --target=TARGET configure for building compilers for TARGET [HOST] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libfyaml 0.7.12:";; + short | recursive ) echo "Configuration of libfyaml 0.9:";; esac cat <<\_ACEOF @@ -1526,6 +1569,10 @@ Optional Features: --enable-fast-install@<:@=PKGS@:>@ optimize for fast installation @<:@default=yes@:>@ --disable-libtool-lock avoid locking (might break parallel builds) + --enable-portable-target + Enable portable mode (disable per-target + optimizations) + --enable-asan Enable ASAN support --disable-network Disable tests requiring network access --enable-devmode Enable development mode only debugging @@ -1540,6 +1587,15 @@ Optional Packages: --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ --with-sysroot@<:@=DIR@:>@ Search for dependent libraries within DIR (or the compiler's sysroot if not specified). +@%:@ Check whether --enable-network was given. +if test ${enable_network+y} +then : + enableval=$enable_network; +fi + + + --with-libclang= + Enable support for libclang @<:@default=auto@:>@ Some influential environment variables: CC C compiler command @@ -1549,7 +1605,8 @@ 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 - CPP C preprocessor + CCAS assembler compiler command (defaults to CC) + CCASFLAGS assembler compiler flags (defaults to CFLAGS) CXX C++ compiler command CXXFLAGS C++ compiler flags PKG_CONFIG path to pkg-config utility @@ -1580,7 +1637,7 @@ Some influential environment variables: JSON Testsuite checkout (default: d64aefb55228d9584d3e5b2433f720ea8fd00c82) -Use these variables to override the choices made by `configure' or to help +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 . @@ -1647,10 +1704,10 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libfyaml configure 0.7.12 -generated by GNU Autoconf 2.71 +libfyaml configure 0.9 +generated by GNU Autoconf 2.72 -Copyright (C) 2021 Free Software Foundation, Inc. +Copyright (C) 2023 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF @@ -1689,54 +1746,17 @@ printf "%s\n" "$ac_try_echo"; } >&5 } && test -s conftest.$ac_objext then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in @%:@( + e) printf "%s\n" "$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_c_try_compile - -@%:@ ac_fn_c_try_cpp LINENO -@%:@ ---------------------- -@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. -ac_fn_c_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;; + ac_retval=1 ;; esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -printf "%s\n" "$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 - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } > conftest.i && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - } -then : - ac_retval=0 -else $as_nop - printf "%s\n" "$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_c_try_cpp +} @%:@ ac_fn_c_try_compile @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES @%:@ ------------------------------------------------------- @@ -1750,8 +1770,8 @@ printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 @%:@include <$2> @@ -1759,10 +1779,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$3=yes" -else $as_nop - eval "$3=no" +else case e in @%:@( + e) eval "$3=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -1799,11 +1821,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } && test -s conftest.$ac_objext then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in @%:@( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -1841,11 +1864,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in @%:@( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would @@ -1868,15 +1892,15 @@ printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $2 (); below. */ + which can conflict with char $2 (void); below. */ #include #undef $2 @@ -1887,7 +1911,7 @@ else $as_nop #ifdef __cplusplus extern "C" #endif -char $2 (); +char $2 (void); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ @@ -1906,11 +1930,13 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : eval "$3=yes" -else $as_nop - eval "$3=no" +else case e in @%:@( + e) eval "$3=no" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -1946,11 +1972,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in @%:@( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -1988,11 +2015,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in @%:@( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would @@ -2034,12 +2062,13 @@ printf "%s\n" "$ac_try_echo"; } >&5 test $ac_status = 0; }; } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: program exited with status $ac_status" >&5 +else case e in @%:@( + e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=$ac_status + ac_retval=$ac_status ;; +esac fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno @@ -2059,8 +2088,8 @@ printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - eval "$3=no" +else case e in @%:@( + e) eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 @@ -2090,12 +2119,14 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : -else $as_nop - eval "$3=yes" +else case e in @%:@( + e) eval "$3=yes" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -2117,8 +2148,8 @@ printf %s "checking whether $as_decl_name is declared... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` +else case e in @%:@( + e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` eval ac_save_FLAGS=\$$6 as_fn_append $6 " $5" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -2142,12 +2173,14 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$3=yes" -else $as_nop - eval "$3=no" +else case e in @%:@( + e) eval "$3=no" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext eval $6=\$ac_save_FLAGS - + ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -2179,8 +2212,8 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libfyaml $as_me 0.7.12, which was -generated by GNU Autoconf 2.71. Invocation command line was +It was created by libfyaml $as_me 0.9, which was +generated by GNU Autoconf 2.72. Invocation command line was $ $0$ac_configure_args_raw @@ -2215,7 +2248,7 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -2426,10 +2459,10 @@ esac printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ - || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } fi done @@ -2465,9 +2498,7 @@ struct stat; /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ struct buf { int x; }; struct buf * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; +static char *e (char **p, int i) { return p[i]; } @@ -2481,6 +2512,21 @@ static char *f (char * (*g) (char **, int), char **p, ...) return s; } +/* C89 style stringification. */ +#define noexpand_stringify(a) #a +const char *stringified = noexpand_stringify(arbitrary+token=sequence); + +/* C89 style token pasting. Exercises some of the corner cases that + e.g. old MSVC gets wrong, but not very hard. */ +#define noexpand_concat(a,b) a##b +#define expand_concat(a,b) noexpand_concat(a,b) +extern int vA; +extern int vbee; +#define aye A +#define bee B +int *pvA = &expand_concat(v,aye); +int *pvbee = &noexpand_concat(v,bee); + /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not \xHH hex character constants. These do not provoke an error unfortunately, instead are silently treated @@ -2508,16 +2554,19 @@ ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); # Test code for whether the C compiler supports C99 (global declarations) ac_c_conftest_c99_globals=' -// Does the compiler advertise C99 conformance? +/* Does the compiler advertise C99 conformance? */ #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L # error "Compiler does not advertise C99 conformance" #endif +// See if C++-style comments work. + #include extern int puts (const char *); extern int printf (const char *, ...); extern int dprintf (int, const char *, ...); extern void *malloc (size_t); +extern void free (void *); // Check varargs macros. These examples are taken from C99 6.10.3.5. // dprintf is used instead of fprintf to avoid needing to declare @@ -2567,7 +2616,6 @@ typedef const char *ccp; static inline int test_restrict (ccp restrict text) { - // See if C++-style comments work. // Iterate through items via the restricted pointer. // Also check for declarations in for loops. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) @@ -2633,6 +2681,8 @@ ac_c_conftest_c99_main=' ia->datasize = 10; for (int i = 0; i < ia->datasize; ++i) ia->data[i] = i * 1.234; + // Work around memory leak warnings. + free (ia); // Check named initializers. struct named_init ni = { @@ -2654,7 +2704,7 @@ ac_c_conftest_c99_main=' # Test code for whether the C compiler supports C11 (global declarations) ac_c_conftest_c11_globals=' -// Does the compiler advertise C11 conformance? +/* Does the compiler advertise C11 conformance? */ #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L # error "Compiler does not advertise C11 conformance" #endif @@ -2987,7 +3037,7 @@ main (int argc, char **argv) # Auxiliary files required by this configure script. -ac_aux_files="tap-driver.sh ltmain.sh config.guess config.sub ar-lib compile missing install-sh" +ac_aux_files="tap-driver.sh ltmain.sh ar-lib compile missing install-sh config.guess config.sub" # Locations in which to look for auxiliary files. ac_aux_dir_candidates="${srcdir}/build-aux" @@ -3005,7 +3055,7 @@ as_found=false for as_dir in $ac_aux_dir_candidates do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -3064,8 +3114,9 @@ IFS=$as_save_IFS if $as_found then : -else $as_nop - as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 +else case e in @%:@( + e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; +esac fi @@ -3093,12 +3144,12 @@ for ac_var in $ac_precious_vars; do eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 +printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 +printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) @@ -3107,18 +3158,18 @@ printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 +printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 -printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 +printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 -printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 -printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 +printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 +printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. @@ -3134,11 +3185,11 @@ printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} fi done if $ac_cache_corrupted; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} - as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' + as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## @@ -3154,13 +3205,187 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -ac_config_headers="$ac_config_headers config.h" +# Extract the first word of "m4 gm4", so it can be a program name with args. +set dummy m4 gm4; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_M4+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) case $M4 in + [\\/]* | ?:[\\/]*) + ac_cv_path_M4="$M4" # 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 + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_M4="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$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_path_M4" && ac_cv_path_M4="no" + ;; +esac ;; +esac +fi +M4=$ac_cv_path_M4 +if test -n "$M4"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 +printf "%s\n" "$M4" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + +if test "x$M4" = xno ; then + as_fn_error $? "m4 missing" "$LINENO" 5 +fi + +ACLOCAL_AMFLAGS="-I m4" -am__api_version='1.16' + + # Make sure we can run config.sub. +$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +printf %s "checking build system type... " >&6; } +if test ${ac_cv_build+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 + ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +printf "%s\n" "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +printf %s "checking host system type... " >&6; } +if test ${ac_cv_host+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 +fi + ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +printf "%s\n" "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 +printf %s "checking target system type... " >&6; } +if test ${ac_cv_target+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test "x$target_alias" = x; then + ac_cv_target=$ac_cv_host +else + ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5 +fi + ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 +printf "%s\n" "$ac_cv_target" >&6; } +case $ac_cv_target in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; +esac +target=$ac_cv_target +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_target +shift +target_cpu=$1 +target_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +target_os=$* +IFS=$ac_save_IFS +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac + + +# The aliases save the names the user supplied, while $host etc. +# will get canonicalized. +test -n "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" = \ + NONENONEs,x,x, && + program_prefix=${target_alias}- + + +ac_config_headers="$ac_config_headers config.h" + + +am__api_version='1.16' + # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or @@ -3182,12 +3407,12 @@ if test -z "$INSTALL"; then if test ${ac_cv_path_install+y} then : printf %s "(cached) " >&6 -else $as_nop - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in @%:@( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -3237,7 +3462,8 @@ esac IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir - + ;; +esac fi if test ${ac_cv_path_install+y}; then INSTALL=$ac_cv_path_install @@ -3333,7 +3559,7 @@ test "$program_prefix" != NONE && test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. -# By default was `s,x,x', remove it if useless. +# By default was 's,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` @@ -3376,15 +3602,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$STRIP"; then +else case e in @%:@( + e) if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -3399,7 +3625,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then @@ -3421,15 +3648,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_STRIP"; then +else case e in @%:@( + e) if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -3444,7 +3671,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then @@ -3480,12 +3708,12 @@ if test -z "$MKDIR_P"; then if test ${ac_cv_path_mkdir+y} then : printf %s "(cached) " >&6 -else $as_nop - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in @%:@( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -3495,7 +3723,7 @@ do as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir ('*'coreutils) '* | \ - 'BusyBox '* | \ + *'BusyBox '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext break 3;; @@ -3504,18 +3732,17 @@ do done done IFS=$as_save_IFS - + ;; +esac fi test -d ./--version && rmdir ./--version if test ${ac_cv_path_mkdir+y}; then MKDIR_P="$ac_cv_path_mkdir -p" else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - MKDIR_P="$ac_install_sh -d" + # As a last resort, use plain mkdir -p, + # in the hope it doesn't have the bugs of ancient mkdir. + MKDIR_P='mkdir -p' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 @@ -3530,15 +3757,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AWK+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AWK"; then +else case e in @%:@( + e) if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -3553,7 +3780,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then @@ -3575,8 +3803,8 @@ ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval test \${ac_cv_prog_make_${ac_make}_set+y} then : printf %s "(cached) " >&6 -else $as_nop - cat >conftest.make <<\_ACEOF +else case e in @%:@( + e) cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' @@ -3588,7 +3816,8 @@ case `${MAKE-make} -f conftest.make 2>/dev/null` in *) eval ac_cv_prog_make_${ac_make}_set=no;; esac -rm -f conftest.make +rm -f conftest.make ;; +esac fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 @@ -3626,8 +3855,8 @@ printf %s "checking whether $am_make supports nested variables... " >&6; } if test ${am_cv_make_support_nested_variables+y} then : printf %s "(cached) " >&6 -else $as_nop - if printf "%s\n" 'TRUE=$(BAR$(V)) +else case e in @%:@( + e) if printf "%s\n" 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 @@ -3637,7 +3866,8 @@ am__doit: am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no -fi +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } @@ -3672,7 +3902,7 @@ fi # Define the identity of the package. PACKAGE='libfyaml' - VERSION='0.7.12' + VERSION='0.9' printf "%s\n" "@%:@define PACKAGE \"$PACKAGE\"" >>confdefs.h @@ -3832,7 +4062,7 @@ EXTRA=`echo $VERSION | cut -d- -f2- -s` # increase current, set revision and age to 0 -LIBTOOL_VERSION=1:2:0 +LIBTOOL_VERSION=1:4:2 AX_CHECK_ENABLE_DEBUG() @@ -3860,15 +4090,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in @%:@( + e) if test -n "$CC"; then ac_cv_prog_CC="$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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -3883,7 +4113,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -3905,15 +4136,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in @%:@( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -3928,7 +4159,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -3963,15 +4195,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in @%:@( + e) if test -n "$CC"; then ac_cv_prog_CC="$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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -3986,7 +4218,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4008,8 +4241,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in @%:@( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no @@ -4017,7 +4250,7 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4048,7 +4281,8 @@ if test $ac_prog_rejected = yes; then ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" fi fi -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4072,15 +4306,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in @%:@( + e) if test -n "$CC"; then ac_cv_prog_CC="$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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4095,7 +4329,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4121,15 +4356,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in @%:@( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4144,7 +4379,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -4182,15 +4418,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in @%:@( + e) if test -n "$CC"; then ac_cv_prog_CC="$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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4205,7 +4441,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4227,15 +4464,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in @%:@( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4250,7 +4487,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -4279,10 +4517,10 @@ fi fi -test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 @@ -4354,8 +4592,8 @@ printf "%s\n" "$ac_try_echo"; } >&5 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' + # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. +# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. @@ -4375,7 +4613,7 @@ do ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' + # safe: cross compilers may not add the suffix if given an '-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. @@ -4386,8 +4624,9 @@ do done test "$ac_cv_exeext" = no && ac_cv_exeext= -else $as_nop - ac_file='' +else case e in @%:@( + e) ac_file='' ;; +esac fi if test -z "$ac_file" then : @@ -4396,13 +4635,14 @@ printf "%s\n" "no" >&6; } printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables -See \`config.log' for more details" "$LINENO" 5; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } +See 'config.log' for more details" "$LINENO" 5; } +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 printf %s "checking for C compiler default output file name... " >&6; } @@ -4426,10 +4666,10 @@ printf "%s\n" "$ac_try_echo"; } >&5 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. + # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) +# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will +# work properly (i.e., refer to 'conftest.exe'), while it won't with +# 'rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in @@ -4439,11 +4679,12 @@ for ac_file in conftest.exe conftest conftest.*; do * ) break;; esac done -else $as_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in @%:@( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi rm -f conftest conftest$ac_cv_exeext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 @@ -4459,6 +4700,8 @@ int main (void) { FILE *f = fopen ("conftest.out", "w"); + if (!f) + return 1; return ferror (f) || fclose (f) != 0; ; @@ -4498,26 +4741,27 @@ printf "%s\n" "$ac_try_echo"; } >&5 if test "$cross_compiling" = maybe; then cross_compiling=yes else - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details" "$LINENO" 5; } +If you meant to cross compile, use '--host'. +See 'config.log' for more details" "$LINENO" 5; } fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 printf "%s\n" "$cross_compiling" >&6; } -rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +rm -f conftest.$ac_ext conftest$ac_cv_exeext \ + conftest.o conftest.obj conftest.out ac_clean_files=$ac_clean_files_save { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 printf %s "checking for suffix of object files... " >&6; } if test ${ac_cv_objext+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -4549,16 +4793,18 @@ then : break;; esac done -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in @%:@( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi -rm -f conftest.$ac_cv_objext conftest.$ac_ext +rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 printf "%s\n" "$ac_cv_objext" >&6; } @@ -4569,8 +4815,8 @@ printf %s "checking whether the compiler supports GNU C... " >&6; } if test ${ac_cv_c_compiler_gnu+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -4587,12 +4833,14 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_compiler_gnu=yes -else $as_nop - ac_compiler_gnu=no +else case e in @%:@( + e) ac_compiler_gnu=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } @@ -4610,8 +4858,8 @@ printf %s "checking whether $CC accepts -g... " >&6; } if test ${ac_cv_prog_cc_g+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_save_c_werror_flag=$ac_c_werror_flag +else case e in @%:@( + e) ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" @@ -4629,8 +4877,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes -else $as_nop - CFLAGS="" +else case e in @%:@( + e) CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4645,8 +4893,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : -else $as_nop - ac_c_werror_flag=$ac_save_c_werror_flag +else case e in @%:@( + e) ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4663,12 +4911,15 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag + ac_c_werror_flag=$ac_save_c_werror_flag ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } @@ -4695,8 +4946,8 @@ printf %s "checking for $CC option to enable C11 features... " >&6; } if test ${ac_cv_prog_cc_c11+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c11=no +else case e in @%:@( + e) ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4713,25 +4964,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c11" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c11" = x +else case e in @%:@( + e) if test "x$ac_cv_prog_cc_c11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } - CC="$CC $ac_cv_prog_cc_c11" + CC="$CC $ac_cv_prog_cc_c11" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 - ac_prog_cc_stdc=c11 + ac_prog_cc_stdc=c11 ;; +esac fi fi if test x$ac_prog_cc_stdc = xno @@ -4741,8 +4995,8 @@ printf %s "checking for $CC option to enable C99 features... " >&6; } if test ${ac_cv_prog_cc_c99+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c99=no +else case e in @%:@( + e) ac_cv_prog_cc_c99=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4759,25 +5013,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c99" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c99" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c99" = x +else case e in @%:@( + e) if test "x$ac_cv_prog_cc_c99" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } - CC="$CC $ac_cv_prog_cc_c99" + CC="$CC $ac_cv_prog_cc_c99" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 - ac_prog_cc_stdc=c99 + ac_prog_cc_stdc=c99 ;; +esac fi fi if test x$ac_prog_cc_stdc = xno @@ -4787,8 +5044,8 @@ printf %s "checking for $CC option to enable C89 features... " >&6; } if test ${ac_cv_prog_cc_c89+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c89=no +else case e in @%:@( + e) ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4805,25 +5062,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c89" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c89" = x +else case e in @%:@( + e) if test "x$ac_cv_prog_cc_c89" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } - CC="$CC $ac_cv_prog_cc_c89" + CC="$CC $ac_cv_prog_cc_c89" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 - ac_prog_cc_stdc=c89 + ac_prog_cc_stdc=c89 ;; +esac fi fi @@ -4844,8 +5104,8 @@ printf %s "checking whether $CC understands -c and -o together... " >&6; } if test ${am_cv_prog_cc_c_o+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -4875,7 +5135,8 @@ _ACEOF fi done rm -f core conftest* - unset am_i + unset am_i ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } @@ -4965,8 +5226,8 @@ printf %s "checking dependency style of $depcc... " >&6; } if test ${am_cv_CC_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then +else case e in @%:@( + e) 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 @@ -5070,7 +5331,8 @@ else $as_nop else am_cv_CC_dependencies_compiler_type=none fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } @@ -5088,328 +5350,143 @@ fi +# By default we simply use the C compiler to build assembly code. +test "${CCAS+set}" = set || CCAS=$CC +test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS -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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 -printf %s "checking how to run the C preprocessor... " >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if test ${ac_cv_prog_CPP+y} + +depcc="$CCAS" am_compiler_list= + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +printf %s "checking dependency style of $depcc... " >&6; } +if test ${am_cv_CCAS_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 -else $as_nop - # Double quotes because $CC needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # 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. */ -@%:@include - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : +else case e in @%:@( + e) 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_CCAS_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 -else $as_nop - # 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_c_try_cpp "$LINENO" -then : - # Broken: success on invalid input. -continue -else $as_nop - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.i conftest.$ac_ext + 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 -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 + # 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_CCAS_dependencies_compiler_type=$depmode + break + fi + fi + done - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP + cd .. + rm -rf conftest.dir else - ac_cv_prog_CPP=$CPP + am_cv_CCAS_dependencies_compiler_type=none fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 -printf "%s\n" "$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # 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. */ -@%:@include - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : - -else $as_nop - # Broken: fails on valid input. -continue + ;; +esac fi -rm -f conftest.err conftest.i conftest.$ac_ext +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 +printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; } +CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type - # 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_c_try_cpp "$LINENO" -then : - # Broken: success on invalid input. -continue -else $as_nop - # Passes both tests. -ac_preproc_ok=: -break + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then + am__fastdepCCAS_TRUE= + am__fastdepCCAS_FALSE='#' +else + am__fastdepCCAS_TRUE='#' + am__fastdepCCAS_FALSE= 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_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "C preprocessor \"$CPP\" 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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in grep ggrep - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in -*GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_GREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_GREP=$GREP -fi - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in egrep - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_EGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_EGREP=$EGREP -fi - - fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - -if test $ac_cv_c_compiler_gnu = yes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 -printf %s "checking whether $CC needs -traditional... " >&6; } -if test ${ac_cv_prog_gcc_traditional+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_pattern="Autoconf.*'x'" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -Autoconf TIOCGETP -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "$ac_pattern" >/dev/null 2>&1 -then : - ac_cv_prog_gcc_traditional=yes -else $as_nop - ac_cv_prog_gcc_traditional=no -fi -rm -rf conftest* - - - if test $ac_cv_prog_gcc_traditional = no; then - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -Autoconf TCGETA -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "$ac_pattern" >/dev/null 2>&1 -then : - ac_cv_prog_gcc_traditional=yes -fi -rm -rf conftest* - - fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 -printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; } - if test $ac_cv_prog_gcc_traditional = yes; then - CC="$CC -traditional" - fi -fi ac_header= ac_cache= for ac_item in $ac_header_c_list @@ -5451,8 +5528,8 @@ printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } if test ${ac_cv_safe_to_define___extensions__+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ # define __EXTENSIONS__ 1 @@ -5468,10 +5545,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_safe_to_define___extensions__=yes -else $as_nop - ac_cv_safe_to_define___extensions__=no +else case e in @%:@( + e) ac_cv_safe_to_define___extensions__=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } @@ -5481,8 +5560,8 @@ printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } if test ${ac_cv_should_define__xopen_source+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_should_define__xopen_source=no +else case e in @%:@( + e) ac_cv_should_define__xopen_source=no if test $ac_cv_header_wchar_h = yes then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -5501,8 +5580,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _XOPEN_SOURCE 500 @@ -5520,10 +5599,12 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_should_define__xopen_source=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -fi +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } @@ -5548,6 +5629,8 @@ printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } printf "%s\n" "@%:@define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h + printf "%s\n" "@%:@define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h + printf "%s\n" "@%:@define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h printf "%s\n" "@%:@define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h @@ -5567,8 +5650,9 @@ then : printf "%s\n" "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h -else $as_nop - MINIX= +else case e in @%:@( + e) MINIX= ;; +esac fi if test $ac_cv_safe_to_define___extensions__ = yes then : @@ -5592,15 +5676,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AR"; then +else case e in @%:@( + e) if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -5615,7 +5699,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi AR=$ac_cv_prog_AR if test -n "$AR"; then @@ -5641,15 +5726,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_AR"; then +else case e in @%:@( + e) if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -5664,7 +5749,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then @@ -5699,8 +5785,8 @@ printf %s "checking the archiver ($AR) interface... " >&6; } if test ${am_cv_ar_interface+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_ext=c +else case e in @%:@( + e) 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' @@ -5743,7 +5829,8 @@ 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 - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 printf "%s\n" "$am_cv_ar_interface" >&6; } @@ -5791,15 +5878,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CXX"; then +else case e in @%:@( + e) 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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -5814,7 +5901,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then @@ -5840,15 +5928,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CXX"; then +else case e in @%:@( + e) 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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -5863,7 +5951,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then @@ -5923,8 +6012,8 @@ printf %s "checking whether the compiler supports GNU C++... " >&6; } if test ${ac_cv_cxx_compiler_gnu+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -5941,12 +6030,14 @@ _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_compiler_gnu=yes -else $as_nop - ac_compiler_gnu=no +else case e in @%:@( + e) ac_compiler_gnu=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } @@ -5964,8 +6055,8 @@ printf %s "checking whether $CXX accepts -g... " >&6; } if test ${ac_cv_prog_cxx_g+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_save_cxx_werror_flag=$ac_cxx_werror_flag +else case e in @%:@( + e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" @@ -5983,8 +6074,8 @@ _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_g=yes -else $as_nop - CXXFLAGS="" +else case e in @%:@( + e) CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -5999,8 +6090,8 @@ _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : -else $as_nop - ac_cxx_werror_flag=$ac_save_cxx_werror_flag +else case e in @%:@( + e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6017,12 +6108,15 @@ if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ac_cxx_werror_flag=$ac_save_cxx_werror_flag + ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } @@ -6046,11 +6140,11 @@ if test x$ac_prog_cxx_stdcxx = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 printf %s "checking for $CXX option to enable C++11 features... " >&6; } -if test ${ac_cv_prog_cxx_11+y} +if test ${ac_cv_prog_cxx_cxx11+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cxx_11=no +else case e in @%:@( + e) ac_cv_prog_cxx_cxx11=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6067,36 +6161,39 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx11" != "xno" && break done rm -f conftest.$ac_ext -CXX=$ac_save_CXX +CXX=$ac_save_CXX ;; +esac fi if test "x$ac_cv_prog_cxx_cxx11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cxx_cxx11" = x +else case e in @%:@( + e) if test "x$ac_cv_prog_cxx_cxx11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } - CXX="$CXX $ac_cv_prog_cxx_cxx11" + CXX="$CXX $ac_cv_prog_cxx_cxx11" ;; +esac fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 - ac_prog_cxx_stdcxx=cxx11 + ac_prog_cxx_stdcxx=cxx11 ;; +esac fi fi if test x$ac_prog_cxx_stdcxx = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 printf %s "checking for $CXX option to enable C++98 features... " >&6; } -if test ${ac_cv_prog_cxx_98+y} +if test ${ac_cv_prog_cxx_cxx98+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cxx_98=no +else case e in @%:@( + e) ac_cv_prog_cxx_cxx98=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6113,25 +6210,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx98" != "xno" && break done rm -f conftest.$ac_ext -CXX=$ac_save_CXX +CXX=$ac_save_CXX ;; +esac fi if test "x$ac_cv_prog_cxx_cxx98" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cxx_cxx98" = x +else case e in @%:@( + e) if test "x$ac_cv_prog_cxx_cxx98" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } - CXX="$CXX $ac_cv_prog_cxx_cxx98" + CXX="$CXX $ac_cv_prog_cxx_cxx98" ;; +esac fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 - ac_prog_cxx_stdcxx=cxx98 + ac_prog_cxx_stdcxx=cxx98 ;; +esac fi fi @@ -6148,8 +6248,8 @@ printf %s "checking dependency style of $depcc... " >&6; } if test ${am_cv_CXX_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then +else case e in @%:@( + e) 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 @@ -6253,7 +6353,8 @@ else $as_nop else am_cv_CXX_dependencies_compiler_type=none fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } @@ -6279,15 +6380,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AWK+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AWK"; then +else case e in @%:@( + e) if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -6302,7 +6403,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then @@ -6329,60 +6431,15 @@ printf "%s\n" "no, using $LN_S" >&6; } fi -AX_PTHREAD - -# Extract the first word of "m4 gm4", so it can be a program name with args. -set dummy m4 gm4; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_M4+y} -then : - printf %s "(cached) " >&6 -else $as_nop - case $M4 in - [\\/]* | ?:[\\/]*) - ac_cv_path_M4="$M4" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_M4="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$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_path_M4" && ac_cv_path_M4="no" - ;; -esac -fi -M4=$ac_cv_path_M4 -if test -n "$M4"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 -printf "%s\n" "$M4" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - +AX_PTHREAD(, AC_MSG_ERROR("Missing required pthread support")) -if test "x$M4" = xno ; then - as_fn_error $? "m4 missing" "$LINENO" 5 +# in some cases PTHREAD_LIBS is empty - force -lpthread */ +if test "x$PTHREAD_LIBS" = "x"; then + PTHREAD_LIBS="-lpthread" fi -ACLOCAL_AMFLAGS="-I m4" - +CFLAGS="$CFLAGS $PTHREAD_CFLAGS" +LIBS="$LIBS $PTHREAD_LIBS" # pkg-config @@ -6401,8 +6458,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PKG_CONFIG+y} then : printf %s "(cached) " >&6 -else $as_nop - case $PKG_CONFIG in +else case e in @%:@( + e) case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; @@ -6411,7 +6468,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -6427,6 +6484,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG @@ -6449,8 +6507,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} then : printf %s "(cached) " >&6 -else $as_nop - case $ac_pt_PKG_CONFIG in +else case e in @%:@( + e) case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; @@ -6459,7 +6517,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -6475,6 +6533,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG @@ -6517,514 +6576,16 @@ printf "%s\n" "no" >&6; } fi +case `pwd` in + *\ * | *\ *) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; +esac - - -if test -f "$prefix/lib/libltdl.la"; then - lt_save_LDFLAGS=$LDFLAGS - LDFLAGS="-L$prefix/lib $LDFLAGS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5 -printf %s "checking for lt_dlinit in -lltdl... " >&6; } -if test ${ac_cv_lib_ltdl_lt_dlinit+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS -LIBS="-lltdl $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. */ -char lt_dlinit (); -int -main (void) -{ -return lt_dlinit (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_ltdl_lt_dlinit=yes -else $as_nop - ac_cv_lib_ltdl_lt_dlinit=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5 -printf "%s\n" "$ac_cv_lib_ltdl_lt_dlinit" >&6; } -if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes -then : - lt_lib_ltdl=yes -fi - - LDFLAGS=$lt_save_LDFLAGS - if test yes = "${lt_lib_ltdl-no}"; then - if test yes != "$enable_ltdl_install"; then - # Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: not overwriting libltdl at $prefix, force with '--enable-ltdl-install'" >&5 -printf "%s\n" "$as_me: WARNING: not overwriting libltdl at $prefix, force with '--enable-ltdl-install'" >&2;} - enable_ltdl_install=no - fi - elif test no = "$enable_ltdl_install"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libltdl not installed, but installation disabled" >&5 -printf "%s\n" "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;} - fi -fi - -# If configure.ac declared an installable ltdl, and the user didn't override -# with --disable-ltdl-install, we will install the shipped libltdl. -case $enable_ltdl_install in - no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no" - LIBLTDL=-lltdl - LTDLDEPS= - LTDLINCL= - ;; - *) enable_ltdl_install=yes - ac_configure_args="$ac_configure_args --enable-ltdl-install" - LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la" - LTDLDEPS=$LIBLTDL - LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}" - ;; -esac - - - - - -# For backwards non-gettext consistent compatibility... -INCLTDL=$LTDLINCL - - -enable_dlopen=yes - - - - - - # Make sure we can run config.sub. -$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || - as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 -printf %s "checking build system type... " >&6; } -if test ${ac_cv_build+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` -test "x$ac_build_alias" = x && - as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 -ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || - as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 -printf "%s\n" "$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 -printf %s "checking host system type... " >&6; } -if test ${ac_cv_host+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || - as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 -fi - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 -printf "%s\n" "$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - -enable_win32_dll=yes - -case $host in -*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. -set dummy ${ac_tool_prefix}as; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_AS+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test -n "$AS"; then - ac_cv_prog_AS="$AS" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_AS="${ac_tool_prefix}as" - printf "%s\n" "$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 -AS=$ac_cv_prog_AS -if test -n "$AS"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 -printf "%s\n" "$AS" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_AS"; then - ac_ct_AS=$AS - # Extract the first word of "as", so it can be a program name with args. -set dummy as; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_AS+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_AS"; then - ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_AS="as" - printf "%s\n" "$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_AS=$ac_cv_prog_ac_ct_AS -if test -n "$ac_ct_AS"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 -printf "%s\n" "$ac_ct_AS" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_AS" = x; then - AS="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - AS=$ac_ct_AS - fi -else - AS="$ac_cv_prog_AS" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. -set dummy ${ac_tool_prefix}dlltool; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_DLLTOOL+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test -n "$DLLTOOL"; then - ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DLLTOOL="${ac_tool_prefix}dlltool" - printf "%s\n" "$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 -DLLTOOL=$ac_cv_prog_DLLTOOL -if test -n "$DLLTOOL"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 -printf "%s\n" "$DLLTOOL" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_DLLTOOL"; then - ac_ct_DLLTOOL=$DLLTOOL - # Extract the first word of "dlltool", so it can be a program name with args. -set dummy dlltool; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_DLLTOOL+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_DLLTOOL"; then - ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DLLTOOL="dlltool" - printf "%s\n" "$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_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL -if test -n "$ac_ct_DLLTOOL"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 -printf "%s\n" "$ac_ct_DLLTOOL" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_DLLTOOL" = x; then - DLLTOOL="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - DLLTOOL=$ac_ct_DLLTOOL - fi -else - DLLTOOL="$ac_cv_prog_DLLTOOL" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. -set dummy ${ac_tool_prefix}objdump; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_OBJDUMP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test -n "$OBJDUMP"; then - ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_OBJDUMP="${ac_tool_prefix}objdump" - printf "%s\n" "$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 -OBJDUMP=$ac_cv_prog_OBJDUMP -if test -n "$OBJDUMP"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 -printf "%s\n" "$OBJDUMP" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_OBJDUMP"; then - ac_ct_OBJDUMP=$OBJDUMP - # Extract the first word of "objdump", so it can be a program name with args. -set dummy objdump; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_OBJDUMP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_OBJDUMP"; then - ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_OBJDUMP="objdump" - printf "%s\n" "$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_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP -if test -n "$ac_ct_OBJDUMP"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 -printf "%s\n" "$ac_ct_OBJDUMP" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_OBJDUMP" = x; then - OBJDUMP="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - OBJDUMP=$ac_ct_OBJDUMP - fi -else - OBJDUMP="$ac_cv_prog_OBJDUMP" -fi - - ;; -esac - -test -z "$AS" && AS=as - - - - - -test -z "$DLLTOOL" && DLLTOOL=dlltool - - - - - -test -z "$OBJDUMP" && OBJDUMP=objdump - - - - - - - -case `pwd` in - *\ * | *\ *) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 -printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; -esac - - - -macro_version='2.4.7' -macro_revision='2.4.7' +macro_version='2.4.7' +macro_revision='2.4.7' @@ -7115,8 +6676,8 @@ printf %s "checking for a sed that does not truncate output... " >&6; } if test ${ac_cv_path_SED+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ +else case e in @%:@( + e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done @@ -7129,7 +6690,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -7141,9 +6702,10 @@ do as_fn_executable_p "$ac_path_SED" || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED -case `"$ac_path_SED" --version 2>&1` in +case `"$ac_path_SED" --version 2>&1` in @%:@( *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +@%:@( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -7178,7 +6740,8 @@ IFS=$as_save_IFS else ac_cv_path_SED=$SED fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 printf "%s\n" "$ac_cv_path_SED" >&6; } @@ -7198,13 +6761,161 @@ Xsed="$SED -e 1s/^X//" +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +printf %s "checking for grep that handles long lines and -e... " >&6; } +if test ${ac_cv_path_GREP+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in grep ggrep + do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_GREP" || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in @%:@( +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +@%:@( +*) + ac_count=0 + printf %s 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + printf "%s\n" 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_GREP=$GREP +fi + ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +printf "%s\n" "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +printf %s "checking for egrep... " >&6; } +if test ${ac_cv_path_EGREP+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in egrep + do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP" || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in @%:@( +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +@%:@( +*) + ac_count=0 + printf %s 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + printf "%s\n" 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +printf "%s\n" "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + EGREP_TRADITIONAL=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 printf %s "checking for fgrep... " >&6; } if test ${ac_cv_path_FGREP+y} then : printf %s "(cached) " >&6 -else $as_nop - if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 +else case e in @%:@( + e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else if test -z "$FGREP"; then @@ -7214,7 +6925,7 @@ else $as_nop for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -7226,9 +6937,10 @@ do as_fn_executable_p "$ac_path_FGREP" || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP -case `"$ac_path_FGREP" --version 2>&1` in +case `"$ac_path_FGREP" --version 2>&1` in @%:@( *GNU*) ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; +@%:@( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -7264,7 +6976,8 @@ else ac_cv_path_FGREP=$FGREP fi - fi + fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 printf "%s\n" "$ac_cv_path_FGREP" >&6; } @@ -7295,8 +7008,9 @@ test -z "$GREP" && GREP=grep if test ${with_gnu_ld+y} then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes -else $as_nop - with_gnu_ld=no +else case e in @%:@( + e) with_gnu_ld=no ;; +esac fi ac_prog=ld @@ -7341,8 +7055,8 @@ fi if test ${lt_cv_path_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$LD"; then +else case e in @%:@( + e) if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs @@ -7365,7 +7079,8 @@ else $as_nop IFS=$lt_save_ifs else lt_cv_path_LD=$LD # Let the user override the test with a path. -fi +fi ;; +esac fi LD=$lt_cv_path_LD @@ -7382,8 +7097,8 @@ printf %s "checking if the linker ($LD) is GNU ld... " >&6; } if test ${lt_cv_prog_gnu_ld+y} then : printf %s "(cached) " >&6 -else $as_nop - # I'd rather use --version here, but apparently some GNU lds only accept -v. +else case e in @%:@( + e) # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &1 &5 @@ -7410,8 +7126,8 @@ printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if test ${lt_cv_path_NM+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$NM"; then +else case e in @%:@( + e) if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM=$NM else @@ -7458,7 +7174,8 @@ else IFS=$lt_save_ifs done : ${lt_cv_path_NM=no} -fi +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 printf "%s\n" "$lt_cv_path_NM" >&6; } @@ -7479,15 +7196,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DUMPBIN+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DUMPBIN"; then +else case e in @%:@( + e) if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -7502,7 +7219,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then @@ -7528,15 +7246,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DUMPBIN+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_DUMPBIN"; then +else case e in @%:@( + e) if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -7551,7 +7269,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then @@ -7605,8 +7324,8 @@ printf %s "checking the name lister ($NM) interface... " >&6; } if test ${lt_cv_nm_interface+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_nm_interface="BSD nm" +else case e in @%:@( + e) lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) @@ -7619,7 +7338,8 @@ else $as_nop if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi - rm -f conftest* + rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 printf "%s\n" "$lt_cv_nm_interface" >&6; } @@ -7630,8 +7350,8 @@ printf %s "checking the maximum length of command line arguments... " >&6; } if test ${lt_cv_sys_max_cmd_len+y} then : printf %s "(cached) " >&6 -else $as_nop - i=0 +else case e in @%:@( + e) i=0 teststring=ABCD case $build_os in @@ -7753,7 +7473,8 @@ else $as_nop fi ;; esac - + ;; +esac fi if test -n "$lt_cv_sys_max_cmd_len"; then @@ -7810,8 +7531,8 @@ printf %s "checking how to convert $build file names to $host format... " >&6; } if test ${lt_cv_to_host_file_cmd+y} then : printf %s "(cached) " >&6 -else $as_nop - case $host in +else case e in @%:@( + e) case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys @@ -7842,7 +7563,8 @@ else $as_nop lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac - + ;; +esac fi to_host_file_cmd=$lt_cv_to_host_file_cmd @@ -7858,8 +7580,8 @@ printf %s "checking how to convert $build file names to toolchain format... " >& if test ${lt_cv_to_tool_file_cmd+y} then : printf %s "(cached) " >&6 -else $as_nop - #assume ordinary cross tools, or native build. +else case e in @%:@( + e) #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) @@ -7870,7 +7592,8 @@ case $host in esac ;; esac - + ;; +esac fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd @@ -7886,8 +7609,9 @@ printf %s "checking for $LD option to reload object files... " >&6; } if test ${lt_cv_ld_reload_flag+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_ld_reload_flag='-r' +else case e in @%:@( + e) lt_cv_ld_reload_flag='-r' ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } @@ -7928,15 +7652,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_FILECMD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$FILECMD"; then +else case e in @%:@( + e) if test -n "$FILECMD"; then ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -7951,7 +7675,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi FILECMD=$ac_cv_prog_FILECMD if test -n "$FILECMD"; then @@ -7973,15 +7698,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_FILECMD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_FILECMD"; then +else case e in @%:@( + e) if test -n "$ac_ct_FILECMD"; then ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -7996,7 +7721,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD if test -n "$ac_ct_FILECMD"; then @@ -8036,15 +7762,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OBJDUMP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$OBJDUMP"; then +else case e in @%:@( + e) if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8059,7 +7785,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then @@ -8081,15 +7808,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OBJDUMP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_OBJDUMP"; then +else case e in @%:@( + e) if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8104,7 +7831,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then @@ -8142,8 +7870,8 @@ printf %s "checking how to recognize dependent libraries... " >&6; } if test ${lt_cv_deplibs_check_method+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_file_magic_cmd='$MAGIC_CMD' +else case e in @%:@( + e) lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support @@ -8336,7 +8064,8 @@ os2*) lt_cv_deplibs_check_method=pass_all ;; esac - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } @@ -8388,15 +8117,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DLLTOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DLLTOOL"; then +else case e in @%:@( + e) if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8411,7 +8140,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then @@ -8433,15 +8163,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DLLTOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_DLLTOOL"; then +else case e in @%:@( + e) if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8456,7 +8186,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then @@ -8495,8 +8226,8 @@ printf %s "checking how to associate runtime and link libraries... " >&6; } if test ${lt_cv_sharedlib_from_linklib_cmd+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_sharedlib_from_linklib_cmd='unknown' +else case e in @%:@( + e) lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) @@ -8516,7 +8247,8 @@ cygwin* | mingw* | pw32* | cegcc*) lt_cv_sharedlib_from_linklib_cmd=$ECHO ;; esac - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } @@ -8539,15 +8271,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AR"; then +else case e in @%:@( + e) if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8562,7 +8294,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi AR=$ac_cv_prog_AR if test -n "$AR"; then @@ -8588,15 +8321,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_AR"; then +else case e in @%:@( + e) if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8611,7 +8344,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then @@ -8673,8 +8407,8 @@ printf %s "checking for archiver @FILE support... " >&6; } if test ${lt_cv_ar_at_file+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_ar_at_file=no +else case e in @%:@( + e) lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -8711,7 +8445,8 @@ then : fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 printf "%s\n" "$lt_cv_ar_at_file" >&6; } @@ -8736,15 +8471,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$STRIP"; then +else case e in @%:@( + e) if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8759,7 +8494,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then @@ -8781,15 +8517,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_STRIP"; then +else case e in @%:@( + e) if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8804,7 +8540,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then @@ -8845,15 +8582,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_RANLIB+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$RANLIB"; then +else case e in @%:@( + e) if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8868,7 +8605,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then @@ -8890,15 +8628,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_RANLIB+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_RANLIB"; then +else case e in @%:@( + e) if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8913,7 +8651,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then @@ -9024,8 +8763,8 @@ printf %s "checking command to parse $NM output from $compiler object... " >&6; if test ${lt_cv_sys_global_symbol_pipe+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in @%:@( + e) # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] @@ -9280,7 +9019,8 @@ _LT_EOF lt_cv_sys_global_symbol_pipe= fi done - + ;; +esac fi if test -z "$lt_cv_sys_global_symbol_pipe"; then @@ -9344,8 +9084,9 @@ printf %s "checking for sysroot... " >&6; } if test ${with_sysroot+y} then : withval=$with_sysroot; -else $as_nop - with_sysroot=no +else case e in @%:@( + e) with_sysroot=no ;; +esac fi @@ -9380,8 +9121,8 @@ printf %s "checking for a working dd... " >&6; } if test ${ac_cv_path_lt_DD+y} then : printf %s "(cached) " >&6 -else $as_nop - printf 0123456789abcdef0123456789abcdef >conftest.i +else case e in @%:@( + e) printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} if test -z "$lt_DD"; then @@ -9391,7 +9132,7 @@ if test -z "$lt_DD"; then for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9417,7 +9158,8 @@ else ac_cv_path_lt_DD=$lt_DD fi -rm -f conftest.i conftest2.i conftest.out +rm -f conftest.i conftest2.i conftest.out ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } @@ -9428,8 +9170,8 @@ printf %s "checking how to truncate binary pipes... " >&6; } if test ${lt_cv_truncate_bin+y} then : printf %s "(cached) " >&6 -else $as_nop - printf 0123456789abcdef0123456789abcdef >conftest.i +else case e in @%:@( + e) printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then @@ -9437,7 +9179,8 @@ if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; the && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" fi rm -f conftest.i conftest2.i conftest.out -test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" +test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 printf "%s\n" "$lt_cv_truncate_bin" >&6; } @@ -9647,8 +9390,8 @@ printf %s "checking whether the C compiler needs -belf... " >&6; } if test ${lt_cv_cc_needs_belf+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_ext=c +else case e in @%:@( + e) 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' @@ -9668,8 +9411,9 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_cc_needs_belf=yes -else $as_nop - lt_cv_cc_needs_belf=no +else case e in @%:@( + e) lt_cv_cc_needs_belf=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -9678,7 +9422,8 @@ 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 - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } @@ -9736,15 +9481,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_MANIFEST_TOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$MANIFEST_TOOL"; then +else case e in @%:@( + e) if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9759,7 +9504,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then @@ -9781,15 +9527,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_MANIFEST_TOOL"; then +else case e in @%:@( + e) if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9804,7 +9550,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then @@ -9836,15 +9583,16 @@ printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } if test ${lt_cv_path_mainfest_tool+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_path_mainfest_tool=no +else case e in @%:@( + e) lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&5 if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi - rm -f conftest* + rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } @@ -9867,15 +9615,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DSYMUTIL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DSYMUTIL"; then +else case e in @%:@( + e) if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9890,7 +9638,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then @@ -9912,15 +9661,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_DSYMUTIL"; then +else case e in @%:@( + e) if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9935,7 +9684,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then @@ -9969,15 +9719,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_NMEDIT+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$NMEDIT"; then +else case e in @%:@( + e) if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9992,7 +9742,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then @@ -10014,15 +9765,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_NMEDIT+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_NMEDIT"; then +else case e in @%:@( + e) if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10037,7 +9788,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then @@ -10071,15 +9823,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_LIPO+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$LIPO"; then +else case e in @%:@( + e) if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10094,7 +9846,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then @@ -10116,15 +9869,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_LIPO+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_LIPO"; then +else case e in @%:@( + e) if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10139,7 +9892,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then @@ -10173,15 +9927,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OTOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$OTOOL"; then +else case e in @%:@( + e) if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10196,7 +9950,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then @@ -10218,15 +9973,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OTOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_OTOOL"; then +else case e in @%:@( + e) if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10241,7 +9996,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then @@ -10275,15 +10031,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OTOOL64+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$OTOOL64"; then +else case e in @%:@( + e) if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10298,7 +10054,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then @@ -10320,15 +10077,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OTOOL64+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_OTOOL64"; then +else case e in @%:@( + e) if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10343,7 +10100,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then @@ -10400,8 +10158,8 @@ printf %s "checking for -single_module linker flag... " >&6; } if test ${lt_cv_apple_cc_single_mod+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_apple_cc_single_mod=no +else case e in @%:@( + e) lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE @@ -10427,7 +10185,8 @@ else $as_nop fi rm -rf libconftest.dylib* rm -f conftest.* - fi + fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } @@ -10437,8 +10196,8 @@ printf %s "checking for -exported_symbols_list linker flag... " >&6; } if test ${lt_cv_ld_exported_symbols_list+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_ld_exported_symbols_list=no +else case e in @%:@( + e) lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" @@ -10456,13 +10215,15 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_ld_exported_symbols_list=yes -else $as_nop - lt_cv_ld_exported_symbols_list=no +else case e in @%:@( + e) lt_cv_ld_exported_symbols_list=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } @@ -10472,8 +10233,8 @@ printf %s "checking for -force_load linker flag... " >&6; } if test ${lt_cv_ld_force_load+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_ld_force_load=no +else case e in @%:@( + e) lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF @@ -10498,7 +10259,8 @@ _LT_EOF fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 printf "%s\n" "$lt_cv_ld_force_load" >&6; } @@ -10567,30 +10329,367 @@ func_munge_path_list () esac } -ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default -" -if test "x$ac_cv_header_dlfcn_h" = xyes +ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default +" +if test "x$ac_cv_header_dlfcn_h" = xyes +then : + printf "%s\n" "@%:@define HAVE_DLFCN_H 1" >>confdefs.h + +fi + + + + +func_stripname_cnf () +{ + case @S|@2 in + .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; + *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; + esac +} # func_stripname_cnf + + + + + +# Set options +enable_dlopen=yes +enable_win32_dll=yes + +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. +set dummy ${ac_tool_prefix}as; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_AS+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test -n "$AS"; then + ac_cv_prog_AS="$AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_AS="${ac_tool_prefix}as" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi ;; +esac +fi +AS=$ac_cv_prog_AS +if test -n "$AS"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 +printf "%s\n" "$AS" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_AS"; then + ac_ct_AS=$AS + # Extract the first word of "as", so it can be a program name with args. +set dummy as; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_AS+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test -n "$ac_ct_AS"; then + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_AS="as" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi ;; +esac +fi +ac_ct_AS=$ac_cv_prog_ac_ct_AS +if test -n "$ac_ct_AS"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 +printf "%s\n" "$ac_ct_AS" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + if test "x$ac_ct_AS" = x; then + AS="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AS=$ac_ct_AS + fi +else + AS="$ac_cv_prog_AS" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_DLLTOOL+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_DLLTOOL="${ac_tool_prefix}dlltool" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi ;; +esac +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +printf "%s\n" "$DLLTOOL" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_DLLTOOL+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_DLLTOOL="dlltool" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi ;; +esac +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +printf "%s\n" "$ac_ct_DLLTOOL" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_OBJDUMP+y} then : - printf "%s\n" "@%:@define HAVE_DLFCN_H 1" >>confdefs.h + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_OBJDUMP="${ac_tool_prefix}objdump" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi ;; +esac +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +printf "%s\n" "$OBJDUMP" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_OBJDUMP+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_OBJDUMP="objdump" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS +fi ;; +esac +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +printf "%s\n" "$ac_ct_OBJDUMP" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + ;; +esac -func_stripname_cnf () -{ - case @S|@2 in - .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; - *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; - esac -} # func_stripname_cnf +test -z "$AS" && AS=as + + + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + +test -z "$OBJDUMP" && OBJDUMP=objdump -# Set options + + + @@ -10616,8 +10715,9 @@ then : IFS=$lt_save_ifs ;; esac -else $as_nop - enable_shared=yes +else case e in @%:@( + e) enable_shared=yes ;; +esac fi @@ -10648,8 +10748,9 @@ then : IFS=$lt_save_ifs ;; esac -else $as_nop - enable_static=yes +else case e in @%:@( + e) enable_static=yes ;; +esac fi @@ -10680,8 +10781,9 @@ then : IFS=$lt_save_ifs ;; esac -else $as_nop - pic_mode=default +else case e in @%:@( + e) pic_mode=default ;; +esac fi @@ -10711,8 +10813,9 @@ then : IFS=$lt_save_ifs ;; esac -else $as_nop - enable_fast_install=yes +else case e in @%:@( + e) enable_fast_install=yes ;; +esac fi @@ -10739,15 +10842,17 @@ then : ;; esac lt_cv_with_aix_soname=$with_aix_soname -else $as_nop - if test ${lt_cv_with_aix_soname+y} +else case e in @%:@( + e) if test ${lt_cv_with_aix_soname+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_with_aix_soname=aix +else case e in @%:@( + e) lt_cv_with_aix_soname=aix ;; +esac fi - with_aix_soname=$lt_cv_with_aix_soname + with_aix_soname=$lt_cv_with_aix_soname ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 @@ -10838,8 +10943,8 @@ printf %s "checking for objdir... " >&6; } if test ${lt_cv_objdir+y} then : printf %s "(cached) " >&6 -else $as_nop - rm -f .libs 2>/dev/null +else case e in @%:@( + e) rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs @@ -10847,7 +10952,8 @@ else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi -rmdir .libs 2>/dev/null +rmdir .libs 2>/dev/null ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 printf "%s\n" "$lt_cv_objdir" >&6; } @@ -10908,8 +11014,8 @@ printf %s "checking for ${ac_tool_prefix}file... " >&6; } if test ${lt_cv_path_MAGIC_CMD+y} then : printf %s "(cached) " >&6 -else $as_nop - case $MAGIC_CMD in +else case e in @%:@( + e) case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; @@ -10952,6 +11058,7 @@ _LT_EOF IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; +esac ;; esac fi @@ -10975,8 +11082,8 @@ printf %s "checking for file... " >&6; } if test ${lt_cv_path_MAGIC_CMD+y} then : printf %s "(cached) " >&6 -else $as_nop - case $MAGIC_CMD in +else case e in @%:@( + e) case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; @@ -11019,6 +11126,7 @@ _LT_EOF IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; +esac ;; esac fi @@ -11118,8 +11226,8 @@ printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if test ${lt_cv_prog_compiler_rtti_exceptions+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_rtti_exceptions=no +else case e in @%:@( + e) lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment @@ -11147,7 +11255,8 @@ else $as_nop fi fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } @@ -11512,8 +11621,9 @@ printf %s "checking for $compiler option to produce PIC... " >&6; } if test ${lt_cv_prog_compiler_pic+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_pic=$lt_prog_compiler_pic +else case e in @%:@( + e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } @@ -11528,8 +11638,8 @@ printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; if test ${lt_cv_prog_compiler_pic_works+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_pic_works=no +else case e in @%:@( + e) lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment @@ -11557,7 +11667,8 @@ else $as_nop fi fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } @@ -11593,8 +11704,8 @@ printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; if test ${lt_cv_prog_compiler_static_works+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_static_works=no +else case e in @%:@( + e) lt_cv_prog_compiler_static_works=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext @@ -11615,7 +11726,8 @@ else $as_nop fi $RM -r conftest* LDFLAGS=$save_LDFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } @@ -11637,8 +11749,8 @@ printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_c_o=no +else case e in @%:@( + e) lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest @@ -11678,7 +11790,8 @@ else $as_nop cd .. $RM -r conftest $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } @@ -11693,8 +11806,8 @@ printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_c_o=no +else case e in @%:@( + e) lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest @@ -11734,7 +11847,8 @@ else $as_nop cd .. $RM -r conftest $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } @@ -12329,8 +12443,8 @@ else if test ${lt_cv_aix_libpath_+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -12362,7 +12476,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi - + ;; +esac fi aix_libpath=$lt_cv_aix_libpath_ @@ -12384,8 +12499,8 @@ else if test ${lt_cv_aix_libpath_+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -12417,7 +12532,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi - + ;; +esac fi aix_libpath=$lt_cv_aix_libpath_ @@ -12668,8 +12784,8 @@ printf %s "checking if $CC understands -b... " >&6; } if test ${lt_cv_prog_compiler__b+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler__b=no +else case e in @%:@( + e) lt_cv_prog_compiler__b=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -b" echo "$lt_simple_link_test_code" > conftest.$ac_ext @@ -12690,7 +12806,8 @@ else $as_nop fi $RM -r conftest* LDFLAGS=$save_LDFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } @@ -12738,8 +12855,8 @@ printf %s "checking whether the $host_os linker accepts -exported_symbol... " >& if test ${lt_cv_irix_exported_symbol+y} then : printf %s "(cached) " >&6 -else $as_nop - save_LDFLAGS=$LDFLAGS +else case e in @%:@( + e) save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -12748,12 +12865,14 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_irix_exported_symbol=yes -else $as_nop - lt_cv_irix_exported_symbol=no +else case e in @%:@( + e) lt_cv_irix_exported_symbol=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - LDFLAGS=$save_LDFLAGS + LDFLAGS=$save_LDFLAGS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } @@ -13079,8 +13198,8 @@ printf %s "checking whether -lc should be explicitly linked in... " >&6; } if test ${lt_cv_archive_cmds_need_lc+y} then : printf %s "(cached) " >&6 -else $as_nop - $RM conftest* +else case e in @%:@( + e) $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 @@ -13116,7 +13235,8 @@ else $as_nop cat conftest.err 1>&5 fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } @@ -13843,8 +13963,8 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) if test ${lt_cv_shlibpath_overrides_runpath+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_shlibpath_overrides_runpath=no +else case e in @%:@( + e) lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ @@ -13871,7 +13991,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir - + ;; +esac fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath @@ -14296,16 +14417,22 @@ printf %s "checking for dlopen in -ldl... " >&6; } if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in @%:@( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $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. */ -char dlopen (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (void); int main (void) { @@ -14317,24 +14444,27 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes -else $as_nop - ac_cv_lib_dl_dlopen=no +else case e in @%:@( + e) ac_cv_lib_dl_dlopen=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl -else $as_nop - +else case e in @%:@( + e) lt_cv_dlopen=dyld lt_cv_dlopen_libs= lt_cv_dlopen_self=yes - + ;; +esac fi ;; @@ -14352,22 +14482,28 @@ fi if test "x$ac_cv_func_shl_load" = xyes then : lt_cv_dlopen=shl_load -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 printf %s "checking for shl_load in -ldld... " >&6; } if test ${ac_cv_lib_dld_shl_load+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in @%:@( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $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. */ -char shl_load (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (void); int main (void) { @@ -14379,39 +14515,47 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dld_shl_load=yes -else $as_nop - ac_cv_lib_dld_shl_load=no +else case e in @%:@( + e) ac_cv_lib_dld_shl_load=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = xyes then : lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld -else $as_nop - ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +else case e in @%:@( + e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes then : lt_cv_dlopen=dlopen -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 printf %s "checking for dlopen in -ldl... " >&6; } if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in @%:@( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $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. */ -char dlopen (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (void); int main (void) { @@ -14423,34 +14567,42 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes -else $as_nop - ac_cv_lib_dl_dlopen=no +else case e in @%:@( + e) ac_cv_lib_dl_dlopen=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 printf %s "checking for dlopen in -lsvld... " >&6; } if test ${ac_cv_lib_svld_dlopen+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in @%:@( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $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. */ -char dlopen (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (void); int main (void) { @@ -14462,34 +14614,42 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_svld_dlopen=yes -else $as_nop - ac_cv_lib_svld_dlopen=no +else case e in @%:@( + e) ac_cv_lib_svld_dlopen=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = xyes then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 printf %s "checking for dld_link in -ldld... " >&6; } if test ${ac_cv_lib_dld_dld_link+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in @%:@( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $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. */ -char dld_link (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (void); int main (void) { @@ -14501,12 +14661,14 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dld_dld_link=yes -else $as_nop - ac_cv_lib_dld_dld_link=no +else case e in @%:@( + e) ac_cv_lib_dld_dld_link=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } @@ -14515,19 +14677,24 @@ then : lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld fi - + ;; +esac fi - + ;; +esac fi - + ;; +esac fi - + ;; +esac fi - + ;; +esac fi ;; @@ -14555,8 +14722,8 @@ printf %s "checking whether a program can dlopen itself... " >&6; } if test ${lt_cv_dlopen_self+y} then : printf %s "(cached) " >&6 -else $as_nop - if test yes = "$cross_compiling"; then : +else case e in @%:@( + e) if test yes = "$cross_compiling"; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 @@ -14650,7 +14817,8 @@ _LT_EOF fi rm -fr conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 printf "%s\n" "$lt_cv_dlopen_self" >&6; } @@ -14662,8 +14830,8 @@ printf %s "checking whether a statically linked program can dlopen itself... " > if test ${lt_cv_dlopen_self_static+y} then : printf %s "(cached) " >&6 -else $as_nop - if test yes = "$cross_compiling"; then : +else case e in @%:@( + e) if test yes = "$cross_compiling"; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 @@ -14757,7 +14925,8 @@ _LT_EOF fi rm -fr conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } @@ -14915,8 +15084,8 @@ if test -z "$CXXCPP"; then if test ${ac_cv_prog_CXXCPP+y} then : printf %s "(cached) " >&6 -else $as_nop - # Double quotes because $CXX needs to be expanded +else case e in @%:@( + e) # Double quotes because $CXX needs to be expanded for CXXCPP in "$CXX -E" cpp /lib/cpp do ac_preproc_ok=false @@ -14934,9 +15103,10 @@ _ACEOF if ac_fn_cxx_try_cpp "$LINENO" then : -else $as_nop - # Broken: fails on valid input. -continue +else case e in @%:@( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -14950,15 +15120,16 @@ if ac_fn_cxx_try_cpp "$LINENO" then : # Broken: success on invalid input. continue -else $as_nop - # Passes both tests. +else case e in @%:@( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# 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 : @@ -14967,7 +15138,8 @@ fi done ac_cv_prog_CXXCPP=$CXXCPP - + ;; +esac fi CXXCPP=$ac_cv_prog_CXXCPP else @@ -14990,9 +15162,10 @@ _ACEOF if ac_fn_cxx_try_cpp "$LINENO" then : -else $as_nop - # Broken: fails on valid input. -continue +else case e in @%:@( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -15006,24 +15179,26 @@ if ac_fn_cxx_try_cpp "$LINENO" then : # Broken: success on invalid input. continue -else $as_nop - # Passes both tests. +else case e in @%:@( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# 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_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in @%:@( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi ac_ext=c @@ -15160,8 +15335,9 @@ cc_basename=$func_cc_basename_result if test ${with_gnu_ld+y} then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes -else $as_nop - with_gnu_ld=no +else case e in @%:@( + e) with_gnu_ld=no ;; +esac fi ac_prog=ld @@ -15206,8 +15382,8 @@ fi if test ${lt_cv_path_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$LD"; then +else case e in @%:@( + e) if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs @@ -15230,7 +15406,8 @@ else $as_nop IFS=$lt_save_ifs else lt_cv_path_LD=$LD # Let the user override the test with a path. -fi +fi ;; +esac fi LD=$lt_cv_path_LD @@ -15247,8 +15424,8 @@ printf %s "checking if the linker ($LD) is GNU ld... " >&6; } if test ${lt_cv_prog_gnu_ld+y} then : printf %s "(cached) " >&6 -else $as_nop - # I'd rather use --version here, but apparently some GNU lds only accept -v. +else case e in @%:@( + e) # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &1 &5 @@ -15455,8 +15633,8 @@ else if test ${lt_cv_aix_libpath__CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -15488,7 +15666,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib fi - + ;; +esac fi aix_libpath=$lt_cv_aix_libpath__CXX @@ -15511,8 +15690,8 @@ else if test ${lt_cv_aix_libpath__CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -15544,7 +15723,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib fi - + ;; +esac fi aix_libpath=$lt_cv_aix_libpath__CXX @@ -16916,8 +17096,9 @@ printf %s "checking for $compiler option to produce PIC... " >&6; } if test ${lt_cv_prog_compiler_pic_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX +else case e in @%:@( + e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; } @@ -16932,8 +17113,8 @@ printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " > if test ${lt_cv_prog_compiler_pic_works_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_pic_works_CXX=no +else case e in @%:@( + e) 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@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment @@ -16961,7 +17142,8 @@ else $as_nop fi fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } @@ -16991,8 +17173,8 @@ printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; if test ${lt_cv_prog_compiler_static_works_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_static_works_CXX=no +else case e in @%:@( + e) 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 @@ -17013,7 +17195,8 @@ else $as_nop fi $RM -r conftest* LDFLAGS=$save_LDFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } @@ -17032,8 +17215,8 @@ printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_c_o_CXX=no +else case e in @%:@( + e) lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest @@ -17073,7 +17256,8 @@ else $as_nop cd .. $RM -r conftest $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } @@ -17085,8 +17269,8 @@ printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_c_o_CXX=no +else case e in @%:@( + e) lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest @@ -17126,7 +17310,8 @@ else $as_nop cd .. $RM -r conftest $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } @@ -17231,8 +17416,8 @@ printf %s "checking whether -lc should be explicitly linked in... " >&6; } if test ${lt_cv_archive_cmds_need_lc_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - $RM conftest* +else case e in @%:@( + e) $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 @@ -17268,7 +17453,8 @@ else $as_nop cat conftest.err 1>&5 fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } @@ -17832,8 +18018,8 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) if test ${lt_cv_shlibpath_overrides_runpath+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_shlibpath_overrides_runpath=no +else case e in @%:@( + e) lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ @@ -17860,7 +18046,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir - + ;; +esac fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath @@ -18246,90 +18433,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu subdirs="$subdirs libltdl" -# Autoupdate added the next two lines to ensure that your configure -# script's behavior did not change. They are probably safe to remove. - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in egrep - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_EGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_EGREP=$EGREP -fi - - fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 printf %s "checking for an ANSI C-conforming const... " >&6; } if test ${ac_cv_c_const+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -18393,10 +18503,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_c_const=yes -else $as_nop - ac_cv_c_const=no +else case e in @%:@( + e) ac_cv_c_const=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 printf "%s\n" "$ac_cv_c_const" >&6; } @@ -18411,8 +18523,8 @@ printf %s "checking whether byte ordering is bigendian... " >&6; } if test ${ac_cv_c_bigendian+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_c_bigendian=unknown +else case e in @%:@( + e) ac_cv_c_bigendian=unknown # See if we're dealing with a universal compiler. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -18458,8 +18570,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext int main (void) { -#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ - && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\ + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\ && LITTLE_ENDIAN) bogus endian macros #endif @@ -18490,8 +18602,9 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_c_bigendian=yes -else $as_nop - ac_cv_c_bigendian=no +else case e in @%:@( + e) ac_cv_c_bigendian=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi @@ -18535,8 +18648,9 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_c_bigendian=yes -else $as_nop - ac_cv_c_bigendian=no +else case e in @%:@( + e) ac_cv_c_bigendian=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi @@ -18563,22 +18677,23 @@ unsigned short int ascii_mm[] = int use_ebcdic (int i) { return ebcdic_mm[i] + ebcdic_ii[i]; } - extern int foo; - -int -main (void) -{ -return use_ascii (foo) == use_ebcdic (foo); - ; - return 0; -} + int + main (int argc, char **argv) + { + /* Intimidate the compiler so that it does not + optimize the arrays away. */ + char *p = argv[0]; + ascii_mm[1] = *p++; ebcdic_mm[1] = *p++; + ascii_ii[1] = *p++; ebcdic_ii[1] = *p++; + return use_ascii (argc) == use_ebcdic (*p); + } _ACEOF -if ac_fn_c_try_compile "$LINENO" +if ac_fn_c_try_link "$LINENO" then : - if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then + if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then ac_cv_c_bigendian=yes fi - if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then + if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then if test "$ac_cv_c_bigendian" = unknown; then ac_cv_c_bigendian=no else @@ -18587,9 +18702,10 @@ then : fi fi fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int @@ -18612,14 +18728,17 @@ _ACEOF if ac_fn_c_try_run "$LINENO" then : ac_cv_c_bigendian=no -else $as_nop - ac_cv_c_bigendian=yes +else case e in @%:@( + e) ac_cv_c_bigendian=yes ;; +esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi - fi + fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 printf "%s\n" "$ac_cv_c_bigendian" >&6; } @@ -18645,8 +18764,8 @@ printf "%s\n" "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h if test "x$ac_cv_type_pid_t" = xyes then : -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined _WIN64 && !defined __CYGWIN__ @@ -18665,14 +18784,16 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_pid_type='int' -else $as_nop - ac_pid_type='__int64' +else case e in @%:@( + e) ac_pid_type='__int64' ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext printf "%s\n" "@%:@define pid_t $ac_pid_type" >>confdefs.h - + ;; +esac fi @@ -18680,10 +18801,11 @@ ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" if test "x$ac_cv_type_size_t" = xyes then : -else $as_nop - +else case e in @%:@( + e) printf "%s\n" "@%:@define size_t unsigned int" >>confdefs.h - + ;; +esac fi ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" @@ -18693,85 +18815,44 @@ then : printf "%s\n" "@%:@define HAVE_SSIZE_T 1" >>confdefs.h -else $as_nop - +else case e in @%:@( + e) printf "%s\n" "@%:@define ssize_t signed long" >>confdefs.h - + ;; +esac fi ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" if test "x$ac_cv_type_off_t" = xyes then : -else $as_nop - +else case e in @%:@( + e) printf "%s\n" "@%:@define off_t long int" >>confdefs.h - -fi - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 -printf %s "checking return type of signal handlers... " >&6; } -if test ${ac_cv_type_signal+y} -then : - printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include - -int -main (void) -{ -return *(signal (0, 0)) (0) == 1; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - ac_cv_type_signal=int -else $as_nop - ac_cv_type_signal=void -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 -printf "%s\n" "$ac_cv_type_signal" >&6; } - -printf "%s\n" "@%:@define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 -printf %s "checking for uid_t in sys/types.h... " >&6; } -if test ${ac_cv_type_uid_t+y} -then : - printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "uid_t" >/dev/null 2>&1 +ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default" +if test "x$ac_cv_type_uid_t" = xyes then : - ac_cv_type_uid_t=yes -else $as_nop - ac_cv_type_uid_t=no -fi -rm -rf conftest* - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 -printf "%s\n" "$ac_cv_type_uid_t" >&6; } -if test $ac_cv_type_uid_t = no; then +else case e in @%:@( + e) printf "%s\n" "@%:@define uid_t int" >>confdefs.h + ;; +esac +fi +ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default" +if test "x$ac_cv_type_gid_t" = xyes +then : +else case e in @%:@( + e) printf "%s\n" "@%:@define gid_t int" >>confdefs.h - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 @@ -18779,8 +18860,8 @@ printf %s "checking for $CC options needed to detect all undeclared functions... if test ${ac_cv_c_undeclared_builtin_options+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_save_CFLAGS=$CFLAGS +else case e in @%:@( + e) ac_save_CFLAGS=$CFLAGS ac_cv_c_undeclared_builtin_options='cannot detect' for ac_arg in '' -fno-builtin; do CFLAGS="$ac_save_CFLAGS $ac_arg" @@ -18799,8 +18880,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : -else $as_nop - # This test program should compile successfully. +else case e in @%:@( + e) # This test program should compile successfully. # No library function is consistently available on # freestanding implementations, so test against a dummy # declaration. Include always-available headers on the @@ -18813,134 +18894,335 @@ else $as_nop #include extern void ac_decl (int, char *); -int -main (void) -{ -(void) ac_decl (0, (char *) 0); - (void) ac_decl; +int +main (void) +{ +(void) ac_decl (0, (char *) 0); + (void) ac_decl; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + if test x"$ac_arg" = x +then : + ac_cv_c_undeclared_builtin_options='none needed' +else case e in @%:@( + e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; +esac +fi + break +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + done + CFLAGS=$ac_save_CFLAGS + ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 +printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } + case $ac_cv_c_undeclared_builtin_options in @%:@( + 'cannot detect') : + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} +as_fn_error $? "cannot make $CC report undeclared builtins +See 'config.log' for more details" "$LINENO" 5; } ;; @%:@( + 'none needed') : + ac_c_undeclared_builtin_options='' ;; @%:@( + *) : + ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; +esac + +ac_fn_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_environ" = xyes +then : + ac_have_decl=1 +else case e in @%:@( + e) ac_have_decl=0 ;; +esac +fi +printf "%s\n" "@%:@define HAVE_DECL_ENVIRON $ac_have_decl" >>confdefs.h + + +ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" +if test "x$ac_cv_header_byteswap_h" = xyes +then : + printf "%s\n" "@%:@define HAVE_BYTESWAP_H 1" >>confdefs.h + +fi + +ac_fn_c_check_func "$LINENO" "__builtin_bswap16" "ac_cv_func___builtin_bswap16" +if test "x$ac_cv_func___builtin_bswap16" = xyes +then : + printf "%s\n" "@%:@define HAVE___BUILTIN_BSWAP16 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "__builtin_bswap32" "ac_cv_func___builtin_bswap32" +if test "x$ac_cv_func___builtin_bswap32" = xyes +then : + printf "%s\n" "@%:@define HAVE___BUILTIN_BSWAP32 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "__builtin_bswap64" "ac_cv_func___builtin_bswap64" +if test "x$ac_cv_func___builtin_bswap64" = xyes +then : + printf "%s\n" "@%:@define HAVE___BUILTIN_BSWAP64 1" >>confdefs.h + +fi + + +AX_APPEND_COMPILE_FLAGS(-Wall -Wsign-compare -Wno-stringop-overflow -fvisibility=hidden, + CFLAGS, -pedantic -Werror) + +if test "x$ax_enable_debug" != "xyes" ; then + CFLAGS="$CFLAGS -O2" +fi + +# need that as conditional because some internal tools compile as static +# to have access to internal libfyaml APIs +if test "x$enable_static" = "xyes" ; then +HAVE_STATIC=1 +else +HAVE_STATIC=0 +fi + + +printf "%s\n" "@%:@define HAVE_STATIC $HAVE_STATIC" >>confdefs.h + + if test x$HAVE_STATIC = x1 ; then + HAVE_STATIC_TRUE= + HAVE_STATIC_FALSE='#' +else + HAVE_STATIC_TRUE='#' + HAVE_STATIC_FALSE= +fi + + +AX_CHECK_COMPILE_FLAG(-Wstringop-overread, , , -Werror) +if test "x$ax_cv_check_cflags__Werror__wstringop_overread" = x"yes" +then : + HAVE_WSTRINGOP_OVERREAD=1 +else case e in @%:@( + e) HAVE_WSTRINGOP_OVERREAD=0 ;; +esac +fi + +printf "%s\n" "@%:@define HAVE_WSTRINGOP_OVERREAD $HAVE_WSTRINGOP_OVERREAD" >>confdefs.h + + +@%:@ Check whether --enable-portable-target was given. +if test ${enable_portable_target+y} +then : + enableval=$enable_portable_target; +fi + +HAVE_PORTABLE_TARGET=0 +if test "x$enable_portable_target" == "xyes"; then + HAVE_PORTABLE_TARGET=1 +fi + + +printf "%s\n" "@%:@define HAVE_PORTABLE_TARGET $HAVE_PORTABLE_TARGET" >>confdefs.h + + if test x$HAVE_PORTABLE_TARGET == x1 ; then + HAVE_PORTABLE_TARGET_TRUE= + HAVE_PORTABLE_TARGET_FALSE='#' +else + HAVE_PORTABLE_TARGET_TRUE='#' + HAVE_PORTABLE_TARGET_FALSE= +fi + + + if test x$target_cpu = xx86 ; then + TARGET_CPU_X86_TRUE= + TARGET_CPU_X86_FALSE='#' +else + TARGET_CPU_X86_TRUE='#' + TARGET_CPU_X86_FALSE= +fi + + if test x$target_cpu = xx86_64 ; then + TARGET_CPU_X86_64_TRUE= + TARGET_CPU_X86_64_FALSE='#' +else + TARGET_CPU_X86_64_TRUE='#' + TARGET_CPU_X86_64_FALSE= +fi + + if test x$target_cpu = xx86 -o x$target_cpu = xx86_64 ; then + TARGET_CPU_ANY_X86_TRUE= + TARGET_CPU_ANY_X86_FALSE='#' +else + TARGET_CPU_ANY_X86_TRUE='#' + TARGET_CPU_ANY_X86_FALSE= +fi + + if test x$target_cpu = xarm ; then + TARGET_CPU_ARM_TRUE= + TARGET_CPU_ARM_FALSE='#' +else + TARGET_CPU_ARM_TRUE='#' + TARGET_CPU_ARM_FALSE= +fi - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - if test x"$ac_arg" = x -then : - ac_cv_c_undeclared_builtin_options='none needed' -else $as_nop - ac_cv_c_undeclared_builtin_options=$ac_arg + if test x$target_cpu = xaarch64 ; then + TARGET_CPU_ARM64_TRUE= + TARGET_CPU_ARM64_FALSE='#' +else + TARGET_CPU_ARM64_TRUE='#' + TARGET_CPU_ARM64_FALSE= fi - break + + if test x$target_cpu = xarm -o x$target_cpu = xaarch64 ; then + TARGET_CPU_ANY_ARM_TRUE= + TARGET_CPU_ANY_ARM_FALSE='#' +else + TARGET_CPU_ANY_ARM_TRUE='#' + TARGET_CPU_ANY_ARM_FALSE= fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + + +if test -z "$TARGET_CPU_ANY_X86_TRUE"; then : + + AX_CHECK_COMPILE_FLAG(-msse2, , , -Werror) + AX_CHECK_COMPILE_FLAG(-msse4.1, , , -Werror) + AX_CHECK_COMPILE_FLAG(-mavx2, , , -Werror) + AX_CHECK_COMPILE_FLAG(-mavx512f -mavx512vl, , , -Werror) + + fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - done - CFLAGS=$ac_save_CFLAGS + +if test -z "$TARGET_CPU_ARM_TRUE"; then : + AX_CHECK_COMPILE_FLAG(-mfpu=neon, , , -Werror) + + fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 -printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } - case $ac_cv_c_undeclared_builtin_options in @%:@( - 'cannot detect') : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot make $CC report undeclared builtins -See \`config.log' for more details" "$LINENO" 5; } ;; @%:@( - 'none needed') : - ac_c_undeclared_builtin_options='' ;; @%:@( - *) : - ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; -esac -ac_fn_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" -if test "x$ac_cv_have_decl_environ" = xyes -then : - ac_have_decl=1 -else $as_nop - ac_have_decl=0 + if test "x$ax_cv_check_cflags__Werror__msse2" = x"yes" -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_SSE2_TRUE= + TARGET_HAS_SSE2_FALSE='#' +else + TARGET_HAS_SSE2_TRUE='#' + TARGET_HAS_SSE2_FALSE= fi -printf "%s\n" "@%:@define HAVE_DECL_ENVIRON $ac_have_decl" >>confdefs.h + if test "x$ax_cv_check_cflags__Werror__msse4_1" = x"yes" -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_SSE41_TRUE= + TARGET_HAS_SSE41_FALSE='#' +else + TARGET_HAS_SSE41_TRUE='#' + TARGET_HAS_SSE41_FALSE= +fi -AX_APPEND_COMPILE_FLAGS(-Wall -Wsign-compare -Wno-stringop-overflow, - CFLAGS, -pedantic -Werror) + if test "x$ax_cv_check_cflags__Werror__mavx2" = x"yes" -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_AVX2_TRUE= + TARGET_HAS_AVX2_FALSE='#' +else + TARGET_HAS_AVX2_TRUE='#' + TARGET_HAS_AVX2_FALSE= +fi -if test "x$ax_enable_debug" != "xyes" ; then - CFLAGS="$CFLAGS -O2" + if test "x$ax_cv_check_cflags__Werror__mavx512f__mavx512vl" = x"yes" -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_AVX512_TRUE= + TARGET_HAS_AVX512_FALSE='#' +else + TARGET_HAS_AVX512_TRUE='#' + TARGET_HAS_AVX512_FALSE= fi -# include -lm in the link -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing llrintf" >&5 -printf %s "checking for library containing llrintf... " >&6; } -if test ${ac_cv_search_llrintf+y} -then : - printf %s "(cached) " >&6 -else $as_nop - 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. */ -char llrintf (); -int -main (void) -{ -return llrintf (); - ; - return 0; -} -_ACEOF -for ac_lib in '' m -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_llrintf=$ac_res + if test \( x$target_cpu = xaarch64 -o "x$ax_cv_check_cflags__Werror__mcpu_neon" = x"yes" \) -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_NEON_TRUE= + TARGET_HAS_NEON_FALSE='#' +else + TARGET_HAS_NEON_TRUE='#' + TARGET_HAS_NEON_FALSE= fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext - if test ${ac_cv_search_llrintf+y} -then : - break + + +if test -z "$TARGET_HAS_SSE2_TRUE"; then : + +printf "%s\n" "@%:@define TARGET_HAS_SSE2 1" >>confdefs.h + fi -done -if test ${ac_cv_search_llrintf+y} -then : +if test -z "$TARGET_HAS_SSE41_TRUE"; then : + +printf "%s\n" "@%:@define TARGET_HAS_SSE41 1" >>confdefs.h + +fi +if test -z "$TARGET_HAS_AVX2_TRUE"; then : -else $as_nop - ac_cv_search_llrintf=no +printf "%s\n" "@%:@define TARGET_HAS_AVX2 1" >>confdefs.h + fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS +if test -z "$TARGET_HAS_AVX512_TRUE"; then : + +printf "%s\n" "@%:@define TARGET_HAS_AVX512 1" >>confdefs.h + fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_llrintf" >&5 -printf "%s\n" "$ac_cv_search_llrintf" >&6; } -ac_res=$ac_cv_search_llrintf -if test "$ac_res" != no -then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +if test -z "$TARGET_HAS_NEON_TRUE"; then : -else $as_nop - as_fn_error $? "unable to find the llrintf() function" "$LINENO" 5 +printf "%s\n" "@%:@define TARGET_HAS_NEON 1" >>confdefs.h + +fi + +@%:@ Check whether --enable-asan was given. +if test ${enable_asan+y} +then : + enableval=$enable_asan; +fi + + +HAVE_ASAN=0 +ASAN_CFLAGS="" +ASAN_LIBS="" +if test "x$enable_asan" == "xyes" ; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking location of ASAN library" >&5 +printf %s "checking location of ASAN library... " >&6; } + ASANLIB1=`${CC} -print-file-name=libasan.so` + ASANLIB=`readlink -f "${ASANLIB1}"` + if test -f "$ASANLIB" ; then + HAVE_ASAN=1 + ASAN_CFLAGS="-fsanitize=address -fno-omit-frame-pointer" + ASAN_LIBS="-fsanitize=address" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ASANLIB" >&5 +printf "%s\n" "$ASANLIB" >&6; } + AX_APPEND_COMPILE_FLAGS(-fsanitize=address -fno-omit-frame-pointer, CFLAGS) + else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not found; disabling ASAN" >&5 +printf "%s\n" "Not found; disabling ASAN" >&6; } + fi +fi + + + + if test x$HAVE_ASAN = x1 ; then + HAVE_ASAN_TRUE= + HAVE_ASAN_FALSE='#' +else + HAVE_ASAN_TRUE='#' + HAVE_ASAN_FALSE= fi +printf "%s\n" "@%:@define HAVE_ASAN $HAVE_ASAN" >>confdefs.h + + # check if there's a qsort_r available (musl does not have it) ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r" if test "x$ac_cv_func_qsort_r" = xyes then : HAVE_QSORT_R=1 -else $as_nop - HAVE_QSORT_R=0 +else case e in @%:@( + e) HAVE_QSORT_R=0 ;; +esac fi @@ -19138,7 +19420,7 @@ fi HAVE_COMPATIBLE_CHECK=0 -if test "x$HAVE_CHECK" == "x1" ; then +if test "x$HAVE_CHECK" = "x1" ; then save_LIBS="$LIBS" save_CFLAGS="$CFLAGS" LIBS="$LIBS $CHECK_LIBS" @@ -19149,8 +19431,9 @@ if test "x$HAVE_CHECK" == "x1" ; then if test "x$ac_cv_func_srunner_set_tap" = xyes then : HAVE_COMPATIBLE_CHECK=1 -else $as_nop - HAVE_COMPATIBLE_CHECK=0 +else case e in @%:@( + e) HAVE_COMPATIBLE_CHECK=0 ;; +esac fi @@ -19226,8 +19509,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_SPHINX+y} then : printf %s "(cached) " >&6 -else $as_nop - case $SPHINX in +else case e in @%:@( + e) case $SPHINX in [\\/]* | ?:[\\/]*) ac_cv_path_SPHINX="$SPHINX" # Let the user override the test with a path. ;; @@ -19236,7 +19519,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -19252,6 +19535,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi SPHINX=$ac_cv_path_SPHINX @@ -19274,8 +19558,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PIP3+y} then : printf %s "(cached) " >&6 -else $as_nop - case $PIP3 in +else case e in @%:@( + e) case $PIP3 in [\\/]* | ?:[\\/]*) ac_cv_path_PIP3="$PIP3" # Let the user override the test with a path. ;; @@ -19284,7 +19568,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -19300,6 +19584,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi PIP3=$ac_cv_path_PIP3 @@ -19366,7 +19651,7 @@ printf "%s\n" "N/A" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sphinx installation works" >&5 printf %s "checking whether sphinx installation works... " >&6; } - if test "x$HAVE_SPHINX" == "x1" ; then + if test "x$HAVE_SPHINX" = "x1" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else @@ -19395,8 +19680,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_GIT+y} then : printf %s "(cached) " >&6 -else $as_nop - case $GIT in +else case e in @%:@( + e) case $GIT in [\\/]* | ?:[\\/]*) ac_cv_path_GIT="$GIT" # Let the user override the test with a path. ;; @@ -19405,7 +19690,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -19421,6 +19706,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi GIT=$ac_cv_path_GIT @@ -19452,25 +19738,25 @@ fi -if test "x$TESTSUITEURL" == "x" ; then +if test "x$TESTSUITEURL" = "x" ; then TESTSUITEURL="https://github.com/yaml/yaml-test-suite" fi -if test "x$TESTSUITECHECKOUT" == "x" ; then +if test "x$TESTSUITECHECKOUT" = "x" ; then TESTSUITECHECKOUT="6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f" fi -if test "x$JSONTESTSUITEURL" == "x" ; then +if test "x$JSONTESTSUITEURL" = "x" ; then JSONTESTSUITEURL="https://github.com/nst/JSONTestSuite" fi -if test "x$JSONTESTSUITECHECKOUT" == "x" ; then +if test "x$JSONTESTSUITECHECKOUT" = "x" ; then JSONTESTSUITECHECKOUT="d64aefb55228d9584d3e5b2433f720ea8fd00c82" fi @@ -19482,8 +19768,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_DOCKER+y} then : printf %s "(cached) " >&6 -else $as_nop - case $DOCKER in +else case e in @%:@( + e) case $DOCKER in [\\/]* | ?:[\\/]*) ac_cv_path_DOCKER="$DOCKER" # Let the user override the test with a path. ;; @@ -19492,7 +19778,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -19508,6 +19794,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi DOCKER=$ac_cv_path_DOCKER @@ -19542,8 +19829,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_JQ+y} then : printf %s "(cached) " >&6 -else $as_nop - case $JQ in +else case e in @%:@( + e) case $JQ in [\\/]* | ?:[\\/]*) ac_cv_path_JQ="$JQ" # Let the user override the test with a path. ;; @@ -19552,7 +19839,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -19568,6 +19855,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi JQ=$ac_cv_path_JQ @@ -19599,6 +19887,200 @@ fi JQ="$JQ" +# check for libclang + +@%:@ Check whether --with-libclang was given. +if test ${with_libclang+y} +then : + withval=$with_libclang; with_libclang="$withval" +else case e in @%:@( + e) with_libclang=auto ;; +esac +fi + + +HAVE_LIBCLANG=0 +LIBCLANG_CFLAGS="" +LIBCLANG_CPPFLAGS="" +LIBCLANG_LDFLAGS="" +LIBCLANG_LIBS="" +if test "x$with_libclang" != "xno"; then + if test "x$with_libclang" == "xauto"; then + # try to auto detect (llvm 15 down to 8) + check="llvm-config llvm-config-15 llvm-config-14 llvm-config-13 llvm-config-12 llvm-config-11 llvm-config-10" + else + if test "x$with_libclang" == "xlatest"; then + check="llvm-config" + else + check="llvm-config-$with_libclang" + fi + fi + orig_CFLAGS="$CFLAGS" + orig_CPPFLAGS="$CPPFLAGS" + orig_LDFLAGS="$LDFLAGS" + orig_LIBS="$LIBS" + for cfg in $check ; do + # no caching + # Extract the first word of "$cfg", so it can be a program name with args. +set dummy $cfg; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_LLVM_CONFIG+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) case $LLVM_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_LLVM_CONFIG="$LLVM_CONFIG" # 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 + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_LLVM_CONFIG="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac ;; +esac +fi +LLVM_CONFIG=$ac_cv_path_LLVM_CONFIG +if test -n "$LLVM_CONFIG"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 +printf "%s\n" "$LLVM_CONFIG" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + + if test "x$LLVM_CONFIG" != "x" ; then + LIBCLANG_CFLAGS=`$LLVM_CONFIG --cflags` + LIBCLANG_CPPFLAGS=`$LLVM_CONFIG --cppflags` + LIBCLANG_LDFLAGS=`$LLVM_CONFIG --ldflags` + LIBCLANG_LIBS="-lclang" + CPPFLAGS="$CPPFLAGS $LIBCLANG_CPPFLAGS" + CFLAGS="$CFLAGS $LIBCLANG_CFLAGS" + LDFLAGS="$LDFLAGS $LIBCLANG_LDFLAGS" + LIBS="$LIBS $LIBCLANG_LIBS" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang_createIndex in -lclang" >&5 +printf %s "checking for clang_createIndex in -lclang... " >&6; } +if test ${ac_cv_lib_clang_clang_createIndex+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) ac_check_lib_save_LIBS=$LIBS +LIBS="-lclang $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. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char clang_createIndex (void); +int +main (void) +{ +return clang_createIndex (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_clang_clang_createIndex=yes +else case e in @%:@( + e) ac_cv_lib_clang_clang_createIndex=no ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clang_clang_createIndex" >&5 +printf "%s\n" "$ac_cv_lib_clang_clang_createIndex" >&6; } +if test "x$ac_cv_lib_clang_clang_createIndex" = xyes +then : + HAVE_LIBCLANG_LIB=1 +else case e in @%:@( + e) HAVE_LIBCLANG_LIB=0 ;; +esac +fi + + ac_fn_c_check_header_compile "$LINENO" "clang-c/Index.h" "ac_cv_header_clang_c_Index_h" "$ac_includes_default" +if test "x$ac_cv_header_clang_c_Index_h" = xyes +then : + HAVE_LIBCLANG_HDR=1 +else case e in @%:@( + e) HAVE_LIBCLANG_HDR=0 ;; +esac +fi + + # if we found it, break out + if test "x$HAVE_LIBCLANG_LIB" = "x1" -a "x$HAVE_LIBCLANG_HDR" = "x1" ; then + HAVE_LIBCLANG=1 + break + fi + $as_unset ac_cv_lib_clang_clang_createIndex $as_unset ac_cv_header_clang_c_Index_h \ + LIBCLANG_CFLAGS LIBCLANG_CPPFLAGS LIBCLANG_LIBS HAVE_LIBCLANG_LIB HAVE_LIBCLANG_HDR + fi + CFLAGS=$orig_CFLAGS + LDFLAGS=$orig_LDFLAGS + LIBS=$orig_LIBS + if test "x$HAVE_LIBCLANG" = "x1"; then + break + fi + $as_unset ac_cv_path_LLVM_CONFIG LLVM_CONFIG + done + CFLAGS=$orig_CFLAGS + CPPFLAGS=$orig_CPPFLAGS + LDFLAGS=$orig_LDFLAGS + LIBS=$orig_LIBS +fi + + + + + + + + +printf "%s\n" "@%:@define HAVE_LIBCLANG $HAVE_LIBCLANG" >>confdefs.h + + if test x$HAVE_LIBCLANG = x1 ; then + HAVE_LIBCLANG_TRUE= + HAVE_LIBCLANG_FALSE='#' +else + HAVE_LIBCLANG_TRUE='#' + HAVE_LIBCLANG_FALSE= +fi + + + +CFLAGS=`echo $CFLAGS | sed -e 's/^ *//'` +CPPFLAGS=`echo $CPPFLAGS | sed -e 's/^ *//'` +LDFLAGS=`echo $LDFLAGS | sed -e 's/^ *//'` + # Shave by default on supported autoconf versions @@ -19618,8 +20100,8 @@ cat >confcache <<\_ACEOF # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the +# 'ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* 'ac_cv_foo' will be assigned the # following values. _ACEOF @@ -19649,14 +20131,14 @@ printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes: double-quote + # 'set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) - # `set' quotes correctly as required by POSIX, so do not add quotes. + # 'set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | @@ -19741,11 +20223,71 @@ 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__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCCAS\" 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 "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then + as_fn_error $? "conditional \"HAVE_STATIC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_PORTABLE_TARGET_TRUE}" && test -z "${HAVE_PORTABLE_TARGET_FALSE}"; then + as_fn_error $? "conditional \"HAVE_PORTABLE_TARGET\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_X86_TRUE}" && test -z "${TARGET_CPU_X86_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_X86\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_X86_64_TRUE}" && test -z "${TARGET_CPU_X86_64_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_X86_64\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_ANY_X86_TRUE}" && test -z "${TARGET_CPU_ANY_X86_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_ANY_X86\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_ARM_TRUE}" && test -z "${TARGET_CPU_ARM_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_ARM\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_ARM64_TRUE}" && test -z "${TARGET_CPU_ARM64_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_ARM64\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_ANY_ARM_TRUE}" && test -z "${TARGET_CPU_ANY_ARM_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_ANY_ARM\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_SSE2_TRUE}" && test -z "${TARGET_HAS_SSE2_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_SSE2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_SSE41_TRUE}" && test -z "${TARGET_HAS_SSE41_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_SSE41\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_AVX2_TRUE}" && test -z "${TARGET_HAS_AVX2_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_AVX2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_AVX512_TRUE}" && test -z "${TARGET_HAS_AVX512_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_AVX512\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_NEON_TRUE}" && test -z "${TARGET_HAS_NEON_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_NEON\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_ASAN_TRUE}" && test -z "${HAVE_ASAN_FALSE}"; then + as_fn_error $? "conditional \"HAVE_ASAN\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${HAVE_QSORT_R_TRUE}" && test -z "${HAVE_QSORT_R_FALSE}"; then as_fn_error $? "conditional \"HAVE_QSORT_R\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -19786,6 +20328,10 @@ if test -z "${HAVE_JQ_TRUE}" && test -z "${HAVE_JQ_FALSE}"; then as_fn_error $? "conditional \"HAVE_JQ\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${HAVE_LIBCLANG_TRUE}" && test -z "${HAVE_LIBCLANG_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIBCLANG\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 @@ -19815,7 +20361,6 @@ cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh @@ -19824,12 +20369,13 @@ then : # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else $as_nop - case `(set -o) 2>/dev/null` in @%:@( +else case e in @%:@( + e) case `(set -o) 2>/dev/null` in @%:@( *posix*) : set -o posix ;; @%:@( *) : ;; +esac ;; esac fi @@ -19890,7 +20436,7 @@ case $0 in @%:@(( for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -19901,7 +20447,7 @@ IFS=$as_save_IFS ;; esac -# We did not find ourselves, most probably we were run as `sh COMMAND' +# We did not find ourselves, most probably we were run as 'sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 @@ -19930,7 +20476,6 @@ as_fn_error () } @%:@ as_fn_error - @%:@ as_fn_set_status STATUS @%:@ ----------------------- @%:@ Set @S|@? to STATUS, without forking. @@ -19970,11 +20515,12 @@ then : { eval $1+=\$2 }' -else $as_nop - as_fn_append () +else case e in @%:@( + e) as_fn_append () { eval $1=\$$1\$2 - } + } ;; +esac fi # as_fn_append @%:@ as_fn_arith ARG... @@ -19988,11 +20534,12 @@ then : { as_val=$(( $* )) }' -else $as_nop - as_fn_arith () +else case e in @%:@( + e) as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` - } + } ;; +esac fi # as_fn_arith @@ -20075,9 +20622,9 @@ if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. + # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. + # In both cases, we have to default to 'cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then @@ -20158,10 +20705,12 @@ as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" +as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated # Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" +as_tr_sh="eval sed '$as_sed_sh'" # deprecated exec 6>&1 @@ -20176,8 +20725,8 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by libfyaml $as_me 0.7.12, which was -generated by GNU Autoconf 2.71. Invocation command line was +This file was extended by libfyaml $as_me 0.9, which was +generated by GNU Autoconf 2.72. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -20209,7 +20758,7 @@ _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ -\`$as_me' instantiates files and other configuration actions +'$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. @@ -20244,11 +20793,11 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -libfyaml config.status 0.7.12 -configured by $0, generated by GNU Autoconf 2.71, +libfyaml config.status 0.9 +configured by $0, generated by GNU Autoconf 2.72, with options \\"\$ac_cs_config\\" -Copyright (C) 2021 Free Software Foundation, Inc. +Copyright (C) 2023 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -20310,8 +20859,8 @@ do ac_need_defaults=false;; --he | --h) # Conflict between --help and --header - as_fn_error $? "ambiguous option: \`$1' -Try \`$0 --help' for more information.";; + as_fn_error $? "ambiguous option: '$1' +Try '$0 --help' for more information.";; --help | --hel | -h ) printf "%s\n" "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ @@ -20319,8 +20868,8 @@ Try \`$0 --help' for more information.";; ac_cs_silent=: ;; # This is an error. - -*) as_fn_error $? "unrecognized option: \`$1' -Try \`$0 --help' for more information." ;; + -*) as_fn_error $? "unrecognized option: '$1' +Try '$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; @@ -20373,11 +20922,11 @@ AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' -macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' -macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' @@ -20769,7 +21318,7 @@ do "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; "libfyaml.pc") CONFIG_FILES="$CONFIG_FILES libfyaml.pc" ;; - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; esac done @@ -20789,7 +21338,7 @@ fi # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. +# after its creation but before its name has been assigned to '$tmp'. $debug || { tmp= ac_tmp= @@ -20813,7 +21362,7 @@ ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. -# This happens for instance with `./config.status config.h'. +# This happens for instance with './config.status config.h'. if test -n "$CONFIG_FILES"; then @@ -20971,13 +21520,13 @@ fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. -# This happens for instance with `./config.status Makefile'. +# This happens for instance with './config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF -# Transform confdefs.h into an awk script `defines.awk', embedded as +# Transform confdefs.h into an awk script 'defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. @@ -21087,7 +21636,7 @@ do esac case $ac_mode$ac_tag in :[FHL]*:*);; - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac @@ -21109,19 +21658,19 @@ do -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. + # because $ac_f cannot contain ':'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || - as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done - # Let's still pretend it is `configure' which instantiates (i.e., don't + # Let's still pretend it is 'configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` @@ -21254,7 +21803,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 esac _ACEOF -# Neutralize VPATH when `$srcdir' = `.'. +# Neutralize VPATH when '$srcdir' = '.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 @@ -21285,9 +21834,9 @@ test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' which seems to be undefined. Please make sure it is defined" >&5 -printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" @@ -21442,15 +21991,15 @@ printf "%s\n" X/"$am_mf" | (exit $ac_status); } || am_rc=$? done if test $am_rc -ne 0; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE=\"gmake\" (or whatever is necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking). -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } fi { am_dirpart=; unset am_dirpart;} { am_filepart=; unset am_filepart;} @@ -21511,6 +22060,10 @@ available_tags='CXX ' # ### BEGIN LIBTOOL CONFIG +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision + # Assembler program. AS=$lt_AS @@ -21520,10 +22073,6 @@ DLLTOOL=$lt_DLLTOOL # Object dumper program. OBJDUMP=$lt_OBJDUMP -# Which release of libtool.m4 was used? -macro_version=$macro_version -macro_revision=$macro_revision - # Whether or not to build shared libraries. build_libtool_libs=$enable_shared @@ -22371,17 +22920,20 @@ echo " LIBTOOL_VERSION: ${LIBTOOL_VERSION} prefix: ${prefix} C compiler: ${CC} - CFLAGS: ${CFLAGS} Linker: ${LD} + CFLAGS: ${CFLAGS} LDFLAGS: ${LDFLAGS} LIBS: ${LIBS} + HAVE_ASAN: ${HAVE_ASAN} HAVE_CHECK: ${HAVE_CHECK} HAVE_COMPATIBLE_CHECK: ${HAVE_COMPATIBLE_CHECK} HAVE_NETWORK: ${HAVE_NETWORK} HAVE_DEVMODE: ${HAVE_DEVMODE} HAVE_SPHINX: ${HAVE_SPHINX} - GIT: $GIT - DOCKER: $DOCKER + GIT: ${GIT} + DOCKER: ${DOCKER} + HAVE_LIBCLANG: ${HAVE_LIBCLANG} + LIBCLANG_LIBS: ${LIBCLANG_LIBS} TESTSUITEURL: $TESTSUITEURL TESTSUITECHECKOUT: $TESTSUITECHECKOUT JSONTESTSUITEURL: $JSONTESTSUITEURL diff --git a/Sources/Cfyaml/autom4te.cache/output.1 b/Sources/Cfyaml/autom4te.cache/output.1 index 590fde529..b97f0d423 100644 --- a/Sources/Cfyaml/autom4te.cache/output.1 +++ b/Sources/Cfyaml/autom4te.cache/output.1 @@ -1,11 +1,11 @@ @%:@! /bin/sh @%:@ Guess values for system-dependent variables and create Makefiles. -@%:@ Generated by GNU Autoconf 2.71 for libfyaml 0.7.12. +@%:@ Generated by GNU Autoconf 2.72 for libfyaml 0.9. @%:@ @%:@ Report bugs to . @%:@ @%:@ -@%:@ Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, +@%:@ Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, @%:@ Inc. @%:@ @%:@ @@ -17,7 +17,6 @@ # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh @@ -26,12 +25,13 @@ then : # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else $as_nop - case `(set -o) 2>/dev/null` in @%:@( +else case e in @%:@( + e) case `(set -o) 2>/dev/null` in @%:@( *posix*) : set -o posix ;; @%:@( *) : ;; +esac ;; esac fi @@ -92,7 +92,7 @@ case $0 in @%:@(( for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -103,7 +103,7 @@ IFS=$as_save_IFS ;; esac -# We did not find ourselves, most probably we were run as `sh COMMAND' +# We did not find ourselves, most probably we were run as 'sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 @@ -133,15 +133,14 @@ case $- in @%:@ (((( esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. +# out after a failed 'exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then - as_bourne_compatible="as_nop=: -if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 + as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: @@ -149,12 +148,13 @@ then : # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST -else \$as_nop - case \`(set -o) 2>/dev/null\` in @%:@( +else case e in @%:@( + e) case \`(set -o) 2>/dev/null\` in @%:@( *posix*) : set -o posix ;; @%:@( *) : ;; +esac ;; esac fi " @@ -172,8 +172,9 @@ as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ) then : -else \$as_nop - exitcode=1; echo positional parameters were not saved. +else case e in @%:@( + e) exitcode=1; echo positional parameters were not saved. ;; +esac fi test x\$exitcode = x0 || exit 1 blah=\$(echo \$(echo blah)) @@ -183,7 +184,6 @@ test -x / || exit 1" as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 -test \$(( 1 + 1 )) = 2 || exit 1 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' @@ -191,23 +191,25 @@ test \$(( 1 + 1 )) = 2 || exit 1 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ - || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null then : as_have_required=yes -else $as_nop - as_have_required=no +else case e in @%:@( + e) as_have_required=no ;; +esac fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null then : -else $as_nop - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in @%:@( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -235,12 +237,13 @@ IFS=$as_save_IFS if $as_found then : -else $as_nop - if { test -f "$SHELL" || test -f "$SHELL.exe"; } && +else case e in @%:@( + e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$SHELL as_have_required=yes -fi +fi ;; +esac fi @@ -262,7 +265,7 @@ case $- in @%:@ (((( esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. +# out after a failed 'exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi @@ -282,7 +285,8 @@ $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 -fi +fi ;; +esac fi fi SHELL=${CONFIG_SHELL-/bin/sh} @@ -321,14 +325,6 @@ as_fn_exit () as_fn_set_status $1 exit $1 } @%:@ as_fn_exit -@%:@ as_fn_nop -@%:@ --------- -@%:@ Do nothing but, unlike ":", preserve the value of @S|@?. -as_fn_nop () -{ - return $? -} -as_nop=as_fn_nop @%:@ as_fn_mkdir_p @%:@ ------------- @@ -397,11 +393,12 @@ then : { eval $1+=\$2 }' -else $as_nop - as_fn_append () +else case e in @%:@( + e) as_fn_append () { eval $1=\$$1\$2 - } + } ;; +esac fi # as_fn_append @%:@ as_fn_arith ARG... @@ -415,21 +412,14 @@ then : { as_val=$(( $* )) }' -else $as_nop - as_fn_arith () +else case e in @%:@( + e) as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` - } + } ;; +esac fi # as_fn_arith -@%:@ as_fn_nop -@%:@ --------- -@%:@ Do nothing but, unlike ":", preserve the value of @S|@?. -as_fn_nop () -{ - return $? -} -as_nop=as_fn_nop @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] @%:@ ---------------------------------------- @@ -503,6 +493,8 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits /[$]LINENO/= ' <$as_myself | sed ' + t clear + :clear s/[$]LINENO.*/&-/ t lineno b @@ -551,7 +543,6 @@ esac as_@&t@echo='printf %s\n' as_@&t@echo_n='printf %s' - rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file @@ -563,9 +554,9 @@ if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. + # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. + # In both cases, we have to default to 'cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then @@ -590,12 +581,12 @@ as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" +as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated # Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - -lt_ltdl_dir='libltdl' +as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" +as_tr_sh="eval sed '$as_sed_sh'" # deprecated SHELL=${CONFIG_SHELL-/bin/sh} @@ -623,8 +614,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='libfyaml' PACKAGE_TARNAME='libfyaml' -PACKAGE_VERSION='0.7.12' -PACKAGE_STRING='libfyaml 0.7.12' +PACKAGE_VERSION='0.9' +PACKAGE_STRING='libfyaml 0.9' PACKAGE_BUGREPORT='pantelis.antoniou@konsulko.com' PACKAGE_URL='' @@ -674,10 +665,17 @@ MCS OBJC F77 FC -CCAS AM_MAKEFLAGS MAKEFLAGS shavedir +HAVE_LIBCLANG_FALSE +HAVE_LIBCLANG_TRUE +LIBCLANG_LIBS +LIBCLANG_LDFLAGS +LIBCLANG_CPPFLAGS +LIBCLANG_CFLAGS +HAVE_LIBCLANG +LLVM_CONFIG HAVE_JQ_FALSE HAVE_JQ_TRUE JQ @@ -718,7 +716,42 @@ LIBYAML_CFLAGS HAVE_QSORT_R_FALSE HAVE_QSORT_R_TRUE HAVE_QSORT_R +HAVE_ASAN_FALSE +HAVE_ASAN_TRUE +ASAN_LIBS +ASAN_CFLAGS +HAVE_ASAN +TARGET_HAS_NEON_FALSE +TARGET_HAS_NEON_TRUE +TARGET_HAS_AVX512_FALSE +TARGET_HAS_AVX512_TRUE +TARGET_HAS_AVX2_FALSE +TARGET_HAS_AVX2_TRUE +TARGET_HAS_SSE41_FALSE +TARGET_HAS_SSE41_TRUE +TARGET_HAS_SSE2_FALSE +TARGET_HAS_SSE2_TRUE +TARGET_CPU_ANY_ARM_FALSE +TARGET_CPU_ANY_ARM_TRUE +TARGET_CPU_ARM64_FALSE +TARGET_CPU_ARM64_TRUE +TARGET_CPU_ARM_FALSE +TARGET_CPU_ARM_TRUE +TARGET_CPU_ANY_X86_FALSE +TARGET_CPU_ANY_X86_TRUE +TARGET_CPU_X86_64_FALSE +TARGET_CPU_X86_64_TRUE +TARGET_CPU_X86_FALSE +TARGET_CPU_X86_TRUE +HAVE_PORTABLE_TARGET_FALSE +HAVE_PORTABLE_TARGET_TRUE +HAVE_PORTABLE_TARGET +HAVE_STATIC_FALSE +HAVE_STATIC_TRUE +HAVE_STATIC subdirs +LIBLTDL +LTDLINCL CXXCPP LT_SYS_LIBRARY_PATH OTOOL64 @@ -734,32 +767,20 @@ ac_ct_DUMPBIN DUMPBIN LD FGREP +EGREP +GREP SED LIBTOOL OBJDUMP DLLTOOL AS -INCLTDL -LTDLINCL -LTDLDEPS -LIBLTDL PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG -ACLOCAL_AMFLAGS -M4 PTHREAD_CFLAGS PTHREAD_LIBS PTHREAD_CC ax_pthread_config -host_os -host_vendor -host_cpu -host -build_os -build_vendor -build_cpu -build LN_S am__fastdepCXX_FALSE am__fastdepCXX_TRUE @@ -769,9 +790,11 @@ CXXFLAGS CXX ac_ct_AR AR -EGREP -GREP -CPP +am__fastdepCCAS_FALSE +am__fastdepCCAS_TRUE +CCASDEPMODE +CCASFLAGS +CCAS am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE @@ -823,6 +846,20 @@ am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM +target_os +target_vendor +target_cpu +target +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +ACLOCAL_AMFLAGS +M4 target_alias host_alias build_alias @@ -877,8 +914,11 @@ with_aix_soname with_gnu_ld with_sysroot enable_libtool_lock +enable_portable_target +enable_asan enable_network enable_devmode +with_libclang enable_shave ' ac_precious_vars='build_alias @@ -889,7 +929,8 @@ CFLAGS LDFLAGS LIBS CPPFLAGS -CPP +CCAS +CCASFLAGS CXX CXXFLAGS CCC @@ -1014,7 +1055,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: \`$ac_useropt'" + as_fn_error $? "invalid feature name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1040,7 +1081,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: \`$ac_useropt'" + as_fn_error $? "invalid feature name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1253,7 +1294,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: \`$ac_useropt'" + as_fn_error $? "invalid package name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1269,7 +1310,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: \`$ac_useropt'" + as_fn_error $? "invalid package name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1299,8 +1340,8 @@ do | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; - -*) as_fn_error $? "unrecognized option: \`$ac_option' -Try \`$0 --help' for more information" + -*) as_fn_error $? "unrecognized option: '$ac_option' +Try '$0 --help' for more information" ;; *=*) @@ -1308,7 +1349,7 @@ Try \`$0 --help' for more information" # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) - as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + as_fn_error $? "invalid variable name: '$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; @@ -1358,7 +1399,7 @@ do as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done -# There might be people who depend on the old broken behavior: `$host' +# There might be people who depend on the old broken behavior: '$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias @@ -1426,7 +1467,7 @@ if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` @@ -1454,7 +1495,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures libfyaml 0.7.12 to adapt to many kinds of systems. +'configure' configures libfyaml 0.9 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1468,11 +1509,11 @@ Configuration: --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking ...' messages + -q, --quiet, --silent do not print 'checking ...' messages --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' + -C, --config-cache alias for '--cache-file=config.cache' -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] + --srcdir=DIR find the sources in DIR [configure dir or '..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX @@ -1480,10 +1521,10 @@ Installation directories: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX @<:@PREFIX@:>@ -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. +By default, 'make install' will install all the files in +'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify +an installation prefix other than '$ac_default_prefix' using '--prefix', +for instance '--prefix=\$HOME'. For better control, use the options below. @@ -1520,12 +1561,13 @@ Program names: System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] + --target=TARGET configure for building compilers for TARGET [HOST] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libfyaml 0.7.12:";; + short | recursive ) echo "Configuration of libfyaml 0.9:";; esac cat <<\_ACEOF @@ -1546,6 +1588,10 @@ Optional Features: --enable-fast-install@<:@=PKGS@:>@ optimize for fast installation @<:@default=yes@:>@ --disable-libtool-lock avoid locking (might break parallel builds) + --enable-portable-target + Enable portable mode (disable per-target + optimizations) + --enable-asan Enable ASAN support --disable-network Disable tests requiring network access --enable-devmode Enable development mode only debugging --enable-shave use shave to make the build pretty @<:@@<:@default=yes@:>@@:>@ @@ -1561,6 +1607,15 @@ Optional Packages: --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ --with-sysroot@<:@=DIR@:>@ Search for dependent libraries within DIR (or the compiler's sysroot if not specified). +@%:@ Check whether --enable-network was given. +if test ${enable_network+y} +then : + enableval=$enable_network; +fi + + + --with-libclang= + Enable support for libclang @<:@default=auto@:>@ Some influential environment variables: CC C compiler command @@ -1570,7 +1625,8 @@ 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 - CPP C preprocessor + CCAS assembler compiler command (defaults to CC) + CCASFLAGS assembler compiler flags (defaults to CFLAGS) CXX C++ compiler command CXXFLAGS C++ compiler flags PKG_CONFIG path to pkg-config utility @@ -1601,7 +1657,7 @@ Some influential environment variables: JSON Testsuite checkout (default: d64aefb55228d9584d3e5b2433f720ea8fd00c82) -Use these variables to override the choices made by `configure' or to help +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 . @@ -1668,10 +1724,10 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libfyaml configure 0.7.12 -generated by GNU Autoconf 2.71 +libfyaml configure 0.9 +generated by GNU Autoconf 2.72 -Copyright (C) 2021 Free Software Foundation, Inc. +Copyright (C) 2023 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF @@ -1710,54 +1766,17 @@ printf "%s\n" "$ac_try_echo"; } >&5 } && test -s conftest.$ac_objext then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in @%:@( + e) printf "%s\n" "$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_c_try_compile - -@%:@ ac_fn_c_try_cpp LINENO -@%:@ ---------------------- -@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. -ac_fn_c_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;; + ac_retval=1 ;; esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -printf "%s\n" "$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 - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } > conftest.i && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - } -then : - ac_retval=0 -else $as_nop - printf "%s\n" "$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_c_try_cpp +} @%:@ ac_fn_c_try_compile @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES @%:@ ------------------------------------------------------- @@ -1771,8 +1790,8 @@ printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 @%:@include <$2> @@ -1780,10 +1799,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$3=yes" -else $as_nop - eval "$3=no" +else case e in @%:@( + e) eval "$3=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -1820,11 +1841,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } && test -s conftest.$ac_objext then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in @%:@( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -1862,11 +1884,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in @%:@( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would @@ -1889,15 +1912,15 @@ printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $2 (); below. */ + which can conflict with char $2 (void); below. */ #include #undef $2 @@ -1908,7 +1931,7 @@ else $as_nop #ifdef __cplusplus extern "C" #endif -char $2 (); +char $2 (void); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ @@ -1927,11 +1950,13 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : eval "$3=yes" -else $as_nop - eval "$3=no" +else case e in @%:@( + e) eval "$3=no" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -1967,11 +1992,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in @%:@( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -2009,11 +2035,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in @%:@( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would @@ -2055,12 +2082,13 @@ printf "%s\n" "$ac_try_echo"; } >&5 test $ac_status = 0; }; } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: program exited with status $ac_status" >&5 +else case e in @%:@( + e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=$ac_status + ac_retval=$ac_status ;; +esac fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno @@ -2080,8 +2108,8 @@ printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - eval "$3=no" +else case e in @%:@( + e) eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 @@ -2111,12 +2139,14 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : -else $as_nop - eval "$3=yes" +else case e in @%:@( + e) eval "$3=yes" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -2138,8 +2168,8 @@ printf %s "checking whether $as_decl_name is declared... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` +else case e in @%:@( + e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` eval ac_save_FLAGS=\$$6 as_fn_append $6 " $5" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -2163,12 +2193,14 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$3=yes" -else $as_nop - eval "$3=no" +else case e in @%:@( + e) eval "$3=no" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext eval $6=\$ac_save_FLAGS - + ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -2200,8 +2232,8 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libfyaml $as_me 0.7.12, which was -generated by GNU Autoconf 2.71. Invocation command line was +It was created by libfyaml $as_me 0.9, which was +generated by GNU Autoconf 2.72. Invocation command line was $ $0$ac_configure_args_raw @@ -2236,7 +2268,7 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -2447,10 +2479,10 @@ esac printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ - || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } fi done @@ -2486,9 +2518,7 @@ struct stat; /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ struct buf { int x; }; struct buf * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; +static char *e (char **p, int i) { return p[i]; } @@ -2502,6 +2532,21 @@ static char *f (char * (*g) (char **, int), char **p, ...) return s; } +/* C89 style stringification. */ +#define noexpand_stringify(a) #a +const char *stringified = noexpand_stringify(arbitrary+token=sequence); + +/* C89 style token pasting. Exercises some of the corner cases that + e.g. old MSVC gets wrong, but not very hard. */ +#define noexpand_concat(a,b) a##b +#define expand_concat(a,b) noexpand_concat(a,b) +extern int vA; +extern int vbee; +#define aye A +#define bee B +int *pvA = &expand_concat(v,aye); +int *pvbee = &noexpand_concat(v,bee); + /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not \xHH hex character constants. These do not provoke an error unfortunately, instead are silently treated @@ -2529,16 +2574,19 @@ ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); # Test code for whether the C compiler supports C99 (global declarations) ac_c_conftest_c99_globals=' -// Does the compiler advertise C99 conformance? +/* Does the compiler advertise C99 conformance? */ #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L # error "Compiler does not advertise C99 conformance" #endif +// See if C++-style comments work. + #include extern int puts (const char *); extern int printf (const char *, ...); extern int dprintf (int, const char *, ...); extern void *malloc (size_t); +extern void free (void *); // Check varargs macros. These examples are taken from C99 6.10.3.5. // dprintf is used instead of fprintf to avoid needing to declare @@ -2588,7 +2636,6 @@ typedef const char *ccp; static inline int test_restrict (ccp restrict text) { - // See if C++-style comments work. // Iterate through items via the restricted pointer. // Also check for declarations in for loops. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) @@ -2654,6 +2701,8 @@ ac_c_conftest_c99_main=' ia->datasize = 10; for (int i = 0; i < ia->datasize; ++i) ia->data[i] = i * 1.234; + // Work around memory leak warnings. + free (ia); // Check named initializers. struct named_init ni = { @@ -2675,7 +2724,7 @@ ac_c_conftest_c99_main=' # Test code for whether the C compiler supports C11 (global declarations) ac_c_conftest_c11_globals=' -// Does the compiler advertise C11 conformance? +/* Does the compiler advertise C11 conformance? */ #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L # error "Compiler does not advertise C11 conformance" #endif @@ -3008,7 +3057,7 @@ main (int argc, char **argv) # Auxiliary files required by this configure script. -ac_aux_files="tap-driver.sh ltmain.sh config.guess config.sub ar-lib compile missing install-sh" +ac_aux_files="tap-driver.sh ltmain.sh ar-lib compile missing install-sh config.guess config.sub" # Locations in which to look for auxiliary files. ac_aux_dir_candidates="${srcdir}/build-aux" @@ -3026,7 +3075,7 @@ as_found=false for as_dir in $ac_aux_dir_candidates do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -3085,8 +3134,9 @@ IFS=$as_save_IFS if $as_found then : -else $as_nop - as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 +else case e in @%:@( + e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; +esac fi @@ -3114,12 +3164,12 @@ for ac_var in $ac_precious_vars; do eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 +printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 +printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) @@ -3128,18 +3178,18 @@ printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 +printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 -printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 +printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 -printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 -printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 +printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 +printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. @@ -3155,11 +3205,11 @@ printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} fi done if $ac_cache_corrupted; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} - as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' + as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## @@ -3175,145 +3225,320 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -ac_config_headers="$ac_config_headers config.h" - - - -am__api_version='1.16' - - - # Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -# Reject install programs that cannot install multiple files. -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 -printf %s "checking for a BSD-compatible install... " >&6; } -if test -z "$INSTALL"; then -if test ${ac_cv_path_install+y} +# Extract the first word of "m4 gm4", so it can be a program name with args. +set dummy m4 gm4; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_M4+y} then : printf %s "(cached) " >&6 -else $as_nop +else case e in @%:@( + e) case $M4 in + [\\/]* | ?:[\\/]*) + ac_cv_path_M4="$M4" # 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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac - # Account for fact that we put trailing slashes in our PATH walk. -case $as_dir in @%:@(( - ./ | /[cC]/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then - if test $ac_prog = install && - grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - rm -rf conftest.one conftest.two conftest.dir - echo one > conftest.one - echo two > conftest.two - mkdir conftest.dir - if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && - test -s conftest.one && test -s conftest.two && - test -s conftest.dir/conftest.one && - test -s conftest.dir/conftest.two - then - ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - fi - done - done - ;; -esac - + 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_M4="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done done IFS=$as_save_IFS -rm -rf conftest.one conftest.two conftest.dir - + test -z "$ac_cv_path_M4" && ac_cv_path_M4="no" + ;; +esac ;; +esac fi - if test ${ac_cv_path_install+y}; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi +M4=$ac_cv_path_M4 +if test -n "$M4"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 +printf "%s\n" "$M4" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 -printf "%s\n" "$INSTALL" >&6; } -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' +if test "x$M4" = xno ; then + as_fn_error $? "m4 missing" "$LINENO" 5 +fi -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' +ACLOCAL_AMFLAGS="-I m4" -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 -printf %s "checking whether build environment is sane... " >&6; } -# Reject unsafe characters in $srcdir or the absolute working directory -# name. Accept space and tab only in the latter. -am_lf=' -' -case `pwd` in - *[\\\"\#\$\&\'\`$am_lf]*) - as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; -esac -case $srcdir in - *[\\\"\#\$\&\'\`$am_lf\ \ ]*) - as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; -esac -# Do 'set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - am_has_slept=no - for am_try in 1 2; do - echo "timestamp, slept: $am_has_slept" > conftest.file - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t "$srcdir/configure" conftest.file` - fi - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - # If neither matched, then we have a broken ls. This can happen + + + # Make sure we can run config.sub. +$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +printf %s "checking build system type... " >&6; } +if test ${ac_cv_build+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 + ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +printf "%s\n" "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +printf %s "checking host system type... " >&6; } +if test ${ac_cv_host+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 +fi + ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +printf "%s\n" "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 +printf %s "checking target system type... " >&6; } +if test ${ac_cv_target+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test "x$target_alias" = x; then + ac_cv_target=$ac_cv_host +else + ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5 +fi + ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 +printf "%s\n" "$ac_cv_target" >&6; } +case $ac_cv_target in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; +esac +target=$ac_cv_target +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_target +shift +target_cpu=$1 +target_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +target_os=$* +IFS=$ac_save_IFS +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac + + +# The aliases save the names the user supplied, while $host etc. +# will get canonicalized. +test -n "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" = \ + NONENONEs,x,x, && + program_prefix=${target_alias}- + + +ac_config_headers="$ac_config_headers config.h" + + +am__api_version='1.16' + + + # Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +printf %s "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if test ${ac_cv_path_install+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + # Account for fact that we put trailing slashes in our PATH walk. +case $as_dir in @%:@(( + ./ | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + ;; +esac +fi + if test ${ac_cv_path_install+y}; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +printf "%s\n" "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +printf %s "checking whether build environment is sane... " >&6; } +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; +esac + +# Do 'set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + am_has_slept=no + for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". @@ -3354,7 +3579,7 @@ test "$program_prefix" != NONE && test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. -# By default was `s,x,x', remove it if useless. +# By default was 's,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` @@ -3397,15 +3622,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$STRIP"; then +else case e in @%:@( + e) if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -3420,7 +3645,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then @@ -3442,15 +3668,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_STRIP"; then +else case e in @%:@( + e) if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -3465,7 +3691,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then @@ -3501,12 +3728,12 @@ if test -z "$MKDIR_P"; then if test ${ac_cv_path_mkdir+y} then : printf %s "(cached) " >&6 -else $as_nop - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in @%:@( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -3516,7 +3743,7 @@ do as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir ('*'coreutils) '* | \ - 'BusyBox '* | \ + *'BusyBox '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext break 3;; @@ -3525,18 +3752,17 @@ do done done IFS=$as_save_IFS - + ;; +esac fi test -d ./--version && rmdir ./--version if test ${ac_cv_path_mkdir+y}; then MKDIR_P="$ac_cv_path_mkdir -p" else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - MKDIR_P="$ac_install_sh -d" + # As a last resort, use plain mkdir -p, + # in the hope it doesn't have the bugs of ancient mkdir. + MKDIR_P='mkdir -p' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 @@ -3551,15 +3777,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AWK+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AWK"; then +else case e in @%:@( + e) if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -3574,7 +3800,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then @@ -3596,8 +3823,8 @@ ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval test \${ac_cv_prog_make_${ac_make}_set+y} then : printf %s "(cached) " >&6 -else $as_nop - cat >conftest.make <<\_ACEOF +else case e in @%:@( + e) cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' @@ -3609,7 +3836,8 @@ case `${MAKE-make} -f conftest.make 2>/dev/null` in *) eval ac_cv_prog_make_${ac_make}_set=no;; esac -rm -f conftest.make +rm -f conftest.make ;; +esac fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 @@ -3647,8 +3875,8 @@ printf %s "checking whether $am_make supports nested variables... " >&6; } if test ${am_cv_make_support_nested_variables+y} then : printf %s "(cached) " >&6 -else $as_nop - if printf "%s\n" 'TRUE=$(BAR$(V)) +else case e in @%:@( + e) if printf "%s\n" 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 @@ -3658,7 +3886,8 @@ am__doit: am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no -fi +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } @@ -3693,7 +3922,7 @@ fi # Define the identity of the package. PACKAGE='libfyaml' - VERSION='0.7.12' + VERSION='0.9' printf "%s\n" "@%:@define PACKAGE \"$PACKAGE\"" >>confdefs.h @@ -3853,7 +4082,7 @@ EXTRA=`echo $VERSION | cut -d- -f2- -s` # increase current, set revision and age to 0 -LIBTOOL_VERSION=1:2:0 +LIBTOOL_VERSION=1:4:2 @@ -3877,8 +4106,9 @@ fi if test ${enable_debug+y} then : enableval=$enable_debug; -else $as_nop - enable_debug=$ax_enable_debug_default +else case e in @%:@( + e) enable_debug=$ax_enable_debug_default ;; +esac fi @@ -3951,10 +4181,11 @@ esac if test "x$enable_debug" = "xyes" then : -else $as_nop - +else case e in @%:@( + e) printf "%s\n" "@%:@define NDEBUG 1" >>confdefs.h - + ;; +esac fi ax_enable_debug=$enable_debug @@ -3982,15 +4213,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in @%:@( + e) if test -n "$CC"; then ac_cv_prog_CC="$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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4005,7 +4236,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4027,15 +4259,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in @%:@( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4050,7 +4282,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -4085,15 +4318,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in @%:@( + e) if test -n "$CC"; then ac_cv_prog_CC="$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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4108,7 +4341,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4130,8 +4364,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in @%:@( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no @@ -4139,7 +4373,7 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4170,7 +4404,8 @@ if test $ac_prog_rejected = yes; then ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" fi fi -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4194,15 +4429,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in @%:@( + e) if test -n "$CC"; then ac_cv_prog_CC="$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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4217,7 +4452,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4243,15 +4479,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in @%:@( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4266,7 +4502,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -4304,15 +4541,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in @%:@( + e) if test -n "$CC"; then ac_cv_prog_CC="$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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4327,7 +4564,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4349,15 +4587,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in @%:@( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4372,7 +4610,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -4401,10 +4640,10 @@ fi fi -test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 @@ -4476,8 +4715,8 @@ printf "%s\n" "$ac_try_echo"; } >&5 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' + # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. +# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. @@ -4497,7 +4736,7 @@ do ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' + # safe: cross compilers may not add the suffix if given an '-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. @@ -4508,8 +4747,9 @@ do done test "$ac_cv_exeext" = no && ac_cv_exeext= -else $as_nop - ac_file='' +else case e in @%:@( + e) ac_file='' ;; +esac fi if test -z "$ac_file" then : @@ -4518,13 +4758,14 @@ printf "%s\n" "no" >&6; } printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables -See \`config.log' for more details" "$LINENO" 5; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } +See 'config.log' for more details" "$LINENO" 5; } +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 printf %s "checking for C compiler default output file name... " >&6; } @@ -4548,10 +4789,10 @@ printf "%s\n" "$ac_try_echo"; } >&5 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. + # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) +# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will +# work properly (i.e., refer to 'conftest.exe'), while it won't with +# 'rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in @@ -4561,11 +4802,12 @@ for ac_file in conftest.exe conftest conftest.*; do * ) break;; esac done -else $as_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in @%:@( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi rm -f conftest conftest$ac_cv_exeext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 @@ -4581,6 +4823,8 @@ int main (void) { FILE *f = fopen ("conftest.out", "w"); + if (!f) + return 1; return ferror (f) || fclose (f) != 0; ; @@ -4620,26 +4864,27 @@ printf "%s\n" "$ac_try_echo"; } >&5 if test "$cross_compiling" = maybe; then cross_compiling=yes else - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details" "$LINENO" 5; } +If you meant to cross compile, use '--host'. +See 'config.log' for more details" "$LINENO" 5; } fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 printf "%s\n" "$cross_compiling" >&6; } -rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +rm -f conftest.$ac_ext conftest$ac_cv_exeext \ + conftest.o conftest.obj conftest.out ac_clean_files=$ac_clean_files_save { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 printf %s "checking for suffix of object files... " >&6; } if test ${ac_cv_objext+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -4671,16 +4916,18 @@ then : break;; esac done -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in @%:@( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi -rm -f conftest.$ac_cv_objext conftest.$ac_ext +rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 printf "%s\n" "$ac_cv_objext" >&6; } @@ -4691,8 +4938,8 @@ printf %s "checking whether the compiler supports GNU C... " >&6; } if test ${ac_cv_c_compiler_gnu+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -4709,12 +4956,14 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_compiler_gnu=yes -else $as_nop - ac_compiler_gnu=no +else case e in @%:@( + e) ac_compiler_gnu=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } @@ -4732,8 +4981,8 @@ printf %s "checking whether $CC accepts -g... " >&6; } if test ${ac_cv_prog_cc_g+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_save_c_werror_flag=$ac_c_werror_flag +else case e in @%:@( + e) ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" @@ -4751,8 +5000,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes -else $as_nop - CFLAGS="" +else case e in @%:@( + e) CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4767,8 +5016,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : -else $as_nop - ac_c_werror_flag=$ac_save_c_werror_flag +else case e in @%:@( + e) ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4785,12 +5034,15 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag + ac_c_werror_flag=$ac_save_c_werror_flag ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } @@ -4817,8 +5069,8 @@ printf %s "checking for $CC option to enable C11 features... " >&6; } if test ${ac_cv_prog_cc_c11+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c11=no +else case e in @%:@( + e) ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4835,25 +5087,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c11" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c11" = x +else case e in @%:@( + e) if test "x$ac_cv_prog_cc_c11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } - CC="$CC $ac_cv_prog_cc_c11" + CC="$CC $ac_cv_prog_cc_c11" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 - ac_prog_cc_stdc=c11 + ac_prog_cc_stdc=c11 ;; +esac fi fi if test x$ac_prog_cc_stdc = xno @@ -4863,8 +5118,8 @@ printf %s "checking for $CC option to enable C99 features... " >&6; } if test ${ac_cv_prog_cc_c99+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c99=no +else case e in @%:@( + e) ac_cv_prog_cc_c99=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4881,25 +5136,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c99" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c99" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c99" = x +else case e in @%:@( + e) if test "x$ac_cv_prog_cc_c99" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } - CC="$CC $ac_cv_prog_cc_c99" + CC="$CC $ac_cv_prog_cc_c99" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 - ac_prog_cc_stdc=c99 + ac_prog_cc_stdc=c99 ;; +esac fi fi if test x$ac_prog_cc_stdc = xno @@ -4909,8 +5167,8 @@ printf %s "checking for $CC option to enable C89 features... " >&6; } if test ${ac_cv_prog_cc_c89+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c89=no +else case e in @%:@( + e) ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4927,25 +5185,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c89" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c89" = x +else case e in @%:@( + e) if test "x$ac_cv_prog_cc_c89" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } - CC="$CC $ac_cv_prog_cc_c89" + CC="$CC $ac_cv_prog_cc_c89" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 - ac_prog_cc_stdc=c89 + ac_prog_cc_stdc=c89 ;; +esac fi fi @@ -4966,8 +5227,8 @@ printf %s "checking whether $CC understands -c and -o together... " >&6; } if test ${am_cv_prog_cc_c_o+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -4997,7 +5258,8 @@ _ACEOF fi done rm -f core conftest* - unset am_i + unset am_i ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } @@ -5087,8 +5349,8 @@ printf %s "checking dependency style of $depcc... " >&6; } if test ${am_cv_CC_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then +else case e in @%:@( + e) 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 @@ -5192,7 +5454,8 @@ else $as_nop else am_cv_CC_dependencies_compiler_type=none fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } @@ -5210,371 +5473,186 @@ fi +# By default we simply use the C compiler to build assembly code. +test "${CCAS+set}" = set || CCAS=$CC +test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS -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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 -printf %s "checking how to run the C preprocessor... " >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if test ${ac_cv_prog_CPP+y} + +depcc="$CCAS" am_compiler_list= + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +printf %s "checking dependency style of $depcc... " >&6; } +if test ${am_cv_CCAS_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 -else $as_nop - # Double quotes because $CC needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # 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. */ -@%:@include - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : +else case e in @%:@( + e) 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_CCAS_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 -else $as_nop - # 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_c_try_cpp "$LINENO" -then : - # Broken: success on invalid input. -continue -else $as_nop - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.i conftest.$ac_ext + 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 -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 + # 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_CCAS_dependencies_compiler_type=$depmode + break + fi + fi + done - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP + cd .. + rm -rf conftest.dir else - ac_cv_prog_CPP=$CPP + am_cv_CCAS_dependencies_compiler_type=none fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 -printf "%s\n" "$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # 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. */ -@%:@include - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : - -else $as_nop - # Broken: fails on valid input. -continue + ;; +esac fi -rm -f conftest.err conftest.i conftest.$ac_ext +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 +printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; } +CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type - # 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_c_try_cpp "$LINENO" -then : - # Broken: success on invalid input. -continue -else $as_nop - # Passes both tests. -ac_preproc_ok=: -break + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then + am__fastdepCCAS_TRUE= + am__fastdepCCAS_FALSE='#' +else + am__fastdepCCAS_TRUE='#' + am__fastdepCCAS_FALSE= fi -rm -f conftest.err conftest.i conftest.$ac_ext + + + + +ac_header= ac_cache= +for ac_item in $ac_header_c_list +do + if test $ac_cache; then + ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" + if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then + printf "%s\n" "#define $ac_item 1" >> confdefs.h + fi + ac_header= ac_cache= + elif test $ac_header; then + ac_cache=$ac_item + else + ac_header=$ac_item + fi 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 + + + + + + + + +if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes then : -else $as_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } +printf "%s\n" "@%:@define STDC_HEADERS 1" >>confdefs.h + 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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} + + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 +printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } +if test ${ac_cv_safe_to_define___extensions__+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in grep ggrep - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in -*GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_GREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_GREP=$GREP -fi - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in egrep - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_EGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_EGREP=$EGREP -fi - - fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - -if test $ac_cv_c_compiler_gnu = yes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 -printf %s "checking whether $CC needs -traditional... " >&6; } -if test ${ac_cv_prog_gcc_traditional+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_pattern="Autoconf.*'x'" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -Autoconf TIOCGETP -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "$ac_pattern" >/dev/null 2>&1 -then : - ac_cv_prog_gcc_traditional=yes -else $as_nop - ac_cv_prog_gcc_traditional=no -fi -rm -rf conftest* - - - if test $ac_cv_prog_gcc_traditional = no; then - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -Autoconf TCGETA -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "$ac_pattern" >/dev/null 2>&1 -then : - ac_cv_prog_gcc_traditional=yes -fi -rm -rf conftest* - - fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 -printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; } - if test $ac_cv_prog_gcc_traditional = yes; then - CC="$CC -traditional" - fi -fi - -ac_header= ac_cache= -for ac_item in $ac_header_c_list -do - if test $ac_cache; then - ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" - if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then - printf "%s\n" "#define $ac_item 1" >> confdefs.h - fi - ac_header= ac_cache= - elif test $ac_header; then - ac_cache=$ac_item - else - ac_header=$ac_item - fi -done - - - - - - - - -if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes -then : - -printf "%s\n" "@%:@define STDC_HEADERS 1" >>confdefs.h - -fi - - - - - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 -printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } -if test ${ac_cv_safe_to_define___extensions__+y} -then : - printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ # define __EXTENSIONS__ 1 @@ -5590,10 +5668,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_safe_to_define___extensions__=yes -else $as_nop - ac_cv_safe_to_define___extensions__=no +else case e in @%:@( + e) ac_cv_safe_to_define___extensions__=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } @@ -5603,8 +5683,8 @@ printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } if test ${ac_cv_should_define__xopen_source+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_should_define__xopen_source=no +else case e in @%:@( + e) ac_cv_should_define__xopen_source=no if test $ac_cv_header_wchar_h = yes then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -5623,8 +5703,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _XOPEN_SOURCE 500 @@ -5642,10 +5722,12 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_should_define__xopen_source=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -fi +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } @@ -5670,6 +5752,8 @@ printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } printf "%s\n" "@%:@define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h + printf "%s\n" "@%:@define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h + printf "%s\n" "@%:@define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h printf "%s\n" "@%:@define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h @@ -5689,8 +5773,9 @@ then : printf "%s\n" "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h -else $as_nop - MINIX= +else case e in @%:@( + e) MINIX= ;; +esac fi if test $ac_cv_safe_to_define___extensions__ = yes then : @@ -5714,15 +5799,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AR"; then +else case e in @%:@( + e) if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -5737,7 +5822,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi AR=$ac_cv_prog_AR if test -n "$AR"; then @@ -5763,15 +5849,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_AR"; then +else case e in @%:@( + e) if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -5786,7 +5872,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then @@ -5821,8 +5908,8 @@ printf %s "checking the archiver ($AR) interface... " >&6; } if test ${am_cv_ar_interface+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_ext=c +else case e in @%:@( + e) 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' @@ -5865,7 +5952,8 @@ 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 - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 printf "%s\n" "$am_cv_ar_interface" >&6; } @@ -5913,15 +6001,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CXX"; then +else case e in @%:@( + e) 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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -5936,7 +6024,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then @@ -5962,15 +6051,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CXX"; then +else case e in @%:@( + e) 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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -5985,7 +6074,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then @@ -6045,8 +6135,8 @@ printf %s "checking whether the compiler supports GNU C++... " >&6; } if test ${ac_cv_cxx_compiler_gnu+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -6063,12 +6153,14 @@ _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_compiler_gnu=yes -else $as_nop - ac_compiler_gnu=no +else case e in @%:@( + e) ac_compiler_gnu=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } @@ -6086,8 +6178,8 @@ printf %s "checking whether $CXX accepts -g... " >&6; } if test ${ac_cv_prog_cxx_g+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_save_cxx_werror_flag=$ac_cxx_werror_flag +else case e in @%:@( + e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" @@ -6105,8 +6197,8 @@ _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_g=yes -else $as_nop - CXXFLAGS="" +else case e in @%:@( + e) CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6121,8 +6213,8 @@ _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : -else $as_nop - ac_cxx_werror_flag=$ac_save_cxx_werror_flag +else case e in @%:@( + e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6139,12 +6231,15 @@ if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ac_cxx_werror_flag=$ac_save_cxx_werror_flag + ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } @@ -6168,11 +6263,11 @@ if test x$ac_prog_cxx_stdcxx = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 printf %s "checking for $CXX option to enable C++11 features... " >&6; } -if test ${ac_cv_prog_cxx_11+y} +if test ${ac_cv_prog_cxx_cxx11+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cxx_11=no +else case e in @%:@( + e) ac_cv_prog_cxx_cxx11=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6189,36 +6284,39 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx11" != "xno" && break done rm -f conftest.$ac_ext -CXX=$ac_save_CXX +CXX=$ac_save_CXX ;; +esac fi if test "x$ac_cv_prog_cxx_cxx11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cxx_cxx11" = x +else case e in @%:@( + e) if test "x$ac_cv_prog_cxx_cxx11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } - CXX="$CXX $ac_cv_prog_cxx_cxx11" + CXX="$CXX $ac_cv_prog_cxx_cxx11" ;; +esac fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 - ac_prog_cxx_stdcxx=cxx11 + ac_prog_cxx_stdcxx=cxx11 ;; +esac fi fi if test x$ac_prog_cxx_stdcxx = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 printf %s "checking for $CXX option to enable C++98 features... " >&6; } -if test ${ac_cv_prog_cxx_98+y} +if test ${ac_cv_prog_cxx_cxx98+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cxx_98=no +else case e in @%:@( + e) ac_cv_prog_cxx_cxx98=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6235,25 +6333,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx98" != "xno" && break done rm -f conftest.$ac_ext -CXX=$ac_save_CXX +CXX=$ac_save_CXX ;; +esac fi if test "x$ac_cv_prog_cxx_cxx98" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cxx_cxx98" = x +else case e in @%:@( + e) if test "x$ac_cv_prog_cxx_cxx98" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } - CXX="$CXX $ac_cv_prog_cxx_cxx98" + CXX="$CXX $ac_cv_prog_cxx_cxx98" ;; +esac fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 - ac_prog_cxx_stdcxx=cxx98 + ac_prog_cxx_stdcxx=cxx98 ;; +esac fi fi @@ -6270,8 +6371,8 @@ printf %s "checking dependency style of $depcc... " >&6; } if test ${am_cv_CXX_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then +else case e in @%:@( + e) 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 @@ -6375,7 +6476,8 @@ else $as_nop else am_cv_CXX_dependencies_compiler_type=none fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } @@ -6401,15 +6503,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AWK+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AWK"; then +else case e in @%:@( + e) if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -6424,7 +6526,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then @@ -6452,87 +6555,12 @@ fi - - # Make sure we can run config.sub. -$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || - as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 -printf %s "checking build system type... " >&6; } -if test ${ac_cv_build+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` -test "x$ac_build_alias" = x && - as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 -ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || - as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 -printf "%s\n" "$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 -printf %s "checking host system type... " >&6; } -if test ${ac_cv_host+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || - as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 -fi - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 -printf "%s\n" "$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - - - -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 +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 @@ -6555,8 +6583,14 @@ printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_ /* 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. */ -char pthread_join (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_join (void); int main (void) { @@ -6655,15 +6689,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ax_pthread_config+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ax_pthread_config"; then +else case e in @%:@( + e) 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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -6679,7 +6713,8 @@ done IFS=$as_save_IFS test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" -fi +fi ;; +esac fi ax_pthread_config=$ac_cv_prog_ax_pthread_config if test -n "$ax_pthread_config"; then @@ -6819,8 +6854,8 @@ printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6836,12 +6871,14 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ax_cv_PTHREAD_PRIO_INHERIT=yes -else $as_nop - ax_cv_PTHREAD_PRIO_INHERIT=no +else case e in @%:@( + e) ax_cv_PTHREAD_PRIO_INHERIT=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } @@ -6878,15 +6915,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_PTHREAD_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$PTHREAD_CC"; then +else case e in @%:@( + e) 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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -6901,7 +6938,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi PTHREAD_CC=$ac_cv_prog_PTHREAD_CC if test -n "$PTHREAD_CC"; then @@ -6940,7 +6978,7 @@ printf "%s\n" "@%:@define HAVE_PTHREAD 1" >>confdefs.h : else ax_pthread_ok=no - + as_fn_error $? "\"Missing required pthread support\"" "$LINENO" 5 fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -6950,58 +6988,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -# Extract the first word of "m4 gm4", so it can be a program name with args. -set dummy m4 gm4; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_M4+y} -then : - printf %s "(cached) " >&6 -else $as_nop - case $M4 in - [\\/]* | ?:[\\/]*) - ac_cv_path_M4="$M4" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_M4="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$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_path_M4" && ac_cv_path_M4="no" - ;; -esac -fi -M4=$ac_cv_path_M4 -if test -n "$M4"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 -printf "%s\n" "$M4" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -if test "x$M4" = xno ; then - as_fn_error $? "m4 missing" "$LINENO" 5 +# in some cases PTHREAD_LIBS is empty - force -lpthread */ +if test "x$PTHREAD_LIBS" = "x"; then + PTHREAD_LIBS="-lpthread" fi -ACLOCAL_AMFLAGS="-I m4" - +CFLAGS="$CFLAGS $PTHREAD_CFLAGS" +LIBS="$LIBS $PTHREAD_LIBS" # pkg-config @@ -7020,8 +7013,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PKG_CONFIG+y} then : printf %s "(cached) " >&6 -else $as_nop - case $PKG_CONFIG in +else case e in @%:@( + e) case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; @@ -7030,7 +7023,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -7046,6 +7039,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG @@ -7068,8 +7062,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} then : printf %s "(cached) " >&6 -else $as_nop - case $ac_pt_PKG_CONFIG in +else case e in @%:@( + e) case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; @@ -7078,7 +7072,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -7094,6 +7088,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG @@ -7136,440 +7131,421 @@ printf "%s\n" "no" >&6; } fi +case `pwd` in + *\ * | *\ *) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; +esac - - -if test -f "$prefix/lib/libltdl.la"; then - lt_save_LDFLAGS=$LDFLAGS - LDFLAGS="-L$prefix/lib $LDFLAGS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5 -printf %s "checking for lt_dlinit in -lltdl... " >&6; } -if test ${ac_cv_lib_ltdl_lt_dlinit+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS -LIBS="-lltdl $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ +macro_version='2.4.7' +macro_revision='2.4.7' -/* 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. */ -char lt_dlinit (); -int -main (void) -{ -return lt_dlinit (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_ltdl_lt_dlinit=yes -else $as_nop - ac_cv_lib_ltdl_lt_dlinit=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5 -printf "%s\n" "$ac_cv_lib_ltdl_lt_dlinit" >&6; } -if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes -then : - lt_lib_ltdl=yes -fi + + + - LDFLAGS=$lt_save_LDFLAGS - if test yes = "${lt_lib_ltdl-no}"; then - if test yes != "$enable_ltdl_install"; then - # Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: not overwriting libltdl at $prefix, force with '--enable-ltdl-install'" >&5 -printf "%s\n" "$as_me: WARNING: not overwriting libltdl at $prefix, force with '--enable-ltdl-install'" >&2;} - enable_ltdl_install=no - fi - elif test no = "$enable_ltdl_install"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libltdl not installed, but installation disabled" >&5 -printf "%s\n" "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;} - fi -fi -# If configure.ac declared an installable ltdl, and the user didn't override -# with --disable-ltdl-install, we will install the shipped libltdl. -case $enable_ltdl_install in - no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no" - LIBLTDL=-lltdl - LTDLDEPS= - LTDLINCL= - ;; - *) enable_ltdl_install=yes - ac_configure_args="$ac_configure_args --enable-ltdl-install" - LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la" - LTDLDEPS=$LIBLTDL - LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}" - ;; -esac + + + + +ltmain=$ac_aux_dir/ltmain.sh -# For backwards non-gettext consistent compatibility... -INCLTDL=$LTDLINCL +# Backslashify metacharacters that are still active within +# double-quoted strings. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' -enable_dlopen=yes +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' -enable_win32_dll=yes +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO -case $host in -*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. -set dummy ${ac_tool_prefix}as; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_AS+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 +printf %s "checking how to print strings... " >&6; } +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' +else + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' +fi + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "" +} + +case $ECHO in + printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 +printf "%s\n" "printf" >&6; } ;; + print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 +printf "%s\n" "print -r" >&6; } ;; + *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 +printf "%s\n" "cat" >&6; } ;; +esac + + + + + + + + + + + + + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +printf %s "checking for a sed that does not truncate output... " >&6; } +if test ${ac_cv_path_SED+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AS"; then - ac_cv_prog_AS="$AS" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in @%:@( + e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac + for ac_prog in sed gsed + do 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_AS="${ac_tool_prefix}as" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done + ac_path_SED="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_SED" || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in @%:@( +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +@%:@( +*) + ac_count=0 + printf %s 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + printf "%s\n" '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break done -IFS=$as_save_IFS + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac -fi -fi -AS=$ac_cv_prog_AS -if test -n "$AS"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 -printf "%s\n" "$AS" >&6; } + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + ac_cv_path_SED=$SED +fi + ;; +esac fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +printf "%s\n" "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" -fi -if test -z "$ac_cv_prog_AS"; then - ac_ct_AS=$AS - # Extract the first word of "as", so it can be a program name with args. -set dummy as; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_AS+y} + + + + + + + + + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +printf %s "checking for grep that handles long lines and -e... " >&6; } +if test ${ac_cv_path_GREP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_AS"; then - ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH +else case e in @%:@( + e) if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac + for ac_prog in grep ggrep + do 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_AS="as" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done + ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_GREP" || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in @%:@( +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +@%:@( +*) + ac_count=0 + printf %s 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + printf "%s\n" 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break done -IFS=$as_save_IFS + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac -fi -fi -ac_ct_AS=$ac_cv_prog_ac_ct_AS -if test -n "$ac_ct_AS"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 -printf "%s\n" "$ac_ct_AS" >&6; } + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + ac_cv_path_GREP=$GREP fi - - if test "x$ac_ct_AS" = x; then - AS="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; + ;; esac - AS=$ac_ct_AS - fi -else - AS="$ac_cv_prog_AS" fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +printf "%s\n" "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. -set dummy ${ac_tool_prefix}dlltool; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_DLLTOOL+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +printf %s "checking for egrep... " >&6; } +if test ${ac_cv_path_EGREP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DLLTOOL"; then - ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH +else case e in @%:@( + e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac + for ac_prog in egrep + do 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_DLLTOOL="${ac_tool_prefix}dlltool" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done + ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP" || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in @%:@( +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +@%:@( +*) + ac_count=0 + printf %s 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + printf "%s\n" 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break done -IFS=$as_save_IFS + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac -fi -fi -DLLTOOL=$ac_cv_prog_DLLTOOL -if test -n "$DLLTOOL"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 -printf "%s\n" "$DLLTOOL" >&6; } + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + ac_cv_path_EGREP=$EGREP fi - + fi ;; +esac fi -if test -z "$ac_cv_prog_DLLTOOL"; then - ac_ct_DLLTOOL=$DLLTOOL - # Extract the first word of "dlltool", so it can be a program name with args. -set dummy dlltool; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_DLLTOOL+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +printf "%s\n" "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + EGREP_TRADITIONAL=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 +printf %s "checking for fgrep... " >&6; } +if test ${ac_cv_path_FGREP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_DLLTOOL"; then - ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DLLTOOL="dlltool" - printf "%s\n" "$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_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL -if test -n "$ac_ct_DLLTOOL"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 -printf "%s\n" "$ac_ct_DLLTOOL" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_DLLTOOL" = x; then - DLLTOOL="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - DLLTOOL=$ac_ct_DLLTOOL - fi -else - DLLTOOL="$ac_cv_prog_DLLTOOL" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. -set dummy ${ac_tool_prefix}objdump; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_OBJDUMP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test -n "$OBJDUMP"; then - ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH +else case e in @%:@( + e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 + then ac_cv_path_FGREP="$GREP -F" + else + if test -z "$FGREP"; then + ac_path_FGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac + for ac_prog in fgrep + do 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_OBJDUMP="${ac_tool_prefix}objdump" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done + ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_FGREP" || continue +# Check for GNU ac_path_FGREP and select it if it is found. + # Check for GNU $ac_path_FGREP +case `"$ac_path_FGREP" --version 2>&1` in @%:@( +*GNU*) + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; +@%:@( +*) + ac_count=0 + printf %s 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + printf "%s\n" 'FGREP' >> "conftest.nl" + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_FGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_FGREP="$ac_path_FGREP" + ac_path_FGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break done -IFS=$as_save_IFS - -fi -fi -OBJDUMP=$ac_cv_prog_OBJDUMP -if test -n "$OBJDUMP"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 -printf "%s\n" "$OBJDUMP" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac -fi -if test -z "$ac_cv_prog_OBJDUMP"; then - ac_ct_OBJDUMP=$OBJDUMP - # Extract the first word of "objdump", so it can be a program name with args. -set dummy objdump; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_OBJDUMP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_OBJDUMP"; then - ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_OBJDUMP="objdump" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done + $ac_path_FGREP_found && break 3 + done + done done IFS=$as_save_IFS - -fi -fi -ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP -if test -n "$ac_ct_OBJDUMP"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 -printf "%s\n" "$ac_ct_OBJDUMP" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_OBJDUMP" = x; then - OBJDUMP="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - OBJDUMP=$ac_ct_OBJDUMP + if test -z "$ac_cv_path_FGREP"; then + as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - OBJDUMP="$ac_cv_prog_OBJDUMP" + ac_cv_path_FGREP=$FGREP fi - ;; + fi ;; esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 +printf "%s\n" "$ac_cv_path_FGREP" >&6; } + FGREP="$ac_cv_path_FGREP" + -test -z "$AS" && AS=as - - - - - -test -z "$DLLTOOL" && DLLTOOL=dlltool - - - - - -test -z "$OBJDUMP" && OBJDUMP=objdump +test -z "$GREP" && GREP=grep - -case `pwd` in - *\ * | *\ *) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 -printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; -esac - - - -macro_version='2.4.7' -macro_revision='2.4.7' - @@ -7582,266 +7558,15 @@ macro_revision='2.4.7' - -ltmain=$ac_aux_dir/ltmain.sh - -# Backslashify metacharacters that are still active within -# double-quoted strings. -sed_quote_subst='s/\(["`$\\]\)/\\\1/g' - -# Same as above, but do not quote variable references. -double_quote_subst='s/\(["`\\]\)/\\\1/g' - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to delay expansion of an escaped single quote. -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' - -ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 -printf %s "checking how to print strings... " >&6; } -# Test print first, because it will be a builtin if present. -if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ - test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then - ECHO='print -r --' -elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then - ECHO='printf %s\n' -else - # Use this function as a fallback that always works. - func_fallback_echo () - { - eval 'cat <<_LTECHO_EOF -$1 -_LTECHO_EOF' - } - ECHO='func_fallback_echo' -fi - -# func_echo_all arg... -# Invoke $ECHO with all args, space-separated. -func_echo_all () -{ - $ECHO "" -} -case $ECHO in - printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 -printf "%s\n" "printf" >&6; } ;; - print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 -printf "%s\n" "print -r" >&6; } ;; - *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 -printf "%s\n" "cat" >&6; } ;; +@%:@ Check whether --with-gnu-ld was given. +if test ${with_gnu_ld+y} +then : + withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes +else case e in @%:@( + e) with_gnu_ld=no ;; esac - - - - - - - - - - - - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 -printf %s "checking for a sed that does not truncate output... " >&6; } -if test ${ac_cv_path_SED+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ - for ac_i in 1 2 3 4 5 6 7; do - ac_script="$ac_script$as_nl$ac_script" - done - echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed - { ac_script=; unset ac_script;} - if test -z "$SED"; then - ac_path_SED_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in sed gsed - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_SED="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_SED" || continue -# Check for GNU ac_path_SED and select it if it is found. - # Check for GNU $ac_path_SED -case `"$ac_path_SED" --version 2>&1` in -*GNU*) - ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" '' >> "conftest.nl" - "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_SED_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_SED="$ac_path_SED" - ac_path_SED_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_SED_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_SED"; then - as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 - fi -else - ac_cv_path_SED=$SED -fi - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 -printf "%s\n" "$ac_cv_path_SED" >&6; } - SED="$ac_cv_path_SED" - rm -f conftest.sed - -test -z "$SED" && SED=sed -Xsed="$SED -e 1s/^X//" - - - - - - - - - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 -printf %s "checking for fgrep... " >&6; } -if test ${ac_cv_path_FGREP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 - then ac_cv_path_FGREP="$GREP -F" - else - if test -z "$FGREP"; then - ac_path_FGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in fgrep - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_FGREP" || continue -# Check for GNU ac_path_FGREP and select it if it is found. - # Check for GNU $ac_path_FGREP -case `"$ac_path_FGREP" --version 2>&1` in -*GNU*) - ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" 'FGREP' >> "conftest.nl" - "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_FGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_FGREP="$ac_path_FGREP" - ac_path_FGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_FGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_FGREP"; then - as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_FGREP=$FGREP -fi - - fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 -printf "%s\n" "$ac_cv_path_FGREP" >&6; } - FGREP="$ac_cv_path_FGREP" - - -test -z "$GREP" && GREP=grep - - - - - - - - - - - - - - - - - - - -@%:@ Check whether --with-gnu-ld was given. -if test ${with_gnu_ld+y} -then : - withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes -else $as_nop - with_gnu_ld=no -fi +fi ac_prog=ld if test yes = "$GCC"; then @@ -7885,8 +7610,8 @@ fi if test ${lt_cv_path_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$LD"; then +else case e in @%:@( + e) if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs @@ -7909,7 +7634,8 @@ else $as_nop IFS=$lt_save_ifs else lt_cv_path_LD=$LD # Let the user override the test with a path. -fi +fi ;; +esac fi LD=$lt_cv_path_LD @@ -7926,8 +7652,8 @@ printf %s "checking if the linker ($LD) is GNU ld... " >&6; } if test ${lt_cv_prog_gnu_ld+y} then : printf %s "(cached) " >&6 -else $as_nop - # I'd rather use --version here, but apparently some GNU lds only accept -v. +else case e in @%:@( + e) # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &1 &5 @@ -7954,8 +7681,8 @@ printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if test ${lt_cv_path_NM+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$NM"; then +else case e in @%:@( + e) if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM=$NM else @@ -8002,7 +7729,8 @@ else IFS=$lt_save_ifs done : ${lt_cv_path_NM=no} -fi +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 printf "%s\n" "$lt_cv_path_NM" >&6; } @@ -8023,15 +7751,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DUMPBIN+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DUMPBIN"; then +else case e in @%:@( + e) if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8046,7 +7774,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then @@ -8072,15 +7801,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DUMPBIN+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_DUMPBIN"; then +else case e in @%:@( + e) if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8095,7 +7824,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then @@ -8149,8 +7879,8 @@ printf %s "checking the name lister ($NM) interface... " >&6; } if test ${lt_cv_nm_interface+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_nm_interface="BSD nm" +else case e in @%:@( + e) lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) @@ -8163,7 +7893,8 @@ else $as_nop if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi - rm -f conftest* + rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 printf "%s\n" "$lt_cv_nm_interface" >&6; } @@ -8174,8 +7905,8 @@ printf %s "checking the maximum length of command line arguments... " >&6; } if test ${lt_cv_sys_max_cmd_len+y} then : printf %s "(cached) " >&6 -else $as_nop - i=0 +else case e in @%:@( + e) i=0 teststring=ABCD case $build_os in @@ -8297,7 +8028,8 @@ else $as_nop fi ;; esac - + ;; +esac fi if test -n "$lt_cv_sys_max_cmd_len"; then @@ -8354,8 +8086,8 @@ printf %s "checking how to convert $build file names to $host format... " >&6; } if test ${lt_cv_to_host_file_cmd+y} then : printf %s "(cached) " >&6 -else $as_nop - case $host in +else case e in @%:@( + e) case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys @@ -8386,7 +8118,8 @@ else $as_nop lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac - + ;; +esac fi to_host_file_cmd=$lt_cv_to_host_file_cmd @@ -8402,8 +8135,8 @@ printf %s "checking how to convert $build file names to toolchain format... " >& if test ${lt_cv_to_tool_file_cmd+y} then : printf %s "(cached) " >&6 -else $as_nop - #assume ordinary cross tools, or native build. +else case e in @%:@( + e) #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) @@ -8414,7 +8147,8 @@ case $host in esac ;; esac - + ;; +esac fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd @@ -8430,8 +8164,9 @@ printf %s "checking for $LD option to reload object files... " >&6; } if test ${lt_cv_ld_reload_flag+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_ld_reload_flag='-r' +else case e in @%:@( + e) lt_cv_ld_reload_flag='-r' ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } @@ -8472,15 +8207,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_FILECMD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$FILECMD"; then +else case e in @%:@( + e) if test -n "$FILECMD"; then ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8495,7 +8230,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi FILECMD=$ac_cv_prog_FILECMD if test -n "$FILECMD"; then @@ -8517,15 +8253,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_FILECMD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_FILECMD"; then +else case e in @%:@( + e) if test -n "$ac_ct_FILECMD"; then ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8540,7 +8276,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD if test -n "$ac_ct_FILECMD"; then @@ -8580,15 +8317,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OBJDUMP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$OBJDUMP"; then +else case e in @%:@( + e) if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8603,7 +8340,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then @@ -8625,15 +8363,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OBJDUMP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_OBJDUMP"; then +else case e in @%:@( + e) if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8648,7 +8386,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then @@ -8686,8 +8425,8 @@ printf %s "checking how to recognize dependent libraries... " >&6; } if test ${lt_cv_deplibs_check_method+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_file_magic_cmd='$MAGIC_CMD' +else case e in @%:@( + e) lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support @@ -8880,7 +8619,8 @@ os2*) lt_cv_deplibs_check_method=pass_all ;; esac - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } @@ -8932,15 +8672,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DLLTOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DLLTOOL"; then +else case e in @%:@( + e) if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8955,7 +8695,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then @@ -8977,15 +8718,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DLLTOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_DLLTOOL"; then +else case e in @%:@( + e) if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9000,7 +8741,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then @@ -9039,8 +8781,8 @@ printf %s "checking how to associate runtime and link libraries... " >&6; } if test ${lt_cv_sharedlib_from_linklib_cmd+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_sharedlib_from_linklib_cmd='unknown' +else case e in @%:@( + e) lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) @@ -9060,7 +8802,8 @@ cygwin* | mingw* | pw32* | cegcc*) lt_cv_sharedlib_from_linklib_cmd=$ECHO ;; esac - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } @@ -9083,15 +8826,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AR"; then +else case e in @%:@( + e) if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9106,7 +8849,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi AR=$ac_cv_prog_AR if test -n "$AR"; then @@ -9132,15 +8876,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_AR"; then +else case e in @%:@( + e) if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9155,7 +8899,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then @@ -9217,8 +8962,8 @@ printf %s "checking for archiver @FILE support... " >&6; } if test ${lt_cv_ar_at_file+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_ar_at_file=no +else case e in @%:@( + e) lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -9255,7 +9000,8 @@ then : fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 printf "%s\n" "$lt_cv_ar_at_file" >&6; } @@ -9280,15 +9026,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$STRIP"; then +else case e in @%:@( + e) if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9303,7 +9049,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then @@ -9325,15 +9072,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_STRIP"; then +else case e in @%:@( + e) if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9348,7 +9095,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then @@ -9389,15 +9137,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_RANLIB+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$RANLIB"; then +else case e in @%:@( + e) if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9412,7 +9160,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then @@ -9434,15 +9183,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_RANLIB+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_RANLIB"; then +else case e in @%:@( + e) if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9457,7 +9206,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then @@ -9568,8 +9318,8 @@ printf %s "checking command to parse $NM output from $compiler object... " >&6; if test ${lt_cv_sys_global_symbol_pipe+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in @%:@( + e) # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] @@ -9824,7 +9574,8 @@ _LT_EOF lt_cv_sys_global_symbol_pipe= fi done - + ;; +esac fi if test -z "$lt_cv_sys_global_symbol_pipe"; then @@ -9888,8 +9639,9 @@ printf %s "checking for sysroot... " >&6; } if test ${with_sysroot+y} then : withval=$with_sysroot; -else $as_nop - with_sysroot=no +else case e in @%:@( + e) with_sysroot=no ;; +esac fi @@ -9924,8 +9676,8 @@ printf %s "checking for a working dd... " >&6; } if test ${ac_cv_path_lt_DD+y} then : printf %s "(cached) " >&6 -else $as_nop - printf 0123456789abcdef0123456789abcdef >conftest.i +else case e in @%:@( + e) printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} if test -z "$lt_DD"; then @@ -9935,7 +9687,7 @@ if test -z "$lt_DD"; then for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9961,7 +9713,8 @@ else ac_cv_path_lt_DD=$lt_DD fi -rm -f conftest.i conftest2.i conftest.out +rm -f conftest.i conftest2.i conftest.out ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } @@ -9972,8 +9725,8 @@ printf %s "checking how to truncate binary pipes... " >&6; } if test ${lt_cv_truncate_bin+y} then : printf %s "(cached) " >&6 -else $as_nop - printf 0123456789abcdef0123456789abcdef >conftest.i +else case e in @%:@( + e) printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then @@ -9981,7 +9734,8 @@ if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; the && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" fi rm -f conftest.i conftest2.i conftest.out -test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" +test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 printf "%s\n" "$lt_cv_truncate_bin" >&6; } @@ -10191,8 +9945,8 @@ printf %s "checking whether the C compiler needs -belf... " >&6; } if test ${lt_cv_cc_needs_belf+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_ext=c +else case e in @%:@( + e) 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' @@ -10212,8 +9966,9 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_cc_needs_belf=yes -else $as_nop - lt_cv_cc_needs_belf=no +else case e in @%:@( + e) lt_cv_cc_needs_belf=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -10222,7 +9977,8 @@ 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 - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } @@ -10280,15 +10036,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_MANIFEST_TOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$MANIFEST_TOOL"; then +else case e in @%:@( + e) if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10303,7 +10059,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then @@ -10325,15 +10082,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_MANIFEST_TOOL"; then +else case e in @%:@( + e) if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10348,7 +10105,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then @@ -10380,15 +10138,16 @@ printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } if test ${lt_cv_path_mainfest_tool+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_path_mainfest_tool=no +else case e in @%:@( + e) lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&5 if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi - rm -f conftest* + rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } @@ -10411,15 +10170,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DSYMUTIL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DSYMUTIL"; then +else case e in @%:@( + e) if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10434,7 +10193,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then @@ -10456,15 +10216,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_DSYMUTIL"; then +else case e in @%:@( + e) if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10479,7 +10239,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then @@ -10513,15 +10274,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_NMEDIT+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$NMEDIT"; then +else case e in @%:@( + e) if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10536,7 +10297,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then @@ -10558,15 +10320,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_NMEDIT+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_NMEDIT"; then +else case e in @%:@( + e) if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10581,7 +10343,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then @@ -10615,15 +10378,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_LIPO+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$LIPO"; then +else case e in @%:@( + e) if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10638,7 +10401,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then @@ -10660,15 +10424,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_LIPO+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_LIPO"; then +else case e in @%:@( + e) if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10683,7 +10447,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then @@ -10717,15 +10482,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OTOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$OTOOL"; then +else case e in @%:@( + e) if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10740,7 +10505,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then @@ -10762,15 +10528,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OTOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_OTOOL"; then +else case e in @%:@( + e) if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10785,7 +10551,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then @@ -10819,15 +10586,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OTOOL64+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$OTOOL64"; then +else case e in @%:@( + e) if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10842,7 +10609,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then @@ -10864,15 +10632,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OTOOL64+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_OTOOL64"; then +else case e in @%:@( + e) if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10887,7 +10655,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then @@ -10944,8 +10713,8 @@ printf %s "checking for -single_module linker flag... " >&6; } if test ${lt_cv_apple_cc_single_mod+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_apple_cc_single_mod=no +else case e in @%:@( + e) lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE @@ -10971,7 +10740,8 @@ else $as_nop fi rm -rf libconftest.dylib* rm -f conftest.* - fi + fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } @@ -10981,8 +10751,8 @@ printf %s "checking for -exported_symbols_list linker flag... " >&6; } if test ${lt_cv_ld_exported_symbols_list+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_ld_exported_symbols_list=no +else case e in @%:@( + e) lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" @@ -11000,13 +10770,15 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_ld_exported_symbols_list=yes -else $as_nop - lt_cv_ld_exported_symbols_list=no +else case e in @%:@( + e) lt_cv_ld_exported_symbols_list=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } @@ -11016,8 +10788,8 @@ printf %s "checking for -force_load linker flag... " >&6; } if test ${lt_cv_ld_force_load+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_ld_force_load=no +else case e in @%:@( + e) lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF @@ -11042,7 +10814,8 @@ _LT_EOF fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 printf "%s\n" "$lt_cv_ld_force_load" >&6; } @@ -11135,255 +10908,598 @@ func_stripname_cnf () # Set options +enable_dlopen=yes +enable_win32_dll=yes - - - - - @%:@ Check whether --enable-shared was given. -if test ${enable_shared+y} +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. +set dummy ${ac_tool_prefix}as; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_AS+y} then : - enableval=$enable_shared; p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS=$lt_save_ifs - ;; - esac -else $as_nop - enable_shared=yes -fi - - - - - - - - + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test -n "$AS"; then + ac_cv_prog_AS="$AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_AS="${ac_tool_prefix}as" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - @%:@ Check whether --enable-static was given. -if test ${enable_static+y} -then : - enableval=$enable_static; p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS=$lt_save_ifs - ;; - esac -else $as_nop - enable_static=yes +fi ;; +esac fi - - - - - - - - - - -@%:@ Check whether --with-pic was given. -if test ${with_pic+y} -then : - withval=$with_pic; lt_p=${PACKAGE-default} - case $withval in - yes|no) pic_mode=$withval ;; - *) - pic_mode=default - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for lt_pkg in $withval; do - IFS=$lt_save_ifs - if test "X$lt_pkg" = "X$lt_p"; then - pic_mode=yes - fi - done - IFS=$lt_save_ifs - ;; - esac -else $as_nop - pic_mode=default +AS=$ac_cv_prog_AS +if test -n "$AS"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 +printf "%s\n" "$AS" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - - - - - - - @%:@ Check whether --enable-fast-install was given. -if test ${enable_fast_install+y} -then : - enableval=$enable_fast_install; p=${PACKAGE-default} - case $enableval in - yes) enable_fast_install=yes ;; - no) enable_fast_install=no ;; - *) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS=$lt_save_ifs - ;; - esac -else $as_nop - enable_fast_install=yes fi - - - - - - - - - shared_archive_member_spec= -case $host,$enable_shared in -power*-*-aix[5-9]*,yes) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 -printf %s "checking which variant of shared library versioning to provide... " >&6; } - -@%:@ Check whether --with-aix-soname was given. -if test ${with_aix_soname+y} -then : - withval=$with_aix_soname; case $withval in - aix|svr4|both) - ;; - *) - as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 - ;; - esac - lt_cv_with_aix_soname=$with_aix_soname -else $as_nop - if test ${lt_cv_with_aix_soname+y} +if test -z "$ac_cv_prog_AS"; then + ac_ct_AS=$AS + # Extract the first word of "as", so it can be a program name with args. +set dummy as; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_AS+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_with_aix_soname=aix +else case e in @%:@( + e) if test -n "$ac_ct_AS"; then + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_AS="as" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi ;; +esac +fi +ac_ct_AS=$ac_cv_prog_ac_ct_AS +if test -n "$ac_ct_AS"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 +printf "%s\n" "$ac_ct_AS" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - with_aix_soname=$lt_cv_with_aix_soname + if test "x$ac_ct_AS" = x; then + AS="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AS=$ac_ct_AS + fi +else + AS="$ac_cv_prog_AS" fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 -printf "%s\n" "$with_aix_soname" >&6; } - if test aix != "$with_aix_soname"; then - # For the AIX way of multilib, we name the shared archive member - # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', - # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. - # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, - # the AIX toolchain works better with OBJECT_MODE set (default 32). - if test 64 = "${OBJECT_MODE-32}"; then - shared_archive_member_spec=shr_64 - else - shared_archive_member_spec=shr - fi + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_DLLTOOL+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_DLLTOOL="${ac_tool_prefix}dlltool" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 fi - ;; -*) - with_aix_soname=aix - ;; +done + done +IFS=$as_save_IFS + +fi ;; esac +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +printf "%s\n" "$DLLTOOL" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi - - - +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_DLLTOOL+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_DLLTOOL="dlltool" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS +fi ;; +esac +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +printf "%s\n" "$ac_ct_DLLTOOL" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi - + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_OBJDUMP+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_OBJDUMP="${ac_tool_prefix}objdump" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS +fi ;; +esac +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +printf "%s\n" "$OBJDUMP" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS=$ltmain -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_OBJDUMP+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_OBJDUMP="objdump" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi ;; +esac +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +printf "%s\n" "$ac_ct_OBJDUMP" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + ;; +esac +test -z "$AS" && AS=as - - - +test -z "$DLLTOOL" && DLLTOOL=dlltool - - - +test -z "$OBJDUMP" && OBJDUMP=objdump - - - - - - -test -z "$LN_S" && LN_S="ln -s" - - - + + + @%:@ Check whether --enable-shared was given. +if test ${enable_shared+y} +then : + enableval=$enable_shared; p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS=$lt_save_ifs + ;; + esac +else case e in @%:@( + e) enable_shared=yes ;; +esac +fi - - - + -if test -n "${ZSH_VERSION+set}"; then - setopt NO_GLOB_SUBST -fi + + @%:@ Check whether --enable-static was given. +if test ${enable_static+y} +then : + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS=$lt_save_ifs + ;; + esac +else case e in @%:@( + e) enable_static=yes ;; +esac +fi + + + + + + + + + + +@%:@ Check whether --with-pic was given. +if test ${with_pic+y} +then : + withval=$with_pic; lt_p=${PACKAGE-default} + case $withval in + yes|no) pic_mode=$withval ;; + *) + pic_mode=default + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for lt_pkg in $withval; do + IFS=$lt_save_ifs + if test "X$lt_pkg" = "X$lt_p"; then + pic_mode=yes + fi + done + IFS=$lt_save_ifs + ;; + esac +else case e in @%:@( + e) pic_mode=default ;; +esac +fi + + + + + + + + + @%:@ Check whether --enable-fast-install was given. +if test ${enable_fast_install+y} +then : + enableval=$enable_fast_install; p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS=$lt_save_ifs + ;; + esac +else case e in @%:@( + e) enable_fast_install=yes ;; +esac +fi + + + + + + + + + shared_archive_member_spec= +case $host,$enable_shared in +power*-*-aix[5-9]*,yes) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 +printf %s "checking which variant of shared library versioning to provide... " >&6; } + +@%:@ Check whether --with-aix-soname was given. +if test ${with_aix_soname+y} +then : + withval=$with_aix_soname; case $withval in + aix|svr4|both) + ;; + *) + as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 + ;; + esac + lt_cv_with_aix_soname=$with_aix_soname +else case e in @%:@( + e) if test ${lt_cv_with_aix_soname+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) lt_cv_with_aix_soname=aix ;; +esac +fi + + with_aix_soname=$lt_cv_with_aix_soname ;; +esac +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 +printf "%s\n" "$with_aix_soname" >&6; } + if test aix != "$with_aix_soname"; then + # For the AIX way of multilib, we name the shared archive member + # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', + # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. + # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, + # the AIX toolchain works better with OBJECT_MODE set (default 32). + if test 64 = "${OBJECT_MODE-32}"; then + shared_archive_member_spec=shr_64 + else + shared_archive_member_spec=shr + fi + fi + ;; +*) + with_aix_soname=aix + ;; +esac + + + + + + + + + + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS=$ltmain + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +test -z "$LN_S" && LN_S="ln -s" + + + + + + + + + + + + + + +if test -n "${ZSH_VERSION+set}"; then + setopt NO_GLOB_SUBST +fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 printf %s "checking for objdir... " >&6; } if test ${lt_cv_objdir+y} then : printf %s "(cached) " >&6 -else $as_nop - rm -f .libs 2>/dev/null +else case e in @%:@( + e) rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs @@ -11391,7 +11507,8 @@ else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi -rmdir .libs 2>/dev/null +rmdir .libs 2>/dev/null ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 printf "%s\n" "$lt_cv_objdir" >&6; } @@ -11452,8 +11569,8 @@ printf %s "checking for ${ac_tool_prefix}file... " >&6; } if test ${lt_cv_path_MAGIC_CMD+y} then : printf %s "(cached) " >&6 -else $as_nop - case $MAGIC_CMD in +else case e in @%:@( + e) case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; @@ -11496,6 +11613,7 @@ _LT_EOF IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; +esac ;; esac fi @@ -11519,8 +11637,8 @@ printf %s "checking for file... " >&6; } if test ${lt_cv_path_MAGIC_CMD+y} then : printf %s "(cached) " >&6 -else $as_nop - case $MAGIC_CMD in +else case e in @%:@( + e) case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; @@ -11563,6 +11681,7 @@ _LT_EOF IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; +esac ;; esac fi @@ -11662,8 +11781,8 @@ printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if test ${lt_cv_prog_compiler_rtti_exceptions+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_rtti_exceptions=no +else case e in @%:@( + e) lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment @@ -11691,7 +11810,8 @@ else $as_nop fi fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } @@ -12056,8 +12176,9 @@ printf %s "checking for $compiler option to produce PIC... " >&6; } if test ${lt_cv_prog_compiler_pic+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_pic=$lt_prog_compiler_pic +else case e in @%:@( + e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } @@ -12072,8 +12193,8 @@ printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; if test ${lt_cv_prog_compiler_pic_works+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_pic_works=no +else case e in @%:@( + e) lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment @@ -12101,7 +12222,8 @@ else $as_nop fi fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } @@ -12137,8 +12259,8 @@ printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; if test ${lt_cv_prog_compiler_static_works+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_static_works=no +else case e in @%:@( + e) lt_cv_prog_compiler_static_works=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext @@ -12159,7 +12281,8 @@ else $as_nop fi $RM -r conftest* LDFLAGS=$save_LDFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } @@ -12181,8 +12304,8 @@ printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_c_o=no +else case e in @%:@( + e) lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest @@ -12222,7 +12345,8 @@ else $as_nop cd .. $RM -r conftest $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } @@ -12237,8 +12361,8 @@ printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_c_o=no +else case e in @%:@( + e) lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest @@ -12278,7 +12402,8 @@ else $as_nop cd .. $RM -r conftest $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } @@ -12873,8 +12998,8 @@ else if test ${lt_cv_aix_libpath_+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -12906,7 +13031,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi - + ;; +esac fi aix_libpath=$lt_cv_aix_libpath_ @@ -12928,8 +13054,8 @@ else if test ${lt_cv_aix_libpath_+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -12961,7 +13087,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi - + ;; +esac fi aix_libpath=$lt_cv_aix_libpath_ @@ -13212,8 +13339,8 @@ printf %s "checking if $CC understands -b... " >&6; } if test ${lt_cv_prog_compiler__b+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler__b=no +else case e in @%:@( + e) lt_cv_prog_compiler__b=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -b" echo "$lt_simple_link_test_code" > conftest.$ac_ext @@ -13234,7 +13361,8 @@ else $as_nop fi $RM -r conftest* LDFLAGS=$save_LDFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } @@ -13282,8 +13410,8 @@ printf %s "checking whether the $host_os linker accepts -exported_symbol... " >& if test ${lt_cv_irix_exported_symbol+y} then : printf %s "(cached) " >&6 -else $as_nop - save_LDFLAGS=$LDFLAGS +else case e in @%:@( + e) save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -13292,12 +13420,14 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_irix_exported_symbol=yes -else $as_nop - lt_cv_irix_exported_symbol=no +else case e in @%:@( + e) lt_cv_irix_exported_symbol=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - LDFLAGS=$save_LDFLAGS + LDFLAGS=$save_LDFLAGS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } @@ -13623,8 +13753,8 @@ printf %s "checking whether -lc should be explicitly linked in... " >&6; } if test ${lt_cv_archive_cmds_need_lc+y} then : printf %s "(cached) " >&6 -else $as_nop - $RM conftest* +else case e in @%:@( + e) $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 @@ -13660,7 +13790,8 @@ else $as_nop cat conftest.err 1>&5 fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } @@ -14387,8 +14518,8 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) if test ${lt_cv_shlibpath_overrides_runpath+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_shlibpath_overrides_runpath=no +else case e in @%:@( + e) lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ @@ -14415,7 +14546,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir - + ;; +esac fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath @@ -14840,16 +14972,22 @@ printf %s "checking for dlopen in -ldl... " >&6; } if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in @%:@( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $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. */ -char dlopen (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (void); int main (void) { @@ -14861,24 +14999,27 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes -else $as_nop - ac_cv_lib_dl_dlopen=no +else case e in @%:@( + e) ac_cv_lib_dl_dlopen=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl -else $as_nop - +else case e in @%:@( + e) lt_cv_dlopen=dyld lt_cv_dlopen_libs= lt_cv_dlopen_self=yes - + ;; +esac fi ;; @@ -14896,22 +15037,28 @@ fi if test "x$ac_cv_func_shl_load" = xyes then : lt_cv_dlopen=shl_load -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 printf %s "checking for shl_load in -ldld... " >&6; } if test ${ac_cv_lib_dld_shl_load+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in @%:@( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $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. */ -char shl_load (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (void); int main (void) { @@ -14923,39 +15070,47 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dld_shl_load=yes -else $as_nop - ac_cv_lib_dld_shl_load=no +else case e in @%:@( + e) ac_cv_lib_dld_shl_load=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = xyes then : lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld -else $as_nop - ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +else case e in @%:@( + e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes then : lt_cv_dlopen=dlopen -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 printf %s "checking for dlopen in -ldl... " >&6; } if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in @%:@( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $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. */ -char dlopen (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (void); int main (void) { @@ -14967,34 +15122,42 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes -else $as_nop - ac_cv_lib_dl_dlopen=no +else case e in @%:@( + e) ac_cv_lib_dl_dlopen=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 printf %s "checking for dlopen in -lsvld... " >&6; } if test ${ac_cv_lib_svld_dlopen+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in @%:@( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $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. */ -char dlopen (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (void); int main (void) { @@ -15006,34 +15169,42 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_svld_dlopen=yes -else $as_nop - ac_cv_lib_svld_dlopen=no +else case e in @%:@( + e) ac_cv_lib_svld_dlopen=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = xyes then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 printf %s "checking for dld_link in -ldld... " >&6; } if test ${ac_cv_lib_dld_dld_link+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in @%:@( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $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. */ -char dld_link (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (void); int main (void) { @@ -15045,12 +15216,14 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dld_dld_link=yes -else $as_nop - ac_cv_lib_dld_dld_link=no +else case e in @%:@( + e) ac_cv_lib_dld_dld_link=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } @@ -15059,19 +15232,24 @@ then : lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld fi - + ;; +esac fi - + ;; +esac fi - + ;; +esac fi - + ;; +esac fi - + ;; +esac fi ;; @@ -15099,8 +15277,8 @@ printf %s "checking whether a program can dlopen itself... " >&6; } if test ${lt_cv_dlopen_self+y} then : printf %s "(cached) " >&6 -else $as_nop - if test yes = "$cross_compiling"; then : +else case e in @%:@( + e) if test yes = "$cross_compiling"; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 @@ -15194,7 +15372,8 @@ _LT_EOF fi rm -fr conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 printf "%s\n" "$lt_cv_dlopen_self" >&6; } @@ -15206,8 +15385,8 @@ printf %s "checking whether a statically linked program can dlopen itself... " > if test ${lt_cv_dlopen_self_static+y} then : printf %s "(cached) " >&6 -else $as_nop - if test yes = "$cross_compiling"; then : +else case e in @%:@( + e) if test yes = "$cross_compiling"; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 @@ -15301,7 +15480,8 @@ _LT_EOF fi rm -fr conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } @@ -15459,8 +15639,8 @@ if test -z "$CXXCPP"; then if test ${ac_cv_prog_CXXCPP+y} then : printf %s "(cached) " >&6 -else $as_nop - # Double quotes because $CXX needs to be expanded +else case e in @%:@( + e) # Double quotes because $CXX needs to be expanded for CXXCPP in "$CXX -E" cpp /lib/cpp do ac_preproc_ok=false @@ -15478,9 +15658,10 @@ _ACEOF if ac_fn_cxx_try_cpp "$LINENO" then : -else $as_nop - # Broken: fails on valid input. -continue +else case e in @%:@( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -15494,15 +15675,16 @@ if ac_fn_cxx_try_cpp "$LINENO" then : # Broken: success on invalid input. continue -else $as_nop - # Passes both tests. +else case e in @%:@( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# 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 : @@ -15511,7 +15693,8 @@ fi done ac_cv_prog_CXXCPP=$CXXCPP - + ;; +esac fi CXXCPP=$ac_cv_prog_CXXCPP else @@ -15534,9 +15717,10 @@ _ACEOF if ac_fn_cxx_try_cpp "$LINENO" then : -else $as_nop - # Broken: fails on valid input. -continue +else case e in @%:@( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -15550,24 +15734,26 @@ if ac_fn_cxx_try_cpp "$LINENO" then : # Broken: success on invalid input. continue -else $as_nop - # Passes both tests. +else case e in @%:@( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# 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_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in @%:@( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi ac_ext=c @@ -15704,8 +15890,9 @@ cc_basename=$func_cc_basename_result if test ${with_gnu_ld+y} then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes -else $as_nop - with_gnu_ld=no +else case e in @%:@( + e) with_gnu_ld=no ;; +esac fi ac_prog=ld @@ -15750,8 +15937,8 @@ fi if test ${lt_cv_path_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$LD"; then +else case e in @%:@( + e) if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs @@ -15774,7 +15961,8 @@ else $as_nop IFS=$lt_save_ifs else lt_cv_path_LD=$LD # Let the user override the test with a path. -fi +fi ;; +esac fi LD=$lt_cv_path_LD @@ -15791,8 +15979,8 @@ printf %s "checking if the linker ($LD) is GNU ld... " >&6; } if test ${lt_cv_prog_gnu_ld+y} then : printf %s "(cached) " >&6 -else $as_nop - # I'd rather use --version here, but apparently some GNU lds only accept -v. +else case e in @%:@( + e) # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &1 &5 @@ -15999,8 +16188,8 @@ else if test ${lt_cv_aix_libpath__CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -16032,7 +16221,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib fi - + ;; +esac fi aix_libpath=$lt_cv_aix_libpath__CXX @@ -16055,8 +16245,8 @@ else if test ${lt_cv_aix_libpath__CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -16088,7 +16278,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib fi - + ;; +esac fi aix_libpath=$lt_cv_aix_libpath__CXX @@ -17460,8 +17651,9 @@ printf %s "checking for $compiler option to produce PIC... " >&6; } if test ${lt_cv_prog_compiler_pic_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX +else case e in @%:@( + e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; } @@ -17476,8 +17668,8 @@ printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " > if test ${lt_cv_prog_compiler_pic_works_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_pic_works_CXX=no +else case e in @%:@( + e) 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@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment @@ -17505,7 +17697,8 @@ else $as_nop fi fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } @@ -17535,8 +17728,8 @@ printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; if test ${lt_cv_prog_compiler_static_works_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_static_works_CXX=no +else case e in @%:@( + e) 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 @@ -17557,7 +17750,8 @@ else $as_nop fi $RM -r conftest* LDFLAGS=$save_LDFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } @@ -17576,8 +17770,8 @@ printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_c_o_CXX=no +else case e in @%:@( + e) lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest @@ -17617,7 +17811,8 @@ else $as_nop cd .. $RM -r conftest $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } @@ -17629,8 +17824,8 @@ printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_c_o_CXX=no +else case e in @%:@( + e) lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest @@ -17670,7 +17865,8 @@ else $as_nop cd .. $RM -r conftest $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } @@ -17775,8 +17971,8 @@ printf %s "checking whether -lc should be explicitly linked in... " >&6; } if test ${lt_cv_archive_cmds_need_lc_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - $RM conftest* +else case e in @%:@( + e) $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 @@ -17812,7 +18008,8 @@ else $as_nop cat conftest.err 1>&5 fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } @@ -18376,8 +18573,8 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) if test ${lt_cv_shlibpath_overrides_runpath+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_shlibpath_overrides_runpath=no +else case e in @%:@( + e) lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ @@ -18404,7 +18601,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir - + ;; +esac fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath @@ -18790,90 +18988,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu subdirs="$subdirs libltdl" -# Autoupdate added the next two lines to ensure that your configure -# script's behavior did not change. They are probably safe to remove. - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in egrep - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_EGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_EGREP=$EGREP -fi - - fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 printf %s "checking for an ANSI C-conforming const... " >&6; } if test ${ac_cv_c_const+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -18930,273 +19051,841 @@ main (void) return !cs[0] && !zero.x; #endif - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_c_const=yes +else case e in @%:@( + e) ac_cv_c_const=no ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +printf "%s\n" "$ac_cv_c_const" >&6; } +if test $ac_cv_c_const = no; then + +printf "%s\n" "@%:@define const /**/" >>confdefs.h + +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +printf %s "checking whether byte ordering is bigendian... " >&6; } +if test ${ac_cv_c_bigendian+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) ac_cv_c_bigendian=unknown + # See if we're dealing with a universal compiler. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __APPLE_CC__ + not a universal capable compiler + #endif + typedef int dummy; + +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + + # Check for potential -arch flags. It is not universal unless + # there are at least two -arch flags with different values. + ac_arch= + ac_prev= + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do + if test -n "$ac_prev"; then + case $ac_word in + i?86 | x86_64 | ppc | ppc64) + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then + ac_arch=$ac_word + else + ac_cv_c_bigendian=universal + break + fi + ;; + esac + ac_prev= + elif test "x$ac_word" = "x-arch"; then + ac_prev=arch + fi + done +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + if test $ac_cv_c_bigendian = unknown; then + # See if sys/param.h defines the BYTE_ORDER macro. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main (void) +{ +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\ + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\ + && LITTLE_ENDIAN) + bogus endian macros + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + # It does; now see whether it defined to BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main (void) +{ +#if BYTE_ORDER != BIG_ENDIAN + not big endian + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_c_bigendian=yes +else case e in @%:@( + e) ac_cv_c_bigendian=no ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main (void) +{ +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) + bogus endian macros + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + # It does; now see whether it defined to _BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main (void) +{ +#ifndef _BIG_ENDIAN + not big endian + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_c_bigendian=yes +else case e in @%:@( + e) ac_cv_c_bigendian=no ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # Compile a test program. + if test "$cross_compiling" = yes +then : + # Try to guess by grepping values from an object file. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +unsigned short int ascii_mm[] = + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; + unsigned short int ascii_ii[] = + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; + int use_ascii (int i) { + return ascii_mm[i] + ascii_ii[i]; + } + unsigned short int ebcdic_ii[] = + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; + unsigned short int ebcdic_mm[] = + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; + int use_ebcdic (int i) { + return ebcdic_mm[i] + ebcdic_ii[i]; + } + int + main (int argc, char **argv) + { + /* Intimidate the compiler so that it does not + optimize the arrays away. */ + char *p = argv[0]; + ascii_mm[1] = *p++; ebcdic_mm[1] = *p++; + ascii_ii[1] = *p++; ebcdic_ii[1] = *p++; + return use_ascii (argc) == use_ebcdic (*p); + } +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then + ac_cv_c_bigendian=yes + fi + if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then + if test "$ac_cv_c_bigendian" = unknown; then + ac_cv_c_bigendian=no + else + # finding both strings is unlikely to happen, but who knows? + ac_cv_c_bigendian=unknown + fi + fi +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main (void) +{ + + /* Are we little or big endian? From Harbison&Steele. */ + union + { + long int l; + char c[sizeof (long int)]; + } u; + u.l = 1; + return u.c[sizeof (long int) - 1] == 1; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO" +then : + ac_cv_c_bigendian=no +else case e in @%:@( + e) ac_cv_c_bigendian=yes ;; +esac +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac +fi + + fi ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 +printf "%s\n" "$ac_cv_c_bigendian" >&6; } + case $ac_cv_c_bigendian in #( + yes) + printf "%s\n" "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h +;; #( + no) + ;; #( + universal) + +printf "%s\n" "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h + + ;; #( + *) + as_fn_error $? "unknown endianness + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; + esac + + + ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default +" +if test "x$ac_cv_type_pid_t" = xyes +then : + +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #if defined _WIN64 && !defined __CYGWIN__ + LLP64 + #endif + +int +main (void) +{ + + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_pid_type='int' +else case e in @%:@( + e) ac_pid_type='__int64' ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + +printf "%s\n" "@%:@define pid_t $ac_pid_type" >>confdefs.h + + ;; +esac +fi + + +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = xyes then : - ac_cv_c_const=yes -else $as_nop - ac_cv_c_const=no + +else case e in @%:@( + e) +printf "%s\n" "@%:@define size_t unsigned int" >>confdefs.h + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + +ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" +if test "x$ac_cv_type_ssize_t" = xyes +then : + +printf "%s\n" "@%:@define HAVE_SSIZE_T 1" >>confdefs.h + + +else case e in @%:@( + e) +printf "%s\n" "@%:@define ssize_t signed long" >>confdefs.h + ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 -printf "%s\n" "$ac_cv_c_const" >&6; } -if test $ac_cv_c_const = no; then + +ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" +if test "x$ac_cv_type_off_t" = xyes +then : -printf "%s\n" "@%:@define const /**/" >>confdefs.h +else case e in @%:@( + e) +printf "%s\n" "@%:@define off_t long int" >>confdefs.h + ;; +esac +fi +ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default" +if test "x$ac_cv_type_uid_t" = xyes +then : + +else case e in @%:@( + e) +printf "%s\n" "@%:@define uid_t int" >>confdefs.h + ;; +esac fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 -printf %s "checking whether byte ordering is bigendian... " >&6; } -if test ${ac_cv_c_bigendian+y} +ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default" +if test "x$ac_cv_type_gid_t" = xyes +then : + +else case e in @%:@( + e) +printf "%s\n" "@%:@define gid_t int" >>confdefs.h + ;; +esac +fi + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 +printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } +if test ${ac_cv_c_undeclared_builtin_options+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_c_bigendian=unknown - # See if we're dealing with a universal compiler. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) ac_save_CFLAGS=$CFLAGS + ac_cv_c_undeclared_builtin_options='cannot detect' + for ac_arg in '' -fno-builtin; do + CFLAGS="$ac_save_CFLAGS $ac_arg" + # This test program should *not* compile successfully. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifndef __APPLE_CC__ - not a universal capable compiler - #endif - typedef int dummy; - + +int +main (void) +{ +(void) strchr; + ; + return 0; +} _ACEOF if ac_fn_c_try_compile "$LINENO" then : - # Check for potential -arch flags. It is not universal unless - # there are at least two -arch flags with different values. - ac_arch= - ac_prev= - for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do - if test -n "$ac_prev"; then - case $ac_word in - i?86 | x86_64 | ppc | ppc64) - if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then - ac_arch=$ac_word - else - ac_cv_c_bigendian=universal - break - fi - ;; - esac - ac_prev= - elif test "x$ac_word" = "x-arch"; then - ac_prev=arch - fi - done -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - if test $ac_cv_c_bigendian = unknown; then - # See if sys/param.h defines the BYTE_ORDER macro. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) # This test program should compile successfully. + # No library function is consistently available on + # freestanding implementations, so test against a dummy + # declaration. Include always-available headers on the + # off chance that they somehow elicit warnings. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - #include - +#include +#include +#include +#include +extern void ac_decl (int, char *); + int main (void) { -#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ - && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ - && LITTLE_ENDIAN) - bogus endian macros - #endif - +(void) ac_decl (0, (char *) 0); + (void) ac_decl; + ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : - # It does; now see whether it defined to BIG_ENDIAN or not. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + if test x"$ac_arg" = x +then : + ac_cv_c_undeclared_builtin_options='none needed' +else case e in @%:@( + e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; +esac +fi + break +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + done + CFLAGS=$ac_save_CFLAGS + ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 +printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } + case $ac_cv_c_undeclared_builtin_options in @%:@( + 'cannot detect') : + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} +as_fn_error $? "cannot make $CC report undeclared builtins +See 'config.log' for more details" "$LINENO" 5; } ;; @%:@( + 'none needed') : + ac_c_undeclared_builtin_options='' ;; @%:@( + *) : + ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; +esac + +ac_fn_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_environ" = xyes +then : + ac_have_decl=1 +else case e in @%:@( + e) ac_have_decl=0 ;; +esac +fi +printf "%s\n" "@%:@define HAVE_DECL_ENVIRON $ac_have_decl" >>confdefs.h + + +ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" +if test "x$ac_cv_header_byteswap_h" = xyes +then : + printf "%s\n" "@%:@define HAVE_BYTESWAP_H 1" >>confdefs.h + +fi + +ac_fn_c_check_func "$LINENO" "__builtin_bswap16" "ac_cv_func___builtin_bswap16" +if test "x$ac_cv_func___builtin_bswap16" = xyes +then : + printf "%s\n" "@%:@define HAVE___BUILTIN_BSWAP16 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "__builtin_bswap32" "ac_cv_func___builtin_bswap32" +if test "x$ac_cv_func___builtin_bswap32" = xyes +then : + printf "%s\n" "@%:@define HAVE___BUILTIN_BSWAP32 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "__builtin_bswap64" "ac_cv_func___builtin_bswap64" +if test "x$ac_cv_func___builtin_bswap64" = xyes +then : + printf "%s\n" "@%:@define HAVE___BUILTIN_BSWAP64 1" >>confdefs.h + +fi + + +for flag in -Wall -Wsign-compare -Wno-stringop-overflow -fvisibility=hidden; do + as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_-pedantic -Werror_$flag" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 +printf %s "checking whether C compiler accepts $flag... " >&6; } +if eval test \${$as_CACHEVAR+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -pedantic -Werror $flag" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - #include - + int main (void) { -#if BYTE_ORDER != BIG_ENDIAN - not big endian - #endif - + ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : - ac_cv_c_bigendian=yes -else $as_nop - ac_cv_c_bigendian=no + eval "$as_CACHEVAR=yes" +else case e in @%:@( + e) eval "$as_CACHEVAR=no" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - fi - if test $ac_cv_c_bigendian = unknown; then - # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +eval ac_res=\$$as_CACHEVAR + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_CACHEVAR"\" = x"\"yes\"" +then : + +if test ${CFLAGS+y} +then : + if printf "%s\n" " $CFLAGS " | $GREP " $flag " 2>&1 >/dev/null +then : + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 + (: CFLAGS already contains $flag) 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +else case e in @%:@( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 + (: CFLAGS="$CFLAGS $flag") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + as_fn_append CFLAGS " $flag" ;; +esac +fi +else case e in @%:@( + e) CFLAGS=$flag ;; +esac +fi + +else case e in @%:@( + e) : ;; +esac +fi + +done + + +if test "x$ax_enable_debug" != "xyes" ; then + CFLAGS="$CFLAGS -O2" +fi + +# need that as conditional because some internal tools compile as static +# to have access to internal libfyaml APIs +if test "x$enable_static" = "xyes" ; then +HAVE_STATIC=1 +else +HAVE_STATIC=0 +fi + + +printf "%s\n" "@%:@define HAVE_STATIC $HAVE_STATIC" >>confdefs.h + + if test x$HAVE_STATIC = x1 ; then + HAVE_STATIC_TRUE= + HAVE_STATIC_FALSE='#' +else + HAVE_STATIC_TRUE='#' + HAVE_STATIC_FALSE= +fi + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstringop-overread" >&5 +printf %s "checking whether C compiler accepts -Wstringop-overread... " >&6; } +if test ${ax_cv_check_cflags__Werror__Wstringop_overread+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wstringop-overread" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - + int main (void) { -#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) - bogus endian macros - #endif - + ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : - # It does; now see whether it defined to _BIG_ENDIAN or not. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + ax_cv_check_cflags__Werror__Wstringop_overread=yes +else case e in @%:@( + e) ax_cv_check_cflags__Werror__Wstringop_overread=no ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wstringop_overread" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__Wstringop_overread" >&6; } +if test "x$ax_cv_check_cflags__Werror__Wstringop_overread" = x"yes" +then : + : +else case e in @%:@( + e) : ;; +esac +fi + +if test "x$ax_cv_check_cflags__Werror__wstringop_overread" = x"yes" +then : + HAVE_WSTRINGOP_OVERREAD=1 +else case e in @%:@( + e) HAVE_WSTRINGOP_OVERREAD=0 ;; +esac +fi + +printf "%s\n" "@%:@define HAVE_WSTRINGOP_OVERREAD $HAVE_WSTRINGOP_OVERREAD" >>confdefs.h + + +@%:@ Check whether --enable-portable-target was given. +if test ${enable_portable_target+y} +then : + enableval=$enable_portable_target; +fi + +HAVE_PORTABLE_TARGET=0 +if test "x$enable_portable_target" == "xyes"; then + HAVE_PORTABLE_TARGET=1 +fi + + +printf "%s\n" "@%:@define HAVE_PORTABLE_TARGET $HAVE_PORTABLE_TARGET" >>confdefs.h + + if test x$HAVE_PORTABLE_TARGET == x1 ; then + HAVE_PORTABLE_TARGET_TRUE= + HAVE_PORTABLE_TARGET_FALSE='#' +else + HAVE_PORTABLE_TARGET_TRUE='#' + HAVE_PORTABLE_TARGET_FALSE= +fi + + + if test x$target_cpu = xx86 ; then + TARGET_CPU_X86_TRUE= + TARGET_CPU_X86_FALSE='#' +else + TARGET_CPU_X86_TRUE='#' + TARGET_CPU_X86_FALSE= +fi + + if test x$target_cpu = xx86_64 ; then + TARGET_CPU_X86_64_TRUE= + TARGET_CPU_X86_64_FALSE='#' +else + TARGET_CPU_X86_64_TRUE='#' + TARGET_CPU_X86_64_FALSE= +fi + + if test x$target_cpu = xx86 -o x$target_cpu = xx86_64 ; then + TARGET_CPU_ANY_X86_TRUE= + TARGET_CPU_ANY_X86_FALSE='#' +else + TARGET_CPU_ANY_X86_TRUE='#' + TARGET_CPU_ANY_X86_FALSE= +fi + + if test x$target_cpu = xarm ; then + TARGET_CPU_ARM_TRUE= + TARGET_CPU_ARM_FALSE='#' +else + TARGET_CPU_ARM_TRUE='#' + TARGET_CPU_ARM_FALSE= +fi + + if test x$target_cpu = xaarch64 ; then + TARGET_CPU_ARM64_TRUE= + TARGET_CPU_ARM64_FALSE='#' +else + TARGET_CPU_ARM64_TRUE='#' + TARGET_CPU_ARM64_FALSE= +fi + + if test x$target_cpu = xarm -o x$target_cpu = xaarch64 ; then + TARGET_CPU_ANY_ARM_TRUE= + TARGET_CPU_ANY_ARM_FALSE='#' +else + TARGET_CPU_ANY_ARM_TRUE='#' + TARGET_CPU_ANY_ARM_FALSE= +fi + + +if test -z "$TARGET_CPU_ANY_X86_TRUE"; then : + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse2" >&5 +printf %s "checking whether C compiler accepts -msse2... " >&6; } +if test ${ax_cv_check_cflags__Werror__msse2+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -msse2" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - + int main (void) { -#ifndef _BIG_ENDIAN - not big endian - #endif - + ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : - ac_cv_c_bigendian=yes -else $as_nop - ac_cv_c_bigendian=no + ax_cv_check_cflags__Werror__msse2=yes +else case e in @%:@( + e) ax_cv_check_cflags__Werror__msse2=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - fi - if test $ac_cv_c_bigendian = unknown; then - # Compile a test program. - if test "$cross_compiling" = yes +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__msse2" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__msse2" >&6; } +if test "x$ax_cv_check_cflags__Werror__msse2" = x"yes" then : - # Try to guess by grepping values from an object file. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + : +else case e in @%:@( + e) : ;; +esac +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.1" >&5 +printf %s "checking whether C compiler accepts -msse4.1... " >&6; } +if test ${ax_cv_check_cflags__Werror__msse4_1+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -msse4.1" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -unsigned short int ascii_mm[] = - { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; - unsigned short int ascii_ii[] = - { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; - int use_ascii (int i) { - return ascii_mm[i] + ascii_ii[i]; - } - unsigned short int ebcdic_ii[] = - { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; - unsigned short int ebcdic_mm[] = - { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; - int use_ebcdic (int i) { - return ebcdic_mm[i] + ebcdic_ii[i]; - } - extern int foo; - + int main (void) { -return use_ascii (foo) == use_ebcdic (foo); + ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : - if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then - ac_cv_c_bigendian=yes - fi - if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then - if test "$ac_cv_c_bigendian" = unknown; then - ac_cv_c_bigendian=no - else - # finding both strings is unlikely to happen, but who knows? - ac_cv_c_bigendian=unknown - fi - fi + ax_cv_check_cflags__Werror__msse4_1=yes +else case e in @%:@( + e) ax_cv_check_cflags__Werror__msse4_1=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -else $as_nop + CFLAGS=$ax_check_save_flags ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__msse4_1" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__msse4_1" >&6; } +if test "x$ax_cv_check_cflags__Werror__msse4_1" = x"yes" +then : + : +else case e in @%:@( + e) : ;; +esac +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5 +printf %s "checking whether C compiler accepts -mavx2... " >&6; } +if test ${ax_cv_check_cflags__Werror__mavx2+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -mavx2" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default + int main (void) { - /* Are we little or big endian? From Harbison&Steele. */ - union - { - long int l; - char c[sizeof (long int)]; - } u; - u.l = 1; - return u.c[sizeof (long int) - 1] == 1; - ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO" +if ac_fn_c_try_compile "$LINENO" then : - ac_cv_c_bigendian=no -else $as_nop - ac_cv_c_bigendian=yes + ax_cv_check_cflags__Werror__mavx2=yes +else case e in @%:@( + e) ax_cv_check_cflags__Werror__mavx2=no ;; +esac fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi - - fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__mavx2" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__mavx2" >&6; } +if test "x$ax_cv_check_cflags__Werror__mavx2" = x"yes" +then : + : +else case e in @%:@( + e) : ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 -printf "%s\n" "$ac_cv_c_bigendian" >&6; } - case $ac_cv_c_bigendian in #( - yes) - printf "%s\n" "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h -;; #( - no) - ;; #( - universal) - -printf "%s\n" "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h - ;; #( - *) - as_fn_error $? "unknown endianness - presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; - esac - - - ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default -" -if test "x$ac_cv_type_pid_t" = xyes + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx512f -mavx512vl" >&5 +printf %s "checking whether C compiler accepts -mavx512f -mavx512vl... " >&6; } +if test ${ax_cv_check_cflags__Werror__mavx512f__mavx512vl+y} then : - -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + printf %s "(cached) " >&6 +else case e in @%:@( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -mavx512f -mavx512vl" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - #if defined _WIN64 && !defined __CYGWIN__ - LLP64 - #endif - int main (void) { @@ -19204,221 +19893,180 @@ main (void) ; return 0; } - _ACEOF if ac_fn_c_try_compile "$LINENO" then : - ac_pid_type='int' -else $as_nop - ac_pid_type='__int64' + ax_cv_check_cflags__Werror__mavx512f__mavx512vl=yes +else case e in @%:@( + e) ax_cv_check_cflags__Werror__mavx512f__mavx512vl=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - -printf "%s\n" "@%:@define pid_t $ac_pid_type" >>confdefs.h - - + CFLAGS=$ax_check_save_flags ;; +esac fi - - -ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" -if test "x$ac_cv_type_size_t" = xyes +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__mavx512f__mavx512vl" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__mavx512f__mavx512vl" >&6; } +if test "x$ax_cv_check_cflags__Werror__mavx512f__mavx512vl" = x"yes" then : - -else $as_nop - -printf "%s\n" "@%:@define size_t unsigned int" >>confdefs.h - + : +else case e in @%:@( + e) : ;; +esac fi -ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" -if test "x$ac_cv_type_ssize_t" = xyes -then : - -printf "%s\n" "@%:@define HAVE_SSIZE_T 1" >>confdefs.h - - -else $as_nop - -printf "%s\n" "@%:@define ssize_t signed long" >>confdefs.h + fi -ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" -if test "x$ac_cv_type_off_t" = xyes -then : - -else $as_nop +if test -z "$TARGET_CPU_ARM_TRUE"; then : -printf "%s\n" "@%:@define off_t long int" >>confdefs.h - -fi - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 -printf %s "checking return type of signal handlers... " >&6; } -if test ${ac_cv_type_signal+y} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfpu=neon" >&5 +printf %s "checking whether C compiler accepts -mfpu=neon... " >&6; } +if test ${ax_cv_check_cflags__Werror__mfpu_neon+y} then : printf %s "(cached) " >&6 -else $as_nop +else case e in @%:@( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -mfpu=neon" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include int main (void) { -return *(signal (0, 0)) (0) == 1; + ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : - ac_cv_type_signal=int -else $as_nop - ac_cv_type_signal=void + ax_cv_check_cflags__Werror__mfpu_neon=yes +else case e in @%:@( + e) ax_cv_check_cflags__Werror__mfpu_neon=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 -printf "%s\n" "$ac_cv_type_signal" >&6; } - -printf "%s\n" "@%:@define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 -printf %s "checking for uid_t in sys/types.h... " >&6; } -if test ${ac_cv_type_uid_t+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__mfpu_neon" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__mfpu_neon" >&6; } +if test "x$ax_cv_check_cflags__Werror__mfpu_neon" = x"yes" then : - printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include + : +else case e in @%:@( + e) : ;; +esac +fi + + -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "uid_t" >/dev/null 2>&1 -then : - ac_cv_type_uid_t=yes -else $as_nop - ac_cv_type_uid_t=no fi -rm -rf conftest* + if test "x$ax_cv_check_cflags__Werror__msse2" = x"yes" -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_SSE2_TRUE= + TARGET_HAS_SSE2_FALSE='#' +else + TARGET_HAS_SSE2_TRUE='#' + TARGET_HAS_SSE2_FALSE= fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 -printf "%s\n" "$ac_cv_type_uid_t" >&6; } -if test $ac_cv_type_uid_t = no; then - -printf "%s\n" "@%:@define uid_t int" >>confdefs.h - -printf "%s\n" "@%:@define gid_t int" >>confdefs.h + if test "x$ax_cv_check_cflags__Werror__msse4_1" = x"yes" -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_SSE41_TRUE= + TARGET_HAS_SSE41_FALSE='#' +else + TARGET_HAS_SSE41_TRUE='#' + TARGET_HAS_SSE41_FALSE= +fi + if test "x$ax_cv_check_cflags__Werror__mavx2" = x"yes" -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_AVX2_TRUE= + TARGET_HAS_AVX2_FALSE='#' +else + TARGET_HAS_AVX2_TRUE='#' + TARGET_HAS_AVX2_FALSE= fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 -printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } -if test ${ac_cv_c_undeclared_builtin_options+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_save_CFLAGS=$CFLAGS - ac_cv_c_undeclared_builtin_options='cannot detect' - for ac_arg in '' -fno-builtin; do - CFLAGS="$ac_save_CFLAGS $ac_arg" - # This test program should *not* compile successfully. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ + if test "x$ax_cv_check_cflags__Werror__mavx512f__mavx512vl" = x"yes" -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_AVX512_TRUE= + TARGET_HAS_AVX512_FALSE='#' +else + TARGET_HAS_AVX512_TRUE='#' + TARGET_HAS_AVX512_FALSE= +fi -int -main (void) -{ -(void) strchr; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : + + if test \( x$target_cpu = xaarch64 -o "x$ax_cv_check_cflags__Werror__mcpu_neon" = x"yes" \) -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_NEON_TRUE= + TARGET_HAS_NEON_FALSE='#' +else + TARGET_HAS_NEON_TRUE='#' + TARGET_HAS_NEON_FALSE= +fi + + +if test -z "$TARGET_HAS_SSE2_TRUE"; then : -else $as_nop - # This test program should compile successfully. - # No library function is consistently available on - # freestanding implementations, so test against a dummy - # declaration. Include always-available headers on the - # off chance that they somehow elicit warnings. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -#include -extern void ac_decl (int, char *); +printf "%s\n" "@%:@define TARGET_HAS_SSE2 1" >>confdefs.h -int -main (void) -{ -(void) ac_decl (0, (char *) 0); - (void) ac_decl; +fi +if test -z "$TARGET_HAS_SSE41_TRUE"; then : + +printf "%s\n" "@%:@define TARGET_HAS_SSE41 1" >>confdefs.h - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - if test x"$ac_arg" = x -then : - ac_cv_c_undeclared_builtin_options='none needed' -else $as_nop - ac_cv_c_undeclared_builtin_options=$ac_arg fi - break +if test -z "$TARGET_HAS_AVX2_TRUE"; then : + +printf "%s\n" "@%:@define TARGET_HAS_AVX2 1" >>confdefs.h + fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +if test -z "$TARGET_HAS_AVX512_TRUE"; then : + +printf "%s\n" "@%:@define TARGET_HAS_AVX512 1" >>confdefs.h + fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - done - CFLAGS=$ac_save_CFLAGS + +if test -z "$TARGET_HAS_NEON_TRUE"; then : +printf "%s\n" "@%:@define TARGET_HAS_NEON 1" >>confdefs.h + fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 -printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } - case $ac_cv_c_undeclared_builtin_options in @%:@( - 'cannot detect') : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot make $CC report undeclared builtins -See \`config.log' for more details" "$LINENO" 5; } ;; @%:@( - 'none needed') : - ac_c_undeclared_builtin_options='' ;; @%:@( - *) : - ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; -esac -ac_fn_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" -if test "x$ac_cv_have_decl_environ" = xyes +@%:@ Check whether --enable-asan was given. +if test ${enable_asan+y} then : - ac_have_decl=1 -else $as_nop - ac_have_decl=0 + enableval=$enable_asan; fi -printf "%s\n" "@%:@define HAVE_DECL_ENVIRON $ac_have_decl" >>confdefs.h -for flag in -Wall -Wsign-compare -Wno-stringop-overflow; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_-pedantic -Werror_$flag" | $as_tr_sh` +HAVE_ASAN=0 +ASAN_CFLAGS="" +ASAN_LIBS="" +if test "x$enable_asan" == "xyes" ; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking location of ASAN library" >&5 +printf %s "checking location of ASAN library... " >&6; } + ASANLIB1=`${CC} -print-file-name=libasan.so` + ASANLIB=`readlink -f "${ASANLIB1}"` + if test -f "$ASANLIB" ; then + HAVE_ASAN=1 + ASAN_CFLAGS="-fsanitize=address -fno-omit-frame-pointer" + ASAN_LIBS="-fsanitize=address" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ASANLIB" >&5 +printf "%s\n" "$ASANLIB" >&6; } + for flag in -fsanitize=address -fno-omit-frame-pointer; do + as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 printf %s "checking whether C compiler accepts $flag... " >&6; } if eval test \${$as_CACHEVAR+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in @%:@( + e) ax_check_save_flags=$CFLAGS - CFLAGS="$CFLAGS -pedantic -Werror $flag" + CFLAGS="$CFLAGS $flag" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -19433,11 +20081,13 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$as_CACHEVAR=yes" -else $as_nop - eval "$as_CACHEVAR=no" +else case e in @%:@( + e) eval "$as_CACHEVAR=no" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags + CFLAGS=$ax_check_save_flags ;; +esac fi eval ac_res=\$$as_CACHEVAR { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -19454,99 +20104,55 @@ then : ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } -else $as_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 +else case e in @%:@( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 (: CFLAGS="$CFLAGS $flag") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } - as_fn_append CFLAGS " $flag" + as_fn_append CFLAGS " $flag" ;; +esac fi -else $as_nop - CFLAGS=$flag +else case e in @%:@( + e) CFLAGS=$flag ;; +esac fi -else $as_nop - : +else case e in @%:@( + e) : ;; +esac fi done - -if test "x$ax_enable_debug" != "xyes" ; then - CFLAGS="$CFLAGS -O2" + else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not found; disabling ASAN" >&5 +printf "%s\n" "Not found; disabling ASAN" >&6; } + fi fi -# include -lm in the link -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing llrintf" >&5 -printf %s "checking for library containing llrintf... " >&6; } -if test ${ac_cv_search_llrintf+y} -then : - printf %s "(cached) " >&6 -else $as_nop - 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. */ -char llrintf (); -int -main (void) -{ -return llrintf (); - ; - return 0; -} -_ACEOF -for ac_lib in '' m -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_llrintf=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext - if test ${ac_cv_search_llrintf+y} -then : - break -fi -done -if test ${ac_cv_search_llrintf+y} -then : - -else $as_nop - ac_cv_search_llrintf=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_llrintf" >&5 -printf "%s\n" "$ac_cv_search_llrintf" >&6; } -ac_res=$ac_cv_search_llrintf -if test "$ac_res" != no -then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -else $as_nop - as_fn_error $? "unable to find the llrintf() function" "$LINENO" 5 + + if test x$HAVE_ASAN = x1 ; then + HAVE_ASAN_TRUE= + HAVE_ASAN_FALSE='#' +else + HAVE_ASAN_TRUE='#' + HAVE_ASAN_FALSE= fi +printf "%s\n" "@%:@define HAVE_ASAN $HAVE_ASAN" >>confdefs.h + + # check if there's a qsort_r available (musl does not have it) ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r" if test "x$ac_cv_func_qsort_r" = xyes then : HAVE_QSORT_R=1 -else $as_nop - HAVE_QSORT_R=0 +else case e in @%:@( + e) HAVE_QSORT_R=0 ;; +esac fi @@ -19744,7 +20350,7 @@ fi HAVE_COMPATIBLE_CHECK=0 -if test "x$HAVE_CHECK" == "x1" ; then +if test "x$HAVE_CHECK" = "x1" ; then save_LIBS="$LIBS" save_CFLAGS="$CFLAGS" LIBS="$LIBS $CHECK_LIBS" @@ -19755,8 +20361,9 @@ if test "x$HAVE_CHECK" == "x1" ; then if test "x$ac_cv_func_srunner_set_tap" = xyes then : HAVE_COMPATIBLE_CHECK=1 -else $as_nop - HAVE_COMPATIBLE_CHECK=0 +else case e in @%:@( + e) HAVE_COMPATIBLE_CHECK=0 ;; +esac fi @@ -19832,8 +20439,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_SPHINX+y} then : printf %s "(cached) " >&6 -else $as_nop - case $SPHINX in +else case e in @%:@( + e) case $SPHINX in [\\/]* | ?:[\\/]*) ac_cv_path_SPHINX="$SPHINX" # Let the user override the test with a path. ;; @@ -19842,7 +20449,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -19858,6 +20465,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi SPHINX=$ac_cv_path_SPHINX @@ -19880,8 +20488,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PIP3+y} then : printf %s "(cached) " >&6 -else $as_nop - case $PIP3 in +else case e in @%:@( + e) case $PIP3 in [\\/]* | ?:[\\/]*) ac_cv_path_PIP3="$PIP3" # Let the user override the test with a path. ;; @@ -19890,7 +20498,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -19906,6 +20514,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi PIP3=$ac_cv_path_PIP3 @@ -19972,7 +20581,7 @@ printf "%s\n" "N/A" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sphinx installation works" >&5 printf %s "checking whether sphinx installation works... " >&6; } - if test "x$HAVE_SPHINX" == "x1" ; then + if test "x$HAVE_SPHINX" = "x1" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else @@ -20001,8 +20610,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_GIT+y} then : printf %s "(cached) " >&6 -else $as_nop - case $GIT in +else case e in @%:@( + e) case $GIT in [\\/]* | ?:[\\/]*) ac_cv_path_GIT="$GIT" # Let the user override the test with a path. ;; @@ -20011,7 +20620,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -20027,6 +20636,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi GIT=$ac_cv_path_GIT @@ -20058,25 +20668,25 @@ fi -if test "x$TESTSUITEURL" == "x" ; then +if test "x$TESTSUITEURL" = "x" ; then TESTSUITEURL="https://github.com/yaml/yaml-test-suite" fi -if test "x$TESTSUITECHECKOUT" == "x" ; then +if test "x$TESTSUITECHECKOUT" = "x" ; then TESTSUITECHECKOUT="6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f" fi -if test "x$JSONTESTSUITEURL" == "x" ; then +if test "x$JSONTESTSUITEURL" = "x" ; then JSONTESTSUITEURL="https://github.com/nst/JSONTestSuite" fi -if test "x$JSONTESTSUITECHECKOUT" == "x" ; then +if test "x$JSONTESTSUITECHECKOUT" = "x" ; then JSONTESTSUITECHECKOUT="d64aefb55228d9584d3e5b2433f720ea8fd00c82" fi @@ -20088,8 +20698,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_DOCKER+y} then : printf %s "(cached) " >&6 -else $as_nop - case $DOCKER in +else case e in @%:@( + e) case $DOCKER in [\\/]* | ?:[\\/]*) ac_cv_path_DOCKER="$DOCKER" # Let the user override the test with a path. ;; @@ -20098,7 +20708,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -20114,6 +20724,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi DOCKER=$ac_cv_path_DOCKER @@ -20148,8 +20759,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_JQ+y} then : printf %s "(cached) " >&6 -else $as_nop - case $JQ in +else case e in @%:@( + e) case $JQ in [\\/]* | ?:[\\/]*) ac_cv_path_JQ="$JQ" # Let the user override the test with a path. ;; @@ -20158,7 +20769,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -20174,6 +20785,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi JQ=$ac_cv_path_JQ @@ -20205,6 +20817,200 @@ fi JQ="$JQ" +# check for libclang + +@%:@ Check whether --with-libclang was given. +if test ${with_libclang+y} +then : + withval=$with_libclang; with_libclang="$withval" +else case e in @%:@( + e) with_libclang=auto ;; +esac +fi + + +HAVE_LIBCLANG=0 +LIBCLANG_CFLAGS="" +LIBCLANG_CPPFLAGS="" +LIBCLANG_LDFLAGS="" +LIBCLANG_LIBS="" +if test "x$with_libclang" != "xno"; then + if test "x$with_libclang" == "xauto"; then + # try to auto detect (llvm 15 down to 8) + check="llvm-config llvm-config-15 llvm-config-14 llvm-config-13 llvm-config-12 llvm-config-11 llvm-config-10" + else + if test "x$with_libclang" == "xlatest"; then + check="llvm-config" + else + check="llvm-config-$with_libclang" + fi + fi + orig_CFLAGS="$CFLAGS" + orig_CPPFLAGS="$CPPFLAGS" + orig_LDFLAGS="$LDFLAGS" + orig_LIBS="$LIBS" + for cfg in $check ; do + # no caching + # Extract the first word of "$cfg", so it can be a program name with args. +set dummy $cfg; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_LLVM_CONFIG+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) case $LLVM_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_LLVM_CONFIG="$LLVM_CONFIG" # 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 + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_LLVM_CONFIG="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac ;; +esac +fi +LLVM_CONFIG=$ac_cv_path_LLVM_CONFIG +if test -n "$LLVM_CONFIG"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 +printf "%s\n" "$LLVM_CONFIG" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + + if test "x$LLVM_CONFIG" != "x" ; then + LIBCLANG_CFLAGS=`$LLVM_CONFIG --cflags` + LIBCLANG_CPPFLAGS=`$LLVM_CONFIG --cppflags` + LIBCLANG_LDFLAGS=`$LLVM_CONFIG --ldflags` + LIBCLANG_LIBS="-lclang" + CPPFLAGS="$CPPFLAGS $LIBCLANG_CPPFLAGS" + CFLAGS="$CFLAGS $LIBCLANG_CFLAGS" + LDFLAGS="$LDFLAGS $LIBCLANG_LDFLAGS" + LIBS="$LIBS $LIBCLANG_LIBS" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang_createIndex in -lclang" >&5 +printf %s "checking for clang_createIndex in -lclang... " >&6; } +if test ${ac_cv_lib_clang_clang_createIndex+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) ac_check_lib_save_LIBS=$LIBS +LIBS="-lclang $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. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char clang_createIndex (void); +int +main (void) +{ +return clang_createIndex (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_clang_clang_createIndex=yes +else case e in @%:@( + e) ac_cv_lib_clang_clang_createIndex=no ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clang_clang_createIndex" >&5 +printf "%s\n" "$ac_cv_lib_clang_clang_createIndex" >&6; } +if test "x$ac_cv_lib_clang_clang_createIndex" = xyes +then : + HAVE_LIBCLANG_LIB=1 +else case e in @%:@( + e) HAVE_LIBCLANG_LIB=0 ;; +esac +fi + + ac_fn_c_check_header_compile "$LINENO" "clang-c/Index.h" "ac_cv_header_clang_c_Index_h" "$ac_includes_default" +if test "x$ac_cv_header_clang_c_Index_h" = xyes +then : + HAVE_LIBCLANG_HDR=1 +else case e in @%:@( + e) HAVE_LIBCLANG_HDR=0 ;; +esac +fi + + # if we found it, break out + if test "x$HAVE_LIBCLANG_LIB" = "x1" -a "x$HAVE_LIBCLANG_HDR" = "x1" ; then + HAVE_LIBCLANG=1 + break + fi + $as_unset ac_cv_lib_clang_clang_createIndex $as_unset ac_cv_header_clang_c_Index_h \ + LIBCLANG_CFLAGS LIBCLANG_CPPFLAGS LIBCLANG_LIBS HAVE_LIBCLANG_LIB HAVE_LIBCLANG_HDR + fi + CFLAGS=$orig_CFLAGS + LDFLAGS=$orig_LDFLAGS + LIBS=$orig_LIBS + if test "x$HAVE_LIBCLANG" = "x1"; then + break + fi + $as_unset ac_cv_path_LLVM_CONFIG LLVM_CONFIG + done + CFLAGS=$orig_CFLAGS + CPPFLAGS=$orig_CPPFLAGS + LDFLAGS=$orig_LDFLAGS + LIBS=$orig_LIBS +fi + + + + + + + + +printf "%s\n" "@%:@define HAVE_LIBCLANG $HAVE_LIBCLANG" >>confdefs.h + + if test x$HAVE_LIBCLANG = x1 ; then + HAVE_LIBCLANG_TRUE= + HAVE_LIBCLANG_FALSE='#' +else + HAVE_LIBCLANG_TRUE='#' + HAVE_LIBCLANG_FALSE= +fi + + + +CFLAGS=`echo $CFLAGS | sed -e 's/^ *//'` +CPPFLAGS=`echo $CPPFLAGS | sed -e 's/^ *//'` +LDFLAGS=`echo $LDFLAGS | sed -e 's/^ *//'` + # Shave by default on supported autoconf versions @@ -20212,9 +21018,10 @@ JQ="$JQ" if test ${enable_shave+y} then : enableval=$enable_shave; -else $as_nop - enable_shave=yes - +else case e in @%:@( + e) enable_shave=yes + ;; +esac fi @@ -20235,15 +21042,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_SED+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$SED"; then +else case e in @%:@( + e) if test -n "$SED"; then ac_cv_prog_SED="$SED" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -20259,7 +21066,8 @@ done IFS=$as_save_IFS test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="false" -fi +fi ;; +esac fi SED=$ac_cv_prog_SED if test -n "$SED"; then @@ -20329,8 +21137,8 @@ cat >confcache <<\_ACEOF # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the +# 'ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* 'ac_cv_foo' will be assigned the # following values. _ACEOF @@ -20360,14 +21168,14 @@ printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes: double-quote + # 'set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) - # `set' quotes correctly as required by POSIX, so do not add quotes. + # 'set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | @@ -20452,11 +21260,71 @@ 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__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCCAS\" 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 "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then + as_fn_error $? "conditional \"HAVE_STATIC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_PORTABLE_TARGET_TRUE}" && test -z "${HAVE_PORTABLE_TARGET_FALSE}"; then + as_fn_error $? "conditional \"HAVE_PORTABLE_TARGET\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_X86_TRUE}" && test -z "${TARGET_CPU_X86_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_X86\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_X86_64_TRUE}" && test -z "${TARGET_CPU_X86_64_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_X86_64\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_ANY_X86_TRUE}" && test -z "${TARGET_CPU_ANY_X86_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_ANY_X86\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_ARM_TRUE}" && test -z "${TARGET_CPU_ARM_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_ARM\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_ARM64_TRUE}" && test -z "${TARGET_CPU_ARM64_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_ARM64\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_ANY_ARM_TRUE}" && test -z "${TARGET_CPU_ANY_ARM_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_ANY_ARM\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_SSE2_TRUE}" && test -z "${TARGET_HAS_SSE2_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_SSE2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_SSE41_TRUE}" && test -z "${TARGET_HAS_SSE41_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_SSE41\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_AVX2_TRUE}" && test -z "${TARGET_HAS_AVX2_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_AVX2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_AVX512_TRUE}" && test -z "${TARGET_HAS_AVX512_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_AVX512\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_NEON_TRUE}" && test -z "${TARGET_HAS_NEON_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_NEON\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_ASAN_TRUE}" && test -z "${HAVE_ASAN_FALSE}"; then + as_fn_error $? "conditional \"HAVE_ASAN\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${HAVE_QSORT_R_TRUE}" && test -z "${HAVE_QSORT_R_FALSE}"; then as_fn_error $? "conditional \"HAVE_QSORT_R\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -20497,6 +21365,10 @@ if test -z "${HAVE_JQ_TRUE}" && test -z "${HAVE_JQ_FALSE}"; then as_fn_error $? "conditional \"HAVE_JQ\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${HAVE_LIBCLANG_TRUE}" && test -z "${HAVE_LIBCLANG_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIBCLANG\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 @@ -20526,7 +21398,6 @@ cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh @@ -20535,12 +21406,13 @@ then : # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else $as_nop - case `(set -o) 2>/dev/null` in @%:@( +else case e in @%:@( + e) case `(set -o) 2>/dev/null` in @%:@( *posix*) : set -o posix ;; @%:@( *) : ;; +esac ;; esac fi @@ -20601,7 +21473,7 @@ case $0 in @%:@(( for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -20612,7 +21484,7 @@ IFS=$as_save_IFS ;; esac -# We did not find ourselves, most probably we were run as `sh COMMAND' +# We did not find ourselves, most probably we were run as 'sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 @@ -20641,7 +21513,6 @@ as_fn_error () } @%:@ as_fn_error - @%:@ as_fn_set_status STATUS @%:@ ----------------------- @%:@ Set @S|@? to STATUS, without forking. @@ -20681,11 +21552,12 @@ then : { eval $1+=\$2 }' -else $as_nop - as_fn_append () +else case e in @%:@( + e) as_fn_append () { eval $1=\$$1\$2 - } + } ;; +esac fi # as_fn_append @%:@ as_fn_arith ARG... @@ -20699,11 +21571,12 @@ then : { as_val=$(( $* )) }' -else $as_nop - as_fn_arith () +else case e in @%:@( + e) as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` - } + } ;; +esac fi # as_fn_arith @@ -20786,9 +21659,9 @@ if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. + # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. + # In both cases, we have to default to 'cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then @@ -20869,10 +21742,12 @@ as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" +as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated # Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" +as_tr_sh="eval sed '$as_sed_sh'" # deprecated exec 6>&1 @@ -20887,8 +21762,8 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by libfyaml $as_me 0.7.12, which was -generated by GNU Autoconf 2.71. Invocation command line was +This file was extended by libfyaml $as_me 0.9, which was +generated by GNU Autoconf 2.72. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -20920,7 +21795,7 @@ _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ -\`$as_me' instantiates files and other configuration actions +'$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. @@ -20955,11 +21830,11 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -libfyaml config.status 0.7.12 -configured by $0, generated by GNU Autoconf 2.71, +libfyaml config.status 0.9 +configured by $0, generated by GNU Autoconf 2.72, with options \\"\$ac_cs_config\\" -Copyright (C) 2021 Free Software Foundation, Inc. +Copyright (C) 2023 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -21021,8 +21896,8 @@ do ac_need_defaults=false;; --he | --h) # Conflict between --help and --header - as_fn_error $? "ambiguous option: \`$1' -Try \`$0 --help' for more information.";; + as_fn_error $? "ambiguous option: '$1' +Try '$0 --help' for more information.";; --help | --hel | -h ) printf "%s\n" "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ @@ -21030,8 +21905,8 @@ Try \`$0 --help' for more information.";; ac_cs_silent=: ;; # This is an error. - -*) as_fn_error $? "unrecognized option: \`$1' -Try \`$0 --help' for more information." ;; + -*) as_fn_error $? "unrecognized option: '$1' +Try '$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; @@ -21084,11 +21959,11 @@ AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' -macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' -macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' @@ -21480,7 +22355,7 @@ do "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; "libfyaml.pc") CONFIG_FILES="$CONFIG_FILES libfyaml.pc" ;; - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; esac done @@ -21500,7 +22375,7 @@ fi # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. +# after its creation but before its name has been assigned to '$tmp'. $debug || { tmp= ac_tmp= @@ -21524,7 +22399,7 @@ ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. -# This happens for instance with `./config.status config.h'. +# This happens for instance with './config.status config.h'. if test -n "$CONFIG_FILES"; then @@ -21682,13 +22557,13 @@ fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. -# This happens for instance with `./config.status Makefile'. +# This happens for instance with './config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF -# Transform confdefs.h into an awk script `defines.awk', embedded as +# Transform confdefs.h into an awk script 'defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. @@ -21798,7 +22673,7 @@ do esac case $ac_mode$ac_tag in :[FHL]*:*);; - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac @@ -21820,19 +22695,19 @@ do -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. + # because $ac_f cannot contain ':'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || - as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done - # Let's still pretend it is `configure' which instantiates (i.e., don't + # Let's still pretend it is 'configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` @@ -21965,7 +22840,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 esac _ACEOF -# Neutralize VPATH when `$srcdir' = `.'. +# Neutralize VPATH when '$srcdir' = '.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 @@ -21996,9 +22871,9 @@ test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' which seems to be undefined. Please make sure it is defined" >&5 -printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" @@ -22153,15 +23028,15 @@ printf "%s\n" X/"$am_mf" | (exit $ac_status); } || am_rc=$? done if test $am_rc -ne 0; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE=\"gmake\" (or whatever is necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking). -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } fi { am_dirpart=; unset am_dirpart;} { am_filepart=; unset am_filepart;} @@ -22222,6 +23097,10 @@ available_tags='CXX ' # ### BEGIN LIBTOOL CONFIG +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision + # Assembler program. AS=$lt_AS @@ -22231,10 +23110,6 @@ DLLTOOL=$lt_DLLTOOL # Object dumper program. OBJDUMP=$lt_OBJDUMP -# Which release of libtool.m4 was used? -macro_version=$macro_version -macro_revision=$macro_revision - # Whether or not to build shared libraries. build_libtool_libs=$enable_shared @@ -23082,17 +23957,20 @@ echo " LIBTOOL_VERSION: ${LIBTOOL_VERSION} prefix: ${prefix} C compiler: ${CC} - CFLAGS: ${CFLAGS} Linker: ${LD} + CFLAGS: ${CFLAGS} LDFLAGS: ${LDFLAGS} LIBS: ${LIBS} + HAVE_ASAN: ${HAVE_ASAN} HAVE_CHECK: ${HAVE_CHECK} HAVE_COMPATIBLE_CHECK: ${HAVE_COMPATIBLE_CHECK} HAVE_NETWORK: ${HAVE_NETWORK} HAVE_DEVMODE: ${HAVE_DEVMODE} HAVE_SPHINX: ${HAVE_SPHINX} - GIT: $GIT - DOCKER: $DOCKER + GIT: ${GIT} + DOCKER: ${DOCKER} + HAVE_LIBCLANG: ${HAVE_LIBCLANG} + LIBCLANG_LIBS: ${LIBCLANG_LIBS} TESTSUITEURL: $TESTSUITEURL TESTSUITECHECKOUT: $TESTSUITECHECKOUT JSONTESTSUITEURL: $JSONTESTSUITEURL diff --git a/Sources/Cfyaml/autom4te.cache/output.2 b/Sources/Cfyaml/autom4te.cache/output.2 index 590fde529..b97f0d423 100644 --- a/Sources/Cfyaml/autom4te.cache/output.2 +++ b/Sources/Cfyaml/autom4te.cache/output.2 @@ -1,11 +1,11 @@ @%:@! /bin/sh @%:@ Guess values for system-dependent variables and create Makefiles. -@%:@ Generated by GNU Autoconf 2.71 for libfyaml 0.7.12. +@%:@ Generated by GNU Autoconf 2.72 for libfyaml 0.9. @%:@ @%:@ Report bugs to . @%:@ @%:@ -@%:@ Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, +@%:@ Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, @%:@ Inc. @%:@ @%:@ @@ -17,7 +17,6 @@ # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh @@ -26,12 +25,13 @@ then : # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else $as_nop - case `(set -o) 2>/dev/null` in @%:@( +else case e in @%:@( + e) case `(set -o) 2>/dev/null` in @%:@( *posix*) : set -o posix ;; @%:@( *) : ;; +esac ;; esac fi @@ -92,7 +92,7 @@ case $0 in @%:@(( for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -103,7 +103,7 @@ IFS=$as_save_IFS ;; esac -# We did not find ourselves, most probably we were run as `sh COMMAND' +# We did not find ourselves, most probably we were run as 'sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 @@ -133,15 +133,14 @@ case $- in @%:@ (((( esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. +# out after a failed 'exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then - as_bourne_compatible="as_nop=: -if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 + as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: @@ -149,12 +148,13 @@ then : # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST -else \$as_nop - case \`(set -o) 2>/dev/null\` in @%:@( +else case e in @%:@( + e) case \`(set -o) 2>/dev/null\` in @%:@( *posix*) : set -o posix ;; @%:@( *) : ;; +esac ;; esac fi " @@ -172,8 +172,9 @@ as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ) then : -else \$as_nop - exitcode=1; echo positional parameters were not saved. +else case e in @%:@( + e) exitcode=1; echo positional parameters were not saved. ;; +esac fi test x\$exitcode = x0 || exit 1 blah=\$(echo \$(echo blah)) @@ -183,7 +184,6 @@ test -x / || exit 1" as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 -test \$(( 1 + 1 )) = 2 || exit 1 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' @@ -191,23 +191,25 @@ test \$(( 1 + 1 )) = 2 || exit 1 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ - || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null then : as_have_required=yes -else $as_nop - as_have_required=no +else case e in @%:@( + e) as_have_required=no ;; +esac fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null then : -else $as_nop - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in @%:@( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -235,12 +237,13 @@ IFS=$as_save_IFS if $as_found then : -else $as_nop - if { test -f "$SHELL" || test -f "$SHELL.exe"; } && +else case e in @%:@( + e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$SHELL as_have_required=yes -fi +fi ;; +esac fi @@ -262,7 +265,7 @@ case $- in @%:@ (((( esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. +# out after a failed 'exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi @@ -282,7 +285,8 @@ $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 -fi +fi ;; +esac fi fi SHELL=${CONFIG_SHELL-/bin/sh} @@ -321,14 +325,6 @@ as_fn_exit () as_fn_set_status $1 exit $1 } @%:@ as_fn_exit -@%:@ as_fn_nop -@%:@ --------- -@%:@ Do nothing but, unlike ":", preserve the value of @S|@?. -as_fn_nop () -{ - return $? -} -as_nop=as_fn_nop @%:@ as_fn_mkdir_p @%:@ ------------- @@ -397,11 +393,12 @@ then : { eval $1+=\$2 }' -else $as_nop - as_fn_append () +else case e in @%:@( + e) as_fn_append () { eval $1=\$$1\$2 - } + } ;; +esac fi # as_fn_append @%:@ as_fn_arith ARG... @@ -415,21 +412,14 @@ then : { as_val=$(( $* )) }' -else $as_nop - as_fn_arith () +else case e in @%:@( + e) as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` - } + } ;; +esac fi # as_fn_arith -@%:@ as_fn_nop -@%:@ --------- -@%:@ Do nothing but, unlike ":", preserve the value of @S|@?. -as_fn_nop () -{ - return $? -} -as_nop=as_fn_nop @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] @%:@ ---------------------------------------- @@ -503,6 +493,8 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits /[$]LINENO/= ' <$as_myself | sed ' + t clear + :clear s/[$]LINENO.*/&-/ t lineno b @@ -551,7 +543,6 @@ esac as_@&t@echo='printf %s\n' as_@&t@echo_n='printf %s' - rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file @@ -563,9 +554,9 @@ if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. + # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. + # In both cases, we have to default to 'cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then @@ -590,12 +581,12 @@ as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" +as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated # Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - -lt_ltdl_dir='libltdl' +as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" +as_tr_sh="eval sed '$as_sed_sh'" # deprecated SHELL=${CONFIG_SHELL-/bin/sh} @@ -623,8 +614,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='libfyaml' PACKAGE_TARNAME='libfyaml' -PACKAGE_VERSION='0.7.12' -PACKAGE_STRING='libfyaml 0.7.12' +PACKAGE_VERSION='0.9' +PACKAGE_STRING='libfyaml 0.9' PACKAGE_BUGREPORT='pantelis.antoniou@konsulko.com' PACKAGE_URL='' @@ -674,10 +665,17 @@ MCS OBJC F77 FC -CCAS AM_MAKEFLAGS MAKEFLAGS shavedir +HAVE_LIBCLANG_FALSE +HAVE_LIBCLANG_TRUE +LIBCLANG_LIBS +LIBCLANG_LDFLAGS +LIBCLANG_CPPFLAGS +LIBCLANG_CFLAGS +HAVE_LIBCLANG +LLVM_CONFIG HAVE_JQ_FALSE HAVE_JQ_TRUE JQ @@ -718,7 +716,42 @@ LIBYAML_CFLAGS HAVE_QSORT_R_FALSE HAVE_QSORT_R_TRUE HAVE_QSORT_R +HAVE_ASAN_FALSE +HAVE_ASAN_TRUE +ASAN_LIBS +ASAN_CFLAGS +HAVE_ASAN +TARGET_HAS_NEON_FALSE +TARGET_HAS_NEON_TRUE +TARGET_HAS_AVX512_FALSE +TARGET_HAS_AVX512_TRUE +TARGET_HAS_AVX2_FALSE +TARGET_HAS_AVX2_TRUE +TARGET_HAS_SSE41_FALSE +TARGET_HAS_SSE41_TRUE +TARGET_HAS_SSE2_FALSE +TARGET_HAS_SSE2_TRUE +TARGET_CPU_ANY_ARM_FALSE +TARGET_CPU_ANY_ARM_TRUE +TARGET_CPU_ARM64_FALSE +TARGET_CPU_ARM64_TRUE +TARGET_CPU_ARM_FALSE +TARGET_CPU_ARM_TRUE +TARGET_CPU_ANY_X86_FALSE +TARGET_CPU_ANY_X86_TRUE +TARGET_CPU_X86_64_FALSE +TARGET_CPU_X86_64_TRUE +TARGET_CPU_X86_FALSE +TARGET_CPU_X86_TRUE +HAVE_PORTABLE_TARGET_FALSE +HAVE_PORTABLE_TARGET_TRUE +HAVE_PORTABLE_TARGET +HAVE_STATIC_FALSE +HAVE_STATIC_TRUE +HAVE_STATIC subdirs +LIBLTDL +LTDLINCL CXXCPP LT_SYS_LIBRARY_PATH OTOOL64 @@ -734,32 +767,20 @@ ac_ct_DUMPBIN DUMPBIN LD FGREP +EGREP +GREP SED LIBTOOL OBJDUMP DLLTOOL AS -INCLTDL -LTDLINCL -LTDLDEPS -LIBLTDL PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG -ACLOCAL_AMFLAGS -M4 PTHREAD_CFLAGS PTHREAD_LIBS PTHREAD_CC ax_pthread_config -host_os -host_vendor -host_cpu -host -build_os -build_vendor -build_cpu -build LN_S am__fastdepCXX_FALSE am__fastdepCXX_TRUE @@ -769,9 +790,11 @@ CXXFLAGS CXX ac_ct_AR AR -EGREP -GREP -CPP +am__fastdepCCAS_FALSE +am__fastdepCCAS_TRUE +CCASDEPMODE +CCASFLAGS +CCAS am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE @@ -823,6 +846,20 @@ am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM +target_os +target_vendor +target_cpu +target +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +ACLOCAL_AMFLAGS +M4 target_alias host_alias build_alias @@ -877,8 +914,11 @@ with_aix_soname with_gnu_ld with_sysroot enable_libtool_lock +enable_portable_target +enable_asan enable_network enable_devmode +with_libclang enable_shave ' ac_precious_vars='build_alias @@ -889,7 +929,8 @@ CFLAGS LDFLAGS LIBS CPPFLAGS -CPP +CCAS +CCASFLAGS CXX CXXFLAGS CCC @@ -1014,7 +1055,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: \`$ac_useropt'" + as_fn_error $? "invalid feature name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1040,7 +1081,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: \`$ac_useropt'" + as_fn_error $? "invalid feature name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1253,7 +1294,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: \`$ac_useropt'" + as_fn_error $? "invalid package name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1269,7 +1310,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: \`$ac_useropt'" + as_fn_error $? "invalid package name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1299,8 +1340,8 @@ do | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; - -*) as_fn_error $? "unrecognized option: \`$ac_option' -Try \`$0 --help' for more information" + -*) as_fn_error $? "unrecognized option: '$ac_option' +Try '$0 --help' for more information" ;; *=*) @@ -1308,7 +1349,7 @@ Try \`$0 --help' for more information" # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) - as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + as_fn_error $? "invalid variable name: '$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; @@ -1358,7 +1399,7 @@ do as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done -# There might be people who depend on the old broken behavior: `$host' +# There might be people who depend on the old broken behavior: '$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias @@ -1426,7 +1467,7 @@ if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` @@ -1454,7 +1495,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures libfyaml 0.7.12 to adapt to many kinds of systems. +'configure' configures libfyaml 0.9 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1468,11 +1509,11 @@ Configuration: --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking ...' messages + -q, --quiet, --silent do not print 'checking ...' messages --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' + -C, --config-cache alias for '--cache-file=config.cache' -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] + --srcdir=DIR find the sources in DIR [configure dir or '..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX @@ -1480,10 +1521,10 @@ Installation directories: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX @<:@PREFIX@:>@ -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. +By default, 'make install' will install all the files in +'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify +an installation prefix other than '$ac_default_prefix' using '--prefix', +for instance '--prefix=\$HOME'. For better control, use the options below. @@ -1520,12 +1561,13 @@ Program names: System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] + --target=TARGET configure for building compilers for TARGET [HOST] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libfyaml 0.7.12:";; + short | recursive ) echo "Configuration of libfyaml 0.9:";; esac cat <<\_ACEOF @@ -1546,6 +1588,10 @@ Optional Features: --enable-fast-install@<:@=PKGS@:>@ optimize for fast installation @<:@default=yes@:>@ --disable-libtool-lock avoid locking (might break parallel builds) + --enable-portable-target + Enable portable mode (disable per-target + optimizations) + --enable-asan Enable ASAN support --disable-network Disable tests requiring network access --enable-devmode Enable development mode only debugging --enable-shave use shave to make the build pretty @<:@@<:@default=yes@:>@@:>@ @@ -1561,6 +1607,15 @@ Optional Packages: --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ --with-sysroot@<:@=DIR@:>@ Search for dependent libraries within DIR (or the compiler's sysroot if not specified). +@%:@ Check whether --enable-network was given. +if test ${enable_network+y} +then : + enableval=$enable_network; +fi + + + --with-libclang= + Enable support for libclang @<:@default=auto@:>@ Some influential environment variables: CC C compiler command @@ -1570,7 +1625,8 @@ 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 - CPP C preprocessor + CCAS assembler compiler command (defaults to CC) + CCASFLAGS assembler compiler flags (defaults to CFLAGS) CXX C++ compiler command CXXFLAGS C++ compiler flags PKG_CONFIG path to pkg-config utility @@ -1601,7 +1657,7 @@ Some influential environment variables: JSON Testsuite checkout (default: d64aefb55228d9584d3e5b2433f720ea8fd00c82) -Use these variables to override the choices made by `configure' or to help +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 . @@ -1668,10 +1724,10 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libfyaml configure 0.7.12 -generated by GNU Autoconf 2.71 +libfyaml configure 0.9 +generated by GNU Autoconf 2.72 -Copyright (C) 2021 Free Software Foundation, Inc. +Copyright (C) 2023 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF @@ -1710,54 +1766,17 @@ printf "%s\n" "$ac_try_echo"; } >&5 } && test -s conftest.$ac_objext then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in @%:@( + e) printf "%s\n" "$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_c_try_compile - -@%:@ ac_fn_c_try_cpp LINENO -@%:@ ---------------------- -@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. -ac_fn_c_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;; + ac_retval=1 ;; esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -printf "%s\n" "$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 - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } > conftest.i && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - } -then : - ac_retval=0 -else $as_nop - printf "%s\n" "$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_c_try_cpp +} @%:@ ac_fn_c_try_compile @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES @%:@ ------------------------------------------------------- @@ -1771,8 +1790,8 @@ printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 @%:@include <$2> @@ -1780,10 +1799,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$3=yes" -else $as_nop - eval "$3=no" +else case e in @%:@( + e) eval "$3=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -1820,11 +1841,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } && test -s conftest.$ac_objext then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in @%:@( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -1862,11 +1884,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in @%:@( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would @@ -1889,15 +1912,15 @@ printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $2 (); below. */ + which can conflict with char $2 (void); below. */ #include #undef $2 @@ -1908,7 +1931,7 @@ else $as_nop #ifdef __cplusplus extern "C" #endif -char $2 (); +char $2 (void); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ @@ -1927,11 +1950,13 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : eval "$3=yes" -else $as_nop - eval "$3=no" +else case e in @%:@( + e) eval "$3=no" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -1967,11 +1992,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in @%:@( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -2009,11 +2035,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in @%:@( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would @@ -2055,12 +2082,13 @@ printf "%s\n" "$ac_try_echo"; } >&5 test $ac_status = 0; }; } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: program exited with status $ac_status" >&5 +else case e in @%:@( + e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=$ac_status + ac_retval=$ac_status ;; +esac fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno @@ -2080,8 +2108,8 @@ printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - eval "$3=no" +else case e in @%:@( + e) eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 @@ -2111,12 +2139,14 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : -else $as_nop - eval "$3=yes" +else case e in @%:@( + e) eval "$3=yes" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -2138,8 +2168,8 @@ printf %s "checking whether $as_decl_name is declared... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` +else case e in @%:@( + e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` eval ac_save_FLAGS=\$$6 as_fn_append $6 " $5" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -2163,12 +2193,14 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$3=yes" -else $as_nop - eval "$3=no" +else case e in @%:@( + e) eval "$3=no" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext eval $6=\$ac_save_FLAGS - + ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -2200,8 +2232,8 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libfyaml $as_me 0.7.12, which was -generated by GNU Autoconf 2.71. Invocation command line was +It was created by libfyaml $as_me 0.9, which was +generated by GNU Autoconf 2.72. Invocation command line was $ $0$ac_configure_args_raw @@ -2236,7 +2268,7 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -2447,10 +2479,10 @@ esac printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ - || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } fi done @@ -2486,9 +2518,7 @@ struct stat; /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ struct buf { int x; }; struct buf * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; +static char *e (char **p, int i) { return p[i]; } @@ -2502,6 +2532,21 @@ static char *f (char * (*g) (char **, int), char **p, ...) return s; } +/* C89 style stringification. */ +#define noexpand_stringify(a) #a +const char *stringified = noexpand_stringify(arbitrary+token=sequence); + +/* C89 style token pasting. Exercises some of the corner cases that + e.g. old MSVC gets wrong, but not very hard. */ +#define noexpand_concat(a,b) a##b +#define expand_concat(a,b) noexpand_concat(a,b) +extern int vA; +extern int vbee; +#define aye A +#define bee B +int *pvA = &expand_concat(v,aye); +int *pvbee = &noexpand_concat(v,bee); + /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not \xHH hex character constants. These do not provoke an error unfortunately, instead are silently treated @@ -2529,16 +2574,19 @@ ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); # Test code for whether the C compiler supports C99 (global declarations) ac_c_conftest_c99_globals=' -// Does the compiler advertise C99 conformance? +/* Does the compiler advertise C99 conformance? */ #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L # error "Compiler does not advertise C99 conformance" #endif +// See if C++-style comments work. + #include extern int puts (const char *); extern int printf (const char *, ...); extern int dprintf (int, const char *, ...); extern void *malloc (size_t); +extern void free (void *); // Check varargs macros. These examples are taken from C99 6.10.3.5. // dprintf is used instead of fprintf to avoid needing to declare @@ -2588,7 +2636,6 @@ typedef const char *ccp; static inline int test_restrict (ccp restrict text) { - // See if C++-style comments work. // Iterate through items via the restricted pointer. // Also check for declarations in for loops. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) @@ -2654,6 +2701,8 @@ ac_c_conftest_c99_main=' ia->datasize = 10; for (int i = 0; i < ia->datasize; ++i) ia->data[i] = i * 1.234; + // Work around memory leak warnings. + free (ia); // Check named initializers. struct named_init ni = { @@ -2675,7 +2724,7 @@ ac_c_conftest_c99_main=' # Test code for whether the C compiler supports C11 (global declarations) ac_c_conftest_c11_globals=' -// Does the compiler advertise C11 conformance? +/* Does the compiler advertise C11 conformance? */ #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L # error "Compiler does not advertise C11 conformance" #endif @@ -3008,7 +3057,7 @@ main (int argc, char **argv) # Auxiliary files required by this configure script. -ac_aux_files="tap-driver.sh ltmain.sh config.guess config.sub ar-lib compile missing install-sh" +ac_aux_files="tap-driver.sh ltmain.sh ar-lib compile missing install-sh config.guess config.sub" # Locations in which to look for auxiliary files. ac_aux_dir_candidates="${srcdir}/build-aux" @@ -3026,7 +3075,7 @@ as_found=false for as_dir in $ac_aux_dir_candidates do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -3085,8 +3134,9 @@ IFS=$as_save_IFS if $as_found then : -else $as_nop - as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 +else case e in @%:@( + e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; +esac fi @@ -3114,12 +3164,12 @@ for ac_var in $ac_precious_vars; do eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 +printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 +printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) @@ -3128,18 +3178,18 @@ printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 +printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 -printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 +printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 -printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 -printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 +printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 +printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. @@ -3155,11 +3205,11 @@ printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} fi done if $ac_cache_corrupted; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} - as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' + as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## @@ -3175,145 +3225,320 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -ac_config_headers="$ac_config_headers config.h" - - - -am__api_version='1.16' - - - # Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -# Reject install programs that cannot install multiple files. -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 -printf %s "checking for a BSD-compatible install... " >&6; } -if test -z "$INSTALL"; then -if test ${ac_cv_path_install+y} +# Extract the first word of "m4 gm4", so it can be a program name with args. +set dummy m4 gm4; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_M4+y} then : printf %s "(cached) " >&6 -else $as_nop +else case e in @%:@( + e) case $M4 in + [\\/]* | ?:[\\/]*) + ac_cv_path_M4="$M4" # 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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac - # Account for fact that we put trailing slashes in our PATH walk. -case $as_dir in @%:@(( - ./ | /[cC]/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then - if test $ac_prog = install && - grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - rm -rf conftest.one conftest.two conftest.dir - echo one > conftest.one - echo two > conftest.two - mkdir conftest.dir - if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && - test -s conftest.one && test -s conftest.two && - test -s conftest.dir/conftest.one && - test -s conftest.dir/conftest.two - then - ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - fi - done - done - ;; -esac - + 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_M4="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done done IFS=$as_save_IFS -rm -rf conftest.one conftest.two conftest.dir - + test -z "$ac_cv_path_M4" && ac_cv_path_M4="no" + ;; +esac ;; +esac fi - if test ${ac_cv_path_install+y}; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi +M4=$ac_cv_path_M4 +if test -n "$M4"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 +printf "%s\n" "$M4" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 -printf "%s\n" "$INSTALL" >&6; } -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' +if test "x$M4" = xno ; then + as_fn_error $? "m4 missing" "$LINENO" 5 +fi -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' +ACLOCAL_AMFLAGS="-I m4" -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 -printf %s "checking whether build environment is sane... " >&6; } -# Reject unsafe characters in $srcdir or the absolute working directory -# name. Accept space and tab only in the latter. -am_lf=' -' -case `pwd` in - *[\\\"\#\$\&\'\`$am_lf]*) - as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; -esac -case $srcdir in - *[\\\"\#\$\&\'\`$am_lf\ \ ]*) - as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; -esac -# Do 'set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - am_has_slept=no - for am_try in 1 2; do - echo "timestamp, slept: $am_has_slept" > conftest.file - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t "$srcdir/configure" conftest.file` - fi - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - # If neither matched, then we have a broken ls. This can happen + + + # Make sure we can run config.sub. +$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +printf %s "checking build system type... " >&6; } +if test ${ac_cv_build+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 + ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +printf "%s\n" "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +printf %s "checking host system type... " >&6; } +if test ${ac_cv_host+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 +fi + ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +printf "%s\n" "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 +printf %s "checking target system type... " >&6; } +if test ${ac_cv_target+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test "x$target_alias" = x; then + ac_cv_target=$ac_cv_host +else + ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5 +fi + ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 +printf "%s\n" "$ac_cv_target" >&6; } +case $ac_cv_target in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; +esac +target=$ac_cv_target +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_target +shift +target_cpu=$1 +target_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +target_os=$* +IFS=$ac_save_IFS +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac + + +# The aliases save the names the user supplied, while $host etc. +# will get canonicalized. +test -n "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" = \ + NONENONEs,x,x, && + program_prefix=${target_alias}- + + +ac_config_headers="$ac_config_headers config.h" + + +am__api_version='1.16' + + + # Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +printf %s "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if test ${ac_cv_path_install+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + # Account for fact that we put trailing slashes in our PATH walk. +case $as_dir in @%:@(( + ./ | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + ;; +esac +fi + if test ${ac_cv_path_install+y}; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +printf "%s\n" "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +printf %s "checking whether build environment is sane... " >&6; } +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; +esac + +# Do 'set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + am_has_slept=no + for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". @@ -3354,7 +3579,7 @@ test "$program_prefix" != NONE && test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. -# By default was `s,x,x', remove it if useless. +# By default was 's,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` @@ -3397,15 +3622,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$STRIP"; then +else case e in @%:@( + e) if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -3420,7 +3645,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then @@ -3442,15 +3668,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_STRIP"; then +else case e in @%:@( + e) if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -3465,7 +3691,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then @@ -3501,12 +3728,12 @@ if test -z "$MKDIR_P"; then if test ${ac_cv_path_mkdir+y} then : printf %s "(cached) " >&6 -else $as_nop - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in @%:@( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -3516,7 +3743,7 @@ do as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir ('*'coreutils) '* | \ - 'BusyBox '* | \ + *'BusyBox '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext break 3;; @@ -3525,18 +3752,17 @@ do done done IFS=$as_save_IFS - + ;; +esac fi test -d ./--version && rmdir ./--version if test ${ac_cv_path_mkdir+y}; then MKDIR_P="$ac_cv_path_mkdir -p" else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - MKDIR_P="$ac_install_sh -d" + # As a last resort, use plain mkdir -p, + # in the hope it doesn't have the bugs of ancient mkdir. + MKDIR_P='mkdir -p' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 @@ -3551,15 +3777,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AWK+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AWK"; then +else case e in @%:@( + e) if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -3574,7 +3800,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then @@ -3596,8 +3823,8 @@ ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval test \${ac_cv_prog_make_${ac_make}_set+y} then : printf %s "(cached) " >&6 -else $as_nop - cat >conftest.make <<\_ACEOF +else case e in @%:@( + e) cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' @@ -3609,7 +3836,8 @@ case `${MAKE-make} -f conftest.make 2>/dev/null` in *) eval ac_cv_prog_make_${ac_make}_set=no;; esac -rm -f conftest.make +rm -f conftest.make ;; +esac fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 @@ -3647,8 +3875,8 @@ printf %s "checking whether $am_make supports nested variables... " >&6; } if test ${am_cv_make_support_nested_variables+y} then : printf %s "(cached) " >&6 -else $as_nop - if printf "%s\n" 'TRUE=$(BAR$(V)) +else case e in @%:@( + e) if printf "%s\n" 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 @@ -3658,7 +3886,8 @@ am__doit: am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no -fi +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } @@ -3693,7 +3922,7 @@ fi # Define the identity of the package. PACKAGE='libfyaml' - VERSION='0.7.12' + VERSION='0.9' printf "%s\n" "@%:@define PACKAGE \"$PACKAGE\"" >>confdefs.h @@ -3853,7 +4082,7 @@ EXTRA=`echo $VERSION | cut -d- -f2- -s` # increase current, set revision and age to 0 -LIBTOOL_VERSION=1:2:0 +LIBTOOL_VERSION=1:4:2 @@ -3877,8 +4106,9 @@ fi if test ${enable_debug+y} then : enableval=$enable_debug; -else $as_nop - enable_debug=$ax_enable_debug_default +else case e in @%:@( + e) enable_debug=$ax_enable_debug_default ;; +esac fi @@ -3951,10 +4181,11 @@ esac if test "x$enable_debug" = "xyes" then : -else $as_nop - +else case e in @%:@( + e) printf "%s\n" "@%:@define NDEBUG 1" >>confdefs.h - + ;; +esac fi ax_enable_debug=$enable_debug @@ -3982,15 +4213,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in @%:@( + e) if test -n "$CC"; then ac_cv_prog_CC="$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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4005,7 +4236,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4027,15 +4259,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in @%:@( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4050,7 +4282,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -4085,15 +4318,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in @%:@( + e) if test -n "$CC"; then ac_cv_prog_CC="$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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4108,7 +4341,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4130,8 +4364,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in @%:@( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no @@ -4139,7 +4373,7 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4170,7 +4404,8 @@ if test $ac_prog_rejected = yes; then ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" fi fi -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4194,15 +4429,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in @%:@( + e) if test -n "$CC"; then ac_cv_prog_CC="$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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4217,7 +4452,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4243,15 +4479,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in @%:@( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4266,7 +4502,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -4304,15 +4541,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in @%:@( + e) if test -n "$CC"; then ac_cv_prog_CC="$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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4327,7 +4564,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4349,15 +4587,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in @%:@( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4372,7 +4610,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -4401,10 +4640,10 @@ fi fi -test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 @@ -4476,8 +4715,8 @@ printf "%s\n" "$ac_try_echo"; } >&5 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' + # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. +# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. @@ -4497,7 +4736,7 @@ do ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' + # safe: cross compilers may not add the suffix if given an '-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. @@ -4508,8 +4747,9 @@ do done test "$ac_cv_exeext" = no && ac_cv_exeext= -else $as_nop - ac_file='' +else case e in @%:@( + e) ac_file='' ;; +esac fi if test -z "$ac_file" then : @@ -4518,13 +4758,14 @@ printf "%s\n" "no" >&6; } printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables -See \`config.log' for more details" "$LINENO" 5; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } +See 'config.log' for more details" "$LINENO" 5; } +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 printf %s "checking for C compiler default output file name... " >&6; } @@ -4548,10 +4789,10 @@ printf "%s\n" "$ac_try_echo"; } >&5 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. + # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) +# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will +# work properly (i.e., refer to 'conftest.exe'), while it won't with +# 'rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in @@ -4561,11 +4802,12 @@ for ac_file in conftest.exe conftest conftest.*; do * ) break;; esac done -else $as_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in @%:@( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi rm -f conftest conftest$ac_cv_exeext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 @@ -4581,6 +4823,8 @@ int main (void) { FILE *f = fopen ("conftest.out", "w"); + if (!f) + return 1; return ferror (f) || fclose (f) != 0; ; @@ -4620,26 +4864,27 @@ printf "%s\n" "$ac_try_echo"; } >&5 if test "$cross_compiling" = maybe; then cross_compiling=yes else - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details" "$LINENO" 5; } +If you meant to cross compile, use '--host'. +See 'config.log' for more details" "$LINENO" 5; } fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 printf "%s\n" "$cross_compiling" >&6; } -rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +rm -f conftest.$ac_ext conftest$ac_cv_exeext \ + conftest.o conftest.obj conftest.out ac_clean_files=$ac_clean_files_save { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 printf %s "checking for suffix of object files... " >&6; } if test ${ac_cv_objext+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -4671,16 +4916,18 @@ then : break;; esac done -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in @%:@( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi -rm -f conftest.$ac_cv_objext conftest.$ac_ext +rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 printf "%s\n" "$ac_cv_objext" >&6; } @@ -4691,8 +4938,8 @@ printf %s "checking whether the compiler supports GNU C... " >&6; } if test ${ac_cv_c_compiler_gnu+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -4709,12 +4956,14 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_compiler_gnu=yes -else $as_nop - ac_compiler_gnu=no +else case e in @%:@( + e) ac_compiler_gnu=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } @@ -4732,8 +4981,8 @@ printf %s "checking whether $CC accepts -g... " >&6; } if test ${ac_cv_prog_cc_g+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_save_c_werror_flag=$ac_c_werror_flag +else case e in @%:@( + e) ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" @@ -4751,8 +5000,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes -else $as_nop - CFLAGS="" +else case e in @%:@( + e) CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4767,8 +5016,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : -else $as_nop - ac_c_werror_flag=$ac_save_c_werror_flag +else case e in @%:@( + e) ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4785,12 +5034,15 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag + ac_c_werror_flag=$ac_save_c_werror_flag ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } @@ -4817,8 +5069,8 @@ printf %s "checking for $CC option to enable C11 features... " >&6; } if test ${ac_cv_prog_cc_c11+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c11=no +else case e in @%:@( + e) ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4835,25 +5087,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c11" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c11" = x +else case e in @%:@( + e) if test "x$ac_cv_prog_cc_c11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } - CC="$CC $ac_cv_prog_cc_c11" + CC="$CC $ac_cv_prog_cc_c11" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 - ac_prog_cc_stdc=c11 + ac_prog_cc_stdc=c11 ;; +esac fi fi if test x$ac_prog_cc_stdc = xno @@ -4863,8 +5118,8 @@ printf %s "checking for $CC option to enable C99 features... " >&6; } if test ${ac_cv_prog_cc_c99+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c99=no +else case e in @%:@( + e) ac_cv_prog_cc_c99=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4881,25 +5136,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c99" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c99" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c99" = x +else case e in @%:@( + e) if test "x$ac_cv_prog_cc_c99" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } - CC="$CC $ac_cv_prog_cc_c99" + CC="$CC $ac_cv_prog_cc_c99" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 - ac_prog_cc_stdc=c99 + ac_prog_cc_stdc=c99 ;; +esac fi fi if test x$ac_prog_cc_stdc = xno @@ -4909,8 +5167,8 @@ printf %s "checking for $CC option to enable C89 features... " >&6; } if test ${ac_cv_prog_cc_c89+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c89=no +else case e in @%:@( + e) ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4927,25 +5185,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c89" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c89" = x +else case e in @%:@( + e) if test "x$ac_cv_prog_cc_c89" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } - CC="$CC $ac_cv_prog_cc_c89" + CC="$CC $ac_cv_prog_cc_c89" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 - ac_prog_cc_stdc=c89 + ac_prog_cc_stdc=c89 ;; +esac fi fi @@ -4966,8 +5227,8 @@ printf %s "checking whether $CC understands -c and -o together... " >&6; } if test ${am_cv_prog_cc_c_o+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -4997,7 +5258,8 @@ _ACEOF fi done rm -f core conftest* - unset am_i + unset am_i ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } @@ -5087,8 +5349,8 @@ printf %s "checking dependency style of $depcc... " >&6; } if test ${am_cv_CC_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then +else case e in @%:@( + e) 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 @@ -5192,7 +5454,8 @@ else $as_nop else am_cv_CC_dependencies_compiler_type=none fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } @@ -5210,371 +5473,186 @@ fi +# By default we simply use the C compiler to build assembly code. +test "${CCAS+set}" = set || CCAS=$CC +test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS -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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 -printf %s "checking how to run the C preprocessor... " >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if test ${ac_cv_prog_CPP+y} + +depcc="$CCAS" am_compiler_list= + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +printf %s "checking dependency style of $depcc... " >&6; } +if test ${am_cv_CCAS_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 -else $as_nop - # Double quotes because $CC needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # 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. */ -@%:@include - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : +else case e in @%:@( + e) 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_CCAS_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 -else $as_nop - # 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_c_try_cpp "$LINENO" -then : - # Broken: success on invalid input. -continue -else $as_nop - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.i conftest.$ac_ext + 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 -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 + # 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_CCAS_dependencies_compiler_type=$depmode + break + fi + fi + done - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP + cd .. + rm -rf conftest.dir else - ac_cv_prog_CPP=$CPP + am_cv_CCAS_dependencies_compiler_type=none fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 -printf "%s\n" "$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # 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. */ -@%:@include - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : - -else $as_nop - # Broken: fails on valid input. -continue + ;; +esac fi -rm -f conftest.err conftest.i conftest.$ac_ext +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 +printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; } +CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type - # 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_c_try_cpp "$LINENO" -then : - # Broken: success on invalid input. -continue -else $as_nop - # Passes both tests. -ac_preproc_ok=: -break + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then + am__fastdepCCAS_TRUE= + am__fastdepCCAS_FALSE='#' +else + am__fastdepCCAS_TRUE='#' + am__fastdepCCAS_FALSE= fi -rm -f conftest.err conftest.i conftest.$ac_ext + + + + +ac_header= ac_cache= +for ac_item in $ac_header_c_list +do + if test $ac_cache; then + ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" + if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then + printf "%s\n" "#define $ac_item 1" >> confdefs.h + fi + ac_header= ac_cache= + elif test $ac_header; then + ac_cache=$ac_item + else + ac_header=$ac_item + fi 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 + + + + + + + + +if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes then : -else $as_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } +printf "%s\n" "@%:@define STDC_HEADERS 1" >>confdefs.h + 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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} + + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 +printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } +if test ${ac_cv_safe_to_define___extensions__+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in grep ggrep - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in -*GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_GREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_GREP=$GREP -fi - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in egrep - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_EGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_EGREP=$EGREP -fi - - fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - -if test $ac_cv_c_compiler_gnu = yes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 -printf %s "checking whether $CC needs -traditional... " >&6; } -if test ${ac_cv_prog_gcc_traditional+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_pattern="Autoconf.*'x'" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -Autoconf TIOCGETP -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "$ac_pattern" >/dev/null 2>&1 -then : - ac_cv_prog_gcc_traditional=yes -else $as_nop - ac_cv_prog_gcc_traditional=no -fi -rm -rf conftest* - - - if test $ac_cv_prog_gcc_traditional = no; then - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -Autoconf TCGETA -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "$ac_pattern" >/dev/null 2>&1 -then : - ac_cv_prog_gcc_traditional=yes -fi -rm -rf conftest* - - fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 -printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; } - if test $ac_cv_prog_gcc_traditional = yes; then - CC="$CC -traditional" - fi -fi - -ac_header= ac_cache= -for ac_item in $ac_header_c_list -do - if test $ac_cache; then - ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" - if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then - printf "%s\n" "#define $ac_item 1" >> confdefs.h - fi - ac_header= ac_cache= - elif test $ac_header; then - ac_cache=$ac_item - else - ac_header=$ac_item - fi -done - - - - - - - - -if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes -then : - -printf "%s\n" "@%:@define STDC_HEADERS 1" >>confdefs.h - -fi - - - - - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 -printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } -if test ${ac_cv_safe_to_define___extensions__+y} -then : - printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ # define __EXTENSIONS__ 1 @@ -5590,10 +5668,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_safe_to_define___extensions__=yes -else $as_nop - ac_cv_safe_to_define___extensions__=no +else case e in @%:@( + e) ac_cv_safe_to_define___extensions__=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } @@ -5603,8 +5683,8 @@ printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } if test ${ac_cv_should_define__xopen_source+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_should_define__xopen_source=no +else case e in @%:@( + e) ac_cv_should_define__xopen_source=no if test $ac_cv_header_wchar_h = yes then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -5623,8 +5703,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _XOPEN_SOURCE 500 @@ -5642,10 +5722,12 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_should_define__xopen_source=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -fi +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } @@ -5670,6 +5752,8 @@ printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } printf "%s\n" "@%:@define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h + printf "%s\n" "@%:@define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h + printf "%s\n" "@%:@define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h printf "%s\n" "@%:@define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h @@ -5689,8 +5773,9 @@ then : printf "%s\n" "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h -else $as_nop - MINIX= +else case e in @%:@( + e) MINIX= ;; +esac fi if test $ac_cv_safe_to_define___extensions__ = yes then : @@ -5714,15 +5799,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AR"; then +else case e in @%:@( + e) if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -5737,7 +5822,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi AR=$ac_cv_prog_AR if test -n "$AR"; then @@ -5763,15 +5849,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_AR"; then +else case e in @%:@( + e) if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -5786,7 +5872,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then @@ -5821,8 +5908,8 @@ printf %s "checking the archiver ($AR) interface... " >&6; } if test ${am_cv_ar_interface+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_ext=c +else case e in @%:@( + e) 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' @@ -5865,7 +5952,8 @@ 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 - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 printf "%s\n" "$am_cv_ar_interface" >&6; } @@ -5913,15 +6001,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CXX"; then +else case e in @%:@( + e) 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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -5936,7 +6024,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then @@ -5962,15 +6051,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CXX"; then +else case e in @%:@( + e) 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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -5985,7 +6074,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then @@ -6045,8 +6135,8 @@ printf %s "checking whether the compiler supports GNU C++... " >&6; } if test ${ac_cv_cxx_compiler_gnu+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -6063,12 +6153,14 @@ _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_compiler_gnu=yes -else $as_nop - ac_compiler_gnu=no +else case e in @%:@( + e) ac_compiler_gnu=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } @@ -6086,8 +6178,8 @@ printf %s "checking whether $CXX accepts -g... " >&6; } if test ${ac_cv_prog_cxx_g+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_save_cxx_werror_flag=$ac_cxx_werror_flag +else case e in @%:@( + e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" @@ -6105,8 +6197,8 @@ _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_g=yes -else $as_nop - CXXFLAGS="" +else case e in @%:@( + e) CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6121,8 +6213,8 @@ _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : -else $as_nop - ac_cxx_werror_flag=$ac_save_cxx_werror_flag +else case e in @%:@( + e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6139,12 +6231,15 @@ if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ac_cxx_werror_flag=$ac_save_cxx_werror_flag + ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } @@ -6168,11 +6263,11 @@ if test x$ac_prog_cxx_stdcxx = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 printf %s "checking for $CXX option to enable C++11 features... " >&6; } -if test ${ac_cv_prog_cxx_11+y} +if test ${ac_cv_prog_cxx_cxx11+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cxx_11=no +else case e in @%:@( + e) ac_cv_prog_cxx_cxx11=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6189,36 +6284,39 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx11" != "xno" && break done rm -f conftest.$ac_ext -CXX=$ac_save_CXX +CXX=$ac_save_CXX ;; +esac fi if test "x$ac_cv_prog_cxx_cxx11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cxx_cxx11" = x +else case e in @%:@( + e) if test "x$ac_cv_prog_cxx_cxx11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } - CXX="$CXX $ac_cv_prog_cxx_cxx11" + CXX="$CXX $ac_cv_prog_cxx_cxx11" ;; +esac fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 - ac_prog_cxx_stdcxx=cxx11 + ac_prog_cxx_stdcxx=cxx11 ;; +esac fi fi if test x$ac_prog_cxx_stdcxx = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 printf %s "checking for $CXX option to enable C++98 features... " >&6; } -if test ${ac_cv_prog_cxx_98+y} +if test ${ac_cv_prog_cxx_cxx98+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cxx_98=no +else case e in @%:@( + e) ac_cv_prog_cxx_cxx98=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6235,25 +6333,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx98" != "xno" && break done rm -f conftest.$ac_ext -CXX=$ac_save_CXX +CXX=$ac_save_CXX ;; +esac fi if test "x$ac_cv_prog_cxx_cxx98" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cxx_cxx98" = x +else case e in @%:@( + e) if test "x$ac_cv_prog_cxx_cxx98" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } - CXX="$CXX $ac_cv_prog_cxx_cxx98" + CXX="$CXX $ac_cv_prog_cxx_cxx98" ;; +esac fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 - ac_prog_cxx_stdcxx=cxx98 + ac_prog_cxx_stdcxx=cxx98 ;; +esac fi fi @@ -6270,8 +6371,8 @@ printf %s "checking dependency style of $depcc... " >&6; } if test ${am_cv_CXX_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then +else case e in @%:@( + e) 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 @@ -6375,7 +6476,8 @@ else $as_nop else am_cv_CXX_dependencies_compiler_type=none fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } @@ -6401,15 +6503,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AWK+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AWK"; then +else case e in @%:@( + e) if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -6424,7 +6526,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then @@ -6452,87 +6555,12 @@ fi - - # Make sure we can run config.sub. -$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || - as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 -printf %s "checking build system type... " >&6; } -if test ${ac_cv_build+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` -test "x$ac_build_alias" = x && - as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 -ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || - as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 -printf "%s\n" "$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 -printf %s "checking host system type... " >&6; } -if test ${ac_cv_host+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || - as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 -fi - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 -printf "%s\n" "$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - - - -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 +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 @@ -6555,8 +6583,14 @@ printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_ /* 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. */ -char pthread_join (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_join (void); int main (void) { @@ -6655,15 +6689,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ax_pthread_config+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ax_pthread_config"; then +else case e in @%:@( + e) 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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -6679,7 +6713,8 @@ done IFS=$as_save_IFS test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" -fi +fi ;; +esac fi ax_pthread_config=$ac_cv_prog_ax_pthread_config if test -n "$ax_pthread_config"; then @@ -6819,8 +6854,8 @@ printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6836,12 +6871,14 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ax_cv_PTHREAD_PRIO_INHERIT=yes -else $as_nop - ax_cv_PTHREAD_PRIO_INHERIT=no +else case e in @%:@( + e) ax_cv_PTHREAD_PRIO_INHERIT=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } @@ -6878,15 +6915,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_PTHREAD_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$PTHREAD_CC"; then +else case e in @%:@( + e) 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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -6901,7 +6938,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi PTHREAD_CC=$ac_cv_prog_PTHREAD_CC if test -n "$PTHREAD_CC"; then @@ -6940,7 +6978,7 @@ printf "%s\n" "@%:@define HAVE_PTHREAD 1" >>confdefs.h : else ax_pthread_ok=no - + as_fn_error $? "\"Missing required pthread support\"" "$LINENO" 5 fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -6950,58 +6988,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -# Extract the first word of "m4 gm4", so it can be a program name with args. -set dummy m4 gm4; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_M4+y} -then : - printf %s "(cached) " >&6 -else $as_nop - case $M4 in - [\\/]* | ?:[\\/]*) - ac_cv_path_M4="$M4" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_M4="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$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_path_M4" && ac_cv_path_M4="no" - ;; -esac -fi -M4=$ac_cv_path_M4 -if test -n "$M4"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 -printf "%s\n" "$M4" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -if test "x$M4" = xno ; then - as_fn_error $? "m4 missing" "$LINENO" 5 +# in some cases PTHREAD_LIBS is empty - force -lpthread */ +if test "x$PTHREAD_LIBS" = "x"; then + PTHREAD_LIBS="-lpthread" fi -ACLOCAL_AMFLAGS="-I m4" - +CFLAGS="$CFLAGS $PTHREAD_CFLAGS" +LIBS="$LIBS $PTHREAD_LIBS" # pkg-config @@ -7020,8 +7013,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PKG_CONFIG+y} then : printf %s "(cached) " >&6 -else $as_nop - case $PKG_CONFIG in +else case e in @%:@( + e) case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; @@ -7030,7 +7023,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -7046,6 +7039,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG @@ -7068,8 +7062,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} then : printf %s "(cached) " >&6 -else $as_nop - case $ac_pt_PKG_CONFIG in +else case e in @%:@( + e) case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; @@ -7078,7 +7072,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -7094,6 +7088,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG @@ -7136,440 +7131,421 @@ printf "%s\n" "no" >&6; } fi +case `pwd` in + *\ * | *\ *) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; +esac - - -if test -f "$prefix/lib/libltdl.la"; then - lt_save_LDFLAGS=$LDFLAGS - LDFLAGS="-L$prefix/lib $LDFLAGS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5 -printf %s "checking for lt_dlinit in -lltdl... " >&6; } -if test ${ac_cv_lib_ltdl_lt_dlinit+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS -LIBS="-lltdl $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ +macro_version='2.4.7' +macro_revision='2.4.7' -/* 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. */ -char lt_dlinit (); -int -main (void) -{ -return lt_dlinit (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_ltdl_lt_dlinit=yes -else $as_nop - ac_cv_lib_ltdl_lt_dlinit=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5 -printf "%s\n" "$ac_cv_lib_ltdl_lt_dlinit" >&6; } -if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes -then : - lt_lib_ltdl=yes -fi + + + - LDFLAGS=$lt_save_LDFLAGS - if test yes = "${lt_lib_ltdl-no}"; then - if test yes != "$enable_ltdl_install"; then - # Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: not overwriting libltdl at $prefix, force with '--enable-ltdl-install'" >&5 -printf "%s\n" "$as_me: WARNING: not overwriting libltdl at $prefix, force with '--enable-ltdl-install'" >&2;} - enable_ltdl_install=no - fi - elif test no = "$enable_ltdl_install"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libltdl not installed, but installation disabled" >&5 -printf "%s\n" "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;} - fi -fi -# If configure.ac declared an installable ltdl, and the user didn't override -# with --disable-ltdl-install, we will install the shipped libltdl. -case $enable_ltdl_install in - no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no" - LIBLTDL=-lltdl - LTDLDEPS= - LTDLINCL= - ;; - *) enable_ltdl_install=yes - ac_configure_args="$ac_configure_args --enable-ltdl-install" - LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la" - LTDLDEPS=$LIBLTDL - LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}" - ;; -esac + + + + +ltmain=$ac_aux_dir/ltmain.sh -# For backwards non-gettext consistent compatibility... -INCLTDL=$LTDLINCL +# Backslashify metacharacters that are still active within +# double-quoted strings. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' -enable_dlopen=yes +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' -enable_win32_dll=yes +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO -case $host in -*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. -set dummy ${ac_tool_prefix}as; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_AS+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 +printf %s "checking how to print strings... " >&6; } +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' +else + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' +fi + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "" +} + +case $ECHO in + printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 +printf "%s\n" "printf" >&6; } ;; + print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 +printf "%s\n" "print -r" >&6; } ;; + *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 +printf "%s\n" "cat" >&6; } ;; +esac + + + + + + + + + + + + + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +printf %s "checking for a sed that does not truncate output... " >&6; } +if test ${ac_cv_path_SED+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AS"; then - ac_cv_prog_AS="$AS" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in @%:@( + e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac + for ac_prog in sed gsed + do 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_AS="${ac_tool_prefix}as" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done + ac_path_SED="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_SED" || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in @%:@( +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +@%:@( +*) + ac_count=0 + printf %s 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + printf "%s\n" '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break done -IFS=$as_save_IFS + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac -fi -fi -AS=$ac_cv_prog_AS -if test -n "$AS"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 -printf "%s\n" "$AS" >&6; } + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + ac_cv_path_SED=$SED +fi + ;; +esac fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +printf "%s\n" "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" -fi -if test -z "$ac_cv_prog_AS"; then - ac_ct_AS=$AS - # Extract the first word of "as", so it can be a program name with args. -set dummy as; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_AS+y} + + + + + + + + + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +printf %s "checking for grep that handles long lines and -e... " >&6; } +if test ${ac_cv_path_GREP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_AS"; then - ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH +else case e in @%:@( + e) if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac + for ac_prog in grep ggrep + do 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_AS="as" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done + ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_GREP" || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in @%:@( +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +@%:@( +*) + ac_count=0 + printf %s 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + printf "%s\n" 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break done -IFS=$as_save_IFS + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac -fi -fi -ac_ct_AS=$ac_cv_prog_ac_ct_AS -if test -n "$ac_ct_AS"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 -printf "%s\n" "$ac_ct_AS" >&6; } + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + ac_cv_path_GREP=$GREP fi - - if test "x$ac_ct_AS" = x; then - AS="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; + ;; esac - AS=$ac_ct_AS - fi -else - AS="$ac_cv_prog_AS" fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +printf "%s\n" "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. -set dummy ${ac_tool_prefix}dlltool; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_DLLTOOL+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +printf %s "checking for egrep... " >&6; } +if test ${ac_cv_path_EGREP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DLLTOOL"; then - ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH +else case e in @%:@( + e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac + for ac_prog in egrep + do 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_DLLTOOL="${ac_tool_prefix}dlltool" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done + ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP" || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in @%:@( +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +@%:@( +*) + ac_count=0 + printf %s 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + printf "%s\n" 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break done -IFS=$as_save_IFS + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac -fi -fi -DLLTOOL=$ac_cv_prog_DLLTOOL -if test -n "$DLLTOOL"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 -printf "%s\n" "$DLLTOOL" >&6; } + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + ac_cv_path_EGREP=$EGREP fi - + fi ;; +esac fi -if test -z "$ac_cv_prog_DLLTOOL"; then - ac_ct_DLLTOOL=$DLLTOOL - # Extract the first word of "dlltool", so it can be a program name with args. -set dummy dlltool; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_DLLTOOL+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +printf "%s\n" "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + EGREP_TRADITIONAL=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 +printf %s "checking for fgrep... " >&6; } +if test ${ac_cv_path_FGREP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_DLLTOOL"; then - ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DLLTOOL="dlltool" - printf "%s\n" "$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_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL -if test -n "$ac_ct_DLLTOOL"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 -printf "%s\n" "$ac_ct_DLLTOOL" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_DLLTOOL" = x; then - DLLTOOL="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - DLLTOOL=$ac_ct_DLLTOOL - fi -else - DLLTOOL="$ac_cv_prog_DLLTOOL" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. -set dummy ${ac_tool_prefix}objdump; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_OBJDUMP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test -n "$OBJDUMP"; then - ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH +else case e in @%:@( + e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 + then ac_cv_path_FGREP="$GREP -F" + else + if test -z "$FGREP"; then + ac_path_FGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac + for ac_prog in fgrep + do 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_OBJDUMP="${ac_tool_prefix}objdump" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done + ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_FGREP" || continue +# Check for GNU ac_path_FGREP and select it if it is found. + # Check for GNU $ac_path_FGREP +case `"$ac_path_FGREP" --version 2>&1` in @%:@( +*GNU*) + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; +@%:@( +*) + ac_count=0 + printf %s 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + printf "%s\n" 'FGREP' >> "conftest.nl" + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_FGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_FGREP="$ac_path_FGREP" + ac_path_FGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break done -IFS=$as_save_IFS - -fi -fi -OBJDUMP=$ac_cv_prog_OBJDUMP -if test -n "$OBJDUMP"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 -printf "%s\n" "$OBJDUMP" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac -fi -if test -z "$ac_cv_prog_OBJDUMP"; then - ac_ct_OBJDUMP=$OBJDUMP - # Extract the first word of "objdump", so it can be a program name with args. -set dummy objdump; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_OBJDUMP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_OBJDUMP"; then - ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_OBJDUMP="objdump" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done + $ac_path_FGREP_found && break 3 + done + done done IFS=$as_save_IFS - -fi -fi -ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP -if test -n "$ac_ct_OBJDUMP"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 -printf "%s\n" "$ac_ct_OBJDUMP" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_OBJDUMP" = x; then - OBJDUMP="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - OBJDUMP=$ac_ct_OBJDUMP + if test -z "$ac_cv_path_FGREP"; then + as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - OBJDUMP="$ac_cv_prog_OBJDUMP" + ac_cv_path_FGREP=$FGREP fi - ;; + fi ;; esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 +printf "%s\n" "$ac_cv_path_FGREP" >&6; } + FGREP="$ac_cv_path_FGREP" + -test -z "$AS" && AS=as - - - - - -test -z "$DLLTOOL" && DLLTOOL=dlltool - - - - - -test -z "$OBJDUMP" && OBJDUMP=objdump +test -z "$GREP" && GREP=grep - -case `pwd` in - *\ * | *\ *) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 -printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; -esac - - - -macro_version='2.4.7' -macro_revision='2.4.7' - @@ -7582,266 +7558,15 @@ macro_revision='2.4.7' - -ltmain=$ac_aux_dir/ltmain.sh - -# Backslashify metacharacters that are still active within -# double-quoted strings. -sed_quote_subst='s/\(["`$\\]\)/\\\1/g' - -# Same as above, but do not quote variable references. -double_quote_subst='s/\(["`\\]\)/\\\1/g' - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to delay expansion of an escaped single quote. -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' - -ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 -printf %s "checking how to print strings... " >&6; } -# Test print first, because it will be a builtin if present. -if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ - test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then - ECHO='print -r --' -elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then - ECHO='printf %s\n' -else - # Use this function as a fallback that always works. - func_fallback_echo () - { - eval 'cat <<_LTECHO_EOF -$1 -_LTECHO_EOF' - } - ECHO='func_fallback_echo' -fi - -# func_echo_all arg... -# Invoke $ECHO with all args, space-separated. -func_echo_all () -{ - $ECHO "" -} -case $ECHO in - printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 -printf "%s\n" "printf" >&6; } ;; - print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 -printf "%s\n" "print -r" >&6; } ;; - *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 -printf "%s\n" "cat" >&6; } ;; +@%:@ Check whether --with-gnu-ld was given. +if test ${with_gnu_ld+y} +then : + withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes +else case e in @%:@( + e) with_gnu_ld=no ;; esac - - - - - - - - - - - - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 -printf %s "checking for a sed that does not truncate output... " >&6; } -if test ${ac_cv_path_SED+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ - for ac_i in 1 2 3 4 5 6 7; do - ac_script="$ac_script$as_nl$ac_script" - done - echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed - { ac_script=; unset ac_script;} - if test -z "$SED"; then - ac_path_SED_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in sed gsed - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_SED="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_SED" || continue -# Check for GNU ac_path_SED and select it if it is found. - # Check for GNU $ac_path_SED -case `"$ac_path_SED" --version 2>&1` in -*GNU*) - ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" '' >> "conftest.nl" - "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_SED_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_SED="$ac_path_SED" - ac_path_SED_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_SED_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_SED"; then - as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 - fi -else - ac_cv_path_SED=$SED -fi - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 -printf "%s\n" "$ac_cv_path_SED" >&6; } - SED="$ac_cv_path_SED" - rm -f conftest.sed - -test -z "$SED" && SED=sed -Xsed="$SED -e 1s/^X//" - - - - - - - - - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 -printf %s "checking for fgrep... " >&6; } -if test ${ac_cv_path_FGREP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 - then ac_cv_path_FGREP="$GREP -F" - else - if test -z "$FGREP"; then - ac_path_FGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in fgrep - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_FGREP" || continue -# Check for GNU ac_path_FGREP and select it if it is found. - # Check for GNU $ac_path_FGREP -case `"$ac_path_FGREP" --version 2>&1` in -*GNU*) - ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" 'FGREP' >> "conftest.nl" - "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_FGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_FGREP="$ac_path_FGREP" - ac_path_FGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_FGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_FGREP"; then - as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_FGREP=$FGREP -fi - - fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 -printf "%s\n" "$ac_cv_path_FGREP" >&6; } - FGREP="$ac_cv_path_FGREP" - - -test -z "$GREP" && GREP=grep - - - - - - - - - - - - - - - - - - - -@%:@ Check whether --with-gnu-ld was given. -if test ${with_gnu_ld+y} -then : - withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes -else $as_nop - with_gnu_ld=no -fi +fi ac_prog=ld if test yes = "$GCC"; then @@ -7885,8 +7610,8 @@ fi if test ${lt_cv_path_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$LD"; then +else case e in @%:@( + e) if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs @@ -7909,7 +7634,8 @@ else $as_nop IFS=$lt_save_ifs else lt_cv_path_LD=$LD # Let the user override the test with a path. -fi +fi ;; +esac fi LD=$lt_cv_path_LD @@ -7926,8 +7652,8 @@ printf %s "checking if the linker ($LD) is GNU ld... " >&6; } if test ${lt_cv_prog_gnu_ld+y} then : printf %s "(cached) " >&6 -else $as_nop - # I'd rather use --version here, but apparently some GNU lds only accept -v. +else case e in @%:@( + e) # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &1 &5 @@ -7954,8 +7681,8 @@ printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if test ${lt_cv_path_NM+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$NM"; then +else case e in @%:@( + e) if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM=$NM else @@ -8002,7 +7729,8 @@ else IFS=$lt_save_ifs done : ${lt_cv_path_NM=no} -fi +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 printf "%s\n" "$lt_cv_path_NM" >&6; } @@ -8023,15 +7751,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DUMPBIN+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DUMPBIN"; then +else case e in @%:@( + e) if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8046,7 +7774,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then @@ -8072,15 +7801,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DUMPBIN+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_DUMPBIN"; then +else case e in @%:@( + e) if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8095,7 +7824,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then @@ -8149,8 +7879,8 @@ printf %s "checking the name lister ($NM) interface... " >&6; } if test ${lt_cv_nm_interface+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_nm_interface="BSD nm" +else case e in @%:@( + e) lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) @@ -8163,7 +7893,8 @@ else $as_nop if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi - rm -f conftest* + rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 printf "%s\n" "$lt_cv_nm_interface" >&6; } @@ -8174,8 +7905,8 @@ printf %s "checking the maximum length of command line arguments... " >&6; } if test ${lt_cv_sys_max_cmd_len+y} then : printf %s "(cached) " >&6 -else $as_nop - i=0 +else case e in @%:@( + e) i=0 teststring=ABCD case $build_os in @@ -8297,7 +8028,8 @@ else $as_nop fi ;; esac - + ;; +esac fi if test -n "$lt_cv_sys_max_cmd_len"; then @@ -8354,8 +8086,8 @@ printf %s "checking how to convert $build file names to $host format... " >&6; } if test ${lt_cv_to_host_file_cmd+y} then : printf %s "(cached) " >&6 -else $as_nop - case $host in +else case e in @%:@( + e) case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys @@ -8386,7 +8118,8 @@ else $as_nop lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac - + ;; +esac fi to_host_file_cmd=$lt_cv_to_host_file_cmd @@ -8402,8 +8135,8 @@ printf %s "checking how to convert $build file names to toolchain format... " >& if test ${lt_cv_to_tool_file_cmd+y} then : printf %s "(cached) " >&6 -else $as_nop - #assume ordinary cross tools, or native build. +else case e in @%:@( + e) #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) @@ -8414,7 +8147,8 @@ case $host in esac ;; esac - + ;; +esac fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd @@ -8430,8 +8164,9 @@ printf %s "checking for $LD option to reload object files... " >&6; } if test ${lt_cv_ld_reload_flag+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_ld_reload_flag='-r' +else case e in @%:@( + e) lt_cv_ld_reload_flag='-r' ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } @@ -8472,15 +8207,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_FILECMD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$FILECMD"; then +else case e in @%:@( + e) if test -n "$FILECMD"; then ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8495,7 +8230,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi FILECMD=$ac_cv_prog_FILECMD if test -n "$FILECMD"; then @@ -8517,15 +8253,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_FILECMD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_FILECMD"; then +else case e in @%:@( + e) if test -n "$ac_ct_FILECMD"; then ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8540,7 +8276,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD if test -n "$ac_ct_FILECMD"; then @@ -8580,15 +8317,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OBJDUMP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$OBJDUMP"; then +else case e in @%:@( + e) if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8603,7 +8340,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then @@ -8625,15 +8363,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OBJDUMP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_OBJDUMP"; then +else case e in @%:@( + e) if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8648,7 +8386,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then @@ -8686,8 +8425,8 @@ printf %s "checking how to recognize dependent libraries... " >&6; } if test ${lt_cv_deplibs_check_method+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_file_magic_cmd='$MAGIC_CMD' +else case e in @%:@( + e) lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support @@ -8880,7 +8619,8 @@ os2*) lt_cv_deplibs_check_method=pass_all ;; esac - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } @@ -8932,15 +8672,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DLLTOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DLLTOOL"; then +else case e in @%:@( + e) if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8955,7 +8695,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then @@ -8977,15 +8718,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DLLTOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_DLLTOOL"; then +else case e in @%:@( + e) if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9000,7 +8741,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then @@ -9039,8 +8781,8 @@ printf %s "checking how to associate runtime and link libraries... " >&6; } if test ${lt_cv_sharedlib_from_linklib_cmd+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_sharedlib_from_linklib_cmd='unknown' +else case e in @%:@( + e) lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) @@ -9060,7 +8802,8 @@ cygwin* | mingw* | pw32* | cegcc*) lt_cv_sharedlib_from_linklib_cmd=$ECHO ;; esac - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } @@ -9083,15 +8826,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AR"; then +else case e in @%:@( + e) if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9106,7 +8849,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi AR=$ac_cv_prog_AR if test -n "$AR"; then @@ -9132,15 +8876,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_AR"; then +else case e in @%:@( + e) if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9155,7 +8899,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then @@ -9217,8 +8962,8 @@ printf %s "checking for archiver @FILE support... " >&6; } if test ${lt_cv_ar_at_file+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_ar_at_file=no +else case e in @%:@( + e) lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -9255,7 +9000,8 @@ then : fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 printf "%s\n" "$lt_cv_ar_at_file" >&6; } @@ -9280,15 +9026,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$STRIP"; then +else case e in @%:@( + e) if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9303,7 +9049,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then @@ -9325,15 +9072,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_STRIP"; then +else case e in @%:@( + e) if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9348,7 +9095,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then @@ -9389,15 +9137,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_RANLIB+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$RANLIB"; then +else case e in @%:@( + e) if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9412,7 +9160,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then @@ -9434,15 +9183,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_RANLIB+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_RANLIB"; then +else case e in @%:@( + e) if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9457,7 +9206,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then @@ -9568,8 +9318,8 @@ printf %s "checking command to parse $NM output from $compiler object... " >&6; if test ${lt_cv_sys_global_symbol_pipe+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in @%:@( + e) # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] @@ -9824,7 +9574,8 @@ _LT_EOF lt_cv_sys_global_symbol_pipe= fi done - + ;; +esac fi if test -z "$lt_cv_sys_global_symbol_pipe"; then @@ -9888,8 +9639,9 @@ printf %s "checking for sysroot... " >&6; } if test ${with_sysroot+y} then : withval=$with_sysroot; -else $as_nop - with_sysroot=no +else case e in @%:@( + e) with_sysroot=no ;; +esac fi @@ -9924,8 +9676,8 @@ printf %s "checking for a working dd... " >&6; } if test ${ac_cv_path_lt_DD+y} then : printf %s "(cached) " >&6 -else $as_nop - printf 0123456789abcdef0123456789abcdef >conftest.i +else case e in @%:@( + e) printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} if test -z "$lt_DD"; then @@ -9935,7 +9687,7 @@ if test -z "$lt_DD"; then for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9961,7 +9713,8 @@ else ac_cv_path_lt_DD=$lt_DD fi -rm -f conftest.i conftest2.i conftest.out +rm -f conftest.i conftest2.i conftest.out ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } @@ -9972,8 +9725,8 @@ printf %s "checking how to truncate binary pipes... " >&6; } if test ${lt_cv_truncate_bin+y} then : printf %s "(cached) " >&6 -else $as_nop - printf 0123456789abcdef0123456789abcdef >conftest.i +else case e in @%:@( + e) printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then @@ -9981,7 +9734,8 @@ if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; the && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" fi rm -f conftest.i conftest2.i conftest.out -test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" +test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 printf "%s\n" "$lt_cv_truncate_bin" >&6; } @@ -10191,8 +9945,8 @@ printf %s "checking whether the C compiler needs -belf... " >&6; } if test ${lt_cv_cc_needs_belf+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_ext=c +else case e in @%:@( + e) 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' @@ -10212,8 +9966,9 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_cc_needs_belf=yes -else $as_nop - lt_cv_cc_needs_belf=no +else case e in @%:@( + e) lt_cv_cc_needs_belf=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -10222,7 +9977,8 @@ 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 - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } @@ -10280,15 +10036,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_MANIFEST_TOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$MANIFEST_TOOL"; then +else case e in @%:@( + e) if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10303,7 +10059,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then @@ -10325,15 +10082,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_MANIFEST_TOOL"; then +else case e in @%:@( + e) if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10348,7 +10105,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then @@ -10380,15 +10138,16 @@ printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } if test ${lt_cv_path_mainfest_tool+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_path_mainfest_tool=no +else case e in @%:@( + e) lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&5 if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi - rm -f conftest* + rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } @@ -10411,15 +10170,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DSYMUTIL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DSYMUTIL"; then +else case e in @%:@( + e) if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10434,7 +10193,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then @@ -10456,15 +10216,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_DSYMUTIL"; then +else case e in @%:@( + e) if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10479,7 +10239,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then @@ -10513,15 +10274,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_NMEDIT+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$NMEDIT"; then +else case e in @%:@( + e) if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10536,7 +10297,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then @@ -10558,15 +10320,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_NMEDIT+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_NMEDIT"; then +else case e in @%:@( + e) if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10581,7 +10343,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then @@ -10615,15 +10378,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_LIPO+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$LIPO"; then +else case e in @%:@( + e) if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10638,7 +10401,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then @@ -10660,15 +10424,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_LIPO+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_LIPO"; then +else case e in @%:@( + e) if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10683,7 +10447,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then @@ -10717,15 +10482,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OTOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$OTOOL"; then +else case e in @%:@( + e) if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10740,7 +10505,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then @@ -10762,15 +10528,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OTOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_OTOOL"; then +else case e in @%:@( + e) if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10785,7 +10551,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then @@ -10819,15 +10586,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OTOOL64+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$OTOOL64"; then +else case e in @%:@( + e) if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10842,7 +10609,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then @@ -10864,15 +10632,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OTOOL64+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_OTOOL64"; then +else case e in @%:@( + e) if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10887,7 +10655,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then @@ -10944,8 +10713,8 @@ printf %s "checking for -single_module linker flag... " >&6; } if test ${lt_cv_apple_cc_single_mod+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_apple_cc_single_mod=no +else case e in @%:@( + e) lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE @@ -10971,7 +10740,8 @@ else $as_nop fi rm -rf libconftest.dylib* rm -f conftest.* - fi + fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } @@ -10981,8 +10751,8 @@ printf %s "checking for -exported_symbols_list linker flag... " >&6; } if test ${lt_cv_ld_exported_symbols_list+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_ld_exported_symbols_list=no +else case e in @%:@( + e) lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" @@ -11000,13 +10770,15 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_ld_exported_symbols_list=yes -else $as_nop - lt_cv_ld_exported_symbols_list=no +else case e in @%:@( + e) lt_cv_ld_exported_symbols_list=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } @@ -11016,8 +10788,8 @@ printf %s "checking for -force_load linker flag... " >&6; } if test ${lt_cv_ld_force_load+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_ld_force_load=no +else case e in @%:@( + e) lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF @@ -11042,7 +10814,8 @@ _LT_EOF fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 printf "%s\n" "$lt_cv_ld_force_load" >&6; } @@ -11135,255 +10908,598 @@ func_stripname_cnf () # Set options +enable_dlopen=yes +enable_win32_dll=yes - - - - - @%:@ Check whether --enable-shared was given. -if test ${enable_shared+y} +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. +set dummy ${ac_tool_prefix}as; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_AS+y} then : - enableval=$enable_shared; p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS=$lt_save_ifs - ;; - esac -else $as_nop - enable_shared=yes -fi - - - - - - - - + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test -n "$AS"; then + ac_cv_prog_AS="$AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_AS="${ac_tool_prefix}as" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - @%:@ Check whether --enable-static was given. -if test ${enable_static+y} -then : - enableval=$enable_static; p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS=$lt_save_ifs - ;; - esac -else $as_nop - enable_static=yes +fi ;; +esac fi - - - - - - - - - - -@%:@ Check whether --with-pic was given. -if test ${with_pic+y} -then : - withval=$with_pic; lt_p=${PACKAGE-default} - case $withval in - yes|no) pic_mode=$withval ;; - *) - pic_mode=default - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for lt_pkg in $withval; do - IFS=$lt_save_ifs - if test "X$lt_pkg" = "X$lt_p"; then - pic_mode=yes - fi - done - IFS=$lt_save_ifs - ;; - esac -else $as_nop - pic_mode=default +AS=$ac_cv_prog_AS +if test -n "$AS"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 +printf "%s\n" "$AS" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - - - - - - - @%:@ Check whether --enable-fast-install was given. -if test ${enable_fast_install+y} -then : - enableval=$enable_fast_install; p=${PACKAGE-default} - case $enableval in - yes) enable_fast_install=yes ;; - no) enable_fast_install=no ;; - *) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS=$lt_save_ifs - ;; - esac -else $as_nop - enable_fast_install=yes fi - - - - - - - - - shared_archive_member_spec= -case $host,$enable_shared in -power*-*-aix[5-9]*,yes) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 -printf %s "checking which variant of shared library versioning to provide... " >&6; } - -@%:@ Check whether --with-aix-soname was given. -if test ${with_aix_soname+y} -then : - withval=$with_aix_soname; case $withval in - aix|svr4|both) - ;; - *) - as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 - ;; - esac - lt_cv_with_aix_soname=$with_aix_soname -else $as_nop - if test ${lt_cv_with_aix_soname+y} +if test -z "$ac_cv_prog_AS"; then + ac_ct_AS=$AS + # Extract the first word of "as", so it can be a program name with args. +set dummy as; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_AS+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_with_aix_soname=aix +else case e in @%:@( + e) if test -n "$ac_ct_AS"; then + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_AS="as" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi ;; +esac +fi +ac_ct_AS=$ac_cv_prog_ac_ct_AS +if test -n "$ac_ct_AS"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 +printf "%s\n" "$ac_ct_AS" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - with_aix_soname=$lt_cv_with_aix_soname + if test "x$ac_ct_AS" = x; then + AS="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AS=$ac_ct_AS + fi +else + AS="$ac_cv_prog_AS" fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 -printf "%s\n" "$with_aix_soname" >&6; } - if test aix != "$with_aix_soname"; then - # For the AIX way of multilib, we name the shared archive member - # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', - # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. - # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, - # the AIX toolchain works better with OBJECT_MODE set (default 32). - if test 64 = "${OBJECT_MODE-32}"; then - shared_archive_member_spec=shr_64 - else - shared_archive_member_spec=shr - fi + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_DLLTOOL+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_DLLTOOL="${ac_tool_prefix}dlltool" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 fi - ;; -*) - with_aix_soname=aix - ;; +done + done +IFS=$as_save_IFS + +fi ;; esac +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +printf "%s\n" "$DLLTOOL" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi - - - +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_DLLTOOL+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_DLLTOOL="dlltool" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS +fi ;; +esac +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +printf "%s\n" "$ac_ct_DLLTOOL" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi - + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_OBJDUMP+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_OBJDUMP="${ac_tool_prefix}objdump" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS +fi ;; +esac +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +printf "%s\n" "$OBJDUMP" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS=$ltmain -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_OBJDUMP+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_OBJDUMP="objdump" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi ;; +esac +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +printf "%s\n" "$ac_ct_OBJDUMP" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + ;; +esac +test -z "$AS" && AS=as - - - +test -z "$DLLTOOL" && DLLTOOL=dlltool - - - +test -z "$OBJDUMP" && OBJDUMP=objdump - - - - - - -test -z "$LN_S" && LN_S="ln -s" - - - + + + @%:@ Check whether --enable-shared was given. +if test ${enable_shared+y} +then : + enableval=$enable_shared; p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS=$lt_save_ifs + ;; + esac +else case e in @%:@( + e) enable_shared=yes ;; +esac +fi - - - + -if test -n "${ZSH_VERSION+set}"; then - setopt NO_GLOB_SUBST -fi + + @%:@ Check whether --enable-static was given. +if test ${enable_static+y} +then : + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS=$lt_save_ifs + ;; + esac +else case e in @%:@( + e) enable_static=yes ;; +esac +fi + + + + + + + + + + +@%:@ Check whether --with-pic was given. +if test ${with_pic+y} +then : + withval=$with_pic; lt_p=${PACKAGE-default} + case $withval in + yes|no) pic_mode=$withval ;; + *) + pic_mode=default + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for lt_pkg in $withval; do + IFS=$lt_save_ifs + if test "X$lt_pkg" = "X$lt_p"; then + pic_mode=yes + fi + done + IFS=$lt_save_ifs + ;; + esac +else case e in @%:@( + e) pic_mode=default ;; +esac +fi + + + + + + + + + @%:@ Check whether --enable-fast-install was given. +if test ${enable_fast_install+y} +then : + enableval=$enable_fast_install; p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS=$lt_save_ifs + ;; + esac +else case e in @%:@( + e) enable_fast_install=yes ;; +esac +fi + + + + + + + + + shared_archive_member_spec= +case $host,$enable_shared in +power*-*-aix[5-9]*,yes) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 +printf %s "checking which variant of shared library versioning to provide... " >&6; } + +@%:@ Check whether --with-aix-soname was given. +if test ${with_aix_soname+y} +then : + withval=$with_aix_soname; case $withval in + aix|svr4|both) + ;; + *) + as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 + ;; + esac + lt_cv_with_aix_soname=$with_aix_soname +else case e in @%:@( + e) if test ${lt_cv_with_aix_soname+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) lt_cv_with_aix_soname=aix ;; +esac +fi + + with_aix_soname=$lt_cv_with_aix_soname ;; +esac +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 +printf "%s\n" "$with_aix_soname" >&6; } + if test aix != "$with_aix_soname"; then + # For the AIX way of multilib, we name the shared archive member + # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', + # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. + # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, + # the AIX toolchain works better with OBJECT_MODE set (default 32). + if test 64 = "${OBJECT_MODE-32}"; then + shared_archive_member_spec=shr_64 + else + shared_archive_member_spec=shr + fi + fi + ;; +*) + with_aix_soname=aix + ;; +esac + + + + + + + + + + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS=$ltmain + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +test -z "$LN_S" && LN_S="ln -s" + + + + + + + + + + + + + + +if test -n "${ZSH_VERSION+set}"; then + setopt NO_GLOB_SUBST +fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 printf %s "checking for objdir... " >&6; } if test ${lt_cv_objdir+y} then : printf %s "(cached) " >&6 -else $as_nop - rm -f .libs 2>/dev/null +else case e in @%:@( + e) rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs @@ -11391,7 +11507,8 @@ else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi -rmdir .libs 2>/dev/null +rmdir .libs 2>/dev/null ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 printf "%s\n" "$lt_cv_objdir" >&6; } @@ -11452,8 +11569,8 @@ printf %s "checking for ${ac_tool_prefix}file... " >&6; } if test ${lt_cv_path_MAGIC_CMD+y} then : printf %s "(cached) " >&6 -else $as_nop - case $MAGIC_CMD in +else case e in @%:@( + e) case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; @@ -11496,6 +11613,7 @@ _LT_EOF IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; +esac ;; esac fi @@ -11519,8 +11637,8 @@ printf %s "checking for file... " >&6; } if test ${lt_cv_path_MAGIC_CMD+y} then : printf %s "(cached) " >&6 -else $as_nop - case $MAGIC_CMD in +else case e in @%:@( + e) case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; @@ -11563,6 +11681,7 @@ _LT_EOF IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; +esac ;; esac fi @@ -11662,8 +11781,8 @@ printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if test ${lt_cv_prog_compiler_rtti_exceptions+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_rtti_exceptions=no +else case e in @%:@( + e) lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment @@ -11691,7 +11810,8 @@ else $as_nop fi fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } @@ -12056,8 +12176,9 @@ printf %s "checking for $compiler option to produce PIC... " >&6; } if test ${lt_cv_prog_compiler_pic+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_pic=$lt_prog_compiler_pic +else case e in @%:@( + e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } @@ -12072,8 +12193,8 @@ printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; if test ${lt_cv_prog_compiler_pic_works+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_pic_works=no +else case e in @%:@( + e) lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment @@ -12101,7 +12222,8 @@ else $as_nop fi fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } @@ -12137,8 +12259,8 @@ printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; if test ${lt_cv_prog_compiler_static_works+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_static_works=no +else case e in @%:@( + e) lt_cv_prog_compiler_static_works=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext @@ -12159,7 +12281,8 @@ else $as_nop fi $RM -r conftest* LDFLAGS=$save_LDFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } @@ -12181,8 +12304,8 @@ printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_c_o=no +else case e in @%:@( + e) lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest @@ -12222,7 +12345,8 @@ else $as_nop cd .. $RM -r conftest $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } @@ -12237,8 +12361,8 @@ printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_c_o=no +else case e in @%:@( + e) lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest @@ -12278,7 +12402,8 @@ else $as_nop cd .. $RM -r conftest $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } @@ -12873,8 +12998,8 @@ else if test ${lt_cv_aix_libpath_+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -12906,7 +13031,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi - + ;; +esac fi aix_libpath=$lt_cv_aix_libpath_ @@ -12928,8 +13054,8 @@ else if test ${lt_cv_aix_libpath_+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -12961,7 +13087,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi - + ;; +esac fi aix_libpath=$lt_cv_aix_libpath_ @@ -13212,8 +13339,8 @@ printf %s "checking if $CC understands -b... " >&6; } if test ${lt_cv_prog_compiler__b+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler__b=no +else case e in @%:@( + e) lt_cv_prog_compiler__b=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -b" echo "$lt_simple_link_test_code" > conftest.$ac_ext @@ -13234,7 +13361,8 @@ else $as_nop fi $RM -r conftest* LDFLAGS=$save_LDFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } @@ -13282,8 +13410,8 @@ printf %s "checking whether the $host_os linker accepts -exported_symbol... " >& if test ${lt_cv_irix_exported_symbol+y} then : printf %s "(cached) " >&6 -else $as_nop - save_LDFLAGS=$LDFLAGS +else case e in @%:@( + e) save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -13292,12 +13420,14 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_irix_exported_symbol=yes -else $as_nop - lt_cv_irix_exported_symbol=no +else case e in @%:@( + e) lt_cv_irix_exported_symbol=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - LDFLAGS=$save_LDFLAGS + LDFLAGS=$save_LDFLAGS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } @@ -13623,8 +13753,8 @@ printf %s "checking whether -lc should be explicitly linked in... " >&6; } if test ${lt_cv_archive_cmds_need_lc+y} then : printf %s "(cached) " >&6 -else $as_nop - $RM conftest* +else case e in @%:@( + e) $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 @@ -13660,7 +13790,8 @@ else $as_nop cat conftest.err 1>&5 fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } @@ -14387,8 +14518,8 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) if test ${lt_cv_shlibpath_overrides_runpath+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_shlibpath_overrides_runpath=no +else case e in @%:@( + e) lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ @@ -14415,7 +14546,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir - + ;; +esac fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath @@ -14840,16 +14972,22 @@ printf %s "checking for dlopen in -ldl... " >&6; } if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in @%:@( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $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. */ -char dlopen (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (void); int main (void) { @@ -14861,24 +14999,27 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes -else $as_nop - ac_cv_lib_dl_dlopen=no +else case e in @%:@( + e) ac_cv_lib_dl_dlopen=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl -else $as_nop - +else case e in @%:@( + e) lt_cv_dlopen=dyld lt_cv_dlopen_libs= lt_cv_dlopen_self=yes - + ;; +esac fi ;; @@ -14896,22 +15037,28 @@ fi if test "x$ac_cv_func_shl_load" = xyes then : lt_cv_dlopen=shl_load -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 printf %s "checking for shl_load in -ldld... " >&6; } if test ${ac_cv_lib_dld_shl_load+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in @%:@( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $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. */ -char shl_load (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (void); int main (void) { @@ -14923,39 +15070,47 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dld_shl_load=yes -else $as_nop - ac_cv_lib_dld_shl_load=no +else case e in @%:@( + e) ac_cv_lib_dld_shl_load=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = xyes then : lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld -else $as_nop - ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +else case e in @%:@( + e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes then : lt_cv_dlopen=dlopen -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 printf %s "checking for dlopen in -ldl... " >&6; } if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in @%:@( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $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. */ -char dlopen (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (void); int main (void) { @@ -14967,34 +15122,42 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes -else $as_nop - ac_cv_lib_dl_dlopen=no +else case e in @%:@( + e) ac_cv_lib_dl_dlopen=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 printf %s "checking for dlopen in -lsvld... " >&6; } if test ${ac_cv_lib_svld_dlopen+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in @%:@( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $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. */ -char dlopen (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (void); int main (void) { @@ -15006,34 +15169,42 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_svld_dlopen=yes -else $as_nop - ac_cv_lib_svld_dlopen=no +else case e in @%:@( + e) ac_cv_lib_svld_dlopen=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = xyes then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 printf %s "checking for dld_link in -ldld... " >&6; } if test ${ac_cv_lib_dld_dld_link+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in @%:@( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $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. */ -char dld_link (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (void); int main (void) { @@ -15045,12 +15216,14 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dld_dld_link=yes -else $as_nop - ac_cv_lib_dld_dld_link=no +else case e in @%:@( + e) ac_cv_lib_dld_dld_link=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } @@ -15059,19 +15232,24 @@ then : lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld fi - + ;; +esac fi - + ;; +esac fi - + ;; +esac fi - + ;; +esac fi - + ;; +esac fi ;; @@ -15099,8 +15277,8 @@ printf %s "checking whether a program can dlopen itself... " >&6; } if test ${lt_cv_dlopen_self+y} then : printf %s "(cached) " >&6 -else $as_nop - if test yes = "$cross_compiling"; then : +else case e in @%:@( + e) if test yes = "$cross_compiling"; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 @@ -15194,7 +15372,8 @@ _LT_EOF fi rm -fr conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 printf "%s\n" "$lt_cv_dlopen_self" >&6; } @@ -15206,8 +15385,8 @@ printf %s "checking whether a statically linked program can dlopen itself... " > if test ${lt_cv_dlopen_self_static+y} then : printf %s "(cached) " >&6 -else $as_nop - if test yes = "$cross_compiling"; then : +else case e in @%:@( + e) if test yes = "$cross_compiling"; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 @@ -15301,7 +15480,8 @@ _LT_EOF fi rm -fr conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } @@ -15459,8 +15639,8 @@ if test -z "$CXXCPP"; then if test ${ac_cv_prog_CXXCPP+y} then : printf %s "(cached) " >&6 -else $as_nop - # Double quotes because $CXX needs to be expanded +else case e in @%:@( + e) # Double quotes because $CXX needs to be expanded for CXXCPP in "$CXX -E" cpp /lib/cpp do ac_preproc_ok=false @@ -15478,9 +15658,10 @@ _ACEOF if ac_fn_cxx_try_cpp "$LINENO" then : -else $as_nop - # Broken: fails on valid input. -continue +else case e in @%:@( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -15494,15 +15675,16 @@ if ac_fn_cxx_try_cpp "$LINENO" then : # Broken: success on invalid input. continue -else $as_nop - # Passes both tests. +else case e in @%:@( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# 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 : @@ -15511,7 +15693,8 @@ fi done ac_cv_prog_CXXCPP=$CXXCPP - + ;; +esac fi CXXCPP=$ac_cv_prog_CXXCPP else @@ -15534,9 +15717,10 @@ _ACEOF if ac_fn_cxx_try_cpp "$LINENO" then : -else $as_nop - # Broken: fails on valid input. -continue +else case e in @%:@( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -15550,24 +15734,26 @@ if ac_fn_cxx_try_cpp "$LINENO" then : # Broken: success on invalid input. continue -else $as_nop - # Passes both tests. +else case e in @%:@( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# 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_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in @%:@( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi ac_ext=c @@ -15704,8 +15890,9 @@ cc_basename=$func_cc_basename_result if test ${with_gnu_ld+y} then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes -else $as_nop - with_gnu_ld=no +else case e in @%:@( + e) with_gnu_ld=no ;; +esac fi ac_prog=ld @@ -15750,8 +15937,8 @@ fi if test ${lt_cv_path_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$LD"; then +else case e in @%:@( + e) if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs @@ -15774,7 +15961,8 @@ else $as_nop IFS=$lt_save_ifs else lt_cv_path_LD=$LD # Let the user override the test with a path. -fi +fi ;; +esac fi LD=$lt_cv_path_LD @@ -15791,8 +15979,8 @@ printf %s "checking if the linker ($LD) is GNU ld... " >&6; } if test ${lt_cv_prog_gnu_ld+y} then : printf %s "(cached) " >&6 -else $as_nop - # I'd rather use --version here, but apparently some GNU lds only accept -v. +else case e in @%:@( + e) # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &1 &5 @@ -15999,8 +16188,8 @@ else if test ${lt_cv_aix_libpath__CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -16032,7 +16221,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib fi - + ;; +esac fi aix_libpath=$lt_cv_aix_libpath__CXX @@ -16055,8 +16245,8 @@ else if test ${lt_cv_aix_libpath__CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -16088,7 +16278,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib fi - + ;; +esac fi aix_libpath=$lt_cv_aix_libpath__CXX @@ -17460,8 +17651,9 @@ printf %s "checking for $compiler option to produce PIC... " >&6; } if test ${lt_cv_prog_compiler_pic_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX +else case e in @%:@( + e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; } @@ -17476,8 +17668,8 @@ printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " > if test ${lt_cv_prog_compiler_pic_works_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_pic_works_CXX=no +else case e in @%:@( + e) 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@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment @@ -17505,7 +17697,8 @@ else $as_nop fi fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } @@ -17535,8 +17728,8 @@ printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; if test ${lt_cv_prog_compiler_static_works_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_static_works_CXX=no +else case e in @%:@( + e) 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 @@ -17557,7 +17750,8 @@ else $as_nop fi $RM -r conftest* LDFLAGS=$save_LDFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } @@ -17576,8 +17770,8 @@ printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_c_o_CXX=no +else case e in @%:@( + e) lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest @@ -17617,7 +17811,8 @@ else $as_nop cd .. $RM -r conftest $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } @@ -17629,8 +17824,8 @@ printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_c_o_CXX=no +else case e in @%:@( + e) lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest @@ -17670,7 +17865,8 @@ else $as_nop cd .. $RM -r conftest $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } @@ -17775,8 +17971,8 @@ printf %s "checking whether -lc should be explicitly linked in... " >&6; } if test ${lt_cv_archive_cmds_need_lc_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - $RM conftest* +else case e in @%:@( + e) $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 @@ -17812,7 +18008,8 @@ else $as_nop cat conftest.err 1>&5 fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } @@ -18376,8 +18573,8 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) if test ${lt_cv_shlibpath_overrides_runpath+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_shlibpath_overrides_runpath=no +else case e in @%:@( + e) lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ @@ -18404,7 +18601,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir - + ;; +esac fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath @@ -18790,90 +18988,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu subdirs="$subdirs libltdl" -# Autoupdate added the next two lines to ensure that your configure -# script's behavior did not change. They are probably safe to remove. - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in egrep - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_EGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_EGREP=$EGREP -fi - - fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 printf %s "checking for an ANSI C-conforming const... " >&6; } if test ${ac_cv_c_const+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -18930,273 +19051,841 @@ main (void) return !cs[0] && !zero.x; #endif - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_c_const=yes +else case e in @%:@( + e) ac_cv_c_const=no ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +printf "%s\n" "$ac_cv_c_const" >&6; } +if test $ac_cv_c_const = no; then + +printf "%s\n" "@%:@define const /**/" >>confdefs.h + +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +printf %s "checking whether byte ordering is bigendian... " >&6; } +if test ${ac_cv_c_bigendian+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) ac_cv_c_bigendian=unknown + # See if we're dealing with a universal compiler. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __APPLE_CC__ + not a universal capable compiler + #endif + typedef int dummy; + +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + + # Check for potential -arch flags. It is not universal unless + # there are at least two -arch flags with different values. + ac_arch= + ac_prev= + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do + if test -n "$ac_prev"; then + case $ac_word in + i?86 | x86_64 | ppc | ppc64) + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then + ac_arch=$ac_word + else + ac_cv_c_bigendian=universal + break + fi + ;; + esac + ac_prev= + elif test "x$ac_word" = "x-arch"; then + ac_prev=arch + fi + done +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + if test $ac_cv_c_bigendian = unknown; then + # See if sys/param.h defines the BYTE_ORDER macro. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main (void) +{ +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\ + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\ + && LITTLE_ENDIAN) + bogus endian macros + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + # It does; now see whether it defined to BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main (void) +{ +#if BYTE_ORDER != BIG_ENDIAN + not big endian + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_c_bigendian=yes +else case e in @%:@( + e) ac_cv_c_bigendian=no ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main (void) +{ +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) + bogus endian macros + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + # It does; now see whether it defined to _BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main (void) +{ +#ifndef _BIG_ENDIAN + not big endian + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_c_bigendian=yes +else case e in @%:@( + e) ac_cv_c_bigendian=no ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # Compile a test program. + if test "$cross_compiling" = yes +then : + # Try to guess by grepping values from an object file. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +unsigned short int ascii_mm[] = + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; + unsigned short int ascii_ii[] = + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; + int use_ascii (int i) { + return ascii_mm[i] + ascii_ii[i]; + } + unsigned short int ebcdic_ii[] = + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; + unsigned short int ebcdic_mm[] = + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; + int use_ebcdic (int i) { + return ebcdic_mm[i] + ebcdic_ii[i]; + } + int + main (int argc, char **argv) + { + /* Intimidate the compiler so that it does not + optimize the arrays away. */ + char *p = argv[0]; + ascii_mm[1] = *p++; ebcdic_mm[1] = *p++; + ascii_ii[1] = *p++; ebcdic_ii[1] = *p++; + return use_ascii (argc) == use_ebcdic (*p); + } +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then + ac_cv_c_bigendian=yes + fi + if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then + if test "$ac_cv_c_bigendian" = unknown; then + ac_cv_c_bigendian=no + else + # finding both strings is unlikely to happen, but who knows? + ac_cv_c_bigendian=unknown + fi + fi +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main (void) +{ + + /* Are we little or big endian? From Harbison&Steele. */ + union + { + long int l; + char c[sizeof (long int)]; + } u; + u.l = 1; + return u.c[sizeof (long int) - 1] == 1; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO" +then : + ac_cv_c_bigendian=no +else case e in @%:@( + e) ac_cv_c_bigendian=yes ;; +esac +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac +fi + + fi ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 +printf "%s\n" "$ac_cv_c_bigendian" >&6; } + case $ac_cv_c_bigendian in #( + yes) + printf "%s\n" "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h +;; #( + no) + ;; #( + universal) + +printf "%s\n" "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h + + ;; #( + *) + as_fn_error $? "unknown endianness + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; + esac + + + ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default +" +if test "x$ac_cv_type_pid_t" = xyes +then : + +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #if defined _WIN64 && !defined __CYGWIN__ + LLP64 + #endif + +int +main (void) +{ + + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_pid_type='int' +else case e in @%:@( + e) ac_pid_type='__int64' ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + +printf "%s\n" "@%:@define pid_t $ac_pid_type" >>confdefs.h + + ;; +esac +fi + + +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = xyes then : - ac_cv_c_const=yes -else $as_nop - ac_cv_c_const=no + +else case e in @%:@( + e) +printf "%s\n" "@%:@define size_t unsigned int" >>confdefs.h + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + +ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" +if test "x$ac_cv_type_ssize_t" = xyes +then : + +printf "%s\n" "@%:@define HAVE_SSIZE_T 1" >>confdefs.h + + +else case e in @%:@( + e) +printf "%s\n" "@%:@define ssize_t signed long" >>confdefs.h + ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 -printf "%s\n" "$ac_cv_c_const" >&6; } -if test $ac_cv_c_const = no; then + +ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" +if test "x$ac_cv_type_off_t" = xyes +then : -printf "%s\n" "@%:@define const /**/" >>confdefs.h +else case e in @%:@( + e) +printf "%s\n" "@%:@define off_t long int" >>confdefs.h + ;; +esac +fi +ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default" +if test "x$ac_cv_type_uid_t" = xyes +then : + +else case e in @%:@( + e) +printf "%s\n" "@%:@define uid_t int" >>confdefs.h + ;; +esac fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 -printf %s "checking whether byte ordering is bigendian... " >&6; } -if test ${ac_cv_c_bigendian+y} +ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default" +if test "x$ac_cv_type_gid_t" = xyes +then : + +else case e in @%:@( + e) +printf "%s\n" "@%:@define gid_t int" >>confdefs.h + ;; +esac +fi + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 +printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } +if test ${ac_cv_c_undeclared_builtin_options+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_c_bigendian=unknown - # See if we're dealing with a universal compiler. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) ac_save_CFLAGS=$CFLAGS + ac_cv_c_undeclared_builtin_options='cannot detect' + for ac_arg in '' -fno-builtin; do + CFLAGS="$ac_save_CFLAGS $ac_arg" + # This test program should *not* compile successfully. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifndef __APPLE_CC__ - not a universal capable compiler - #endif - typedef int dummy; - + +int +main (void) +{ +(void) strchr; + ; + return 0; +} _ACEOF if ac_fn_c_try_compile "$LINENO" then : - # Check for potential -arch flags. It is not universal unless - # there are at least two -arch flags with different values. - ac_arch= - ac_prev= - for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do - if test -n "$ac_prev"; then - case $ac_word in - i?86 | x86_64 | ppc | ppc64) - if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then - ac_arch=$ac_word - else - ac_cv_c_bigendian=universal - break - fi - ;; - esac - ac_prev= - elif test "x$ac_word" = "x-arch"; then - ac_prev=arch - fi - done -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - if test $ac_cv_c_bigendian = unknown; then - # See if sys/param.h defines the BYTE_ORDER macro. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) # This test program should compile successfully. + # No library function is consistently available on + # freestanding implementations, so test against a dummy + # declaration. Include always-available headers on the + # off chance that they somehow elicit warnings. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - #include - +#include +#include +#include +#include +extern void ac_decl (int, char *); + int main (void) { -#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ - && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ - && LITTLE_ENDIAN) - bogus endian macros - #endif - +(void) ac_decl (0, (char *) 0); + (void) ac_decl; + ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : - # It does; now see whether it defined to BIG_ENDIAN or not. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + if test x"$ac_arg" = x +then : + ac_cv_c_undeclared_builtin_options='none needed' +else case e in @%:@( + e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; +esac +fi + break +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + done + CFLAGS=$ac_save_CFLAGS + ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 +printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } + case $ac_cv_c_undeclared_builtin_options in @%:@( + 'cannot detect') : + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} +as_fn_error $? "cannot make $CC report undeclared builtins +See 'config.log' for more details" "$LINENO" 5; } ;; @%:@( + 'none needed') : + ac_c_undeclared_builtin_options='' ;; @%:@( + *) : + ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; +esac + +ac_fn_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_environ" = xyes +then : + ac_have_decl=1 +else case e in @%:@( + e) ac_have_decl=0 ;; +esac +fi +printf "%s\n" "@%:@define HAVE_DECL_ENVIRON $ac_have_decl" >>confdefs.h + + +ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" +if test "x$ac_cv_header_byteswap_h" = xyes +then : + printf "%s\n" "@%:@define HAVE_BYTESWAP_H 1" >>confdefs.h + +fi + +ac_fn_c_check_func "$LINENO" "__builtin_bswap16" "ac_cv_func___builtin_bswap16" +if test "x$ac_cv_func___builtin_bswap16" = xyes +then : + printf "%s\n" "@%:@define HAVE___BUILTIN_BSWAP16 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "__builtin_bswap32" "ac_cv_func___builtin_bswap32" +if test "x$ac_cv_func___builtin_bswap32" = xyes +then : + printf "%s\n" "@%:@define HAVE___BUILTIN_BSWAP32 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "__builtin_bswap64" "ac_cv_func___builtin_bswap64" +if test "x$ac_cv_func___builtin_bswap64" = xyes +then : + printf "%s\n" "@%:@define HAVE___BUILTIN_BSWAP64 1" >>confdefs.h + +fi + + +for flag in -Wall -Wsign-compare -Wno-stringop-overflow -fvisibility=hidden; do + as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_-pedantic -Werror_$flag" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 +printf %s "checking whether C compiler accepts $flag... " >&6; } +if eval test \${$as_CACHEVAR+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -pedantic -Werror $flag" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - #include - + int main (void) { -#if BYTE_ORDER != BIG_ENDIAN - not big endian - #endif - + ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : - ac_cv_c_bigendian=yes -else $as_nop - ac_cv_c_bigendian=no + eval "$as_CACHEVAR=yes" +else case e in @%:@( + e) eval "$as_CACHEVAR=no" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - fi - if test $ac_cv_c_bigendian = unknown; then - # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +eval ac_res=\$$as_CACHEVAR + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_CACHEVAR"\" = x"\"yes\"" +then : + +if test ${CFLAGS+y} +then : + if printf "%s\n" " $CFLAGS " | $GREP " $flag " 2>&1 >/dev/null +then : + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 + (: CFLAGS already contains $flag) 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +else case e in @%:@( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 + (: CFLAGS="$CFLAGS $flag") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + as_fn_append CFLAGS " $flag" ;; +esac +fi +else case e in @%:@( + e) CFLAGS=$flag ;; +esac +fi + +else case e in @%:@( + e) : ;; +esac +fi + +done + + +if test "x$ax_enable_debug" != "xyes" ; then + CFLAGS="$CFLAGS -O2" +fi + +# need that as conditional because some internal tools compile as static +# to have access to internal libfyaml APIs +if test "x$enable_static" = "xyes" ; then +HAVE_STATIC=1 +else +HAVE_STATIC=0 +fi + + +printf "%s\n" "@%:@define HAVE_STATIC $HAVE_STATIC" >>confdefs.h + + if test x$HAVE_STATIC = x1 ; then + HAVE_STATIC_TRUE= + HAVE_STATIC_FALSE='#' +else + HAVE_STATIC_TRUE='#' + HAVE_STATIC_FALSE= +fi + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstringop-overread" >&5 +printf %s "checking whether C compiler accepts -Wstringop-overread... " >&6; } +if test ${ax_cv_check_cflags__Werror__Wstringop_overread+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wstringop-overread" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - + int main (void) { -#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) - bogus endian macros - #endif - + ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : - # It does; now see whether it defined to _BIG_ENDIAN or not. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + ax_cv_check_cflags__Werror__Wstringop_overread=yes +else case e in @%:@( + e) ax_cv_check_cflags__Werror__Wstringop_overread=no ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wstringop_overread" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__Wstringop_overread" >&6; } +if test "x$ax_cv_check_cflags__Werror__Wstringop_overread" = x"yes" +then : + : +else case e in @%:@( + e) : ;; +esac +fi + +if test "x$ax_cv_check_cflags__Werror__wstringop_overread" = x"yes" +then : + HAVE_WSTRINGOP_OVERREAD=1 +else case e in @%:@( + e) HAVE_WSTRINGOP_OVERREAD=0 ;; +esac +fi + +printf "%s\n" "@%:@define HAVE_WSTRINGOP_OVERREAD $HAVE_WSTRINGOP_OVERREAD" >>confdefs.h + + +@%:@ Check whether --enable-portable-target was given. +if test ${enable_portable_target+y} +then : + enableval=$enable_portable_target; +fi + +HAVE_PORTABLE_TARGET=0 +if test "x$enable_portable_target" == "xyes"; then + HAVE_PORTABLE_TARGET=1 +fi + + +printf "%s\n" "@%:@define HAVE_PORTABLE_TARGET $HAVE_PORTABLE_TARGET" >>confdefs.h + + if test x$HAVE_PORTABLE_TARGET == x1 ; then + HAVE_PORTABLE_TARGET_TRUE= + HAVE_PORTABLE_TARGET_FALSE='#' +else + HAVE_PORTABLE_TARGET_TRUE='#' + HAVE_PORTABLE_TARGET_FALSE= +fi + + + if test x$target_cpu = xx86 ; then + TARGET_CPU_X86_TRUE= + TARGET_CPU_X86_FALSE='#' +else + TARGET_CPU_X86_TRUE='#' + TARGET_CPU_X86_FALSE= +fi + + if test x$target_cpu = xx86_64 ; then + TARGET_CPU_X86_64_TRUE= + TARGET_CPU_X86_64_FALSE='#' +else + TARGET_CPU_X86_64_TRUE='#' + TARGET_CPU_X86_64_FALSE= +fi + + if test x$target_cpu = xx86 -o x$target_cpu = xx86_64 ; then + TARGET_CPU_ANY_X86_TRUE= + TARGET_CPU_ANY_X86_FALSE='#' +else + TARGET_CPU_ANY_X86_TRUE='#' + TARGET_CPU_ANY_X86_FALSE= +fi + + if test x$target_cpu = xarm ; then + TARGET_CPU_ARM_TRUE= + TARGET_CPU_ARM_FALSE='#' +else + TARGET_CPU_ARM_TRUE='#' + TARGET_CPU_ARM_FALSE= +fi + + if test x$target_cpu = xaarch64 ; then + TARGET_CPU_ARM64_TRUE= + TARGET_CPU_ARM64_FALSE='#' +else + TARGET_CPU_ARM64_TRUE='#' + TARGET_CPU_ARM64_FALSE= +fi + + if test x$target_cpu = xarm -o x$target_cpu = xaarch64 ; then + TARGET_CPU_ANY_ARM_TRUE= + TARGET_CPU_ANY_ARM_FALSE='#' +else + TARGET_CPU_ANY_ARM_TRUE='#' + TARGET_CPU_ANY_ARM_FALSE= +fi + + +if test -z "$TARGET_CPU_ANY_X86_TRUE"; then : + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse2" >&5 +printf %s "checking whether C compiler accepts -msse2... " >&6; } +if test ${ax_cv_check_cflags__Werror__msse2+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -msse2" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - + int main (void) { -#ifndef _BIG_ENDIAN - not big endian - #endif - + ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : - ac_cv_c_bigendian=yes -else $as_nop - ac_cv_c_bigendian=no + ax_cv_check_cflags__Werror__msse2=yes +else case e in @%:@( + e) ax_cv_check_cflags__Werror__msse2=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - fi - if test $ac_cv_c_bigendian = unknown; then - # Compile a test program. - if test "$cross_compiling" = yes +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__msse2" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__msse2" >&6; } +if test "x$ax_cv_check_cflags__Werror__msse2" = x"yes" then : - # Try to guess by grepping values from an object file. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + : +else case e in @%:@( + e) : ;; +esac +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.1" >&5 +printf %s "checking whether C compiler accepts -msse4.1... " >&6; } +if test ${ax_cv_check_cflags__Werror__msse4_1+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -msse4.1" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -unsigned short int ascii_mm[] = - { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; - unsigned short int ascii_ii[] = - { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; - int use_ascii (int i) { - return ascii_mm[i] + ascii_ii[i]; - } - unsigned short int ebcdic_ii[] = - { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; - unsigned short int ebcdic_mm[] = - { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; - int use_ebcdic (int i) { - return ebcdic_mm[i] + ebcdic_ii[i]; - } - extern int foo; - + int main (void) { -return use_ascii (foo) == use_ebcdic (foo); + ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : - if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then - ac_cv_c_bigendian=yes - fi - if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then - if test "$ac_cv_c_bigendian" = unknown; then - ac_cv_c_bigendian=no - else - # finding both strings is unlikely to happen, but who knows? - ac_cv_c_bigendian=unknown - fi - fi + ax_cv_check_cflags__Werror__msse4_1=yes +else case e in @%:@( + e) ax_cv_check_cflags__Werror__msse4_1=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -else $as_nop + CFLAGS=$ax_check_save_flags ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__msse4_1" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__msse4_1" >&6; } +if test "x$ax_cv_check_cflags__Werror__msse4_1" = x"yes" +then : + : +else case e in @%:@( + e) : ;; +esac +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5 +printf %s "checking whether C compiler accepts -mavx2... " >&6; } +if test ${ax_cv_check_cflags__Werror__mavx2+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -mavx2" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default + int main (void) { - /* Are we little or big endian? From Harbison&Steele. */ - union - { - long int l; - char c[sizeof (long int)]; - } u; - u.l = 1; - return u.c[sizeof (long int) - 1] == 1; - ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO" +if ac_fn_c_try_compile "$LINENO" then : - ac_cv_c_bigendian=no -else $as_nop - ac_cv_c_bigendian=yes + ax_cv_check_cflags__Werror__mavx2=yes +else case e in @%:@( + e) ax_cv_check_cflags__Werror__mavx2=no ;; +esac fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi - - fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__mavx2" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__mavx2" >&6; } +if test "x$ax_cv_check_cflags__Werror__mavx2" = x"yes" +then : + : +else case e in @%:@( + e) : ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 -printf "%s\n" "$ac_cv_c_bigendian" >&6; } - case $ac_cv_c_bigendian in #( - yes) - printf "%s\n" "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h -;; #( - no) - ;; #( - universal) - -printf "%s\n" "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h - ;; #( - *) - as_fn_error $? "unknown endianness - presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; - esac - - - ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default -" -if test "x$ac_cv_type_pid_t" = xyes + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx512f -mavx512vl" >&5 +printf %s "checking whether C compiler accepts -mavx512f -mavx512vl... " >&6; } +if test ${ax_cv_check_cflags__Werror__mavx512f__mavx512vl+y} then : - -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + printf %s "(cached) " >&6 +else case e in @%:@( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -mavx512f -mavx512vl" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - #if defined _WIN64 && !defined __CYGWIN__ - LLP64 - #endif - int main (void) { @@ -19204,221 +19893,180 @@ main (void) ; return 0; } - _ACEOF if ac_fn_c_try_compile "$LINENO" then : - ac_pid_type='int' -else $as_nop - ac_pid_type='__int64' + ax_cv_check_cflags__Werror__mavx512f__mavx512vl=yes +else case e in @%:@( + e) ax_cv_check_cflags__Werror__mavx512f__mavx512vl=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - -printf "%s\n" "@%:@define pid_t $ac_pid_type" >>confdefs.h - - + CFLAGS=$ax_check_save_flags ;; +esac fi - - -ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" -if test "x$ac_cv_type_size_t" = xyes +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__mavx512f__mavx512vl" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__mavx512f__mavx512vl" >&6; } +if test "x$ax_cv_check_cflags__Werror__mavx512f__mavx512vl" = x"yes" then : - -else $as_nop - -printf "%s\n" "@%:@define size_t unsigned int" >>confdefs.h - + : +else case e in @%:@( + e) : ;; +esac fi -ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" -if test "x$ac_cv_type_ssize_t" = xyes -then : - -printf "%s\n" "@%:@define HAVE_SSIZE_T 1" >>confdefs.h - - -else $as_nop - -printf "%s\n" "@%:@define ssize_t signed long" >>confdefs.h + fi -ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" -if test "x$ac_cv_type_off_t" = xyes -then : - -else $as_nop +if test -z "$TARGET_CPU_ARM_TRUE"; then : -printf "%s\n" "@%:@define off_t long int" >>confdefs.h - -fi - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 -printf %s "checking return type of signal handlers... " >&6; } -if test ${ac_cv_type_signal+y} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfpu=neon" >&5 +printf %s "checking whether C compiler accepts -mfpu=neon... " >&6; } +if test ${ax_cv_check_cflags__Werror__mfpu_neon+y} then : printf %s "(cached) " >&6 -else $as_nop +else case e in @%:@( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -mfpu=neon" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include int main (void) { -return *(signal (0, 0)) (0) == 1; + ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : - ac_cv_type_signal=int -else $as_nop - ac_cv_type_signal=void + ax_cv_check_cflags__Werror__mfpu_neon=yes +else case e in @%:@( + e) ax_cv_check_cflags__Werror__mfpu_neon=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 -printf "%s\n" "$ac_cv_type_signal" >&6; } - -printf "%s\n" "@%:@define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 -printf %s "checking for uid_t in sys/types.h... " >&6; } -if test ${ac_cv_type_uid_t+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__mfpu_neon" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__mfpu_neon" >&6; } +if test "x$ax_cv_check_cflags__Werror__mfpu_neon" = x"yes" then : - printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include + : +else case e in @%:@( + e) : ;; +esac +fi + + -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "uid_t" >/dev/null 2>&1 -then : - ac_cv_type_uid_t=yes -else $as_nop - ac_cv_type_uid_t=no fi -rm -rf conftest* + if test "x$ax_cv_check_cflags__Werror__msse2" = x"yes" -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_SSE2_TRUE= + TARGET_HAS_SSE2_FALSE='#' +else + TARGET_HAS_SSE2_TRUE='#' + TARGET_HAS_SSE2_FALSE= fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 -printf "%s\n" "$ac_cv_type_uid_t" >&6; } -if test $ac_cv_type_uid_t = no; then - -printf "%s\n" "@%:@define uid_t int" >>confdefs.h - -printf "%s\n" "@%:@define gid_t int" >>confdefs.h + if test "x$ax_cv_check_cflags__Werror__msse4_1" = x"yes" -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_SSE41_TRUE= + TARGET_HAS_SSE41_FALSE='#' +else + TARGET_HAS_SSE41_TRUE='#' + TARGET_HAS_SSE41_FALSE= +fi + if test "x$ax_cv_check_cflags__Werror__mavx2" = x"yes" -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_AVX2_TRUE= + TARGET_HAS_AVX2_FALSE='#' +else + TARGET_HAS_AVX2_TRUE='#' + TARGET_HAS_AVX2_FALSE= fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 -printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } -if test ${ac_cv_c_undeclared_builtin_options+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_save_CFLAGS=$CFLAGS - ac_cv_c_undeclared_builtin_options='cannot detect' - for ac_arg in '' -fno-builtin; do - CFLAGS="$ac_save_CFLAGS $ac_arg" - # This test program should *not* compile successfully. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ + if test "x$ax_cv_check_cflags__Werror__mavx512f__mavx512vl" = x"yes" -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_AVX512_TRUE= + TARGET_HAS_AVX512_FALSE='#' +else + TARGET_HAS_AVX512_TRUE='#' + TARGET_HAS_AVX512_FALSE= +fi -int -main (void) -{ -(void) strchr; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : + + if test \( x$target_cpu = xaarch64 -o "x$ax_cv_check_cflags__Werror__mcpu_neon" = x"yes" \) -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_NEON_TRUE= + TARGET_HAS_NEON_FALSE='#' +else + TARGET_HAS_NEON_TRUE='#' + TARGET_HAS_NEON_FALSE= +fi + + +if test -z "$TARGET_HAS_SSE2_TRUE"; then : -else $as_nop - # This test program should compile successfully. - # No library function is consistently available on - # freestanding implementations, so test against a dummy - # declaration. Include always-available headers on the - # off chance that they somehow elicit warnings. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -#include -extern void ac_decl (int, char *); +printf "%s\n" "@%:@define TARGET_HAS_SSE2 1" >>confdefs.h -int -main (void) -{ -(void) ac_decl (0, (char *) 0); - (void) ac_decl; +fi +if test -z "$TARGET_HAS_SSE41_TRUE"; then : + +printf "%s\n" "@%:@define TARGET_HAS_SSE41 1" >>confdefs.h - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - if test x"$ac_arg" = x -then : - ac_cv_c_undeclared_builtin_options='none needed' -else $as_nop - ac_cv_c_undeclared_builtin_options=$ac_arg fi - break +if test -z "$TARGET_HAS_AVX2_TRUE"; then : + +printf "%s\n" "@%:@define TARGET_HAS_AVX2 1" >>confdefs.h + fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +if test -z "$TARGET_HAS_AVX512_TRUE"; then : + +printf "%s\n" "@%:@define TARGET_HAS_AVX512 1" >>confdefs.h + fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - done - CFLAGS=$ac_save_CFLAGS + +if test -z "$TARGET_HAS_NEON_TRUE"; then : +printf "%s\n" "@%:@define TARGET_HAS_NEON 1" >>confdefs.h + fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 -printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } - case $ac_cv_c_undeclared_builtin_options in @%:@( - 'cannot detect') : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot make $CC report undeclared builtins -See \`config.log' for more details" "$LINENO" 5; } ;; @%:@( - 'none needed') : - ac_c_undeclared_builtin_options='' ;; @%:@( - *) : - ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; -esac -ac_fn_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" -if test "x$ac_cv_have_decl_environ" = xyes +@%:@ Check whether --enable-asan was given. +if test ${enable_asan+y} then : - ac_have_decl=1 -else $as_nop - ac_have_decl=0 + enableval=$enable_asan; fi -printf "%s\n" "@%:@define HAVE_DECL_ENVIRON $ac_have_decl" >>confdefs.h -for flag in -Wall -Wsign-compare -Wno-stringop-overflow; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_-pedantic -Werror_$flag" | $as_tr_sh` +HAVE_ASAN=0 +ASAN_CFLAGS="" +ASAN_LIBS="" +if test "x$enable_asan" == "xyes" ; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking location of ASAN library" >&5 +printf %s "checking location of ASAN library... " >&6; } + ASANLIB1=`${CC} -print-file-name=libasan.so` + ASANLIB=`readlink -f "${ASANLIB1}"` + if test -f "$ASANLIB" ; then + HAVE_ASAN=1 + ASAN_CFLAGS="-fsanitize=address -fno-omit-frame-pointer" + ASAN_LIBS="-fsanitize=address" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ASANLIB" >&5 +printf "%s\n" "$ASANLIB" >&6; } + for flag in -fsanitize=address -fno-omit-frame-pointer; do + as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 printf %s "checking whether C compiler accepts $flag... " >&6; } if eval test \${$as_CACHEVAR+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in @%:@( + e) ax_check_save_flags=$CFLAGS - CFLAGS="$CFLAGS -pedantic -Werror $flag" + CFLAGS="$CFLAGS $flag" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -19433,11 +20081,13 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$as_CACHEVAR=yes" -else $as_nop - eval "$as_CACHEVAR=no" +else case e in @%:@( + e) eval "$as_CACHEVAR=no" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags + CFLAGS=$ax_check_save_flags ;; +esac fi eval ac_res=\$$as_CACHEVAR { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -19454,99 +20104,55 @@ then : ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } -else $as_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 +else case e in @%:@( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 (: CFLAGS="$CFLAGS $flag") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } - as_fn_append CFLAGS " $flag" + as_fn_append CFLAGS " $flag" ;; +esac fi -else $as_nop - CFLAGS=$flag +else case e in @%:@( + e) CFLAGS=$flag ;; +esac fi -else $as_nop - : +else case e in @%:@( + e) : ;; +esac fi done - -if test "x$ax_enable_debug" != "xyes" ; then - CFLAGS="$CFLAGS -O2" + else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not found; disabling ASAN" >&5 +printf "%s\n" "Not found; disabling ASAN" >&6; } + fi fi -# include -lm in the link -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing llrintf" >&5 -printf %s "checking for library containing llrintf... " >&6; } -if test ${ac_cv_search_llrintf+y} -then : - printf %s "(cached) " >&6 -else $as_nop - 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. */ -char llrintf (); -int -main (void) -{ -return llrintf (); - ; - return 0; -} -_ACEOF -for ac_lib in '' m -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_llrintf=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext - if test ${ac_cv_search_llrintf+y} -then : - break -fi -done -if test ${ac_cv_search_llrintf+y} -then : - -else $as_nop - ac_cv_search_llrintf=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_llrintf" >&5 -printf "%s\n" "$ac_cv_search_llrintf" >&6; } -ac_res=$ac_cv_search_llrintf -if test "$ac_res" != no -then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -else $as_nop - as_fn_error $? "unable to find the llrintf() function" "$LINENO" 5 + + if test x$HAVE_ASAN = x1 ; then + HAVE_ASAN_TRUE= + HAVE_ASAN_FALSE='#' +else + HAVE_ASAN_TRUE='#' + HAVE_ASAN_FALSE= fi +printf "%s\n" "@%:@define HAVE_ASAN $HAVE_ASAN" >>confdefs.h + + # check if there's a qsort_r available (musl does not have it) ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r" if test "x$ac_cv_func_qsort_r" = xyes then : HAVE_QSORT_R=1 -else $as_nop - HAVE_QSORT_R=0 +else case e in @%:@( + e) HAVE_QSORT_R=0 ;; +esac fi @@ -19744,7 +20350,7 @@ fi HAVE_COMPATIBLE_CHECK=0 -if test "x$HAVE_CHECK" == "x1" ; then +if test "x$HAVE_CHECK" = "x1" ; then save_LIBS="$LIBS" save_CFLAGS="$CFLAGS" LIBS="$LIBS $CHECK_LIBS" @@ -19755,8 +20361,9 @@ if test "x$HAVE_CHECK" == "x1" ; then if test "x$ac_cv_func_srunner_set_tap" = xyes then : HAVE_COMPATIBLE_CHECK=1 -else $as_nop - HAVE_COMPATIBLE_CHECK=0 +else case e in @%:@( + e) HAVE_COMPATIBLE_CHECK=0 ;; +esac fi @@ -19832,8 +20439,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_SPHINX+y} then : printf %s "(cached) " >&6 -else $as_nop - case $SPHINX in +else case e in @%:@( + e) case $SPHINX in [\\/]* | ?:[\\/]*) ac_cv_path_SPHINX="$SPHINX" # Let the user override the test with a path. ;; @@ -19842,7 +20449,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -19858,6 +20465,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi SPHINX=$ac_cv_path_SPHINX @@ -19880,8 +20488,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PIP3+y} then : printf %s "(cached) " >&6 -else $as_nop - case $PIP3 in +else case e in @%:@( + e) case $PIP3 in [\\/]* | ?:[\\/]*) ac_cv_path_PIP3="$PIP3" # Let the user override the test with a path. ;; @@ -19890,7 +20498,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -19906,6 +20514,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi PIP3=$ac_cv_path_PIP3 @@ -19972,7 +20581,7 @@ printf "%s\n" "N/A" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sphinx installation works" >&5 printf %s "checking whether sphinx installation works... " >&6; } - if test "x$HAVE_SPHINX" == "x1" ; then + if test "x$HAVE_SPHINX" = "x1" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else @@ -20001,8 +20610,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_GIT+y} then : printf %s "(cached) " >&6 -else $as_nop - case $GIT in +else case e in @%:@( + e) case $GIT in [\\/]* | ?:[\\/]*) ac_cv_path_GIT="$GIT" # Let the user override the test with a path. ;; @@ -20011,7 +20620,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -20027,6 +20636,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi GIT=$ac_cv_path_GIT @@ -20058,25 +20668,25 @@ fi -if test "x$TESTSUITEURL" == "x" ; then +if test "x$TESTSUITEURL" = "x" ; then TESTSUITEURL="https://github.com/yaml/yaml-test-suite" fi -if test "x$TESTSUITECHECKOUT" == "x" ; then +if test "x$TESTSUITECHECKOUT" = "x" ; then TESTSUITECHECKOUT="6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f" fi -if test "x$JSONTESTSUITEURL" == "x" ; then +if test "x$JSONTESTSUITEURL" = "x" ; then JSONTESTSUITEURL="https://github.com/nst/JSONTestSuite" fi -if test "x$JSONTESTSUITECHECKOUT" == "x" ; then +if test "x$JSONTESTSUITECHECKOUT" = "x" ; then JSONTESTSUITECHECKOUT="d64aefb55228d9584d3e5b2433f720ea8fd00c82" fi @@ -20088,8 +20698,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_DOCKER+y} then : printf %s "(cached) " >&6 -else $as_nop - case $DOCKER in +else case e in @%:@( + e) case $DOCKER in [\\/]* | ?:[\\/]*) ac_cv_path_DOCKER="$DOCKER" # Let the user override the test with a path. ;; @@ -20098,7 +20708,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -20114,6 +20724,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi DOCKER=$ac_cv_path_DOCKER @@ -20148,8 +20759,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_JQ+y} then : printf %s "(cached) " >&6 -else $as_nop - case $JQ in +else case e in @%:@( + e) case $JQ in [\\/]* | ?:[\\/]*) ac_cv_path_JQ="$JQ" # Let the user override the test with a path. ;; @@ -20158,7 +20769,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -20174,6 +20785,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi JQ=$ac_cv_path_JQ @@ -20205,6 +20817,200 @@ fi JQ="$JQ" +# check for libclang + +@%:@ Check whether --with-libclang was given. +if test ${with_libclang+y} +then : + withval=$with_libclang; with_libclang="$withval" +else case e in @%:@( + e) with_libclang=auto ;; +esac +fi + + +HAVE_LIBCLANG=0 +LIBCLANG_CFLAGS="" +LIBCLANG_CPPFLAGS="" +LIBCLANG_LDFLAGS="" +LIBCLANG_LIBS="" +if test "x$with_libclang" != "xno"; then + if test "x$with_libclang" == "xauto"; then + # try to auto detect (llvm 15 down to 8) + check="llvm-config llvm-config-15 llvm-config-14 llvm-config-13 llvm-config-12 llvm-config-11 llvm-config-10" + else + if test "x$with_libclang" == "xlatest"; then + check="llvm-config" + else + check="llvm-config-$with_libclang" + fi + fi + orig_CFLAGS="$CFLAGS" + orig_CPPFLAGS="$CPPFLAGS" + orig_LDFLAGS="$LDFLAGS" + orig_LIBS="$LIBS" + for cfg in $check ; do + # no caching + # Extract the first word of "$cfg", so it can be a program name with args. +set dummy $cfg; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_LLVM_CONFIG+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) case $LLVM_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_LLVM_CONFIG="$LLVM_CONFIG" # 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 + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_LLVM_CONFIG="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac ;; +esac +fi +LLVM_CONFIG=$ac_cv_path_LLVM_CONFIG +if test -n "$LLVM_CONFIG"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 +printf "%s\n" "$LLVM_CONFIG" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + + if test "x$LLVM_CONFIG" != "x" ; then + LIBCLANG_CFLAGS=`$LLVM_CONFIG --cflags` + LIBCLANG_CPPFLAGS=`$LLVM_CONFIG --cppflags` + LIBCLANG_LDFLAGS=`$LLVM_CONFIG --ldflags` + LIBCLANG_LIBS="-lclang" + CPPFLAGS="$CPPFLAGS $LIBCLANG_CPPFLAGS" + CFLAGS="$CFLAGS $LIBCLANG_CFLAGS" + LDFLAGS="$LDFLAGS $LIBCLANG_LDFLAGS" + LIBS="$LIBS $LIBCLANG_LIBS" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang_createIndex in -lclang" >&5 +printf %s "checking for clang_createIndex in -lclang... " >&6; } +if test ${ac_cv_lib_clang_clang_createIndex+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) ac_check_lib_save_LIBS=$LIBS +LIBS="-lclang $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. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char clang_createIndex (void); +int +main (void) +{ +return clang_createIndex (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_clang_clang_createIndex=yes +else case e in @%:@( + e) ac_cv_lib_clang_clang_createIndex=no ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clang_clang_createIndex" >&5 +printf "%s\n" "$ac_cv_lib_clang_clang_createIndex" >&6; } +if test "x$ac_cv_lib_clang_clang_createIndex" = xyes +then : + HAVE_LIBCLANG_LIB=1 +else case e in @%:@( + e) HAVE_LIBCLANG_LIB=0 ;; +esac +fi + + ac_fn_c_check_header_compile "$LINENO" "clang-c/Index.h" "ac_cv_header_clang_c_Index_h" "$ac_includes_default" +if test "x$ac_cv_header_clang_c_Index_h" = xyes +then : + HAVE_LIBCLANG_HDR=1 +else case e in @%:@( + e) HAVE_LIBCLANG_HDR=0 ;; +esac +fi + + # if we found it, break out + if test "x$HAVE_LIBCLANG_LIB" = "x1" -a "x$HAVE_LIBCLANG_HDR" = "x1" ; then + HAVE_LIBCLANG=1 + break + fi + $as_unset ac_cv_lib_clang_clang_createIndex $as_unset ac_cv_header_clang_c_Index_h \ + LIBCLANG_CFLAGS LIBCLANG_CPPFLAGS LIBCLANG_LIBS HAVE_LIBCLANG_LIB HAVE_LIBCLANG_HDR + fi + CFLAGS=$orig_CFLAGS + LDFLAGS=$orig_LDFLAGS + LIBS=$orig_LIBS + if test "x$HAVE_LIBCLANG" = "x1"; then + break + fi + $as_unset ac_cv_path_LLVM_CONFIG LLVM_CONFIG + done + CFLAGS=$orig_CFLAGS + CPPFLAGS=$orig_CPPFLAGS + LDFLAGS=$orig_LDFLAGS + LIBS=$orig_LIBS +fi + + + + + + + + +printf "%s\n" "@%:@define HAVE_LIBCLANG $HAVE_LIBCLANG" >>confdefs.h + + if test x$HAVE_LIBCLANG = x1 ; then + HAVE_LIBCLANG_TRUE= + HAVE_LIBCLANG_FALSE='#' +else + HAVE_LIBCLANG_TRUE='#' + HAVE_LIBCLANG_FALSE= +fi + + + +CFLAGS=`echo $CFLAGS | sed -e 's/^ *//'` +CPPFLAGS=`echo $CPPFLAGS | sed -e 's/^ *//'` +LDFLAGS=`echo $LDFLAGS | sed -e 's/^ *//'` + # Shave by default on supported autoconf versions @@ -20212,9 +21018,10 @@ JQ="$JQ" if test ${enable_shave+y} then : enableval=$enable_shave; -else $as_nop - enable_shave=yes - +else case e in @%:@( + e) enable_shave=yes + ;; +esac fi @@ -20235,15 +21042,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_SED+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$SED"; then +else case e in @%:@( + e) if test -n "$SED"; then ac_cv_prog_SED="$SED" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -20259,7 +21066,8 @@ done IFS=$as_save_IFS test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="false" -fi +fi ;; +esac fi SED=$ac_cv_prog_SED if test -n "$SED"; then @@ -20329,8 +21137,8 @@ cat >confcache <<\_ACEOF # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the +# 'ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* 'ac_cv_foo' will be assigned the # following values. _ACEOF @@ -20360,14 +21168,14 @@ printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes: double-quote + # 'set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) - # `set' quotes correctly as required by POSIX, so do not add quotes. + # 'set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | @@ -20452,11 +21260,71 @@ 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__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCCAS\" 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 "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then + as_fn_error $? "conditional \"HAVE_STATIC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_PORTABLE_TARGET_TRUE}" && test -z "${HAVE_PORTABLE_TARGET_FALSE}"; then + as_fn_error $? "conditional \"HAVE_PORTABLE_TARGET\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_X86_TRUE}" && test -z "${TARGET_CPU_X86_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_X86\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_X86_64_TRUE}" && test -z "${TARGET_CPU_X86_64_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_X86_64\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_ANY_X86_TRUE}" && test -z "${TARGET_CPU_ANY_X86_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_ANY_X86\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_ARM_TRUE}" && test -z "${TARGET_CPU_ARM_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_ARM\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_ARM64_TRUE}" && test -z "${TARGET_CPU_ARM64_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_ARM64\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_ANY_ARM_TRUE}" && test -z "${TARGET_CPU_ANY_ARM_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_ANY_ARM\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_SSE2_TRUE}" && test -z "${TARGET_HAS_SSE2_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_SSE2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_SSE41_TRUE}" && test -z "${TARGET_HAS_SSE41_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_SSE41\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_AVX2_TRUE}" && test -z "${TARGET_HAS_AVX2_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_AVX2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_AVX512_TRUE}" && test -z "${TARGET_HAS_AVX512_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_AVX512\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_NEON_TRUE}" && test -z "${TARGET_HAS_NEON_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_NEON\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_ASAN_TRUE}" && test -z "${HAVE_ASAN_FALSE}"; then + as_fn_error $? "conditional \"HAVE_ASAN\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${HAVE_QSORT_R_TRUE}" && test -z "${HAVE_QSORT_R_FALSE}"; then as_fn_error $? "conditional \"HAVE_QSORT_R\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -20497,6 +21365,10 @@ if test -z "${HAVE_JQ_TRUE}" && test -z "${HAVE_JQ_FALSE}"; then as_fn_error $? "conditional \"HAVE_JQ\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${HAVE_LIBCLANG_TRUE}" && test -z "${HAVE_LIBCLANG_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIBCLANG\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 @@ -20526,7 +21398,6 @@ cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh @@ -20535,12 +21406,13 @@ then : # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else $as_nop - case `(set -o) 2>/dev/null` in @%:@( +else case e in @%:@( + e) case `(set -o) 2>/dev/null` in @%:@( *posix*) : set -o posix ;; @%:@( *) : ;; +esac ;; esac fi @@ -20601,7 +21473,7 @@ case $0 in @%:@(( for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -20612,7 +21484,7 @@ IFS=$as_save_IFS ;; esac -# We did not find ourselves, most probably we were run as `sh COMMAND' +# We did not find ourselves, most probably we were run as 'sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 @@ -20641,7 +21513,6 @@ as_fn_error () } @%:@ as_fn_error - @%:@ as_fn_set_status STATUS @%:@ ----------------------- @%:@ Set @S|@? to STATUS, without forking. @@ -20681,11 +21552,12 @@ then : { eval $1+=\$2 }' -else $as_nop - as_fn_append () +else case e in @%:@( + e) as_fn_append () { eval $1=\$$1\$2 - } + } ;; +esac fi # as_fn_append @%:@ as_fn_arith ARG... @@ -20699,11 +21571,12 @@ then : { as_val=$(( $* )) }' -else $as_nop - as_fn_arith () +else case e in @%:@( + e) as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` - } + } ;; +esac fi # as_fn_arith @@ -20786,9 +21659,9 @@ if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. + # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. + # In both cases, we have to default to 'cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then @@ -20869,10 +21742,12 @@ as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" +as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated # Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" +as_tr_sh="eval sed '$as_sed_sh'" # deprecated exec 6>&1 @@ -20887,8 +21762,8 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by libfyaml $as_me 0.7.12, which was -generated by GNU Autoconf 2.71. Invocation command line was +This file was extended by libfyaml $as_me 0.9, which was +generated by GNU Autoconf 2.72. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -20920,7 +21795,7 @@ _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ -\`$as_me' instantiates files and other configuration actions +'$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. @@ -20955,11 +21830,11 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -libfyaml config.status 0.7.12 -configured by $0, generated by GNU Autoconf 2.71, +libfyaml config.status 0.9 +configured by $0, generated by GNU Autoconf 2.72, with options \\"\$ac_cs_config\\" -Copyright (C) 2021 Free Software Foundation, Inc. +Copyright (C) 2023 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -21021,8 +21896,8 @@ do ac_need_defaults=false;; --he | --h) # Conflict between --help and --header - as_fn_error $? "ambiguous option: \`$1' -Try \`$0 --help' for more information.";; + as_fn_error $? "ambiguous option: '$1' +Try '$0 --help' for more information.";; --help | --hel | -h ) printf "%s\n" "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ @@ -21030,8 +21905,8 @@ Try \`$0 --help' for more information.";; ac_cs_silent=: ;; # This is an error. - -*) as_fn_error $? "unrecognized option: \`$1' -Try \`$0 --help' for more information." ;; + -*) as_fn_error $? "unrecognized option: '$1' +Try '$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; @@ -21084,11 +21959,11 @@ AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' -macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' -macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' @@ -21480,7 +22355,7 @@ do "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; "libfyaml.pc") CONFIG_FILES="$CONFIG_FILES libfyaml.pc" ;; - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; esac done @@ -21500,7 +22375,7 @@ fi # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. +# after its creation but before its name has been assigned to '$tmp'. $debug || { tmp= ac_tmp= @@ -21524,7 +22399,7 @@ ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. -# This happens for instance with `./config.status config.h'. +# This happens for instance with './config.status config.h'. if test -n "$CONFIG_FILES"; then @@ -21682,13 +22557,13 @@ fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. -# This happens for instance with `./config.status Makefile'. +# This happens for instance with './config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF -# Transform confdefs.h into an awk script `defines.awk', embedded as +# Transform confdefs.h into an awk script 'defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. @@ -21798,7 +22673,7 @@ do esac case $ac_mode$ac_tag in :[FHL]*:*);; - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac @@ -21820,19 +22695,19 @@ do -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. + # because $ac_f cannot contain ':'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || - as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done - # Let's still pretend it is `configure' which instantiates (i.e., don't + # Let's still pretend it is 'configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` @@ -21965,7 +22840,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 esac _ACEOF -# Neutralize VPATH when `$srcdir' = `.'. +# Neutralize VPATH when '$srcdir' = '.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 @@ -21996,9 +22871,9 @@ test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' which seems to be undefined. Please make sure it is defined" >&5 -printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" @@ -22153,15 +23028,15 @@ printf "%s\n" X/"$am_mf" | (exit $ac_status); } || am_rc=$? done if test $am_rc -ne 0; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE=\"gmake\" (or whatever is necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking). -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } fi { am_dirpart=; unset am_dirpart;} { am_filepart=; unset am_filepart;} @@ -22222,6 +23097,10 @@ available_tags='CXX ' # ### BEGIN LIBTOOL CONFIG +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision + # Assembler program. AS=$lt_AS @@ -22231,10 +23110,6 @@ DLLTOOL=$lt_DLLTOOL # Object dumper program. OBJDUMP=$lt_OBJDUMP -# Which release of libtool.m4 was used? -macro_version=$macro_version -macro_revision=$macro_revision - # Whether or not to build shared libraries. build_libtool_libs=$enable_shared @@ -23082,17 +23957,20 @@ echo " LIBTOOL_VERSION: ${LIBTOOL_VERSION} prefix: ${prefix} C compiler: ${CC} - CFLAGS: ${CFLAGS} Linker: ${LD} + CFLAGS: ${CFLAGS} LDFLAGS: ${LDFLAGS} LIBS: ${LIBS} + HAVE_ASAN: ${HAVE_ASAN} HAVE_CHECK: ${HAVE_CHECK} HAVE_COMPATIBLE_CHECK: ${HAVE_COMPATIBLE_CHECK} HAVE_NETWORK: ${HAVE_NETWORK} HAVE_DEVMODE: ${HAVE_DEVMODE} HAVE_SPHINX: ${HAVE_SPHINX} - GIT: $GIT - DOCKER: $DOCKER + GIT: ${GIT} + DOCKER: ${DOCKER} + HAVE_LIBCLANG: ${HAVE_LIBCLANG} + LIBCLANG_LIBS: ${LIBCLANG_LIBS} TESTSUITEURL: $TESTSUITEURL TESTSUITECHECKOUT: $TESTSUITECHECKOUT JSONTESTSUITEURL: $JSONTESTSUITEURL diff --git a/Sources/Cfyaml/autom4te.cache/output.3 b/Sources/Cfyaml/autom4te.cache/output.3 index 37dfb39c8..3db354afd 100644 --- a/Sources/Cfyaml/autom4te.cache/output.3 +++ b/Sources/Cfyaml/autom4te.cache/output.3 @@ -1,11 +1,11 @@ @%:@! /bin/sh @%:@ Guess values for system-dependent variables and create Makefiles. -@%:@ Generated by GNU Autoconf 2.71 for libfyaml 0.7.12. +@%:@ Generated by GNU Autoconf 2.72 for libfyaml 0.9. @%:@ @%:@ Report bugs to . @%:@ @%:@ -@%:@ Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, +@%:@ Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, @%:@ Inc. @%:@ @%:@ @@ -17,7 +17,6 @@ # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh @@ -26,12 +25,13 @@ then : # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else $as_nop - case `(set -o) 2>/dev/null` in @%:@( +else case e in @%:@( + e) case `(set -o) 2>/dev/null` in @%:@( *posix*) : set -o posix ;; @%:@( *) : ;; +esac ;; esac fi @@ -92,7 +92,7 @@ case $0 in @%:@(( for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -103,7 +103,7 @@ IFS=$as_save_IFS ;; esac -# We did not find ourselves, most probably we were run as `sh COMMAND' +# We did not find ourselves, most probably we were run as 'sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 @@ -133,15 +133,14 @@ case $- in @%:@ (((( esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. +# out after a failed 'exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then - as_bourne_compatible="as_nop=: -if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 + as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: @@ -149,12 +148,13 @@ then : # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST -else \$as_nop - case \`(set -o) 2>/dev/null\` in @%:@( +else case e in @%:@( + e) case \`(set -o) 2>/dev/null\` in @%:@( *posix*) : set -o posix ;; @%:@( *) : ;; +esac ;; esac fi " @@ -172,8 +172,9 @@ as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ) then : -else \$as_nop - exitcode=1; echo positional parameters were not saved. +else case e in @%:@( + e) exitcode=1; echo positional parameters were not saved. ;; +esac fi test x\$exitcode = x0 || exit 1 blah=\$(echo \$(echo blah)) @@ -183,7 +184,6 @@ test -x / || exit 1" as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 -test \$(( 1 + 1 )) = 2 || exit 1 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' @@ -191,23 +191,25 @@ test \$(( 1 + 1 )) = 2 || exit 1 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ - || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null then : as_have_required=yes -else $as_nop - as_have_required=no +else case e in @%:@( + e) as_have_required=no ;; +esac fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null then : -else $as_nop - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in @%:@( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -235,12 +237,13 @@ IFS=$as_save_IFS if $as_found then : -else $as_nop - if { test -f "$SHELL" || test -f "$SHELL.exe"; } && +else case e in @%:@( + e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$SHELL as_have_required=yes -fi +fi ;; +esac fi @@ -262,7 +265,7 @@ case $- in @%:@ (((( esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. +# out after a failed 'exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi @@ -282,7 +285,8 @@ $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 -fi +fi ;; +esac fi fi SHELL=${CONFIG_SHELL-/bin/sh} @@ -321,14 +325,6 @@ as_fn_exit () as_fn_set_status $1 exit $1 } @%:@ as_fn_exit -@%:@ as_fn_nop -@%:@ --------- -@%:@ Do nothing but, unlike ":", preserve the value of @S|@?. -as_fn_nop () -{ - return $? -} -as_nop=as_fn_nop @%:@ as_fn_mkdir_p @%:@ ------------- @@ -397,11 +393,12 @@ then : { eval $1+=\$2 }' -else $as_nop - as_fn_append () +else case e in @%:@( + e) as_fn_append () { eval $1=\$$1\$2 - } + } ;; +esac fi # as_fn_append @%:@ as_fn_arith ARG... @@ -415,21 +412,14 @@ then : { as_val=$(( $* )) }' -else $as_nop - as_fn_arith () +else case e in @%:@( + e) as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` - } + } ;; +esac fi # as_fn_arith -@%:@ as_fn_nop -@%:@ --------- -@%:@ Do nothing but, unlike ":", preserve the value of @S|@?. -as_fn_nop () -{ - return $? -} -as_nop=as_fn_nop @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] @%:@ ---------------------------------------- @@ -503,6 +493,8 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits /[$]LINENO/= ' <$as_myself | sed ' + t clear + :clear s/[$]LINENO.*/&-/ t lineno b @@ -551,7 +543,6 @@ esac as_@&t@echo='printf %s\n' as_@&t@echo_n='printf %s' - rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file @@ -563,9 +554,9 @@ if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. + # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. + # In both cases, we have to default to 'cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then @@ -590,12 +581,12 @@ as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" +as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated # Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - -lt_ltdl_dir='libltdl' +as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" +as_tr_sh="eval sed '$as_sed_sh'" # deprecated SHELL=${CONFIG_SHELL-/bin/sh} @@ -623,8 +614,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='libfyaml' PACKAGE_TARNAME='libfyaml' -PACKAGE_VERSION='0.7.12' -PACKAGE_STRING='libfyaml 0.7.12' +PACKAGE_VERSION='0.9' +PACKAGE_STRING='libfyaml 0.9' PACKAGE_BUGREPORT='pantelis.antoniou@konsulko.com' PACKAGE_URL='' @@ -674,10 +665,17 @@ MCS OBJC F77 FC -CCAS AM_MAKEFLAGS MAKEFLAGS shavedir +HAVE_LIBCLANG_FALSE +HAVE_LIBCLANG_TRUE +LIBCLANG_LIBS +LIBCLANG_LDFLAGS +LIBCLANG_CPPFLAGS +LIBCLANG_CFLAGS +HAVE_LIBCLANG +LLVM_CONFIG HAVE_JQ_FALSE HAVE_JQ_TRUE JQ @@ -718,7 +716,42 @@ LIBYAML_CFLAGS HAVE_QSORT_R_FALSE HAVE_QSORT_R_TRUE HAVE_QSORT_R +HAVE_ASAN_FALSE +HAVE_ASAN_TRUE +ASAN_LIBS +ASAN_CFLAGS +HAVE_ASAN +TARGET_HAS_NEON_FALSE +TARGET_HAS_NEON_TRUE +TARGET_HAS_AVX512_FALSE +TARGET_HAS_AVX512_TRUE +TARGET_HAS_AVX2_FALSE +TARGET_HAS_AVX2_TRUE +TARGET_HAS_SSE41_FALSE +TARGET_HAS_SSE41_TRUE +TARGET_HAS_SSE2_FALSE +TARGET_HAS_SSE2_TRUE +TARGET_CPU_ANY_ARM_FALSE +TARGET_CPU_ANY_ARM_TRUE +TARGET_CPU_ARM64_FALSE +TARGET_CPU_ARM64_TRUE +TARGET_CPU_ARM_FALSE +TARGET_CPU_ARM_TRUE +TARGET_CPU_ANY_X86_FALSE +TARGET_CPU_ANY_X86_TRUE +TARGET_CPU_X86_64_FALSE +TARGET_CPU_X86_64_TRUE +TARGET_CPU_X86_FALSE +TARGET_CPU_X86_TRUE +HAVE_PORTABLE_TARGET_FALSE +HAVE_PORTABLE_TARGET_TRUE +HAVE_PORTABLE_TARGET +HAVE_STATIC_FALSE +HAVE_STATIC_TRUE +HAVE_STATIC subdirs +LIBLTDL +LTDLINCL CXXCPP LT_SYS_LIBRARY_PATH OTOOL64 @@ -734,32 +767,20 @@ ac_ct_DUMPBIN DUMPBIN LD FGREP +EGREP +GREP SED LIBTOOL OBJDUMP DLLTOOL AS -INCLTDL -LTDLINCL -LTDLDEPS -LIBLTDL PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG -ACLOCAL_AMFLAGS -M4 PTHREAD_CFLAGS PTHREAD_LIBS PTHREAD_CC ax_pthread_config -host_os -host_vendor -host_cpu -host -build_os -build_vendor -build_cpu -build LN_S am__fastdepCXX_FALSE am__fastdepCXX_TRUE @@ -769,9 +790,11 @@ CXXFLAGS CXX ac_ct_AR AR -EGREP -GREP -CPP +am__fastdepCCAS_FALSE +am__fastdepCCAS_TRUE +CCASDEPMODE +CCASFLAGS +CCAS am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE @@ -823,6 +846,20 @@ am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM +target_os +target_vendor +target_cpu +target +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +ACLOCAL_AMFLAGS +M4 target_alias host_alias build_alias @@ -877,8 +914,11 @@ with_aix_soname with_gnu_ld with_sysroot enable_libtool_lock +enable_portable_target +enable_asan enable_network enable_devmode +with_libclang enable_shave ' ac_precious_vars='build_alias @@ -889,7 +929,8 @@ CFLAGS LDFLAGS LIBS CPPFLAGS -CPP +CCAS +CCASFLAGS CXX CXXFLAGS CCC @@ -1014,7 +1055,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: \`$ac_useropt'" + as_fn_error $? "invalid feature name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1040,7 +1081,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: \`$ac_useropt'" + as_fn_error $? "invalid feature name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1253,7 +1294,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: \`$ac_useropt'" + as_fn_error $? "invalid package name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1269,7 +1310,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: \`$ac_useropt'" + as_fn_error $? "invalid package name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1299,8 +1340,8 @@ do | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; - -*) as_fn_error $? "unrecognized option: \`$ac_option' -Try \`$0 --help' for more information" + -*) as_fn_error $? "unrecognized option: '$ac_option' +Try '$0 --help' for more information" ;; *=*) @@ -1308,7 +1349,7 @@ Try \`$0 --help' for more information" # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) - as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + as_fn_error $? "invalid variable name: '$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; @@ -1358,7 +1399,7 @@ do as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done -# There might be people who depend on the old broken behavior: `$host' +# There might be people who depend on the old broken behavior: '$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias @@ -1426,7 +1467,7 @@ if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` @@ -1454,7 +1495,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures libfyaml 0.7.12 to adapt to many kinds of systems. +'configure' configures libfyaml 0.9 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1468,11 +1509,11 @@ Configuration: --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking ...' messages + -q, --quiet, --silent do not print 'checking ...' messages --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' + -C, --config-cache alias for '--cache-file=config.cache' -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] + --srcdir=DIR find the sources in DIR [configure dir or '..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX @@ -1480,10 +1521,10 @@ Installation directories: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX @<:@PREFIX@:>@ -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. +By default, 'make install' will install all the files in +'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify +an installation prefix other than '$ac_default_prefix' using '--prefix', +for instance '--prefix=\$HOME'. For better control, use the options below. @@ -1520,12 +1561,13 @@ Program names: System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] + --target=TARGET configure for building compilers for TARGET [HOST] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libfyaml 0.7.12:";; + short | recursive ) echo "Configuration of libfyaml 0.9:";; esac cat <<\_ACEOF @@ -1546,6 +1588,10 @@ Optional Features: --enable-fast-install@<:@=PKGS@:>@ optimize for fast installation @<:@default=yes@:>@ --disable-libtool-lock avoid locking (might break parallel builds) + --enable-portable-target + Enable portable mode (disable per-target + optimizations) + --enable-asan Enable ASAN support --disable-network Disable tests requiring network access --enable-devmode Enable development mode only debugging --enable-shave use shave to make the build pretty @<:@@<:@default=yes@:>@@:>@ @@ -1561,6 +1607,15 @@ Optional Packages: --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ --with-sysroot@<:@=DIR@:>@ Search for dependent libraries within DIR (or the compiler's sysroot if not specified). +@%:@ Check whether --enable-network was given. +if test ${enable_network+y} +then : + enableval=$enable_network; +fi + + + --with-libclang= + Enable support for libclang @<:@default=auto@:>@ Some influential environment variables: CC C compiler command @@ -1570,7 +1625,8 @@ 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 - CPP C preprocessor + CCAS assembler compiler command (defaults to CC) + CCASFLAGS assembler compiler flags (defaults to CFLAGS) CXX C++ compiler command CXXFLAGS C++ compiler flags PKG_CONFIG path to pkg-config utility @@ -1601,7 +1657,7 @@ Some influential environment variables: JSON Testsuite checkout (default: d64aefb55228d9584d3e5b2433f720ea8fd00c82) -Use these variables to override the choices made by `configure' or to help +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 . @@ -1668,10 +1724,10 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libfyaml configure 0.7.12 -generated by GNU Autoconf 2.71 +libfyaml configure 0.9 +generated by GNU Autoconf 2.72 -Copyright (C) 2021 Free Software Foundation, Inc. +Copyright (C) 2023 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF @@ -1710,54 +1766,17 @@ printf "%s\n" "$ac_try_echo"; } >&5 } && test -s conftest.$ac_objext then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in @%:@( + e) printf "%s\n" "$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_c_try_compile - -@%:@ ac_fn_c_try_cpp LINENO -@%:@ ---------------------- -@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. -ac_fn_c_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;; + ac_retval=1 ;; esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -printf "%s\n" "$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 - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } > conftest.i && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - } -then : - ac_retval=0 -else $as_nop - printf "%s\n" "$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_c_try_cpp +} @%:@ ac_fn_c_try_compile @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES @%:@ ------------------------------------------------------- @@ -1771,8 +1790,8 @@ printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 @%:@include <$2> @@ -1780,10 +1799,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$3=yes" -else $as_nop - eval "$3=no" +else case e in @%:@( + e) eval "$3=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -1820,11 +1841,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } && test -s conftest.$ac_objext then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in @%:@( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -1862,11 +1884,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in @%:@( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would @@ -1889,15 +1912,15 @@ printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $2 (); below. */ + which can conflict with char $2 (void); below. */ #include #undef $2 @@ -1908,7 +1931,7 @@ else $as_nop #ifdef __cplusplus extern "C" #endif -char $2 (); +char $2 (void); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ @@ -1927,11 +1950,13 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : eval "$3=yes" -else $as_nop - eval "$3=no" +else case e in @%:@( + e) eval "$3=no" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -1967,11 +1992,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in @%:@( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -2009,11 +2035,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in @%:@( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would @@ -2055,12 +2082,13 @@ printf "%s\n" "$ac_try_echo"; } >&5 test $ac_status = 0; }; } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: program exited with status $ac_status" >&5 +else case e in @%:@( + e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=$ac_status + ac_retval=$ac_status ;; +esac fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno @@ -2080,8 +2108,8 @@ printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - eval "$3=no" +else case e in @%:@( + e) eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 @@ -2111,12 +2139,14 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : -else $as_nop - eval "$3=yes" +else case e in @%:@( + e) eval "$3=yes" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -2138,8 +2168,8 @@ printf %s "checking whether $as_decl_name is declared... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` +else case e in @%:@( + e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` eval ac_save_FLAGS=\$$6 as_fn_append $6 " $5" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -2163,12 +2193,14 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$3=yes" -else $as_nop - eval "$3=no" +else case e in @%:@( + e) eval "$3=no" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext eval $6=\$ac_save_FLAGS - + ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -2200,8 +2232,8 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libfyaml $as_me 0.7.12, which was -generated by GNU Autoconf 2.71. Invocation command line was +It was created by libfyaml $as_me 0.9, which was +generated by GNU Autoconf 2.72. Invocation command line was $ $0$ac_configure_args_raw @@ -2236,7 +2268,7 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -2447,10 +2479,10 @@ esac printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ - || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } fi done @@ -2486,9 +2518,7 @@ struct stat; /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ struct buf { int x; }; struct buf * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; +static char *e (char **p, int i) { return p[i]; } @@ -2502,6 +2532,21 @@ static char *f (char * (*g) (char **, int), char **p, ...) return s; } +/* C89 style stringification. */ +#define noexpand_stringify(a) #a +const char *stringified = noexpand_stringify(arbitrary+token=sequence); + +/* C89 style token pasting. Exercises some of the corner cases that + e.g. old MSVC gets wrong, but not very hard. */ +#define noexpand_concat(a,b) a##b +#define expand_concat(a,b) noexpand_concat(a,b) +extern int vA; +extern int vbee; +#define aye A +#define bee B +int *pvA = &expand_concat(v,aye); +int *pvbee = &noexpand_concat(v,bee); + /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not \xHH hex character constants. These do not provoke an error unfortunately, instead are silently treated @@ -2529,16 +2574,19 @@ ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); # Test code for whether the C compiler supports C99 (global declarations) ac_c_conftest_c99_globals=' -// Does the compiler advertise C99 conformance? +/* Does the compiler advertise C99 conformance? */ #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L # error "Compiler does not advertise C99 conformance" #endif +// See if C++-style comments work. + #include extern int puts (const char *); extern int printf (const char *, ...); extern int dprintf (int, const char *, ...); extern void *malloc (size_t); +extern void free (void *); // Check varargs macros. These examples are taken from C99 6.10.3.5. // dprintf is used instead of fprintf to avoid needing to declare @@ -2588,7 +2636,6 @@ typedef const char *ccp; static inline int test_restrict (ccp restrict text) { - // See if C++-style comments work. // Iterate through items via the restricted pointer. // Also check for declarations in for loops. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) @@ -2654,6 +2701,8 @@ ac_c_conftest_c99_main=' ia->datasize = 10; for (int i = 0; i < ia->datasize; ++i) ia->data[i] = i * 1.234; + // Work around memory leak warnings. + free (ia); // Check named initializers. struct named_init ni = { @@ -2675,7 +2724,7 @@ ac_c_conftest_c99_main=' # Test code for whether the C compiler supports C11 (global declarations) ac_c_conftest_c11_globals=' -// Does the compiler advertise C11 conformance? +/* Does the compiler advertise C11 conformance? */ #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L # error "Compiler does not advertise C11 conformance" #endif @@ -3008,7 +3057,7 @@ main (int argc, char **argv) # Auxiliary files required by this configure script. -ac_aux_files="tap-driver.sh ltmain.sh config.guess config.sub ar-lib compile missing install-sh" +ac_aux_files="tap-driver.sh ltmain.sh ar-lib compile missing install-sh config.guess config.sub" # Locations in which to look for auxiliary files. ac_aux_dir_candidates="${srcdir}/build-aux" @@ -3026,7 +3075,7 @@ as_found=false for as_dir in $ac_aux_dir_candidates do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -3085,8 +3134,9 @@ IFS=$as_save_IFS if $as_found then : -else $as_nop - as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 +else case e in @%:@( + e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; +esac fi @@ -3114,12 +3164,12 @@ for ac_var in $ac_precious_vars; do eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 +printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 +printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) @@ -3128,18 +3178,18 @@ printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 +printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 -printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 +printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 -printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 -printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 +printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 +printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. @@ -3155,11 +3205,11 @@ printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} fi done if $ac_cache_corrupted; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} - as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' + as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## @@ -3175,145 +3225,320 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -ac_config_headers="$ac_config_headers config.h" - - - -am__api_version='1.16' - - - # Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -# Reject install programs that cannot install multiple files. -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 -printf %s "checking for a BSD-compatible install... " >&6; } -if test -z "$INSTALL"; then -if test ${ac_cv_path_install+y} +# Extract the first word of "m4 gm4", so it can be a program name with args. +set dummy m4 gm4; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_M4+y} then : printf %s "(cached) " >&6 -else $as_nop +else case e in @%:@( + e) case $M4 in + [\\/]* | ?:[\\/]*) + ac_cv_path_M4="$M4" # 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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac - # Account for fact that we put trailing slashes in our PATH walk. -case $as_dir in @%:@(( - ./ | /[cC]/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then - if test $ac_prog = install && - grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - rm -rf conftest.one conftest.two conftest.dir - echo one > conftest.one - echo two > conftest.two - mkdir conftest.dir - if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && - test -s conftest.one && test -s conftest.two && - test -s conftest.dir/conftest.one && - test -s conftest.dir/conftest.two - then - ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - fi - done - done - ;; -esac - + 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_M4="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done done IFS=$as_save_IFS -rm -rf conftest.one conftest.two conftest.dir - + test -z "$ac_cv_path_M4" && ac_cv_path_M4="no" + ;; +esac ;; +esac fi - if test ${ac_cv_path_install+y}; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi +M4=$ac_cv_path_M4 +if test -n "$M4"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 +printf "%s\n" "$M4" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 -printf "%s\n" "$INSTALL" >&6; } -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' +if test "x$M4" = xno ; then + as_fn_error $? "m4 missing" "$LINENO" 5 +fi -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' +ACLOCAL_AMFLAGS="-I m4" -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 -printf %s "checking whether build environment is sane... " >&6; } -# Reject unsafe characters in $srcdir or the absolute working directory -# name. Accept space and tab only in the latter. -am_lf=' -' -case `pwd` in - *[\\\"\#\$\&\'\`$am_lf]*) - as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; -esac -case $srcdir in - *[\\\"\#\$\&\'\`$am_lf\ \ ]*) - as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; -esac -# Do 'set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - am_has_slept=no - for am_try in 1 2; do - echo "timestamp, slept: $am_has_slept" > conftest.file - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t "$srcdir/configure" conftest.file` - fi - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - # If neither matched, then we have a broken ls. This can happen + + + # Make sure we can run config.sub. +$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +printf %s "checking build system type... " >&6; } +if test ${ac_cv_build+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 + ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +printf "%s\n" "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +printf %s "checking host system type... " >&6; } +if test ${ac_cv_host+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 +fi + ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +printf "%s\n" "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 +printf %s "checking target system type... " >&6; } +if test ${ac_cv_target+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test "x$target_alias" = x; then + ac_cv_target=$ac_cv_host +else + ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5 +fi + ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 +printf "%s\n" "$ac_cv_target" >&6; } +case $ac_cv_target in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; +esac +target=$ac_cv_target +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_target +shift +target_cpu=$1 +target_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +target_os=$* +IFS=$ac_save_IFS +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac + + +# The aliases save the names the user supplied, while $host etc. +# will get canonicalized. +test -n "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" = \ + NONENONEs,x,x, && + program_prefix=${target_alias}- + + +ac_config_headers="$ac_config_headers config.h" + + +am__api_version='1.16' + + + # Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +printf %s "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if test ${ac_cv_path_install+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + # Account for fact that we put trailing slashes in our PATH walk. +case $as_dir in @%:@(( + ./ | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + ;; +esac +fi + if test ${ac_cv_path_install+y}; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +printf "%s\n" "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +printf %s "checking whether build environment is sane... " >&6; } +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; +esac + +# Do 'set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + am_has_slept=no + for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". @@ -3354,7 +3579,7 @@ test "$program_prefix" != NONE && test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. -# By default was `s,x,x', remove it if useless. +# By default was 's,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` @@ -3397,15 +3622,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$STRIP"; then +else case e in @%:@( + e) if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -3420,7 +3645,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then @@ -3442,15 +3668,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_STRIP"; then +else case e in @%:@( + e) if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -3465,7 +3691,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then @@ -3501,12 +3728,12 @@ if test -z "$MKDIR_P"; then if test ${ac_cv_path_mkdir+y} then : printf %s "(cached) " >&6 -else $as_nop - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in @%:@( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -3516,7 +3743,7 @@ do as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir ('*'coreutils) '* | \ - 'BusyBox '* | \ + *'BusyBox '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext break 3;; @@ -3525,18 +3752,17 @@ do done done IFS=$as_save_IFS - + ;; +esac fi test -d ./--version && rmdir ./--version if test ${ac_cv_path_mkdir+y}; then MKDIR_P="$ac_cv_path_mkdir -p" else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - MKDIR_P="$ac_install_sh -d" + # As a last resort, use plain mkdir -p, + # in the hope it doesn't have the bugs of ancient mkdir. + MKDIR_P='mkdir -p' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 @@ -3551,15 +3777,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AWK+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AWK"; then +else case e in @%:@( + e) if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -3574,7 +3800,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then @@ -3596,8 +3823,8 @@ ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval test \${ac_cv_prog_make_${ac_make}_set+y} then : printf %s "(cached) " >&6 -else $as_nop - cat >conftest.make <<\_ACEOF +else case e in @%:@( + e) cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' @@ -3609,7 +3836,8 @@ case `${MAKE-make} -f conftest.make 2>/dev/null` in *) eval ac_cv_prog_make_${ac_make}_set=no;; esac -rm -f conftest.make +rm -f conftest.make ;; +esac fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 @@ -3647,8 +3875,8 @@ printf %s "checking whether $am_make supports nested variables... " >&6; } if test ${am_cv_make_support_nested_variables+y} then : printf %s "(cached) " >&6 -else $as_nop - if printf "%s\n" 'TRUE=$(BAR$(V)) +else case e in @%:@( + e) if printf "%s\n" 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 @@ -3658,7 +3886,8 @@ am__doit: am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no -fi +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } @@ -3693,7 +3922,7 @@ fi # Define the identity of the package. PACKAGE='libfyaml' - VERSION='0.7.12' + VERSION='0.9' printf "%s\n" "@%:@define PACKAGE \"$PACKAGE\"" >>confdefs.h @@ -3853,7 +4082,7 @@ EXTRA=`echo $VERSION | cut -d- -f2- -s` # increase current, set revision and age to 0 -LIBTOOL_VERSION=1:2:0 +LIBTOOL_VERSION=1:4:2 @@ -3877,8 +4106,9 @@ fi if test ${enable_debug+y} then : enableval=$enable_debug; -else $as_nop - enable_debug=$ax_enable_debug_default +else case e in @%:@( + e) enable_debug=$ax_enable_debug_default ;; +esac fi @@ -3951,10 +4181,11 @@ esac if test "x$enable_debug" = "xyes" then : -else $as_nop - +else case e in @%:@( + e) printf "%s\n" "@%:@define NDEBUG 1" >>confdefs.h - + ;; +esac fi ax_enable_debug=$enable_debug @@ -3982,15 +4213,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in @%:@( + e) if test -n "$CC"; then ac_cv_prog_CC="$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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4005,7 +4236,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4027,15 +4259,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in @%:@( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4050,7 +4282,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -4085,15 +4318,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in @%:@( + e) if test -n "$CC"; then ac_cv_prog_CC="$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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4108,7 +4341,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4130,8 +4364,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in @%:@( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no @@ -4139,7 +4373,7 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4170,7 +4404,8 @@ if test $ac_prog_rejected = yes; then ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" fi fi -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4194,15 +4429,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in @%:@( + e) if test -n "$CC"; then ac_cv_prog_CC="$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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4217,7 +4452,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4243,15 +4479,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in @%:@( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4266,7 +4502,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -4304,15 +4541,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in @%:@( + e) if test -n "$CC"; then ac_cv_prog_CC="$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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4327,7 +4564,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4349,15 +4587,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in @%:@( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -4372,7 +4610,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -4401,10 +4640,10 @@ fi fi -test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 @@ -4476,8 +4715,8 @@ printf "%s\n" "$ac_try_echo"; } >&5 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' + # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. +# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. @@ -4497,7 +4736,7 @@ do ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' + # safe: cross compilers may not add the suffix if given an '-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. @@ -4508,8 +4747,9 @@ do done test "$ac_cv_exeext" = no && ac_cv_exeext= -else $as_nop - ac_file='' +else case e in @%:@( + e) ac_file='' ;; +esac fi if test -z "$ac_file" then : @@ -4518,13 +4758,14 @@ printf "%s\n" "no" >&6; } printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables -See \`config.log' for more details" "$LINENO" 5; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } +See 'config.log' for more details" "$LINENO" 5; } +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 printf %s "checking for C compiler default output file name... " >&6; } @@ -4548,10 +4789,10 @@ printf "%s\n" "$ac_try_echo"; } >&5 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. + # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) +# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will +# work properly (i.e., refer to 'conftest.exe'), while it won't with +# 'rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in @@ -4561,11 +4802,12 @@ for ac_file in conftest.exe conftest conftest.*; do * ) break;; esac done -else $as_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in @%:@( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi rm -f conftest conftest$ac_cv_exeext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 @@ -4581,6 +4823,8 @@ int main (void) { FILE *f = fopen ("conftest.out", "w"); + if (!f) + return 1; return ferror (f) || fclose (f) != 0; ; @@ -4620,26 +4864,27 @@ printf "%s\n" "$ac_try_echo"; } >&5 if test "$cross_compiling" = maybe; then cross_compiling=yes else - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details" "$LINENO" 5; } +If you meant to cross compile, use '--host'. +See 'config.log' for more details" "$LINENO" 5; } fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 printf "%s\n" "$cross_compiling" >&6; } -rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +rm -f conftest.$ac_ext conftest$ac_cv_exeext \ + conftest.o conftest.obj conftest.out ac_clean_files=$ac_clean_files_save { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 printf %s "checking for suffix of object files... " >&6; } if test ${ac_cv_objext+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -4671,16 +4916,18 @@ then : break;; esac done -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in @%:@( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi -rm -f conftest.$ac_cv_objext conftest.$ac_ext +rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 printf "%s\n" "$ac_cv_objext" >&6; } @@ -4691,8 +4938,8 @@ printf %s "checking whether the compiler supports GNU C... " >&6; } if test ${ac_cv_c_compiler_gnu+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -4709,12 +4956,14 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_compiler_gnu=yes -else $as_nop - ac_compiler_gnu=no +else case e in @%:@( + e) ac_compiler_gnu=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } @@ -4732,8 +4981,8 @@ printf %s "checking whether $CC accepts -g... " >&6; } if test ${ac_cv_prog_cc_g+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_save_c_werror_flag=$ac_c_werror_flag +else case e in @%:@( + e) ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" @@ -4751,8 +5000,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes -else $as_nop - CFLAGS="" +else case e in @%:@( + e) CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4767,8 +5016,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : -else $as_nop - ac_c_werror_flag=$ac_save_c_werror_flag +else case e in @%:@( + e) ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4785,12 +5034,15 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag + ac_c_werror_flag=$ac_save_c_werror_flag ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } @@ -4817,8 +5069,8 @@ printf %s "checking for $CC option to enable C11 features... " >&6; } if test ${ac_cv_prog_cc_c11+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c11=no +else case e in @%:@( + e) ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4835,25 +5087,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c11" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c11" = x +else case e in @%:@( + e) if test "x$ac_cv_prog_cc_c11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } - CC="$CC $ac_cv_prog_cc_c11" + CC="$CC $ac_cv_prog_cc_c11" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 - ac_prog_cc_stdc=c11 + ac_prog_cc_stdc=c11 ;; +esac fi fi if test x$ac_prog_cc_stdc = xno @@ -4863,8 +5118,8 @@ printf %s "checking for $CC option to enable C99 features... " >&6; } if test ${ac_cv_prog_cc_c99+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c99=no +else case e in @%:@( + e) ac_cv_prog_cc_c99=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4881,25 +5136,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c99" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c99" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c99" = x +else case e in @%:@( + e) if test "x$ac_cv_prog_cc_c99" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } - CC="$CC $ac_cv_prog_cc_c99" + CC="$CC $ac_cv_prog_cc_c99" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 - ac_prog_cc_stdc=c99 + ac_prog_cc_stdc=c99 ;; +esac fi fi if test x$ac_prog_cc_stdc = xno @@ -4909,8 +5167,8 @@ printf %s "checking for $CC option to enable C89 features... " >&6; } if test ${ac_cv_prog_cc_c89+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c89=no +else case e in @%:@( + e) ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4927,25 +5185,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c89" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c89" = x +else case e in @%:@( + e) if test "x$ac_cv_prog_cc_c89" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } - CC="$CC $ac_cv_prog_cc_c89" + CC="$CC $ac_cv_prog_cc_c89" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 - ac_prog_cc_stdc=c89 + ac_prog_cc_stdc=c89 ;; +esac fi fi @@ -4966,8 +5227,8 @@ printf %s "checking whether $CC understands -c and -o together... " >&6; } if test ${am_cv_prog_cc_c_o+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -4997,7 +5258,8 @@ _ACEOF fi done rm -f core conftest* - unset am_i + unset am_i ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } @@ -5087,8 +5349,8 @@ printf %s "checking dependency style of $depcc... " >&6; } if test ${am_cv_CC_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then +else case e in @%:@( + e) 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 @@ -5192,7 +5454,8 @@ else $as_nop else am_cv_CC_dependencies_compiler_type=none fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } @@ -5210,371 +5473,186 @@ fi +# By default we simply use the C compiler to build assembly code. +test "${CCAS+set}" = set || CCAS=$CC +test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS -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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 -printf %s "checking how to run the C preprocessor... " >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if test ${ac_cv_prog_CPP+y} + +depcc="$CCAS" am_compiler_list= + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +printf %s "checking dependency style of $depcc... " >&6; } +if test ${am_cv_CCAS_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 -else $as_nop - # Double quotes because $CC needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # 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. */ -@%:@include - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : +else case e in @%:@( + e) 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_CCAS_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 -else $as_nop - # 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_c_try_cpp "$LINENO" -then : - # Broken: success on invalid input. -continue -else $as_nop - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.i conftest.$ac_ext + 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 -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 + # 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_CCAS_dependencies_compiler_type=$depmode + break + fi + fi + done - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP + cd .. + rm -rf conftest.dir else - ac_cv_prog_CPP=$CPP + am_cv_CCAS_dependencies_compiler_type=none fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 -printf "%s\n" "$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # 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. */ -@%:@include - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : - -else $as_nop - # Broken: fails on valid input. -continue + ;; +esac fi -rm -f conftest.err conftest.i conftest.$ac_ext +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 +printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; } +CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type - # 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_c_try_cpp "$LINENO" -then : - # Broken: success on invalid input. -continue -else $as_nop - # Passes both tests. -ac_preproc_ok=: -break + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then + am__fastdepCCAS_TRUE= + am__fastdepCCAS_FALSE='#' +else + am__fastdepCCAS_TRUE='#' + am__fastdepCCAS_FALSE= fi -rm -f conftest.err conftest.i conftest.$ac_ext + + + + +ac_header= ac_cache= +for ac_item in $ac_header_c_list +do + if test $ac_cache; then + ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" + if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then + printf "%s\n" "#define $ac_item 1" >> confdefs.h + fi + ac_header= ac_cache= + elif test $ac_header; then + ac_cache=$ac_item + else + ac_header=$ac_item + fi 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 + + + + + + + + +if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes then : -else $as_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } +printf "%s\n" "@%:@define STDC_HEADERS 1" >>confdefs.h + 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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} + + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 +printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } +if test ${ac_cv_safe_to_define___extensions__+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in grep ggrep - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in -*GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_GREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_GREP=$GREP -fi - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in egrep - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_EGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_EGREP=$EGREP -fi - - fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - -if test $ac_cv_c_compiler_gnu = yes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 -printf %s "checking whether $CC needs -traditional... " >&6; } -if test ${ac_cv_prog_gcc_traditional+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_pattern="Autoconf.*'x'" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -Autoconf TIOCGETP -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "$ac_pattern" >/dev/null 2>&1 -then : - ac_cv_prog_gcc_traditional=yes -else $as_nop - ac_cv_prog_gcc_traditional=no -fi -rm -rf conftest* - - - if test $ac_cv_prog_gcc_traditional = no; then - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -Autoconf TCGETA -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "$ac_pattern" >/dev/null 2>&1 -then : - ac_cv_prog_gcc_traditional=yes -fi -rm -rf conftest* - - fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 -printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; } - if test $ac_cv_prog_gcc_traditional = yes; then - CC="$CC -traditional" - fi -fi - -ac_header= ac_cache= -for ac_item in $ac_header_c_list -do - if test $ac_cache; then - ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" - if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then - printf "%s\n" "#define $ac_item 1" >> confdefs.h - fi - ac_header= ac_cache= - elif test $ac_header; then - ac_cache=$ac_item - else - ac_header=$ac_item - fi -done - - - - - - - - -if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes -then : - -printf "%s\n" "@%:@define STDC_HEADERS 1" >>confdefs.h - -fi - - - - - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 -printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } -if test ${ac_cv_safe_to_define___extensions__+y} -then : - printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ # define __EXTENSIONS__ 1 @@ -5590,10 +5668,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_safe_to_define___extensions__=yes -else $as_nop - ac_cv_safe_to_define___extensions__=no +else case e in @%:@( + e) ac_cv_safe_to_define___extensions__=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } @@ -5603,8 +5683,8 @@ printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } if test ${ac_cv_should_define__xopen_source+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_should_define__xopen_source=no +else case e in @%:@( + e) ac_cv_should_define__xopen_source=no if test $ac_cv_header_wchar_h = yes then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -5623,8 +5703,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _XOPEN_SOURCE 500 @@ -5642,10 +5722,12 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_should_define__xopen_source=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -fi +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } @@ -5670,6 +5752,8 @@ printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } printf "%s\n" "@%:@define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h + printf "%s\n" "@%:@define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h + printf "%s\n" "@%:@define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h printf "%s\n" "@%:@define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h @@ -5689,8 +5773,9 @@ then : printf "%s\n" "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h -else $as_nop - MINIX= +else case e in @%:@( + e) MINIX= ;; +esac fi if test $ac_cv_safe_to_define___extensions__ = yes then : @@ -5714,15 +5799,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AR"; then +else case e in @%:@( + e) if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -5737,7 +5822,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi AR=$ac_cv_prog_AR if test -n "$AR"; then @@ -5763,15 +5849,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_AR"; then +else case e in @%:@( + e) if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -5786,7 +5872,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then @@ -5821,8 +5908,8 @@ printf %s "checking the archiver ($AR) interface... " >&6; } if test ${am_cv_ar_interface+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_ext=c +else case e in @%:@( + e) 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' @@ -5865,7 +5952,8 @@ 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 - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 printf "%s\n" "$am_cv_ar_interface" >&6; } @@ -5913,15 +6001,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CXX"; then +else case e in @%:@( + e) 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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -5936,7 +6024,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then @@ -5962,15 +6051,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CXX"; then +else case e in @%:@( + e) 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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -5985,7 +6074,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then @@ -6045,8 +6135,8 @@ printf %s "checking whether the compiler supports GNU C++... " >&6; } if test ${ac_cv_cxx_compiler_gnu+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -6063,12 +6153,14 @@ _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_compiler_gnu=yes -else $as_nop - ac_compiler_gnu=no +else case e in @%:@( + e) ac_compiler_gnu=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } @@ -6086,8 +6178,8 @@ printf %s "checking whether $CXX accepts -g... " >&6; } if test ${ac_cv_prog_cxx_g+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_save_cxx_werror_flag=$ac_cxx_werror_flag +else case e in @%:@( + e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" @@ -6105,8 +6197,8 @@ _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_g=yes -else $as_nop - CXXFLAGS="" +else case e in @%:@( + e) CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6121,8 +6213,8 @@ _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : -else $as_nop - ac_cxx_werror_flag=$ac_save_cxx_werror_flag +else case e in @%:@( + e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6139,12 +6231,15 @@ if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ac_cxx_werror_flag=$ac_save_cxx_werror_flag + ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } @@ -6168,11 +6263,11 @@ if test x$ac_prog_cxx_stdcxx = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 printf %s "checking for $CXX option to enable C++11 features... " >&6; } -if test ${ac_cv_prog_cxx_11+y} +if test ${ac_cv_prog_cxx_cxx11+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cxx_11=no +else case e in @%:@( + e) ac_cv_prog_cxx_cxx11=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6189,36 +6284,39 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx11" != "xno" && break done rm -f conftest.$ac_ext -CXX=$ac_save_CXX +CXX=$ac_save_CXX ;; +esac fi if test "x$ac_cv_prog_cxx_cxx11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cxx_cxx11" = x +else case e in @%:@( + e) if test "x$ac_cv_prog_cxx_cxx11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } - CXX="$CXX $ac_cv_prog_cxx_cxx11" + CXX="$CXX $ac_cv_prog_cxx_cxx11" ;; +esac fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 - ac_prog_cxx_stdcxx=cxx11 + ac_prog_cxx_stdcxx=cxx11 ;; +esac fi fi if test x$ac_prog_cxx_stdcxx = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 printf %s "checking for $CXX option to enable C++98 features... " >&6; } -if test ${ac_cv_prog_cxx_98+y} +if test ${ac_cv_prog_cxx_cxx98+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cxx_98=no +else case e in @%:@( + e) ac_cv_prog_cxx_cxx98=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6235,25 +6333,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx98" != "xno" && break done rm -f conftest.$ac_ext -CXX=$ac_save_CXX +CXX=$ac_save_CXX ;; +esac fi if test "x$ac_cv_prog_cxx_cxx98" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cxx_cxx98" = x +else case e in @%:@( + e) if test "x$ac_cv_prog_cxx_cxx98" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } - CXX="$CXX $ac_cv_prog_cxx_cxx98" + CXX="$CXX $ac_cv_prog_cxx_cxx98" ;; +esac fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 - ac_prog_cxx_stdcxx=cxx98 + ac_prog_cxx_stdcxx=cxx98 ;; +esac fi fi @@ -6270,8 +6371,8 @@ printf %s "checking dependency style of $depcc... " >&6; } if test ${am_cv_CXX_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then +else case e in @%:@( + e) 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 @@ -6375,7 +6476,8 @@ else $as_nop else am_cv_CXX_dependencies_compiler_type=none fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } @@ -6401,15 +6503,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AWK+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AWK"; then +else case e in @%:@( + e) if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -6424,7 +6526,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then @@ -6452,87 +6555,12 @@ fi - - # Make sure we can run config.sub. -$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || - as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 -printf %s "checking build system type... " >&6; } -if test ${ac_cv_build+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` -test "x$ac_build_alias" = x && - as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 -ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || - as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 -printf "%s\n" "$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 -printf %s "checking host system type... " >&6; } -if test ${ac_cv_host+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || - as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 -fi - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 -printf "%s\n" "$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - - - -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 +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 @@ -6555,8 +6583,14 @@ printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_ /* 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. */ -char pthread_join (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_join (void); int main (void) { @@ -6655,15 +6689,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ax_pthread_config+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ax_pthread_config"; then +else case e in @%:@( + e) 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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -6679,7 +6713,8 @@ done IFS=$as_save_IFS test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" -fi +fi ;; +esac fi ax_pthread_config=$ac_cv_prog_ax_pthread_config if test -n "$ax_pthread_config"; then @@ -6819,8 +6854,8 @@ printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6836,12 +6871,14 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ax_cv_PTHREAD_PRIO_INHERIT=yes -else $as_nop - ax_cv_PTHREAD_PRIO_INHERIT=no +else case e in @%:@( + e) ax_cv_PTHREAD_PRIO_INHERIT=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } @@ -6878,15 +6915,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_PTHREAD_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$PTHREAD_CC"; then +else case e in @%:@( + e) 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 - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -6901,7 +6938,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi PTHREAD_CC=$ac_cv_prog_PTHREAD_CC if test -n "$PTHREAD_CC"; then @@ -6940,7 +6978,7 @@ printf "%s\n" "@%:@define HAVE_PTHREAD 1" >>confdefs.h : else ax_pthread_ok=no - + as_fn_error $? "\"Missing required pthread support\"" "$LINENO" 5 fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -6950,58 +6988,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -# Extract the first word of "m4 gm4", so it can be a program name with args. -set dummy m4 gm4; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_M4+y} -then : - printf %s "(cached) " >&6 -else $as_nop - case $M4 in - [\\/]* | ?:[\\/]*) - ac_cv_path_M4="$M4" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_M4="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$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_path_M4" && ac_cv_path_M4="no" - ;; -esac -fi -M4=$ac_cv_path_M4 -if test -n "$M4"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 -printf "%s\n" "$M4" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -if test "x$M4" = xno ; then - as_fn_error $? "m4 missing" "$LINENO" 5 +# in some cases PTHREAD_LIBS is empty - force -lpthread */ +if test "x$PTHREAD_LIBS" = "x"; then + PTHREAD_LIBS="-lpthread" fi -ACLOCAL_AMFLAGS="-I m4" - +CFLAGS="$CFLAGS $PTHREAD_CFLAGS" +LIBS="$LIBS $PTHREAD_LIBS" # pkg-config @@ -7020,8 +7013,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PKG_CONFIG+y} then : printf %s "(cached) " >&6 -else $as_nop - case $PKG_CONFIG in +else case e in @%:@( + e) case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; @@ -7030,7 +7023,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -7046,6 +7039,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG @@ -7068,8 +7062,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} then : printf %s "(cached) " >&6 -else $as_nop - case $ac_pt_PKG_CONFIG in +else case e in @%:@( + e) case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; @@ -7078,7 +7072,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -7094,6 +7088,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG @@ -7136,440 +7131,421 @@ printf "%s\n" "no" >&6; } fi +case `pwd` in + *\ * | *\ *) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; +esac - - -if test -f "$prefix/lib/libltdl.la"; then - lt_save_LDFLAGS=$LDFLAGS - LDFLAGS="-L$prefix/lib $LDFLAGS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5 -printf %s "checking for lt_dlinit in -lltdl... " >&6; } -if test ${ac_cv_lib_ltdl_lt_dlinit+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS -LIBS="-lltdl $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ +macro_version='2.4.7' +macro_revision='2.4.7' -/* 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. */ -char lt_dlinit (); -int -main (void) -{ -return lt_dlinit (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_ltdl_lt_dlinit=yes -else $as_nop - ac_cv_lib_ltdl_lt_dlinit=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5 -printf "%s\n" "$ac_cv_lib_ltdl_lt_dlinit" >&6; } -if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes -then : - lt_lib_ltdl=yes -fi + + + - LDFLAGS=$lt_save_LDFLAGS - if test yes = "${lt_lib_ltdl-no}"; then - if test yes != "$enable_ltdl_install"; then - # Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: not overwriting libltdl at $prefix, force with '--enable-ltdl-install'" >&5 -printf "%s\n" "$as_me: WARNING: not overwriting libltdl at $prefix, force with '--enable-ltdl-install'" >&2;} - enable_ltdl_install=no - fi - elif test no = "$enable_ltdl_install"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libltdl not installed, but installation disabled" >&5 -printf "%s\n" "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;} - fi -fi -# If configure.ac declared an installable ltdl, and the user didn't override -# with --disable-ltdl-install, we will install the shipped libltdl. -case $enable_ltdl_install in - no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no" - LIBLTDL=-lltdl - LTDLDEPS= - LTDLINCL= - ;; - *) enable_ltdl_install=yes - ac_configure_args="$ac_configure_args --enable-ltdl-install" - LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la" - LTDLDEPS=$LIBLTDL - LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}" - ;; -esac + + + + +ltmain=$ac_aux_dir/ltmain.sh -# For backwards non-gettext consistent compatibility... -INCLTDL=$LTDLINCL +# Backslashify metacharacters that are still active within +# double-quoted strings. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' -enable_dlopen=yes +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' -enable_win32_dll=yes +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO -case $host in -*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. -set dummy ${ac_tool_prefix}as; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_AS+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 +printf %s "checking how to print strings... " >&6; } +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' +else + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' +fi + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "" +} + +case $ECHO in + printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 +printf "%s\n" "printf" >&6; } ;; + print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 +printf "%s\n" "print -r" >&6; } ;; + *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 +printf "%s\n" "cat" >&6; } ;; +esac + + + + + + + + + + + + + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +printf %s "checking for a sed that does not truncate output... " >&6; } +if test ${ac_cv_path_SED+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AS"; then - ac_cv_prog_AS="$AS" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in @%:@( + e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac + for ac_prog in sed gsed + do 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_AS="${ac_tool_prefix}as" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done + ac_path_SED="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_SED" || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in @%:@( +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +@%:@( +*) + ac_count=0 + printf %s 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + printf "%s\n" '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break done -IFS=$as_save_IFS + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac -fi -fi -AS=$ac_cv_prog_AS -if test -n "$AS"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 -printf "%s\n" "$AS" >&6; } + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + ac_cv_path_SED=$SED +fi + ;; +esac fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +printf "%s\n" "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" -fi -if test -z "$ac_cv_prog_AS"; then - ac_ct_AS=$AS - # Extract the first word of "as", so it can be a program name with args. -set dummy as; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_AS+y} + + + + + + + + + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +printf %s "checking for grep that handles long lines and -e... " >&6; } +if test ${ac_cv_path_GREP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_AS"; then - ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH +else case e in @%:@( + e) if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac + for ac_prog in grep ggrep + do 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_AS="as" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done + ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_GREP" || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in @%:@( +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +@%:@( +*) + ac_count=0 + printf %s 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + printf "%s\n" 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break done -IFS=$as_save_IFS + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac -fi -fi -ac_ct_AS=$ac_cv_prog_ac_ct_AS -if test -n "$ac_ct_AS"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 -printf "%s\n" "$ac_ct_AS" >&6; } + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + ac_cv_path_GREP=$GREP fi - - if test "x$ac_ct_AS" = x; then - AS="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; + ;; esac - AS=$ac_ct_AS - fi -else - AS="$ac_cv_prog_AS" fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +printf "%s\n" "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. -set dummy ${ac_tool_prefix}dlltool; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_DLLTOOL+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +printf %s "checking for egrep... " >&6; } +if test ${ac_cv_path_EGREP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DLLTOOL"; then - ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH +else case e in @%:@( + e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac + for ac_prog in egrep + do 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_DLLTOOL="${ac_tool_prefix}dlltool" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done + ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP" || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in @%:@( +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +@%:@( +*) + ac_count=0 + printf %s 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + printf "%s\n" 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break done -IFS=$as_save_IFS + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac -fi -fi -DLLTOOL=$ac_cv_prog_DLLTOOL -if test -n "$DLLTOOL"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 -printf "%s\n" "$DLLTOOL" >&6; } + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + ac_cv_path_EGREP=$EGREP fi - + fi ;; +esac fi -if test -z "$ac_cv_prog_DLLTOOL"; then - ac_ct_DLLTOOL=$DLLTOOL - # Extract the first word of "dlltool", so it can be a program name with args. -set dummy dlltool; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_DLLTOOL+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +printf "%s\n" "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + EGREP_TRADITIONAL=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 +printf %s "checking for fgrep... " >&6; } +if test ${ac_cv_path_FGREP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_DLLTOOL"; then - ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DLLTOOL="dlltool" - printf "%s\n" "$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_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL -if test -n "$ac_ct_DLLTOOL"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 -printf "%s\n" "$ac_ct_DLLTOOL" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_DLLTOOL" = x; then - DLLTOOL="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - DLLTOOL=$ac_ct_DLLTOOL - fi -else - DLLTOOL="$ac_cv_prog_DLLTOOL" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. -set dummy ${ac_tool_prefix}objdump; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_OBJDUMP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test -n "$OBJDUMP"; then - ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH +else case e in @%:@( + e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 + then ac_cv_path_FGREP="$GREP -F" + else + if test -z "$FGREP"; then + ac_path_FGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac + for ac_prog in fgrep + do 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_OBJDUMP="${ac_tool_prefix}objdump" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done + ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_FGREP" || continue +# Check for GNU ac_path_FGREP and select it if it is found. + # Check for GNU $ac_path_FGREP +case `"$ac_path_FGREP" --version 2>&1` in @%:@( +*GNU*) + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; +@%:@( +*) + ac_count=0 + printf %s 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + printf "%s\n" 'FGREP' >> "conftest.nl" + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_FGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_FGREP="$ac_path_FGREP" + ac_path_FGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break done -IFS=$as_save_IFS - -fi -fi -OBJDUMP=$ac_cv_prog_OBJDUMP -if test -n "$OBJDUMP"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 -printf "%s\n" "$OBJDUMP" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac -fi -if test -z "$ac_cv_prog_OBJDUMP"; then - ac_ct_OBJDUMP=$OBJDUMP - # Extract the first word of "objdump", so it can be a program name with args. -set dummy objdump; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_OBJDUMP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_OBJDUMP"; then - ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_OBJDUMP="objdump" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done + $ac_path_FGREP_found && break 3 + done + done done IFS=$as_save_IFS - -fi -fi -ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP -if test -n "$ac_ct_OBJDUMP"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 -printf "%s\n" "$ac_ct_OBJDUMP" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_OBJDUMP" = x; then - OBJDUMP="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - OBJDUMP=$ac_ct_OBJDUMP + if test -z "$ac_cv_path_FGREP"; then + as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - OBJDUMP="$ac_cv_prog_OBJDUMP" + ac_cv_path_FGREP=$FGREP fi - ;; + fi ;; esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 +printf "%s\n" "$ac_cv_path_FGREP" >&6; } + FGREP="$ac_cv_path_FGREP" + -test -z "$AS" && AS=as - - - - - -test -z "$DLLTOOL" && DLLTOOL=dlltool - - - - - -test -z "$OBJDUMP" && OBJDUMP=objdump +test -z "$GREP" && GREP=grep - -case `pwd` in - *\ * | *\ *) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 -printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; -esac - - - -macro_version='2.4.7' -macro_revision='2.4.7' - @@ -7582,266 +7558,15 @@ macro_revision='2.4.7' - -ltmain=$ac_aux_dir/ltmain.sh - -# Backslashify metacharacters that are still active within -# double-quoted strings. -sed_quote_subst='s/\(["`$\\]\)/\\\1/g' - -# Same as above, but do not quote variable references. -double_quote_subst='s/\(["`\\]\)/\\\1/g' - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to delay expansion of an escaped single quote. -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' - -ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 -printf %s "checking how to print strings... " >&6; } -# Test print first, because it will be a builtin if present. -if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ - test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then - ECHO='print -r --' -elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then - ECHO='printf %s\n' -else - # Use this function as a fallback that always works. - func_fallback_echo () - { - eval 'cat <<_LTECHO_EOF -$1 -_LTECHO_EOF' - } - ECHO='func_fallback_echo' -fi - -# func_echo_all arg... -# Invoke $ECHO with all args, space-separated. -func_echo_all () -{ - $ECHO "" -} -case $ECHO in - printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 -printf "%s\n" "printf" >&6; } ;; - print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 -printf "%s\n" "print -r" >&6; } ;; - *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 -printf "%s\n" "cat" >&6; } ;; +@%:@ Check whether --with-gnu-ld was given. +if test ${with_gnu_ld+y} +then : + withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes +else case e in @%:@( + e) with_gnu_ld=no ;; esac - - - - - - - - - - - - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 -printf %s "checking for a sed that does not truncate output... " >&6; } -if test ${ac_cv_path_SED+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ - for ac_i in 1 2 3 4 5 6 7; do - ac_script="$ac_script$as_nl$ac_script" - done - echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed - { ac_script=; unset ac_script;} - if test -z "$SED"; then - ac_path_SED_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in sed gsed - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_SED="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_SED" || continue -# Check for GNU ac_path_SED and select it if it is found. - # Check for GNU $ac_path_SED -case `"$ac_path_SED" --version 2>&1` in -*GNU*) - ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" '' >> "conftest.nl" - "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_SED_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_SED="$ac_path_SED" - ac_path_SED_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_SED_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_SED"; then - as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 - fi -else - ac_cv_path_SED=$SED -fi - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 -printf "%s\n" "$ac_cv_path_SED" >&6; } - SED="$ac_cv_path_SED" - rm -f conftest.sed - -test -z "$SED" && SED=sed -Xsed="$SED -e 1s/^X//" - - - - - - - - - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 -printf %s "checking for fgrep... " >&6; } -if test ${ac_cv_path_FGREP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 - then ac_cv_path_FGREP="$GREP -F" - else - if test -z "$FGREP"; then - ac_path_FGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in fgrep - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_FGREP" || continue -# Check for GNU ac_path_FGREP and select it if it is found. - # Check for GNU $ac_path_FGREP -case `"$ac_path_FGREP" --version 2>&1` in -*GNU*) - ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" 'FGREP' >> "conftest.nl" - "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_FGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_FGREP="$ac_path_FGREP" - ac_path_FGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_FGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_FGREP"; then - as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_FGREP=$FGREP -fi - - fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 -printf "%s\n" "$ac_cv_path_FGREP" >&6; } - FGREP="$ac_cv_path_FGREP" - - -test -z "$GREP" && GREP=grep - - - - - - - - - - - - - - - - - - - -@%:@ Check whether --with-gnu-ld was given. -if test ${with_gnu_ld+y} -then : - withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes -else $as_nop - with_gnu_ld=no -fi +fi ac_prog=ld if test yes = "$GCC"; then @@ -7885,8 +7610,8 @@ fi if test ${lt_cv_path_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$LD"; then +else case e in @%:@( + e) if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs @@ -7909,7 +7634,8 @@ else $as_nop IFS=$lt_save_ifs else lt_cv_path_LD=$LD # Let the user override the test with a path. -fi +fi ;; +esac fi LD=$lt_cv_path_LD @@ -7926,8 +7652,8 @@ printf %s "checking if the linker ($LD) is GNU ld... " >&6; } if test ${lt_cv_prog_gnu_ld+y} then : printf %s "(cached) " >&6 -else $as_nop - # I'd rather use --version here, but apparently some GNU lds only accept -v. +else case e in @%:@( + e) # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &1 &5 @@ -7954,8 +7681,8 @@ printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if test ${lt_cv_path_NM+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$NM"; then +else case e in @%:@( + e) if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM=$NM else @@ -8002,7 +7729,8 @@ else IFS=$lt_save_ifs done : ${lt_cv_path_NM=no} -fi +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 printf "%s\n" "$lt_cv_path_NM" >&6; } @@ -8023,15 +7751,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DUMPBIN+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DUMPBIN"; then +else case e in @%:@( + e) if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8046,7 +7774,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then @@ -8072,15 +7801,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DUMPBIN+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_DUMPBIN"; then +else case e in @%:@( + e) if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8095,7 +7824,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then @@ -8149,8 +7879,8 @@ printf %s "checking the name lister ($NM) interface... " >&6; } if test ${lt_cv_nm_interface+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_nm_interface="BSD nm" +else case e in @%:@( + e) lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) @@ -8163,7 +7893,8 @@ else $as_nop if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi - rm -f conftest* + rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 printf "%s\n" "$lt_cv_nm_interface" >&6; } @@ -8174,8 +7905,8 @@ printf %s "checking the maximum length of command line arguments... " >&6; } if test ${lt_cv_sys_max_cmd_len+y} then : printf %s "(cached) " >&6 -else $as_nop - i=0 +else case e in @%:@( + e) i=0 teststring=ABCD case $build_os in @@ -8297,7 +8028,8 @@ else $as_nop fi ;; esac - + ;; +esac fi if test -n "$lt_cv_sys_max_cmd_len"; then @@ -8354,8 +8086,8 @@ printf %s "checking how to convert $build file names to $host format... " >&6; } if test ${lt_cv_to_host_file_cmd+y} then : printf %s "(cached) " >&6 -else $as_nop - case $host in +else case e in @%:@( + e) case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys @@ -8386,7 +8118,8 @@ else $as_nop lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac - + ;; +esac fi to_host_file_cmd=$lt_cv_to_host_file_cmd @@ -8402,8 +8135,8 @@ printf %s "checking how to convert $build file names to toolchain format... " >& if test ${lt_cv_to_tool_file_cmd+y} then : printf %s "(cached) " >&6 -else $as_nop - #assume ordinary cross tools, or native build. +else case e in @%:@( + e) #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) @@ -8414,7 +8147,8 @@ case $host in esac ;; esac - + ;; +esac fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd @@ -8430,8 +8164,9 @@ printf %s "checking for $LD option to reload object files... " >&6; } if test ${lt_cv_ld_reload_flag+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_ld_reload_flag='-r' +else case e in @%:@( + e) lt_cv_ld_reload_flag='-r' ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } @@ -8472,15 +8207,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_FILECMD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$FILECMD"; then +else case e in @%:@( + e) if test -n "$FILECMD"; then ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8495,7 +8230,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi FILECMD=$ac_cv_prog_FILECMD if test -n "$FILECMD"; then @@ -8517,15 +8253,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_FILECMD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_FILECMD"; then +else case e in @%:@( + e) if test -n "$ac_ct_FILECMD"; then ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8540,7 +8276,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD if test -n "$ac_ct_FILECMD"; then @@ -8580,15 +8317,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OBJDUMP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$OBJDUMP"; then +else case e in @%:@( + e) if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8603,7 +8340,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then @@ -8625,15 +8363,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OBJDUMP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_OBJDUMP"; then +else case e in @%:@( + e) if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8648,7 +8386,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then @@ -8686,8 +8425,8 @@ printf %s "checking how to recognize dependent libraries... " >&6; } if test ${lt_cv_deplibs_check_method+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_file_magic_cmd='$MAGIC_CMD' +else case e in @%:@( + e) lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support @@ -8880,7 +8619,8 @@ os2*) lt_cv_deplibs_check_method=pass_all ;; esac - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } @@ -8932,15 +8672,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DLLTOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DLLTOOL"; then +else case e in @%:@( + e) if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -8955,7 +8695,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then @@ -8977,15 +8718,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DLLTOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_DLLTOOL"; then +else case e in @%:@( + e) if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9000,7 +8741,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then @@ -9039,8 +8781,8 @@ printf %s "checking how to associate runtime and link libraries... " >&6; } if test ${lt_cv_sharedlib_from_linklib_cmd+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_sharedlib_from_linklib_cmd='unknown' +else case e in @%:@( + e) lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) @@ -9060,7 +8802,8 @@ cygwin* | mingw* | pw32* | cegcc*) lt_cv_sharedlib_from_linklib_cmd=$ECHO ;; esac - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } @@ -9083,15 +8826,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AR"; then +else case e in @%:@( + e) if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9106,7 +8849,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi AR=$ac_cv_prog_AR if test -n "$AR"; then @@ -9132,15 +8876,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_AR"; then +else case e in @%:@( + e) if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9155,7 +8899,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then @@ -9217,8 +8962,8 @@ printf %s "checking for archiver @FILE support... " >&6; } if test ${lt_cv_ar_at_file+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_ar_at_file=no +else case e in @%:@( + e) lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -9255,7 +9000,8 @@ then : fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 printf "%s\n" "$lt_cv_ar_at_file" >&6; } @@ -9280,15 +9026,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$STRIP"; then +else case e in @%:@( + e) if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9303,7 +9049,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then @@ -9325,15 +9072,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_STRIP"; then +else case e in @%:@( + e) if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9348,7 +9095,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then @@ -9389,15 +9137,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_RANLIB+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$RANLIB"; then +else case e in @%:@( + e) if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9412,7 +9160,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then @@ -9434,15 +9183,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_RANLIB+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_RANLIB"; then +else case e in @%:@( + e) if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9457,7 +9206,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then @@ -9568,8 +9318,8 @@ printf %s "checking command to parse $NM output from $compiler object... " >&6; if test ${lt_cv_sys_global_symbol_pipe+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in @%:@( + e) # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] @@ -9824,7 +9574,8 @@ _LT_EOF lt_cv_sys_global_symbol_pipe= fi done - + ;; +esac fi if test -z "$lt_cv_sys_global_symbol_pipe"; then @@ -9888,8 +9639,9 @@ printf %s "checking for sysroot... " >&6; } if test ${with_sysroot+y} then : withval=$with_sysroot; -else $as_nop - with_sysroot=no +else case e in @%:@( + e) with_sysroot=no ;; +esac fi @@ -9924,8 +9676,8 @@ printf %s "checking for a working dd... " >&6; } if test ${ac_cv_path_lt_DD+y} then : printf %s "(cached) " >&6 -else $as_nop - printf 0123456789abcdef0123456789abcdef >conftest.i +else case e in @%:@( + e) printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} if test -z "$lt_DD"; then @@ -9935,7 +9687,7 @@ if test -z "$lt_DD"; then for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -9961,7 +9713,8 @@ else ac_cv_path_lt_DD=$lt_DD fi -rm -f conftest.i conftest2.i conftest.out +rm -f conftest.i conftest2.i conftest.out ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } @@ -9972,8 +9725,8 @@ printf %s "checking how to truncate binary pipes... " >&6; } if test ${lt_cv_truncate_bin+y} then : printf %s "(cached) " >&6 -else $as_nop - printf 0123456789abcdef0123456789abcdef >conftest.i +else case e in @%:@( + e) printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then @@ -9981,7 +9734,8 @@ if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; the && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" fi rm -f conftest.i conftest2.i conftest.out -test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" +test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 printf "%s\n" "$lt_cv_truncate_bin" >&6; } @@ -10191,8 +9945,8 @@ printf %s "checking whether the C compiler needs -belf... " >&6; } if test ${lt_cv_cc_needs_belf+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_ext=c +else case e in @%:@( + e) 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' @@ -10212,8 +9966,9 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_cc_needs_belf=yes -else $as_nop - lt_cv_cc_needs_belf=no +else case e in @%:@( + e) lt_cv_cc_needs_belf=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -10222,7 +9977,8 @@ 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 - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } @@ -10280,15 +10036,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_MANIFEST_TOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$MANIFEST_TOOL"; then +else case e in @%:@( + e) if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10303,7 +10059,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then @@ -10325,15 +10082,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_MANIFEST_TOOL"; then +else case e in @%:@( + e) if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10348,7 +10105,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then @@ -10380,15 +10138,16 @@ printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } if test ${lt_cv_path_mainfest_tool+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_path_mainfest_tool=no +else case e in @%:@( + e) lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&5 if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi - rm -f conftest* + rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } @@ -10411,15 +10170,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DSYMUTIL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DSYMUTIL"; then +else case e in @%:@( + e) if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10434,7 +10193,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then @@ -10456,15 +10216,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_DSYMUTIL"; then +else case e in @%:@( + e) if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10479,7 +10239,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then @@ -10513,15 +10274,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_NMEDIT+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$NMEDIT"; then +else case e in @%:@( + e) if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10536,7 +10297,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then @@ -10558,15 +10320,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_NMEDIT+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_NMEDIT"; then +else case e in @%:@( + e) if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10581,7 +10343,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then @@ -10615,15 +10378,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_LIPO+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$LIPO"; then +else case e in @%:@( + e) if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10638,7 +10401,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then @@ -10660,15 +10424,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_LIPO+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_LIPO"; then +else case e in @%:@( + e) if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10683,7 +10447,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then @@ -10717,15 +10482,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OTOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$OTOOL"; then +else case e in @%:@( + e) if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10740,7 +10505,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then @@ -10762,15 +10528,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OTOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_OTOOL"; then +else case e in @%:@( + e) if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10785,7 +10551,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then @@ -10819,15 +10586,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OTOOL64+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$OTOOL64"; then +else case e in @%:@( + e) if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10842,7 +10609,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then @@ -10864,15 +10632,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OTOOL64+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_OTOOL64"; then +else case e in @%:@( + e) if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -10887,7 +10655,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then @@ -10944,8 +10713,8 @@ printf %s "checking for -single_module linker flag... " >&6; } if test ${lt_cv_apple_cc_single_mod+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_apple_cc_single_mod=no +else case e in @%:@( + e) lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE @@ -10971,7 +10740,8 @@ else $as_nop fi rm -rf libconftest.dylib* rm -f conftest.* - fi + fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } @@ -10981,8 +10751,8 @@ printf %s "checking for -exported_symbols_list linker flag... " >&6; } if test ${lt_cv_ld_exported_symbols_list+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_ld_exported_symbols_list=no +else case e in @%:@( + e) lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" @@ -11000,13 +10770,15 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_ld_exported_symbols_list=yes -else $as_nop - lt_cv_ld_exported_symbols_list=no +else case e in @%:@( + e) lt_cv_ld_exported_symbols_list=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } @@ -11016,8 +10788,8 @@ printf %s "checking for -force_load linker flag... " >&6; } if test ${lt_cv_ld_force_load+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_ld_force_load=no +else case e in @%:@( + e) lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF @@ -11042,7 +10814,8 @@ _LT_EOF fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 printf "%s\n" "$lt_cv_ld_force_load" >&6; } @@ -11135,255 +10908,598 @@ func_stripname_cnf () # Set options +enable_dlopen=yes +enable_win32_dll=yes - - - - - @%:@ Check whether --enable-shared was given. -if test ${enable_shared+y} +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. +set dummy ${ac_tool_prefix}as; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_AS+y} then : - enableval=$enable_shared; p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS=$lt_save_ifs - ;; - esac -else $as_nop - enable_shared=yes -fi - - - - - - - - + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test -n "$AS"; then + ac_cv_prog_AS="$AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_AS="${ac_tool_prefix}as" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - @%:@ Check whether --enable-static was given. -if test ${enable_static+y} -then : - enableval=$enable_static; p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS=$lt_save_ifs - ;; - esac -else $as_nop - enable_static=yes +fi ;; +esac fi - - - - - - - - - - -@%:@ Check whether --with-pic was given. -if test ${with_pic+y} -then : - withval=$with_pic; lt_p=${PACKAGE-default} - case $withval in - yes|no) pic_mode=$withval ;; - *) - pic_mode=default - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for lt_pkg in $withval; do - IFS=$lt_save_ifs - if test "X$lt_pkg" = "X$lt_p"; then - pic_mode=yes - fi - done - IFS=$lt_save_ifs - ;; - esac -else $as_nop - pic_mode=default +AS=$ac_cv_prog_AS +if test -n "$AS"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 +printf "%s\n" "$AS" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - - - - - - - @%:@ Check whether --enable-fast-install was given. -if test ${enable_fast_install+y} -then : - enableval=$enable_fast_install; p=${PACKAGE-default} - case $enableval in - yes) enable_fast_install=yes ;; - no) enable_fast_install=no ;; - *) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS=$lt_save_ifs - ;; - esac -else $as_nop - enable_fast_install=yes fi - - - - - - - - - shared_archive_member_spec= -case $host,$enable_shared in -power*-*-aix[5-9]*,yes) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 -printf %s "checking which variant of shared library versioning to provide... " >&6; } - -@%:@ Check whether --with-aix-soname was given. -if test ${with_aix_soname+y} -then : - withval=$with_aix_soname; case $withval in - aix|svr4|both) - ;; - *) - as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 - ;; - esac - lt_cv_with_aix_soname=$with_aix_soname -else $as_nop - if test ${lt_cv_with_aix_soname+y} +if test -z "$ac_cv_prog_AS"; then + ac_ct_AS=$AS + # Extract the first word of "as", so it can be a program name with args. +set dummy as; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_AS+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_with_aix_soname=aix +else case e in @%:@( + e) if test -n "$ac_ct_AS"; then + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_AS="as" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi ;; +esac +fi +ac_ct_AS=$ac_cv_prog_ac_ct_AS +if test -n "$ac_ct_AS"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 +printf "%s\n" "$ac_ct_AS" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - with_aix_soname=$lt_cv_with_aix_soname + if test "x$ac_ct_AS" = x; then + AS="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AS=$ac_ct_AS + fi +else + AS="$ac_cv_prog_AS" fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 -printf "%s\n" "$with_aix_soname" >&6; } - if test aix != "$with_aix_soname"; then - # For the AIX way of multilib, we name the shared archive member - # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', - # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. - # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, - # the AIX toolchain works better with OBJECT_MODE set (default 32). - if test 64 = "${OBJECT_MODE-32}"; then - shared_archive_member_spec=shr_64 - else - shared_archive_member_spec=shr - fi + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_DLLTOOL+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_DLLTOOL="${ac_tool_prefix}dlltool" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 fi - ;; -*) - with_aix_soname=aix - ;; +done + done +IFS=$as_save_IFS + +fi ;; esac +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +printf "%s\n" "$DLLTOOL" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi - - - +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_DLLTOOL+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_DLLTOOL="dlltool" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS +fi ;; +esac +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +printf "%s\n" "$ac_ct_DLLTOOL" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi - + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_OBJDUMP+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_OBJDUMP="${ac_tool_prefix}objdump" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS +fi ;; +esac +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +printf "%s\n" "$OBJDUMP" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS=$ltmain -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_OBJDUMP+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_OBJDUMP="objdump" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi ;; +esac +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +printf "%s\n" "$ac_ct_OBJDUMP" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + ;; +esac +test -z "$AS" && AS=as - - - +test -z "$DLLTOOL" && DLLTOOL=dlltool - - - +test -z "$OBJDUMP" && OBJDUMP=objdump - - - - - - -test -z "$LN_S" && LN_S="ln -s" - - - + + + @%:@ Check whether --enable-shared was given. +if test ${enable_shared+y} +then : + enableval=$enable_shared; p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS=$lt_save_ifs + ;; + esac +else case e in @%:@( + e) enable_shared=yes ;; +esac +fi - - - + -if test -n "${ZSH_VERSION+set}"; then - setopt NO_GLOB_SUBST -fi + + @%:@ Check whether --enable-static was given. +if test ${enable_static+y} +then : + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS=$lt_save_ifs + ;; + esac +else case e in @%:@( + e) enable_static=yes ;; +esac +fi + + + + + + + + + + +@%:@ Check whether --with-pic was given. +if test ${with_pic+y} +then : + withval=$with_pic; lt_p=${PACKAGE-default} + case $withval in + yes|no) pic_mode=$withval ;; + *) + pic_mode=default + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for lt_pkg in $withval; do + IFS=$lt_save_ifs + if test "X$lt_pkg" = "X$lt_p"; then + pic_mode=yes + fi + done + IFS=$lt_save_ifs + ;; + esac +else case e in @%:@( + e) pic_mode=default ;; +esac +fi + + + + + + + + + @%:@ Check whether --enable-fast-install was given. +if test ${enable_fast_install+y} +then : + enableval=$enable_fast_install; p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS=$lt_save_ifs + ;; + esac +else case e in @%:@( + e) enable_fast_install=yes ;; +esac +fi + + + + + + + + + shared_archive_member_spec= +case $host,$enable_shared in +power*-*-aix[5-9]*,yes) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 +printf %s "checking which variant of shared library versioning to provide... " >&6; } + +@%:@ Check whether --with-aix-soname was given. +if test ${with_aix_soname+y} +then : + withval=$with_aix_soname; case $withval in + aix|svr4|both) + ;; + *) + as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 + ;; + esac + lt_cv_with_aix_soname=$with_aix_soname +else case e in @%:@( + e) if test ${lt_cv_with_aix_soname+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) lt_cv_with_aix_soname=aix ;; +esac +fi + + with_aix_soname=$lt_cv_with_aix_soname ;; +esac +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 +printf "%s\n" "$with_aix_soname" >&6; } + if test aix != "$with_aix_soname"; then + # For the AIX way of multilib, we name the shared archive member + # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', + # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. + # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, + # the AIX toolchain works better with OBJECT_MODE set (default 32). + if test 64 = "${OBJECT_MODE-32}"; then + shared_archive_member_spec=shr_64 + else + shared_archive_member_spec=shr + fi + fi + ;; +*) + with_aix_soname=aix + ;; +esac + + + + + + + + + + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS=$ltmain + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +test -z "$LN_S" && LN_S="ln -s" + + + + + + + + + + + + + + +if test -n "${ZSH_VERSION+set}"; then + setopt NO_GLOB_SUBST +fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 printf %s "checking for objdir... " >&6; } if test ${lt_cv_objdir+y} then : printf %s "(cached) " >&6 -else $as_nop - rm -f .libs 2>/dev/null +else case e in @%:@( + e) rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs @@ -11391,7 +11507,8 @@ else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi -rmdir .libs 2>/dev/null +rmdir .libs 2>/dev/null ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 printf "%s\n" "$lt_cv_objdir" >&6; } @@ -11452,8 +11569,8 @@ printf %s "checking for ${ac_tool_prefix}file... " >&6; } if test ${lt_cv_path_MAGIC_CMD+y} then : printf %s "(cached) " >&6 -else $as_nop - case $MAGIC_CMD in +else case e in @%:@( + e) case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; @@ -11496,6 +11613,7 @@ _LT_EOF IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; +esac ;; esac fi @@ -11519,8 +11637,8 @@ printf %s "checking for file... " >&6; } if test ${lt_cv_path_MAGIC_CMD+y} then : printf %s "(cached) " >&6 -else $as_nop - case $MAGIC_CMD in +else case e in @%:@( + e) case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; @@ -11563,6 +11681,7 @@ _LT_EOF IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; +esac ;; esac fi @@ -11662,8 +11781,8 @@ printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if test ${lt_cv_prog_compiler_rtti_exceptions+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_rtti_exceptions=no +else case e in @%:@( + e) lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment @@ -11691,7 +11810,8 @@ else $as_nop fi fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } @@ -12056,8 +12176,9 @@ printf %s "checking for $compiler option to produce PIC... " >&6; } if test ${lt_cv_prog_compiler_pic+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_pic=$lt_prog_compiler_pic +else case e in @%:@( + e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } @@ -12072,8 +12193,8 @@ printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; if test ${lt_cv_prog_compiler_pic_works+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_pic_works=no +else case e in @%:@( + e) lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment @@ -12101,7 +12222,8 @@ else $as_nop fi fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } @@ -12137,8 +12259,8 @@ printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; if test ${lt_cv_prog_compiler_static_works+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_static_works=no +else case e in @%:@( + e) lt_cv_prog_compiler_static_works=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext @@ -12159,7 +12281,8 @@ else $as_nop fi $RM -r conftest* LDFLAGS=$save_LDFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } @@ -12181,8 +12304,8 @@ printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_c_o=no +else case e in @%:@( + e) lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest @@ -12222,7 +12345,8 @@ else $as_nop cd .. $RM -r conftest $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } @@ -12237,8 +12361,8 @@ printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_c_o=no +else case e in @%:@( + e) lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest @@ -12278,7 +12402,8 @@ else $as_nop cd .. $RM -r conftest $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } @@ -12873,8 +12998,8 @@ else if test ${lt_cv_aix_libpath_+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -12906,7 +13031,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi - + ;; +esac fi aix_libpath=$lt_cv_aix_libpath_ @@ -12928,8 +13054,8 @@ else if test ${lt_cv_aix_libpath_+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -12961,7 +13087,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi - + ;; +esac fi aix_libpath=$lt_cv_aix_libpath_ @@ -13212,8 +13339,8 @@ printf %s "checking if $CC understands -b... " >&6; } if test ${lt_cv_prog_compiler__b+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler__b=no +else case e in @%:@( + e) lt_cv_prog_compiler__b=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -b" echo "$lt_simple_link_test_code" > conftest.$ac_ext @@ -13234,7 +13361,8 @@ else $as_nop fi $RM -r conftest* LDFLAGS=$save_LDFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } @@ -13282,8 +13410,8 @@ printf %s "checking whether the $host_os linker accepts -exported_symbol... " >& if test ${lt_cv_irix_exported_symbol+y} then : printf %s "(cached) " >&6 -else $as_nop - save_LDFLAGS=$LDFLAGS +else case e in @%:@( + e) save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -13292,12 +13420,14 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_irix_exported_symbol=yes -else $as_nop - lt_cv_irix_exported_symbol=no +else case e in @%:@( + e) lt_cv_irix_exported_symbol=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - LDFLAGS=$save_LDFLAGS + LDFLAGS=$save_LDFLAGS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } @@ -13623,8 +13753,8 @@ printf %s "checking whether -lc should be explicitly linked in... " >&6; } if test ${lt_cv_archive_cmds_need_lc+y} then : printf %s "(cached) " >&6 -else $as_nop - $RM conftest* +else case e in @%:@( + e) $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 @@ -13660,7 +13790,8 @@ else $as_nop cat conftest.err 1>&5 fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } @@ -14387,8 +14518,8 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) if test ${lt_cv_shlibpath_overrides_runpath+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_shlibpath_overrides_runpath=no +else case e in @%:@( + e) lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ @@ -14415,7 +14546,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir - + ;; +esac fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath @@ -14840,16 +14972,22 @@ printf %s "checking for dlopen in -ldl... " >&6; } if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in @%:@( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $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. */ -char dlopen (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (void); int main (void) { @@ -14861,24 +14999,27 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes -else $as_nop - ac_cv_lib_dl_dlopen=no +else case e in @%:@( + e) ac_cv_lib_dl_dlopen=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl -else $as_nop - +else case e in @%:@( + e) lt_cv_dlopen=dyld lt_cv_dlopen_libs= lt_cv_dlopen_self=yes - + ;; +esac fi ;; @@ -14896,22 +15037,28 @@ fi if test "x$ac_cv_func_shl_load" = xyes then : lt_cv_dlopen=shl_load -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 printf %s "checking for shl_load in -ldld... " >&6; } if test ${ac_cv_lib_dld_shl_load+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in @%:@( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $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. */ -char shl_load (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (void); int main (void) { @@ -14923,39 +15070,47 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dld_shl_load=yes -else $as_nop - ac_cv_lib_dld_shl_load=no +else case e in @%:@( + e) ac_cv_lib_dld_shl_load=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = xyes then : lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld -else $as_nop - ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +else case e in @%:@( + e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes then : lt_cv_dlopen=dlopen -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 printf %s "checking for dlopen in -ldl... " >&6; } if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in @%:@( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $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. */ -char dlopen (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (void); int main (void) { @@ -14967,34 +15122,42 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes -else $as_nop - ac_cv_lib_dl_dlopen=no +else case e in @%:@( + e) ac_cv_lib_dl_dlopen=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 printf %s "checking for dlopen in -lsvld... " >&6; } if test ${ac_cv_lib_svld_dlopen+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in @%:@( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $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. */ -char dlopen (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (void); int main (void) { @@ -15006,34 +15169,42 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_svld_dlopen=yes -else $as_nop - ac_cv_lib_svld_dlopen=no +else case e in @%:@( + e) ac_cv_lib_svld_dlopen=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = xyes then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +else case e in @%:@( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 printf %s "checking for dld_link in -ldld... " >&6; } if test ${ac_cv_lib_dld_dld_link+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in @%:@( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $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. */ -char dld_link (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (void); int main (void) { @@ -15045,12 +15216,14 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dld_dld_link=yes -else $as_nop - ac_cv_lib_dld_dld_link=no +else case e in @%:@( + e) ac_cv_lib_dld_dld_link=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } @@ -15059,19 +15232,24 @@ then : lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld fi - + ;; +esac fi - + ;; +esac fi - + ;; +esac fi - + ;; +esac fi - + ;; +esac fi ;; @@ -15099,8 +15277,8 @@ printf %s "checking whether a program can dlopen itself... " >&6; } if test ${lt_cv_dlopen_self+y} then : printf %s "(cached) " >&6 -else $as_nop - if test yes = "$cross_compiling"; then : +else case e in @%:@( + e) if test yes = "$cross_compiling"; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 @@ -15194,7 +15372,8 @@ _LT_EOF fi rm -fr conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 printf "%s\n" "$lt_cv_dlopen_self" >&6; } @@ -15206,8 +15385,8 @@ printf %s "checking whether a statically linked program can dlopen itself... " > if test ${lt_cv_dlopen_self_static+y} then : printf %s "(cached) " >&6 -else $as_nop - if test yes = "$cross_compiling"; then : +else case e in @%:@( + e) if test yes = "$cross_compiling"; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 @@ -15301,7 +15480,8 @@ _LT_EOF fi rm -fr conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } @@ -15459,8 +15639,8 @@ if test -z "$CXXCPP"; then if test ${ac_cv_prog_CXXCPP+y} then : printf %s "(cached) " >&6 -else $as_nop - # Double quotes because $CXX needs to be expanded +else case e in @%:@( + e) # Double quotes because $CXX needs to be expanded for CXXCPP in "$CXX -E" cpp /lib/cpp do ac_preproc_ok=false @@ -15478,9 +15658,10 @@ _ACEOF if ac_fn_cxx_try_cpp "$LINENO" then : -else $as_nop - # Broken: fails on valid input. -continue +else case e in @%:@( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -15494,15 +15675,16 @@ if ac_fn_cxx_try_cpp "$LINENO" then : # Broken: success on invalid input. continue -else $as_nop - # Passes both tests. +else case e in @%:@( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# 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 : @@ -15511,7 +15693,8 @@ fi done ac_cv_prog_CXXCPP=$CXXCPP - + ;; +esac fi CXXCPP=$ac_cv_prog_CXXCPP else @@ -15534,9 +15717,10 @@ _ACEOF if ac_fn_cxx_try_cpp "$LINENO" then : -else $as_nop - # Broken: fails on valid input. -continue +else case e in @%:@( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -15550,24 +15734,26 @@ if ac_fn_cxx_try_cpp "$LINENO" then : # Broken: success on invalid input. continue -else $as_nop - # Passes both tests. +else case e in @%:@( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# 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_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in @%:@( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi ac_ext=c @@ -15704,8 +15890,9 @@ cc_basename=$func_cc_basename_result if test ${with_gnu_ld+y} then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes -else $as_nop - with_gnu_ld=no +else case e in @%:@( + e) with_gnu_ld=no ;; +esac fi ac_prog=ld @@ -15750,8 +15937,8 @@ fi if test ${lt_cv_path_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$LD"; then +else case e in @%:@( + e) if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs @@ -15774,7 +15961,8 @@ else $as_nop IFS=$lt_save_ifs else lt_cv_path_LD=$LD # Let the user override the test with a path. -fi +fi ;; +esac fi LD=$lt_cv_path_LD @@ -15791,8 +15979,8 @@ printf %s "checking if the linker ($LD) is GNU ld... " >&6; } if test ${lt_cv_prog_gnu_ld+y} then : printf %s "(cached) " >&6 -else $as_nop - # I'd rather use --version here, but apparently some GNU lds only accept -v. +else case e in @%:@( + e) # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &1 &5 @@ -15999,8 +16188,8 @@ else if test ${lt_cv_aix_libpath__CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -16032,7 +16221,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib fi - + ;; +esac fi aix_libpath=$lt_cv_aix_libpath__CXX @@ -16055,8 +16245,8 @@ else if test ${lt_cv_aix_libpath__CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -16088,7 +16278,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib fi - + ;; +esac fi aix_libpath=$lt_cv_aix_libpath__CXX @@ -17460,8 +17651,9 @@ printf %s "checking for $compiler option to produce PIC... " >&6; } if test ${lt_cv_prog_compiler_pic_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX +else case e in @%:@( + e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; } @@ -17476,8 +17668,8 @@ printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " > if test ${lt_cv_prog_compiler_pic_works_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_pic_works_CXX=no +else case e in @%:@( + e) 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@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment @@ -17505,7 +17697,8 @@ else $as_nop fi fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } @@ -17535,8 +17728,8 @@ printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; if test ${lt_cv_prog_compiler_static_works_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_static_works_CXX=no +else case e in @%:@( + e) 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 @@ -17557,7 +17750,8 @@ else $as_nop fi $RM -r conftest* LDFLAGS=$save_LDFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } @@ -17576,8 +17770,8 @@ printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_c_o_CXX=no +else case e in @%:@( + e) lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest @@ -17617,7 +17811,8 @@ else $as_nop cd .. $RM -r conftest $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } @@ -17629,8 +17824,8 @@ printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_c_o_CXX=no +else case e in @%:@( + e) lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest @@ -17670,7 +17865,8 @@ else $as_nop cd .. $RM -r conftest $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } @@ -17775,8 +17971,8 @@ printf %s "checking whether -lc should be explicitly linked in... " >&6; } if test ${lt_cv_archive_cmds_need_lc_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - $RM conftest* +else case e in @%:@( + e) $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 @@ -17812,7 +18008,8 @@ else $as_nop cat conftest.err 1>&5 fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } @@ -18376,8 +18573,8 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) if test ${lt_cv_shlibpath_overrides_runpath+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_shlibpath_overrides_runpath=no +else case e in @%:@( + e) lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ @@ -18404,7 +18601,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir - + ;; +esac fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath @@ -18790,90 +18988,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu subdirs="$subdirs libltdl" -# Autoupdate added the next two lines to ensure that your configure -# script's behavior did not change. They are probably safe to remove. - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in egrep - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_EGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_EGREP=$EGREP -fi - - fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 printf %s "checking for an ANSI C-conforming const... " >&6; } if test ${ac_cv_c_const+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -18930,273 +19051,841 @@ main (void) return !cs[0] && !zero.x; #endif - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_c_const=yes +else case e in @%:@( + e) ac_cv_c_const=no ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +printf "%s\n" "$ac_cv_c_const" >&6; } +if test $ac_cv_c_const = no; then + +printf "%s\n" "@%:@define const /**/" >>confdefs.h + +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +printf %s "checking whether byte ordering is bigendian... " >&6; } +if test ${ac_cv_c_bigendian+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) ac_cv_c_bigendian=unknown + # See if we're dealing with a universal compiler. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __APPLE_CC__ + not a universal capable compiler + #endif + typedef int dummy; + +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + + # Check for potential -arch flags. It is not universal unless + # there are at least two -arch flags with different values. + ac_arch= + ac_prev= + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do + if test -n "$ac_prev"; then + case $ac_word in + i?86 | x86_64 | ppc | ppc64) + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then + ac_arch=$ac_word + else + ac_cv_c_bigendian=universal + break + fi + ;; + esac + ac_prev= + elif test "x$ac_word" = "x-arch"; then + ac_prev=arch + fi + done +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + if test $ac_cv_c_bigendian = unknown; then + # See if sys/param.h defines the BYTE_ORDER macro. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main (void) +{ +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\ + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\ + && LITTLE_ENDIAN) + bogus endian macros + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + # It does; now see whether it defined to BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main (void) +{ +#if BYTE_ORDER != BIG_ENDIAN + not big endian + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_c_bigendian=yes +else case e in @%:@( + e) ac_cv_c_bigendian=no ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main (void) +{ +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) + bogus endian macros + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + # It does; now see whether it defined to _BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main (void) +{ +#ifndef _BIG_ENDIAN + not big endian + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_c_bigendian=yes +else case e in @%:@( + e) ac_cv_c_bigendian=no ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # Compile a test program. + if test "$cross_compiling" = yes +then : + # Try to guess by grepping values from an object file. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +unsigned short int ascii_mm[] = + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; + unsigned short int ascii_ii[] = + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; + int use_ascii (int i) { + return ascii_mm[i] + ascii_ii[i]; + } + unsigned short int ebcdic_ii[] = + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; + unsigned short int ebcdic_mm[] = + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; + int use_ebcdic (int i) { + return ebcdic_mm[i] + ebcdic_ii[i]; + } + int + main (int argc, char **argv) + { + /* Intimidate the compiler so that it does not + optimize the arrays away. */ + char *p = argv[0]; + ascii_mm[1] = *p++; ebcdic_mm[1] = *p++; + ascii_ii[1] = *p++; ebcdic_ii[1] = *p++; + return use_ascii (argc) == use_ebcdic (*p); + } +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then + ac_cv_c_bigendian=yes + fi + if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then + if test "$ac_cv_c_bigendian" = unknown; then + ac_cv_c_bigendian=no + else + # finding both strings is unlikely to happen, but who knows? + ac_cv_c_bigendian=unknown + fi + fi +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main (void) +{ + + /* Are we little or big endian? From Harbison&Steele. */ + union + { + long int l; + char c[sizeof (long int)]; + } u; + u.l = 1; + return u.c[sizeof (long int) - 1] == 1; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO" +then : + ac_cv_c_bigendian=no +else case e in @%:@( + e) ac_cv_c_bigendian=yes ;; +esac +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac +fi + + fi ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 +printf "%s\n" "$ac_cv_c_bigendian" >&6; } + case $ac_cv_c_bigendian in #( + yes) + printf "%s\n" "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h +;; #( + no) + ;; #( + universal) + +printf "%s\n" "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h + + ;; #( + *) + as_fn_error $? "unknown endianness + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; + esac + + + ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default +" +if test "x$ac_cv_type_pid_t" = xyes +then : + +else case e in @%:@( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #if defined _WIN64 && !defined __CYGWIN__ + LLP64 + #endif + +int +main (void) +{ + + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_pid_type='int' +else case e in @%:@( + e) ac_pid_type='__int64' ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + +printf "%s\n" "@%:@define pid_t $ac_pid_type" >>confdefs.h + + ;; +esac +fi + + +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = xyes then : - ac_cv_c_const=yes -else $as_nop - ac_cv_c_const=no + +else case e in @%:@( + e) +printf "%s\n" "@%:@define size_t unsigned int" >>confdefs.h + ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + +ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" +if test "x$ac_cv_type_ssize_t" = xyes +then : + +printf "%s\n" "@%:@define HAVE_SSIZE_T 1" >>confdefs.h + + +else case e in @%:@( + e) +printf "%s\n" "@%:@define ssize_t signed long" >>confdefs.h + ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 -printf "%s\n" "$ac_cv_c_const" >&6; } -if test $ac_cv_c_const = no; then + +ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" +if test "x$ac_cv_type_off_t" = xyes +then : -printf "%s\n" "@%:@define const /**/" >>confdefs.h +else case e in @%:@( + e) +printf "%s\n" "@%:@define off_t long int" >>confdefs.h + ;; +esac +fi +ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default" +if test "x$ac_cv_type_uid_t" = xyes +then : + +else case e in @%:@( + e) +printf "%s\n" "@%:@define uid_t int" >>confdefs.h + ;; +esac fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 -printf %s "checking whether byte ordering is bigendian... " >&6; } -if test ${ac_cv_c_bigendian+y} +ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default" +if test "x$ac_cv_type_gid_t" = xyes +then : + +else case e in @%:@( + e) +printf "%s\n" "@%:@define gid_t int" >>confdefs.h + ;; +esac +fi + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 +printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } +if test ${ac_cv_c_undeclared_builtin_options+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_c_bigendian=unknown - # See if we're dealing with a universal compiler. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) ac_save_CFLAGS=$CFLAGS + ac_cv_c_undeclared_builtin_options='cannot detect' + for ac_arg in '' -fno-builtin; do + CFLAGS="$ac_save_CFLAGS $ac_arg" + # This test program should *not* compile successfully. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifndef __APPLE_CC__ - not a universal capable compiler - #endif - typedef int dummy; - + +int +main (void) +{ +(void) strchr; + ; + return 0; +} _ACEOF if ac_fn_c_try_compile "$LINENO" then : - # Check for potential -arch flags. It is not universal unless - # there are at least two -arch flags with different values. - ac_arch= - ac_prev= - for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do - if test -n "$ac_prev"; then - case $ac_word in - i?86 | x86_64 | ppc | ppc64) - if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then - ac_arch=$ac_word - else - ac_cv_c_bigendian=universal - break - fi - ;; - esac - ac_prev= - elif test "x$ac_word" = "x-arch"; then - ac_prev=arch - fi - done -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - if test $ac_cv_c_bigendian = unknown; then - # See if sys/param.h defines the BYTE_ORDER macro. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in @%:@( + e) # This test program should compile successfully. + # No library function is consistently available on + # freestanding implementations, so test against a dummy + # declaration. Include always-available headers on the + # off chance that they somehow elicit warnings. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - #include - +#include +#include +#include +#include +extern void ac_decl (int, char *); + int main (void) { -#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ - && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ - && LITTLE_ENDIAN) - bogus endian macros - #endif - +(void) ac_decl (0, (char *) 0); + (void) ac_decl; + ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : - # It does; now see whether it defined to BIG_ENDIAN or not. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + if test x"$ac_arg" = x +then : + ac_cv_c_undeclared_builtin_options='none needed' +else case e in @%:@( + e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; +esac +fi + break +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + done + CFLAGS=$ac_save_CFLAGS + ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 +printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } + case $ac_cv_c_undeclared_builtin_options in @%:@( + 'cannot detect') : + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} +as_fn_error $? "cannot make $CC report undeclared builtins +See 'config.log' for more details" "$LINENO" 5; } ;; @%:@( + 'none needed') : + ac_c_undeclared_builtin_options='' ;; @%:@( + *) : + ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; +esac + +ac_fn_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_environ" = xyes +then : + ac_have_decl=1 +else case e in @%:@( + e) ac_have_decl=0 ;; +esac +fi +printf "%s\n" "@%:@define HAVE_DECL_ENVIRON $ac_have_decl" >>confdefs.h + + +ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" +if test "x$ac_cv_header_byteswap_h" = xyes +then : + printf "%s\n" "@%:@define HAVE_BYTESWAP_H 1" >>confdefs.h + +fi + +ac_fn_c_check_func "$LINENO" "__builtin_bswap16" "ac_cv_func___builtin_bswap16" +if test "x$ac_cv_func___builtin_bswap16" = xyes +then : + printf "%s\n" "@%:@define HAVE___BUILTIN_BSWAP16 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "__builtin_bswap32" "ac_cv_func___builtin_bswap32" +if test "x$ac_cv_func___builtin_bswap32" = xyes +then : + printf "%s\n" "@%:@define HAVE___BUILTIN_BSWAP32 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "__builtin_bswap64" "ac_cv_func___builtin_bswap64" +if test "x$ac_cv_func___builtin_bswap64" = xyes +then : + printf "%s\n" "@%:@define HAVE___BUILTIN_BSWAP64 1" >>confdefs.h + +fi + + +for flag in -Wall -Wsign-compare -Wno-stringop-overflow -fvisibility=hidden; do + as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_-pedantic -Werror_$flag" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 +printf %s "checking whether C compiler accepts $flag... " >&6; } +if eval test \${$as_CACHEVAR+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -pedantic -Werror $flag" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - #include - + int main (void) { -#if BYTE_ORDER != BIG_ENDIAN - not big endian - #endif - + ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : - ac_cv_c_bigendian=yes -else $as_nop - ac_cv_c_bigendian=no + eval "$as_CACHEVAR=yes" +else case e in @%:@( + e) eval "$as_CACHEVAR=no" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - fi - if test $ac_cv_c_bigendian = unknown; then - # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +eval ac_res=\$$as_CACHEVAR + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_CACHEVAR"\" = x"\"yes\"" +then : + +if test ${CFLAGS+y} +then : + if printf "%s\n" " $CFLAGS " | $GREP " $flag " 2>&1 >/dev/null +then : + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 + (: CFLAGS already contains $flag) 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +else case e in @%:@( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 + (: CFLAGS="$CFLAGS $flag") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + as_fn_append CFLAGS " $flag" ;; +esac +fi +else case e in @%:@( + e) CFLAGS=$flag ;; +esac +fi + +else case e in @%:@( + e) : ;; +esac +fi + +done + + +if test "x$ax_enable_debug" != "xyes" ; then + CFLAGS="$CFLAGS -O2" +fi + +# need that as conditional because some internal tools compile as static +# to have access to internal libfyaml APIs +if test "x$enable_static" = "xyes" ; then +HAVE_STATIC=1 +else +HAVE_STATIC=0 +fi + + +printf "%s\n" "@%:@define HAVE_STATIC $HAVE_STATIC" >>confdefs.h + + if test x$HAVE_STATIC = x1 ; then + HAVE_STATIC_TRUE= + HAVE_STATIC_FALSE='#' +else + HAVE_STATIC_TRUE='#' + HAVE_STATIC_FALSE= +fi + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstringop-overread" >&5 +printf %s "checking whether C compiler accepts -Wstringop-overread... " >&6; } +if test ${ax_cv_check_cflags__Werror__Wstringop_overread+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wstringop-overread" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - + int main (void) { -#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) - bogus endian macros - #endif - + ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : - # It does; now see whether it defined to _BIG_ENDIAN or not. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + ax_cv_check_cflags__Werror__Wstringop_overread=yes +else case e in @%:@( + e) ax_cv_check_cflags__Werror__Wstringop_overread=no ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wstringop_overread" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__Wstringop_overread" >&6; } +if test "x$ax_cv_check_cflags__Werror__Wstringop_overread" = x"yes" +then : + : +else case e in @%:@( + e) : ;; +esac +fi + +if test "x$ax_cv_check_cflags__Werror__wstringop_overread" = x"yes" +then : + HAVE_WSTRINGOP_OVERREAD=1 +else case e in @%:@( + e) HAVE_WSTRINGOP_OVERREAD=0 ;; +esac +fi + +printf "%s\n" "@%:@define HAVE_WSTRINGOP_OVERREAD $HAVE_WSTRINGOP_OVERREAD" >>confdefs.h + + +@%:@ Check whether --enable-portable-target was given. +if test ${enable_portable_target+y} +then : + enableval=$enable_portable_target; +fi + +HAVE_PORTABLE_TARGET=0 +if test "x$enable_portable_target" == "xyes"; then + HAVE_PORTABLE_TARGET=1 +fi + + +printf "%s\n" "@%:@define HAVE_PORTABLE_TARGET $HAVE_PORTABLE_TARGET" >>confdefs.h + + if test x$HAVE_PORTABLE_TARGET == x1 ; then + HAVE_PORTABLE_TARGET_TRUE= + HAVE_PORTABLE_TARGET_FALSE='#' +else + HAVE_PORTABLE_TARGET_TRUE='#' + HAVE_PORTABLE_TARGET_FALSE= +fi + + + if test x$target_cpu = xx86 ; then + TARGET_CPU_X86_TRUE= + TARGET_CPU_X86_FALSE='#' +else + TARGET_CPU_X86_TRUE='#' + TARGET_CPU_X86_FALSE= +fi + + if test x$target_cpu = xx86_64 ; then + TARGET_CPU_X86_64_TRUE= + TARGET_CPU_X86_64_FALSE='#' +else + TARGET_CPU_X86_64_TRUE='#' + TARGET_CPU_X86_64_FALSE= +fi + + if test x$target_cpu = xx86 -o x$target_cpu = xx86_64 ; then + TARGET_CPU_ANY_X86_TRUE= + TARGET_CPU_ANY_X86_FALSE='#' +else + TARGET_CPU_ANY_X86_TRUE='#' + TARGET_CPU_ANY_X86_FALSE= +fi + + if test x$target_cpu = xarm ; then + TARGET_CPU_ARM_TRUE= + TARGET_CPU_ARM_FALSE='#' +else + TARGET_CPU_ARM_TRUE='#' + TARGET_CPU_ARM_FALSE= +fi + + if test x$target_cpu = xaarch64 ; then + TARGET_CPU_ARM64_TRUE= + TARGET_CPU_ARM64_FALSE='#' +else + TARGET_CPU_ARM64_TRUE='#' + TARGET_CPU_ARM64_FALSE= +fi + + if test x$target_cpu = xarm -o x$target_cpu = xaarch64 ; then + TARGET_CPU_ANY_ARM_TRUE= + TARGET_CPU_ANY_ARM_FALSE='#' +else + TARGET_CPU_ANY_ARM_TRUE='#' + TARGET_CPU_ANY_ARM_FALSE= +fi + + +if test -z "$TARGET_CPU_ANY_X86_TRUE"; then : + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse2" >&5 +printf %s "checking whether C compiler accepts -msse2... " >&6; } +if test ${ax_cv_check_cflags__Werror__msse2+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -msse2" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - + int main (void) { -#ifndef _BIG_ENDIAN - not big endian - #endif - + ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : - ac_cv_c_bigendian=yes -else $as_nop - ac_cv_c_bigendian=no + ax_cv_check_cflags__Werror__msse2=yes +else case e in @%:@( + e) ax_cv_check_cflags__Werror__msse2=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - fi - if test $ac_cv_c_bigendian = unknown; then - # Compile a test program. - if test "$cross_compiling" = yes +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__msse2" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__msse2" >&6; } +if test "x$ax_cv_check_cflags__Werror__msse2" = x"yes" then : - # Try to guess by grepping values from an object file. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + : +else case e in @%:@( + e) : ;; +esac +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.1" >&5 +printf %s "checking whether C compiler accepts -msse4.1... " >&6; } +if test ${ax_cv_check_cflags__Werror__msse4_1+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -msse4.1" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -unsigned short int ascii_mm[] = - { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; - unsigned short int ascii_ii[] = - { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; - int use_ascii (int i) { - return ascii_mm[i] + ascii_ii[i]; - } - unsigned short int ebcdic_ii[] = - { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; - unsigned short int ebcdic_mm[] = - { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; - int use_ebcdic (int i) { - return ebcdic_mm[i] + ebcdic_ii[i]; - } - extern int foo; - + int main (void) { -return use_ascii (foo) == use_ebcdic (foo); + ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : - if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then - ac_cv_c_bigendian=yes - fi - if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then - if test "$ac_cv_c_bigendian" = unknown; then - ac_cv_c_bigendian=no - else - # finding both strings is unlikely to happen, but who knows? - ac_cv_c_bigendian=unknown - fi - fi + ax_cv_check_cflags__Werror__msse4_1=yes +else case e in @%:@( + e) ax_cv_check_cflags__Werror__msse4_1=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -else $as_nop + CFLAGS=$ax_check_save_flags ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__msse4_1" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__msse4_1" >&6; } +if test "x$ax_cv_check_cflags__Werror__msse4_1" = x"yes" +then : + : +else case e in @%:@( + e) : ;; +esac +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5 +printf %s "checking whether C compiler accepts -mavx2... " >&6; } +if test ${ax_cv_check_cflags__Werror__mavx2+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -mavx2" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default + int main (void) { - /* Are we little or big endian? From Harbison&Steele. */ - union - { - long int l; - char c[sizeof (long int)]; - } u; - u.l = 1; - return u.c[sizeof (long int) - 1] == 1; - ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO" +if ac_fn_c_try_compile "$LINENO" then : - ac_cv_c_bigendian=no -else $as_nop - ac_cv_c_bigendian=yes + ax_cv_check_cflags__Werror__mavx2=yes +else case e in @%:@( + e) ax_cv_check_cflags__Werror__mavx2=no ;; +esac fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi - - fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__mavx2" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__mavx2" >&6; } +if test "x$ax_cv_check_cflags__Werror__mavx2" = x"yes" +then : + : +else case e in @%:@( + e) : ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 -printf "%s\n" "$ac_cv_c_bigendian" >&6; } - case $ac_cv_c_bigendian in #( - yes) - printf "%s\n" "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h -;; #( - no) - ;; #( - universal) - -printf "%s\n" "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h - ;; #( - *) - as_fn_error $? "unknown endianness - presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; - esac - - - ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default -" -if test "x$ac_cv_type_pid_t" = xyes + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx512f -mavx512vl" >&5 +printf %s "checking whether C compiler accepts -mavx512f -mavx512vl... " >&6; } +if test ${ax_cv_check_cflags__Werror__mavx512f__mavx512vl+y} then : - -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + printf %s "(cached) " >&6 +else case e in @%:@( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -mavx512f -mavx512vl" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - #if defined _WIN64 && !defined __CYGWIN__ - LLP64 - #endif - int main (void) { @@ -19204,221 +19893,180 @@ main (void) ; return 0; } - _ACEOF if ac_fn_c_try_compile "$LINENO" then : - ac_pid_type='int' -else $as_nop - ac_pid_type='__int64' + ax_cv_check_cflags__Werror__mavx512f__mavx512vl=yes +else case e in @%:@( + e) ax_cv_check_cflags__Werror__mavx512f__mavx512vl=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - -printf "%s\n" "@%:@define pid_t $ac_pid_type" >>confdefs.h - - + CFLAGS=$ax_check_save_flags ;; +esac fi - - -ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" -if test "x$ac_cv_type_size_t" = xyes +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__mavx512f__mavx512vl" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__mavx512f__mavx512vl" >&6; } +if test "x$ax_cv_check_cflags__Werror__mavx512f__mavx512vl" = x"yes" then : - -else $as_nop - -printf "%s\n" "@%:@define size_t unsigned int" >>confdefs.h - + : +else case e in @%:@( + e) : ;; +esac fi -ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" -if test "x$ac_cv_type_ssize_t" = xyes -then : - -printf "%s\n" "@%:@define HAVE_SSIZE_T 1" >>confdefs.h - - -else $as_nop - -printf "%s\n" "@%:@define ssize_t signed long" >>confdefs.h + fi -ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" -if test "x$ac_cv_type_off_t" = xyes -then : - -else $as_nop +if test -z "$TARGET_CPU_ARM_TRUE"; then : -printf "%s\n" "@%:@define off_t long int" >>confdefs.h - -fi - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 -printf %s "checking return type of signal handlers... " >&6; } -if test ${ac_cv_type_signal+y} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfpu=neon" >&5 +printf %s "checking whether C compiler accepts -mfpu=neon... " >&6; } +if test ${ax_cv_check_cflags__Werror__mfpu_neon+y} then : printf %s "(cached) " >&6 -else $as_nop +else case e in @%:@( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -mfpu=neon" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include int main (void) { -return *(signal (0, 0)) (0) == 1; + ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : - ac_cv_type_signal=int -else $as_nop - ac_cv_type_signal=void + ax_cv_check_cflags__Werror__mfpu_neon=yes +else case e in @%:@( + e) ax_cv_check_cflags__Werror__mfpu_neon=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 -printf "%s\n" "$ac_cv_type_signal" >&6; } - -printf "%s\n" "@%:@define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 -printf %s "checking for uid_t in sys/types.h... " >&6; } -if test ${ac_cv_type_uid_t+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__mfpu_neon" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__mfpu_neon" >&6; } +if test "x$ax_cv_check_cflags__Werror__mfpu_neon" = x"yes" then : - printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include + : +else case e in @%:@( + e) : ;; +esac +fi + + -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "uid_t" >/dev/null 2>&1 -then : - ac_cv_type_uid_t=yes -else $as_nop - ac_cv_type_uid_t=no fi -rm -rf conftest* + if test "x$ax_cv_check_cflags__Werror__msse2" = x"yes" -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_SSE2_TRUE= + TARGET_HAS_SSE2_FALSE='#' +else + TARGET_HAS_SSE2_TRUE='#' + TARGET_HAS_SSE2_FALSE= fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 -printf "%s\n" "$ac_cv_type_uid_t" >&6; } -if test $ac_cv_type_uid_t = no; then - -printf "%s\n" "@%:@define uid_t int" >>confdefs.h - -printf "%s\n" "@%:@define gid_t int" >>confdefs.h + if test "x$ax_cv_check_cflags__Werror__msse4_1" = x"yes" -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_SSE41_TRUE= + TARGET_HAS_SSE41_FALSE='#' +else + TARGET_HAS_SSE41_TRUE='#' + TARGET_HAS_SSE41_FALSE= +fi + if test "x$ax_cv_check_cflags__Werror__mavx2" = x"yes" -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_AVX2_TRUE= + TARGET_HAS_AVX2_FALSE='#' +else + TARGET_HAS_AVX2_TRUE='#' + TARGET_HAS_AVX2_FALSE= fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 -printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } -if test ${ac_cv_c_undeclared_builtin_options+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_save_CFLAGS=$CFLAGS - ac_cv_c_undeclared_builtin_options='cannot detect' - for ac_arg in '' -fno-builtin; do - CFLAGS="$ac_save_CFLAGS $ac_arg" - # This test program should *not* compile successfully. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ + if test "x$ax_cv_check_cflags__Werror__mavx512f__mavx512vl" = x"yes" -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_AVX512_TRUE= + TARGET_HAS_AVX512_FALSE='#' +else + TARGET_HAS_AVX512_TRUE='#' + TARGET_HAS_AVX512_FALSE= +fi -int -main (void) -{ -(void) strchr; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : + + if test \( x$target_cpu = xaarch64 -o "x$ax_cv_check_cflags__Werror__mcpu_neon" = x"yes" \) -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_NEON_TRUE= + TARGET_HAS_NEON_FALSE='#' +else + TARGET_HAS_NEON_TRUE='#' + TARGET_HAS_NEON_FALSE= +fi + + +if test -z "$TARGET_HAS_SSE2_TRUE"; then : -else $as_nop - # This test program should compile successfully. - # No library function is consistently available on - # freestanding implementations, so test against a dummy - # declaration. Include always-available headers on the - # off chance that they somehow elicit warnings. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -#include -extern void ac_decl (int, char *); +printf "%s\n" "@%:@define TARGET_HAS_SSE2 1" >>confdefs.h -int -main (void) -{ -(void) ac_decl (0, (char *) 0); - (void) ac_decl; +fi +if test -z "$TARGET_HAS_SSE41_TRUE"; then : + +printf "%s\n" "@%:@define TARGET_HAS_SSE41 1" >>confdefs.h - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - if test x"$ac_arg" = x -then : - ac_cv_c_undeclared_builtin_options='none needed' -else $as_nop - ac_cv_c_undeclared_builtin_options=$ac_arg fi - break +if test -z "$TARGET_HAS_AVX2_TRUE"; then : + +printf "%s\n" "@%:@define TARGET_HAS_AVX2 1" >>confdefs.h + fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +if test -z "$TARGET_HAS_AVX512_TRUE"; then : + +printf "%s\n" "@%:@define TARGET_HAS_AVX512 1" >>confdefs.h + fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - done - CFLAGS=$ac_save_CFLAGS + +if test -z "$TARGET_HAS_NEON_TRUE"; then : +printf "%s\n" "@%:@define TARGET_HAS_NEON 1" >>confdefs.h + fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 -printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } - case $ac_cv_c_undeclared_builtin_options in @%:@( - 'cannot detect') : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot make $CC report undeclared builtins -See \`config.log' for more details" "$LINENO" 5; } ;; @%:@( - 'none needed') : - ac_c_undeclared_builtin_options='' ;; @%:@( - *) : - ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; -esac -ac_fn_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" -if test "x$ac_cv_have_decl_environ" = xyes +@%:@ Check whether --enable-asan was given. +if test ${enable_asan+y} then : - ac_have_decl=1 -else $as_nop - ac_have_decl=0 + enableval=$enable_asan; fi -printf "%s\n" "@%:@define HAVE_DECL_ENVIRON $ac_have_decl" >>confdefs.h -for flag in -Wall -Wsign-compare -Wno-stringop-overflow; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_-pedantic -Werror_$flag" | $as_tr_sh` +HAVE_ASAN=0 +ASAN_CFLAGS="" +ASAN_LIBS="" +if test "x$enable_asan" == "xyes" ; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking location of ASAN library" >&5 +printf %s "checking location of ASAN library... " >&6; } + ASANLIB1=`${CC} -print-file-name=libasan.so` + ASANLIB=`readlink -f "${ASANLIB1}"` + if test -f "$ASANLIB" ; then + HAVE_ASAN=1 + ASAN_CFLAGS="-fsanitize=address -fno-omit-frame-pointer" + ASAN_LIBS="-fsanitize=address" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ASANLIB" >&5 +printf "%s\n" "$ASANLIB" >&6; } + for flag in -fsanitize=address -fno-omit-frame-pointer; do + as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 printf %s "checking whether C compiler accepts $flag... " >&6; } if eval test \${$as_CACHEVAR+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in @%:@( + e) ax_check_save_flags=$CFLAGS - CFLAGS="$CFLAGS -pedantic -Werror $flag" + CFLAGS="$CFLAGS $flag" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -19433,11 +20081,13 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$as_CACHEVAR=yes" -else $as_nop - eval "$as_CACHEVAR=no" +else case e in @%:@( + e) eval "$as_CACHEVAR=no" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags + CFLAGS=$ax_check_save_flags ;; +esac fi eval ac_res=\$$as_CACHEVAR { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -19454,99 +20104,55 @@ then : ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } -else $as_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 +else case e in @%:@( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 (: CFLAGS="$CFLAGS $flag") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } - as_fn_append CFLAGS " $flag" + as_fn_append CFLAGS " $flag" ;; +esac fi -else $as_nop - CFLAGS=$flag +else case e in @%:@( + e) CFLAGS=$flag ;; +esac fi -else $as_nop - : +else case e in @%:@( + e) : ;; +esac fi done - -if test "x$ax_enable_debug" != "xyes" ; then - CFLAGS="$CFLAGS -O2" + else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not found; disabling ASAN" >&5 +printf "%s\n" "Not found; disabling ASAN" >&6; } + fi fi -# include -lm in the link -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing llrintf" >&5 -printf %s "checking for library containing llrintf... " >&6; } -if test ${ac_cv_search_llrintf+y} -then : - printf %s "(cached) " >&6 -else $as_nop - 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. */ -char llrintf (); -int -main (void) -{ -return llrintf (); - ; - return 0; -} -_ACEOF -for ac_lib in '' m -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_llrintf=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext - if test ${ac_cv_search_llrintf+y} -then : - break -fi -done -if test ${ac_cv_search_llrintf+y} -then : - -else $as_nop - ac_cv_search_llrintf=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_llrintf" >&5 -printf "%s\n" "$ac_cv_search_llrintf" >&6; } -ac_res=$ac_cv_search_llrintf -if test "$ac_res" != no -then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -else $as_nop - as_fn_error $? "unable to find the llrintf() function" "$LINENO" 5 + + if test x$HAVE_ASAN = x1 ; then + HAVE_ASAN_TRUE= + HAVE_ASAN_FALSE='#' +else + HAVE_ASAN_TRUE='#' + HAVE_ASAN_FALSE= fi +printf "%s\n" "@%:@define HAVE_ASAN $HAVE_ASAN" >>confdefs.h + + # check if there's a qsort_r available (musl does not have it) ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r" if test "x$ac_cv_func_qsort_r" = xyes then : HAVE_QSORT_R=1 -else $as_nop - HAVE_QSORT_R=0 +else case e in @%:@( + e) HAVE_QSORT_R=0 ;; +esac fi @@ -19744,7 +20350,7 @@ fi HAVE_COMPATIBLE_CHECK=0 -if test "x$HAVE_CHECK" == "x1" ; then +if test "x$HAVE_CHECK" = "x1" ; then save_LIBS="$LIBS" save_CFLAGS="$CFLAGS" LIBS="$LIBS $CHECK_LIBS" @@ -19755,8 +20361,9 @@ if test "x$HAVE_CHECK" == "x1" ; then if test "x$ac_cv_func_srunner_set_tap" = xyes then : HAVE_COMPATIBLE_CHECK=1 -else $as_nop - HAVE_COMPATIBLE_CHECK=0 +else case e in @%:@( + e) HAVE_COMPATIBLE_CHECK=0 ;; +esac fi @@ -19832,8 +20439,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_SPHINX+y} then : printf %s "(cached) " >&6 -else $as_nop - case $SPHINX in +else case e in @%:@( + e) case $SPHINX in [\\/]* | ?:[\\/]*) ac_cv_path_SPHINX="$SPHINX" # Let the user override the test with a path. ;; @@ -19842,7 +20449,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -19858,6 +20465,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi SPHINX=$ac_cv_path_SPHINX @@ -19880,8 +20488,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PIP3+y} then : printf %s "(cached) " >&6 -else $as_nop - case $PIP3 in +else case e in @%:@( + e) case $PIP3 in [\\/]* | ?:[\\/]*) ac_cv_path_PIP3="$PIP3" # Let the user override the test with a path. ;; @@ -19890,7 +20498,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -19906,6 +20514,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi PIP3=$ac_cv_path_PIP3 @@ -19972,7 +20581,7 @@ printf "%s\n" "N/A" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sphinx installation works" >&5 printf %s "checking whether sphinx installation works... " >&6; } - if test "x$HAVE_SPHINX" == "x1" ; then + if test "x$HAVE_SPHINX" = "x1" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else @@ -20001,8 +20610,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_GIT+y} then : printf %s "(cached) " >&6 -else $as_nop - case $GIT in +else case e in @%:@( + e) case $GIT in [\\/]* | ?:[\\/]*) ac_cv_path_GIT="$GIT" # Let the user override the test with a path. ;; @@ -20011,7 +20620,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -20027,6 +20636,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi GIT=$ac_cv_path_GIT @@ -20058,25 +20668,25 @@ fi -if test "x$TESTSUITEURL" == "x" ; then +if test "x$TESTSUITEURL" = "x" ; then TESTSUITEURL="https://github.com/yaml/yaml-test-suite" fi -if test "x$TESTSUITECHECKOUT" == "x" ; then +if test "x$TESTSUITECHECKOUT" = "x" ; then TESTSUITECHECKOUT="6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f" fi -if test "x$JSONTESTSUITEURL" == "x" ; then +if test "x$JSONTESTSUITEURL" = "x" ; then JSONTESTSUITEURL="https://github.com/nst/JSONTestSuite" fi -if test "x$JSONTESTSUITECHECKOUT" == "x" ; then +if test "x$JSONTESTSUITECHECKOUT" = "x" ; then JSONTESTSUITECHECKOUT="d64aefb55228d9584d3e5b2433f720ea8fd00c82" fi @@ -20088,8 +20698,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_DOCKER+y} then : printf %s "(cached) " >&6 -else $as_nop - case $DOCKER in +else case e in @%:@( + e) case $DOCKER in [\\/]* | ?:[\\/]*) ac_cv_path_DOCKER="$DOCKER" # Let the user override the test with a path. ;; @@ -20098,7 +20708,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -20114,6 +20724,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi DOCKER=$ac_cv_path_DOCKER @@ -20148,8 +20759,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_JQ+y} then : printf %s "(cached) " >&6 -else $as_nop - case $JQ in +else case e in @%:@( + e) case $JQ in [\\/]* | ?:[\\/]*) ac_cv_path_JQ="$JQ" # Let the user override the test with a path. ;; @@ -20158,7 +20769,7 @@ else $as_nop for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -20174,6 +20785,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi JQ=$ac_cv_path_JQ @@ -20205,6 +20817,200 @@ fi JQ="$JQ" +# check for libclang + +@%:@ Check whether --with-libclang was given. +if test ${with_libclang+y} +then : + withval=$with_libclang; with_libclang="$withval" +else case e in @%:@( + e) with_libclang=auto ;; +esac +fi + + +HAVE_LIBCLANG=0 +LIBCLANG_CFLAGS="" +LIBCLANG_CPPFLAGS="" +LIBCLANG_LDFLAGS="" +LIBCLANG_LIBS="" +if test "x$with_libclang" != "xno"; then + if test "x$with_libclang" == "xauto"; then + # try to auto detect (llvm 15 down to 8) + check="llvm-config llvm-config-15 llvm-config-14 llvm-config-13 llvm-config-12 llvm-config-11 llvm-config-10" + else + if test "x$with_libclang" == "xlatest"; then + check="llvm-config" + else + check="llvm-config-$with_libclang" + fi + fi + orig_CFLAGS="$CFLAGS" + orig_CPPFLAGS="$CPPFLAGS" + orig_LDFLAGS="$LDFLAGS" + orig_LIBS="$LIBS" + for cfg in $check ; do + # no caching + # Extract the first word of "$cfg", so it can be a program name with args. +set dummy $cfg; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_LLVM_CONFIG+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) case $LLVM_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_LLVM_CONFIG="$LLVM_CONFIG" # 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 + case $as_dir in @%:@((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_LLVM_CONFIG="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac ;; +esac +fi +LLVM_CONFIG=$ac_cv_path_LLVM_CONFIG +if test -n "$LLVM_CONFIG"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 +printf "%s\n" "$LLVM_CONFIG" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + + if test "x$LLVM_CONFIG" != "x" ; then + LIBCLANG_CFLAGS=`$LLVM_CONFIG --cflags` + LIBCLANG_CPPFLAGS=`$LLVM_CONFIG --cppflags` + LIBCLANG_LDFLAGS=`$LLVM_CONFIG --ldflags` + LIBCLANG_LIBS="-lclang" + CPPFLAGS="$CPPFLAGS $LIBCLANG_CPPFLAGS" + CFLAGS="$CFLAGS $LIBCLANG_CFLAGS" + LDFLAGS="$LDFLAGS $LIBCLANG_LDFLAGS" + LIBS="$LIBS $LIBCLANG_LIBS" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang_createIndex in -lclang" >&5 +printf %s "checking for clang_createIndex in -lclang... " >&6; } +if test ${ac_cv_lib_clang_clang_createIndex+y} +then : + printf %s "(cached) " >&6 +else case e in @%:@( + e) ac_check_lib_save_LIBS=$LIBS +LIBS="-lclang $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. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char clang_createIndex (void); +int +main (void) +{ +return clang_createIndex (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_clang_clang_createIndex=yes +else case e in @%:@( + e) ac_cv_lib_clang_clang_createIndex=no ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clang_clang_createIndex" >&5 +printf "%s\n" "$ac_cv_lib_clang_clang_createIndex" >&6; } +if test "x$ac_cv_lib_clang_clang_createIndex" = xyes +then : + HAVE_LIBCLANG_LIB=1 +else case e in @%:@( + e) HAVE_LIBCLANG_LIB=0 ;; +esac +fi + + ac_fn_c_check_header_compile "$LINENO" "clang-c/Index.h" "ac_cv_header_clang_c_Index_h" "$ac_includes_default" +if test "x$ac_cv_header_clang_c_Index_h" = xyes +then : + HAVE_LIBCLANG_HDR=1 +else case e in @%:@( + e) HAVE_LIBCLANG_HDR=0 ;; +esac +fi + + # if we found it, break out + if test "x$HAVE_LIBCLANG_LIB" = "x1" -a "x$HAVE_LIBCLANG_HDR" = "x1" ; then + HAVE_LIBCLANG=1 + break + fi + $as_unset ac_cv_lib_clang_clang_createIndex $as_unset ac_cv_header_clang_c_Index_h \ + LIBCLANG_CFLAGS LIBCLANG_CPPFLAGS LIBCLANG_LIBS HAVE_LIBCLANG_LIB HAVE_LIBCLANG_HDR + fi + CFLAGS=$orig_CFLAGS + LDFLAGS=$orig_LDFLAGS + LIBS=$orig_LIBS + if test "x$HAVE_LIBCLANG" = "x1"; then + break + fi + $as_unset ac_cv_path_LLVM_CONFIG LLVM_CONFIG + done + CFLAGS=$orig_CFLAGS + CPPFLAGS=$orig_CPPFLAGS + LDFLAGS=$orig_LDFLAGS + LIBS=$orig_LIBS +fi + + + + + + + + +printf "%s\n" "@%:@define HAVE_LIBCLANG $HAVE_LIBCLANG" >>confdefs.h + + if test x$HAVE_LIBCLANG = x1 ; then + HAVE_LIBCLANG_TRUE= + HAVE_LIBCLANG_FALSE='#' +else + HAVE_LIBCLANG_TRUE='#' + HAVE_LIBCLANG_FALSE= +fi + + + +CFLAGS=`echo $CFLAGS | sed -e 's/^ *//'` +CPPFLAGS=`echo $CPPFLAGS | sed -e 's/^ *//'` +LDFLAGS=`echo $LDFLAGS | sed -e 's/^ *//'` + # Shave by default on supported autoconf versions @@ -20212,9 +21018,10 @@ JQ="$JQ" if test ${enable_shave+y} then : enableval=$enable_shave; -else $as_nop - enable_shave=yes - +else case e in @%:@( + e) enable_shave=yes + ;; +esac fi @@ -20235,15 +21042,15 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_SED+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$SED"; then +else case e in @%:@( + e) if test -n "$SED"; then ac_cv_prog_SED="$SED" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -20259,7 +21066,8 @@ done IFS=$as_save_IFS test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="false" -fi +fi ;; +esac fi SED=$ac_cv_prog_SED if test -n "$SED"; then @@ -20329,8 +21137,8 @@ cat >confcache <<\_ACEOF # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the +# 'ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* 'ac_cv_foo' will be assigned the # following values. _ACEOF @@ -20360,14 +21168,14 @@ printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes: double-quote + # 'set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) - # `set' quotes correctly as required by POSIX, so do not add quotes. + # 'set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | @@ -20452,11 +21260,71 @@ 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__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCCAS\" 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 "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then + as_fn_error $? "conditional \"HAVE_STATIC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_PORTABLE_TARGET_TRUE}" && test -z "${HAVE_PORTABLE_TARGET_FALSE}"; then + as_fn_error $? "conditional \"HAVE_PORTABLE_TARGET\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_X86_TRUE}" && test -z "${TARGET_CPU_X86_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_X86\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_X86_64_TRUE}" && test -z "${TARGET_CPU_X86_64_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_X86_64\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_ANY_X86_TRUE}" && test -z "${TARGET_CPU_ANY_X86_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_ANY_X86\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_ARM_TRUE}" && test -z "${TARGET_CPU_ARM_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_ARM\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_ARM64_TRUE}" && test -z "${TARGET_CPU_ARM64_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_ARM64\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_ANY_ARM_TRUE}" && test -z "${TARGET_CPU_ANY_ARM_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_ANY_ARM\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_SSE2_TRUE}" && test -z "${TARGET_HAS_SSE2_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_SSE2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_SSE41_TRUE}" && test -z "${TARGET_HAS_SSE41_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_SSE41\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_AVX2_TRUE}" && test -z "${TARGET_HAS_AVX2_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_AVX2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_AVX512_TRUE}" && test -z "${TARGET_HAS_AVX512_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_AVX512\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_NEON_TRUE}" && test -z "${TARGET_HAS_NEON_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_NEON\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_ASAN_TRUE}" && test -z "${HAVE_ASAN_FALSE}"; then + as_fn_error $? "conditional \"HAVE_ASAN\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${HAVE_QSORT_R_TRUE}" && test -z "${HAVE_QSORT_R_FALSE}"; then as_fn_error $? "conditional \"HAVE_QSORT_R\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -20497,6 +21365,10 @@ if test -z "${HAVE_JQ_TRUE}" && test -z "${HAVE_JQ_FALSE}"; then as_fn_error $? "conditional \"HAVE_JQ\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${HAVE_LIBCLANG_TRUE}" && test -z "${HAVE_LIBCLANG_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIBCLANG\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 @@ -20526,7 +21398,6 @@ cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh @@ -20535,12 +21406,13 @@ then : # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else $as_nop - case `(set -o) 2>/dev/null` in @%:@( +else case e in @%:@( + e) case `(set -o) 2>/dev/null` in @%:@( *posix*) : set -o posix ;; @%:@( *) : ;; +esac ;; esac fi @@ -20601,7 +21473,7 @@ case $0 in @%:@(( for as_dir in $PATH do IFS=$as_save_IFS - case $as_dir in #((( + case $as_dir in @%:@((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; @@ -20612,7 +21484,7 @@ IFS=$as_save_IFS ;; esac -# We did not find ourselves, most probably we were run as `sh COMMAND' +# We did not find ourselves, most probably we were run as 'sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 @@ -20641,7 +21513,6 @@ as_fn_error () } @%:@ as_fn_error - @%:@ as_fn_set_status STATUS @%:@ ----------------------- @%:@ Set @S|@? to STATUS, without forking. @@ -20681,11 +21552,12 @@ then : { eval $1+=\$2 }' -else $as_nop - as_fn_append () +else case e in @%:@( + e) as_fn_append () { eval $1=\$$1\$2 - } + } ;; +esac fi # as_fn_append @%:@ as_fn_arith ARG... @@ -20699,11 +21571,12 @@ then : { as_val=$(( $* )) }' -else $as_nop - as_fn_arith () +else case e in @%:@( + e) as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` - } + } ;; +esac fi # as_fn_arith @@ -20786,9 +21659,9 @@ if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. + # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. + # In both cases, we have to default to 'cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then @@ -20869,10 +21742,12 @@ as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" +as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated # Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" +as_tr_sh="eval sed '$as_sed_sh'" # deprecated exec 6>&1 @@ -20887,8 +21762,8 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by libfyaml $as_me 0.7.12, which was -generated by GNU Autoconf 2.71. Invocation command line was +This file was extended by libfyaml $as_me 0.9, which was +generated by GNU Autoconf 2.72. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -20920,7 +21795,7 @@ _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ -\`$as_me' instantiates files and other configuration actions +'$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. @@ -20955,11 +21830,11 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -libfyaml config.status 0.7.12 -configured by $0, generated by GNU Autoconf 2.71, +libfyaml config.status 0.9 +configured by $0, generated by GNU Autoconf 2.72, with options \\"\$ac_cs_config\\" -Copyright (C) 2021 Free Software Foundation, Inc. +Copyright (C) 2023 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -21021,8 +21896,8 @@ do ac_need_defaults=false;; --he | --h) # Conflict between --help and --header - as_fn_error $? "ambiguous option: \`$1' -Try \`$0 --help' for more information.";; + as_fn_error $? "ambiguous option: '$1' +Try '$0 --help' for more information.";; --help | --hel | -h ) printf "%s\n" "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ @@ -21030,8 +21905,8 @@ Try \`$0 --help' for more information.";; ac_cs_silent=: ;; # This is an error. - -*) as_fn_error $? "unrecognized option: \`$1' -Try \`$0 --help' for more information." ;; + -*) as_fn_error $? "unrecognized option: '$1' +Try '$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; @@ -21084,11 +21959,11 @@ AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' -macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' -macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' @@ -21480,7 +22355,7 @@ do "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; "libfyaml.pc") CONFIG_FILES="$CONFIG_FILES libfyaml.pc" ;; - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; esac done @@ -21500,7 +22375,7 @@ fi # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. +# after its creation but before its name has been assigned to '$tmp'. $debug || { tmp= ac_tmp= @@ -21524,7 +22399,7 @@ ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. -# This happens for instance with `./config.status config.h'. +# This happens for instance with './config.status config.h'. if test -n "$CONFIG_FILES"; then @@ -21682,13 +22557,13 @@ fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. -# This happens for instance with `./config.status Makefile'. +# This happens for instance with './config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF -# Transform confdefs.h into an awk script `defines.awk', embedded as +# Transform confdefs.h into an awk script 'defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. @@ -21798,7 +22673,7 @@ do esac case $ac_mode$ac_tag in :[FHL]*:*);; - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac @@ -21820,19 +22695,19 @@ do -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. + # because $ac_f cannot contain ':'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || - as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done - # Let's still pretend it is `configure' which instantiates (i.e., don't + # Let's still pretend it is 'configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` @@ -21965,7 +22840,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 esac _ACEOF -# Neutralize VPATH when `$srcdir' = `.'. +# Neutralize VPATH when '$srcdir' = '.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 @@ -21996,9 +22871,9 @@ test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' which seems to be undefined. Please make sure it is defined" >&5 -printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" @@ -22153,15 +23028,15 @@ printf "%s\n" X/"$am_mf" | (exit $ac_status); } || am_rc=$? done if test $am_rc -ne 0; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE=\"gmake\" (or whatever is necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking). -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } fi { am_dirpart=; unset am_dirpart;} { am_filepart=; unset am_filepart;} @@ -22222,6 +23097,10 @@ available_tags='CXX ' # ### BEGIN LIBTOOL CONFIG +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision + # Assembler program. AS=$lt_AS @@ -22231,10 +23110,6 @@ DLLTOOL=$lt_DLLTOOL # Object dumper program. OBJDUMP=$lt_OBJDUMP -# Which release of libtool.m4 was used? -macro_version=$macro_version -macro_revision=$macro_revision - # Whether or not to build shared libraries. build_libtool_libs=$enable_shared @@ -23082,17 +23957,20 @@ echo " LIBTOOL_VERSION: ${LIBTOOL_VERSION} prefix: ${prefix} C compiler: ${CC} - CFLAGS: ${CFLAGS} Linker: ${LD} + CFLAGS: ${CFLAGS} LDFLAGS: ${LDFLAGS} LIBS: ${LIBS} + HAVE_ASAN: ${HAVE_ASAN} HAVE_CHECK: ${HAVE_CHECK} HAVE_COMPATIBLE_CHECK: ${HAVE_COMPATIBLE_CHECK} HAVE_NETWORK: ${HAVE_NETWORK} HAVE_DEVMODE: ${HAVE_DEVMODE} HAVE_SPHINX: ${HAVE_SPHINX} - GIT: $GIT - DOCKER: $DOCKER + GIT: ${GIT} + DOCKER: ${DOCKER} + HAVE_LIBCLANG: ${HAVE_LIBCLANG} + LIBCLANG_LIBS: ${LIBCLANG_LIBS} TESTSUITEURL: $TESTSUITEURL TESTSUITECHECKOUT: $TESTSUITECHECKOUT JSONTESTSUITEURL: $JSONTESTSUITEURL diff --git a/Sources/Cfyaml/autom4te.cache/requests b/Sources/Cfyaml/autom4te.cache/requests index 9f7266724..7814e03f5 100644 --- a/Sources/Cfyaml/autom4te.cache/requests +++ b/Sources/Cfyaml/autom4te.cache/requests @@ -1,4 +1,4 @@ -# This file was generated by Autom4te 2.71. +# This file was generated by Autom4te 2.72. # It contains the lists of macros which have been traced. # It can be safely removed. @@ -7,10 +7,10 @@ '0', 1, [ - '/opt/homebrew/Cellar/autoconf/2.71/share/autoconf' + '/opt/homebrew/Cellar/autoconf/2.72/share/autoconf' ], [ - '/opt/homebrew/Cellar/autoconf/2.71/share/autoconf/autoconf/autoconf.m4f', + '/opt/homebrew/Cellar/autoconf/2.72/share/autoconf/autoconf/autoconf.m4f', '/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/internal/ac-config-macro-dirs.m4', '/opt/homebrew/share/aclocal/libtool.m4', '/opt/homebrew/share/aclocal/ltargz.m4', @@ -22,7 +22,9 @@ '/opt/homebrew/share/aclocal/pkg.m4', '/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/amversion.m4', '/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/ar-lib.m4', + '/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/as.m4', '/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/auxdir.m4', + '/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/cond-if.m4', '/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/cond.m4', '/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/depend.m4', '/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/depout.m4', @@ -43,212 +45,216 @@ 'configure.ac' ], { - 'LT_OUTPUT' => 1, + 'AC_CHECK_LIBM' => 1, + 'AC_CONFIG_MACRO_DIR' => 1, + 'AC_CONFIG_MACRO_DIR_TRACE' => 1, + 'AC_DEFUN' => 1, + 'AC_DEFUN_ONCE' => 1, + 'AC_DEPLIBS_CHECK_METHOD' => 1, + 'AC_DISABLE_FAST_INSTALL' => 1, + 'AC_DISABLE_SHARED' => 1, + 'AC_DISABLE_STATIC' => 1, + 'AC_ENABLE_FAST_INSTALL' => 1, + 'AC_ENABLE_SHARED' => 1, + 'AC_ENABLE_STATIC' => 1, 'AC_LIBLTDL_CONVENIENCE' => 1, - '_AM_CONFIG_MACRO_DIRS' => 1, + 'AC_LIBLTDL_INSTALLABLE' => 1, + 'AC_LIBTOOL_COMPILER_OPTION' => 1, + 'AC_LIBTOOL_CONFIG' => 1, + 'AC_LIBTOOL_CXX' => 1, + 'AC_LIBTOOL_DLOPEN' => 1, + 'AC_LIBTOOL_DLOPEN_SELF' => 1, + 'AC_LIBTOOL_F77' => 1, + 'AC_LIBTOOL_FC' => 1, + 'AC_LIBTOOL_GCJ' => 1, + 'AC_LIBTOOL_LANG_CXX_CONFIG' => 1, + 'AC_LIBTOOL_LANG_C_CONFIG' => 1, + 'AC_LIBTOOL_LANG_F77_CONFIG' => 1, + 'AC_LIBTOOL_LANG_GCJ_CONFIG' => 1, + 'AC_LIBTOOL_LANG_RC_CONFIG' => 1, + 'AC_LIBTOOL_LINKER_OPTION' => 1, + 'AC_LIBTOOL_OBJDIR' => 1, + 'AC_LIBTOOL_PICMODE' => 1, + 'AC_LIBTOOL_POSTDEP_PREDEP' => 1, + 'AC_LIBTOOL_PROG_CC_C_O' => 1, + 'AC_LIBTOOL_PROG_COMPILER_NO_RTTI' => 1, + 'AC_LIBTOOL_PROG_COMPILER_PIC' => 1, + 'AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH' => 1, + 'AC_LIBTOOL_PROG_LD_SHLIBS' => 1, + 'AC_LIBTOOL_RC' => 1, + 'AC_LIBTOOL_SETUP' => 1, + 'AC_LIBTOOL_SYS_DYNAMIC_LINKER' => 1, + 'AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE' => 1, + 'AC_LIBTOOL_SYS_HARD_LINK_LOCKS' => 1, 'AC_LIBTOOL_SYS_LIB_STRIP' => 1, - 'AM_SILENT_RULES' => 1, + 'AC_LIBTOOL_SYS_MAX_CMD_LEN' => 1, + 'AC_LIBTOOL_SYS_OLD_ARCHIVE' => 1, + 'AC_LIBTOOL_WIN32_DLL' => 1, + 'AC_LIB_LTDL' => 1, + 'AC_LTDL_DLLIB' => 1, + 'AC_LTDL_DLSYM_USCORE' => 1, + 'AC_LTDL_ENABLE_INSTALL' => 1, + 'AC_LTDL_OBJDIR' => 1, + 'AC_LTDL_PREOPEN' => 1, + 'AC_LTDL_SHLIBEXT' => 1, + 'AC_LTDL_SHLIBPATH' => 1, + 'AC_LTDL_SYMBOL_USCORE' => 1, + 'AC_LTDL_SYSSEARCHPATH' => 1, + 'AC_LTDL_SYS_DLOPEN_DEPLIBS' => 1, + 'AC_PATH_MAGIC' => 1, + 'AC_PATH_TOOL_PREFIX' => 1, + 'AC_PROG_EGREP' => 1, + 'AC_PROG_LD' => 1, + 'AC_PROG_LD_GNU' => 1, + 'AC_PROG_LD_RELOAD_FLAG' => 1, + 'AC_PROG_LIBTOOL' => 1, + 'AC_PROG_NM' => 1, + 'AC_WITH_LTDL' => 1, + 'AM_AUTOMAKE_VERSION' => 1, + 'AM_AUX_DIR_EXPAND' => 1, + 'AM_CONDITIONAL' => 1, + 'AM_COND_IF' => 1, + 'AM_DEP_TRACK' => 1, + 'AM_DISABLE_SHARED' => 1, + 'AM_DISABLE_STATIC' => 1, 'AM_ENABLE_SHARED' => 1, - '_LT_LIBOBJ' => 1, - 'AM_PROG_INSTALL_STRIP' => 1, - 'AC_LIBTOOL_SYS_DYNAMIC_LINKER' => 1, + 'AM_ENABLE_STATIC' => 1, + 'AM_EXTRA_RECURSIVE_TARGETS' => 1, + 'AM_INIT_AUTOMAKE' => 1, + 'AM_MAKE_INCLUDE' => 1, + 'AM_MISSING_HAS_RUN' => 1, + 'AM_MISSING_PROG' => 1, + 'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, + 'AM_PROG_AR' => 1, + 'AM_PROG_AS' => 1, 'AM_PROG_CC_C_O' => 1, + 'AM_PROG_INSTALL_SH' => 1, + 'AM_PROG_INSTALL_STRIP' => 1, + 'AM_PROG_LD' => 1, 'AM_PROG_LIBTOOL' => 1, - 'LTOPTIONS_VERSION' => 1, - '_LT_AC_CHECK_DLFCN' => 1, + 'AM_PROG_NM' => 1, + 'AM_RUN_LOG' => 1, 'AM_SANITY_CHECK' => 1, - 'AC_LTDL_SHLIBPATH' => 1, - 'AM_ENABLE_STATIC' => 1, + 'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1, + 'AM_SET_DEPDIR' => 1, + 'AM_SET_LEADING_DOT' => 1, + 'AM_SILENT_RULES' => 1, + 'AM_SUBST_NOTMAKE' => 1, + 'AU_DEFUN' => 1, + 'LTDL_CONVENIENCE' => 1, 'LTDL_INIT' => 1, - 'AC_LIBTOOL_LANG_F77_CONFIG' => 1, - 'AC_PATH_MAGIC' => 1, - '_AM_MANGLE_OPTION' => 1, - '_LT_AC_SYS_LIBPATH_AIX' => 1, - 'AM_INIT_AUTOMAKE' => 1, - 'AC_LTDL_PREOPEN' => 1, - '_LT_DLL_DEF_P' => 1, - 'AC_LTDL_ENABLE_INSTALL' => 1, - '_LT_AC_LOCK' => 1, - 'LT_SYS_MODULE_PATH' => 1, - '_m4_warn' => 1, - '_LT_WITH_SYSROOT' => 1, - 'AM_PROG_LD' => 1, + 'LTDL_INSTALLABLE' => 1, + 'LTOBSOLETE_VERSION' => 1, + 'LTOPTIONS_VERSION' => 1, + 'LTSUGAR_VERSION' => 1, 'LTVERSION_VERSION' => 1, - 'AU_DEFUN' => 1, - 'LT_SYS_DLSEARCH_PATH' => 1, - '_AM_SUBST_NOTMAKE' => 1, - 'AC_LTDL_SYS_DLOPEN_DEPLIBS' => 1, - 'AM_RUN_LOG' => 1, - 'AM_CONDITIONAL' => 1, - 'AC_DEPLIBS_CHECK_METHOD' => 1, - 'AC_LTDL_DLSYM_USCORE' => 1, - '_LT_COMPILER_OPTION' => 1, + 'LT_AC_PROG_EGREP' => 1, + 'LT_AC_PROG_GCJ' => 1, + 'LT_AC_PROG_RC' => 1, + 'LT_AC_PROG_SED' => 1, + 'LT_CMD_MAX_LEN' => 1, + 'LT_CONFIG_LTDL_DIR' => 1, + 'LT_FUNC_ARGZ' => 1, + 'LT_FUNC_DLSYM_USCORE' => 1, + 'LT_INIT' => 1, + 'LT_LANG' => 1, + 'LT_LIB_DLLOAD' => 1, + 'LT_LIB_M' => 1, + 'LT_OUTPUT' => 1, 'LT_PATH_LD' => 1, - '_LT_PATH_TOOL_PREFIX' => 1, - 'LT_SYS_SYMBOL_USCORE' => 1, - 'AC_LIBTOOL_SYS_HARD_LINK_LOCKS' => 1, - 'AC_LIBTOOL_F77' => 1, - '_AM_SET_OPTIONS' => 1, - 'AC_LIBTOOL_SYS_MAX_CMD_LEN' => 1, + 'LT_PATH_NM' => 1, 'LT_PROG_GCJ' => 1, - 'AC_LIBLTDL_INSTALLABLE' => 1, - 'AC_LIBTOOL_POSTDEP_PREDEP' => 1, - '_LT_PROG_LTMAIN' => 1, - '_AM_PROG_CC_C_O' => 1, - '_AC_PROG_LIBTOOL' => 1, - 'AM_MAKE_INCLUDE' => 1, - 'AC_LIBTOOL_DLOPEN_SELF' => 1, - 'AC_LIBTOOL_CONFIG' => 1, - 'AM_AUX_DIR_EXPAND' => 1, - '_AC_AM_CONFIG_HEADER_HOOK' => 1, - 'AC_LTDL_OBJDIR' => 1, + 'LT_PROG_GO' => 1, + 'LT_PROG_RC' => 1, 'LT_SUPPORTED_TAG' => 1, - 'AC_LIBTOOL_PICMODE' => 1, - '_LTDL_SETUP' => 1, - 'AC_ENABLE_FAST_INSTALL' => 1, - 'LT_SYS_MODULE_EXT' => 1, - '_LT_AC_PROG_ECHO_BACKSLASH' => 1, 'LT_SYS_DLOPEN_DEPLIBS' => 1, - 'AC_PROG_NM' => 1, - 'AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE' => 1, - 'AC_LIBTOOL_LANG_C_CONFIG' => 1, - '_LT_AC_SYS_COMPILER' => 1, - 'AC_LIBTOOL_LANG_RC_CONFIG' => 1, - '_PKG_SHORT_ERRORS_SUPPORTED' => 1, - 'AM_SET_DEPDIR' => 1, - '_LT_AC_LANG_GCJ' => 1, - 'LT_AC_PROG_RC' => 1, - '_LT_AC_PROG_CXXCPP' => 1, - 'AC_LIBTOOL_DLOPEN' => 1, - '_LT_AC_LANG_C_CONFIG' => 1, - 'AC_LIBTOOL_PROG_CC_C_O' => 1, - 'LTSUGAR_VERSION' => 1, + 'LT_SYS_DLOPEN_SELF' => 1, + 'LT_SYS_DLSEARCH_PATH' => 1, + 'LT_SYS_MODULE_EXT' => 1, + 'LT_SYS_MODULE_PATH' => 1, + 'LT_SYS_SYMBOL_USCORE' => 1, 'LT_WITH_LTDL' => 1, - 'LT_PROG_GO' => 1, - '_LT_COMPILER_BOILERPLATE' => 1, - 'AC_LTDL_DLLIB' => 1, - 'AC_LIBTOOL_PROG_LD_SHLIBS' => 1, - 'AC_LIBTOOL_LANG_CXX_CONFIG' => 1, 'PKG_CHECK_EXISTS' => 1, - '_LT_AC_LANG_GCJ_CONFIG' => 1, - 'AC_CONFIG_MACRO_DIR_TRACE' => 1, - 'AC_LIBTOOL_LANG_GCJ_CONFIG' => 1, - 'AC_DISABLE_STATIC' => 1, - 'AC_LIBTOOL_CXX' => 1, - 'AC_DISABLE_SHARED' => 1, - '_AM_SET_OPTION' => 1, - 'AC_LTDL_SHLIBEXT' => 1, - '_LT_AC_TAGVAR' => 1, - '_LT_AC_LANG_RC_CONFIG' => 1, - 'AC_WITH_LTDL' => 1, 'PKG_CHECK_MODULES' => 1, 'PKG_CHECK_MODULES_STATIC' => 1, - 'AC_PROG_LD_RELOAD_FLAG' => 1, - 'LT_AC_PROG_GCJ' => 1, - 'LT_FUNC_ARGZ' => 1, - 'AC_LIBTOOL_SETUP' => 1, - '_LT_AC_TAGCONFIG' => 1, - 'AC_LIBTOOL_COMPILER_OPTION' => 1, - 'AC_DEFUN_ONCE' => 1, - '_LT_AC_LANG_F77' => 1, - '_LT_PREPARE_SED_QUOTE_VARS' => 1, - 'AC_CHECK_LIBM' => 1, - 'AC_PROG_LD_GNU' => 1, - 'm4_pattern_forbid' => 1, - 'AC_PROG_LD' => 1, - '_LT_AC_LANG_CXX' => 1, - '_AM_DEPENDENCIES' => 1, - 'AM_DEP_TRACK' => 1, - 'AC_LIBTOOL_OBJDIR' => 1, - '_AM_AUTOCONF_VERSION' => 1, - 'LTDL_CONVENIENCE' => 1, - 'AC_PATH_TOOL_PREFIX' => 1, - 'PKG_NOARCH_INSTALLDIR' => 1, - 'AC_LIBTOOL_PROG_COMPILER_PIC' => 1, - '_LT_LINKER_BOILERPLATE' => 1, - '_LT_AC_TRY_DLOPEN_SELF' => 1, - 'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, - 'LTOBSOLETE_VERSION' => 1, - '_LT_PROG_ECHO_BACKSLASH' => 1, - 'AC_PROG_LIBTOOL' => 1, - 'AC_CONFIG_MACRO_DIR' => 1, - 'AC_ENABLE_SHARED' => 1, - 'LT_LANG' => 1, 'PKG_CHECK_VAR' => 1, - 'LT_PROG_RC' => 1, - 'AC_LTDL_SYSSEARCHPATH' => 1, - 'AM_AUTOMAKE_VERSION' => 1, - 'LT_INIT' => 1, - '_LT_AC_LANG_CXX_CONFIG' => 1, - 'LT_AC_PROG_EGREP' => 1, + 'PKG_INSTALLDIR' => 1, + 'PKG_NOARCH_INSTALLDIR' => 1, + 'PKG_PROG_PKG_CONFIG' => 1, + '_AC_AM_CONFIG_HEADER_HOOK' => 1, + '_AC_PROG_LIBTOOL' => 1, + '_AM_AUTOCONF_VERSION' => 1, + '_AM_CONFIG_MACRO_DIRS' => 1, + '_AM_DEPENDENCIES' => 1, '_AM_IF_OPTION' => 1, - 'LT_CMD_MAX_LEN' => 1, - 'AC_DEFUN' => 1, + '_AM_MANGLE_OPTION' => 1, '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, - '_LT_PROG_FC' => 1, - 'AC_LTDL_SYMBOL_USCORE' => 1, - '_LT_PROG_F77' => 1, - '_LT_PROG_CXX' => 1, + '_AM_PROG_CC_C_O' => 1, '_AM_PROG_TAR' => 1, - 'AC_ENABLE_STATIC' => 1, + '_AM_SET_OPTION' => 1, + '_AM_SET_OPTIONS' => 1, + '_AM_SUBST_NOTMAKE' => 1, + '_LTDL_SETUP' => 1, + '_LT_AC_CHECK_DLFCN' => 1, + '_LT_AC_FILE_LTDLL_C' => 1, + '_LT_AC_LANG_CXX' => 1, + '_LT_AC_LANG_CXX_CONFIG' => 1, + '_LT_AC_LANG_C_CONFIG' => 1, + '_LT_AC_LANG_F77' => 1, '_LT_AC_LANG_F77_CONFIG' => 1, - '_LT_LINKER_OPTION' => 1, - 'LTDL_INSTALLABLE' => 1, - 'AC_LIBTOOL_WIN32_DLL' => 1, - 'PKG_PROG_PKG_CONFIG' => 1, - 'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1, - 'AC_LIBTOOL_FC' => 1, - 'AM_SUBST_NOTMAKE' => 1, - 'LT_FUNC_DLSYM_USCORE' => 1, + '_LT_AC_LANG_GCJ' => 1, + '_LT_AC_LANG_GCJ_CONFIG' => 1, + '_LT_AC_LANG_RC_CONFIG' => 1, + '_LT_AC_LOCK' => 1, + '_LT_AC_PROG_CXXCPP' => 1, + '_LT_AC_PROG_ECHO_BACKSLASH' => 1, + '_LT_AC_SHELL_INIT' => 1, + '_LT_AC_SYS_COMPILER' => 1, + '_LT_AC_SYS_LIBPATH_AIX' => 1, + '_LT_AC_TAGCONFIG' => 1, + '_LT_AC_TAGVAR' => 1, + '_LT_AC_TRY_DLOPEN_SELF' => 1, '_LT_CC_BASENAME' => 1, - 'LT_LIB_DLLOAD' => 1, - 'AC_DISABLE_FAST_INSTALL' => 1, - 'AM_DISABLE_SHARED' => 1, - 'AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH' => 1, - 'AM_MISSING_PROG' => 1, - 'AM_PROG_AR' => 1, - 'PKG_INSTALLDIR' => 1, - 'AM_MISSING_HAS_RUN' => 1, - 'AM_DISABLE_STATIC' => 1, - '_LT_AC_FILE_LTDLL_C' => 1, - 'm4_include' => 1, - 'LT_LIB_M' => 1, - 'AC_LIBTOOL_GCJ' => 1, - 'LT_SYS_DLOPEN_SELF' => 1, - 'AC_LIBTOOL_SYS_OLD_ARCHIVE' => 1, - 'm4_pattern_allow' => 1, - 'AC_LIBTOOL_LINKER_OPTION' => 1, - 'AM_EXTRA_RECURSIVE_TARGETS' => 1, - 'AM_SET_LEADING_DOT' => 1, - 'AM_PROG_INSTALL_SH' => 1, - 'LT_CONFIG_LTDL_DIR' => 1, + '_LT_COMPILER_BOILERPLATE' => 1, + '_LT_COMPILER_OPTION' => 1, + '_LT_DLL_DEF_P' => 1, + '_LT_LIBOBJ' => 1, + '_LT_LINKER_BOILERPLATE' => 1, + '_LT_LINKER_OPTION' => 1, + '_LT_PATH_TOOL_PREFIX' => 1, + '_LT_PREPARE_SED_QUOTE_VARS' => 1, + '_LT_PROG_CXX' => 1, + '_LT_PROG_ECHO_BACKSLASH' => 1, + '_LT_PROG_F77' => 1, + '_LT_PROG_FC' => 1, + '_LT_PROG_LTMAIN' => 1, '_LT_REQUIRED_DARWIN_CHECKS' => 1, - 'AC_LIBTOOL_RC' => 1, - 'LT_AC_PROG_SED' => 1, - 'LT_PATH_NM' => 1, - 'AC_PROG_EGREP' => 1, - 'AC_LIB_LTDL' => 1, - '_LT_AC_SHELL_INIT' => 1, + '_LT_WITH_SYSROOT' => 1, + '_PKG_SHORT_ERRORS_SUPPORTED' => 1, + '_m4_warn' => 1, 'include' => 1, - 'AC_LIBTOOL_PROG_COMPILER_NO_RTTI' => 1, - 'AM_PROG_NM' => 1 + 'm4_include' => 1, + 'm4_pattern_allow' => 1, + 'm4_pattern_forbid' => 1 } ], 'Autom4te::Request' ), bless( [ '1', 1, [ - '/opt/homebrew/Cellar/autoconf/2.71/share/autoconf' + '/opt/homebrew/Cellar/autoconf/2.72/share/autoconf' ], [ - '/opt/homebrew/Cellar/autoconf/2.71/share/autoconf/autoconf/autoconf.m4f', + '/opt/homebrew/Cellar/autoconf/2.72/share/autoconf/autoconf/autoconf.m4f', '/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/internal/ac-config-macro-dirs.m4', '/opt/homebrew/share/aclocal/ltargz.m4', '/opt/homebrew/share/aclocal/ltdl.m4', '/opt/homebrew/share/aclocal/pkg.m4', '/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/amversion.m4', '/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/ar-lib.m4', + '/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/as.m4', '/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/auxdir.m4', + '/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/cond-if.m4', '/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/cond.m4', '/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/depend.m4', '/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/depout.m4', @@ -266,373 +272,375 @@ '/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/strip.m4', '/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/substnot.m4', '/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/tar.m4', - 'm4/ax_check_enable_debug.m4', - 'm4/ax_check_flag.m4', - 'm4/ax_pthread.m4', - 'm4/libtool.m4', - 'm4/ltoptions.m4', - 'm4/ltsugar.m4', - 'm4/ltversion.m4', - 'm4/lt~obsolete.m4', - 'm4/shave.m4', - 'configure.ac' - ], - { - '_LT_LINKER_BOILERPLATE' => 1, - '_LT_AC_TRY_DLOPEN_SELF' => 1, - 'AC_LIBTOOL_PROG_COMPILER_PIC' => 1, - 'LTOBSOLETE_VERSION' => 1, - 'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, - 'AM_DEP_TRACK' => 1, - 'AC_LIBTOOL_OBJDIR' => 1, - '_AM_AUTOCONF_VERSION' => 1, - 'LTDL_CONVENIENCE' => 1, - 'AC_PATH_TOOL_PREFIX' => 1, - 'PKG_NOARCH_INSTALLDIR' => 1, - 'AC_PROG_LD' => 1, - 'm4_pattern_forbid' => 1, - '_AM_DEPENDENCIES' => 1, - '_LT_AC_LANG_CXX' => 1, - '_LT_AC_LANG_F77' => 1, - 'AC_DEFUN_ONCE' => 1, - '_LT_PREPARE_SED_QUOTE_VARS' => 1, - 'AC_CHECK_LIBM' => 1, - 'AC_PROG_LD_GNU' => 1, - '_AM_PROG_TAR' => 1, - '_LT_LINKER_OPTION' => 1, - 'LTDL_INSTALLABLE' => 1, - '_LT_AC_LANG_F77_CONFIG' => 1, - 'AC_ENABLE_STATIC' => 1, - 'AX_APPEND_FLAG' => 1, - 'AC_LIBTOOL_WIN32_DLL' => 1, - 'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1, - 'PKG_PROG_PKG_CONFIG' => 1, - 'LT_AC_PROG_EGREP' => 1, - '_LT_AC_LANG_CXX_CONFIG' => 1, - 'AC_DEFUN' => 1, - '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, - 'LT_CMD_MAX_LEN' => 1, - '_AM_IF_OPTION' => 1, - 'AC_LTDL_SYMBOL_USCORE' => 1, - '_LT_PROG_FC' => 1, - '_LT_PROG_F77' => 1, - '_LT_PROG_CXX' => 1, - 'AC_LTDL_SYSSEARCHPATH' => 1, - 'PKG_CHECK_VAR' => 1, - 'LT_PROG_RC' => 1, - 'AX_CHECK_PREPROC_FLAG' => 1, - 'AM_AUTOMAKE_VERSION' => 1, - 'LT_INIT' => 1, - 'AX_PTHREAD' => 1, - 'AC_PROG_LIBTOOL' => 1, - '_LT_PROG_ECHO_BACKSLASH' => 1, + 'm4/ax_check_enable_debug.m4', + 'm4/ax_check_flag.m4', + 'm4/ax_pthread.m4', + 'm4/libtool.m4', + 'm4/ltoptions.m4', + 'm4/ltsugar.m4', + 'm4/ltversion.m4', + 'm4/lt~obsolete.m4', + 'm4/shave.m4', + 'configure.ac' + ], + { + 'ACX_PTHREAD' => 1, + 'AC_CHECK_LIBM' => 1, 'AC_CONFIG_MACRO_DIR' => 1, + 'AC_CONFIG_MACRO_DIR_TRACE' => 1, + 'AC_DEFUN' => 1, + 'AC_DEFUN_ONCE' => 1, + 'AC_DEPLIBS_CHECK_METHOD' => 1, + 'AC_DISABLE_FAST_INSTALL' => 1, + 'AC_DISABLE_SHARED' => 1, + 'AC_DISABLE_STATIC' => 1, + 'AC_ENABLE_FAST_INSTALL' => 1, 'AC_ENABLE_SHARED' => 1, - 'LT_LANG' => 1, - 'AM_EXTRA_RECURSIVE_TARGETS' => 1, - 'AM_SET_LEADING_DOT' => 1, - 'AX_APPEND_LINK_FLAGS' => 1, - 'LT_SYS_DLOPEN_SELF' => 1, - 'AC_LIBTOOL_LINKER_OPTION' => 1, - 'm4_pattern_allow' => 1, - 'AC_LIBTOOL_SYS_OLD_ARCHIVE' => 1, - '_LT_AC_FILE_LTDLL_C' => 1, - 'm4_include' => 1, - 'LT_LIB_M' => 1, - 'AC_LIBTOOL_GCJ' => 1, - 'LT_FUNC_DLSYM_USCORE' => 1, - 'AM_SUBST_NOTMAKE' => 1, + 'AC_ENABLE_STATIC' => 1, + 'AC_LIBLTDL_CONVENIENCE' => 1, + 'AC_LIBLTDL_INSTALLABLE' => 1, + 'AC_LIBTOOL_COMPILER_OPTION' => 1, + 'AC_LIBTOOL_CONFIG' => 1, + 'AC_LIBTOOL_CXX' => 1, + 'AC_LIBTOOL_DLOPEN' => 1, + 'AC_LIBTOOL_DLOPEN_SELF' => 1, + 'AC_LIBTOOL_F77' => 1, 'AC_LIBTOOL_FC' => 1, - 'AM_DISABLE_SHARED' => 1, - 'AC_DISABLE_FAST_INSTALL' => 1, - 'LT_LIB_DLLOAD' => 1, - 'AX_CHECK_ENABLE_DEBUG' => 1, - '_LT_CC_BASENAME' => 1, - 'AM_MISSING_PROG' => 1, - 'AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH' => 1, - 'AM_DISABLE_STATIC' => 1, - 'PKG_INSTALLDIR' => 1, - 'AM_MISSING_HAS_RUN' => 1, - 'AM_PROG_AR' => 1, + 'AC_LIBTOOL_GCJ' => 1, + 'AC_LIBTOOL_LANG_CXX_CONFIG' => 1, + 'AC_LIBTOOL_LANG_C_CONFIG' => 1, + 'AC_LIBTOOL_LANG_F77_CONFIG' => 1, + 'AC_LIBTOOL_LANG_GCJ_CONFIG' => 1, + 'AC_LIBTOOL_LANG_RC_CONFIG' => 1, + 'AC_LIBTOOL_LINKER_OPTION' => 1, + 'AC_LIBTOOL_OBJDIR' => 1, + 'AC_LIBTOOL_PICMODE' => 1, + 'AC_LIBTOOL_POSTDEP_PREDEP' => 1, + 'AC_LIBTOOL_PROG_CC_C_O' => 1, 'AC_LIBTOOL_PROG_COMPILER_NO_RTTI' => 1, - '_SHAVE_ARG_ENABLE' => 1, - 'AM_PROG_NM' => 1, - '_LT_AC_SHELL_INIT' => 1, - 'include' => 1, + 'AC_LIBTOOL_PROG_COMPILER_PIC' => 1, + 'AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH' => 1, + 'AC_LIBTOOL_PROG_LD_SHLIBS' => 1, 'AC_LIBTOOL_RC' => 1, - 'LT_AC_PROG_SED' => 1, - 'AX_CHECK_LINK_FLAG' => 1, - '_LT_REQUIRED_DARWIN_CHECKS' => 1, - 'AC_PROG_EGREP' => 1, - 'LT_PATH_NM' => 1, + 'AC_LIBTOOL_SETUP' => 1, + 'AC_LIBTOOL_SYS_DYNAMIC_LINKER' => 1, + 'AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE' => 1, + 'AC_LIBTOOL_SYS_HARD_LINK_LOCKS' => 1, + 'AC_LIBTOOL_SYS_LIB_STRIP' => 1, + 'AC_LIBTOOL_SYS_MAX_CMD_LEN' => 1, + 'AC_LIBTOOL_SYS_OLD_ARCHIVE' => 1, + 'AC_LIBTOOL_WIN32_DLL' => 1, 'AC_LIB_LTDL' => 1, - 'LT_CONFIG_LTDL_DIR' => 1, - 'AM_PROG_INSTALL_SH' => 1, - 'AM_INIT_AUTOMAKE' => 1, - 'AC_LTDL_PREOPEN' => 1, - '_LT_DLL_DEF_P' => 1, - '_LT_AC_LOCK' => 1, + 'AC_LTDL_DLLIB' => 1, + 'AC_LTDL_DLSYM_USCORE' => 1, 'AC_LTDL_ENABLE_INSTALL' => 1, - '_LT_AC_CHECK_DLFCN' => 1, - 'AM_SANITY_CHECK' => 1, - 'AM_ENABLE_STATIC' => 1, - 'LTDL_INIT' => 1, + 'AC_LTDL_OBJDIR' => 1, + 'AC_LTDL_PREOPEN' => 1, + 'AC_LTDL_SHLIBEXT' => 1, 'AC_LTDL_SHLIBPATH' => 1, - '_LT_AC_SYS_LIBPATH_AIX' => 1, - '_AM_MANGLE_OPTION' => 1, + 'AC_LTDL_SYMBOL_USCORE' => 1, + 'AC_LTDL_SYSSEARCHPATH' => 1, + 'AC_LTDL_SYS_DLOPEN_DEPLIBS' => 1, 'AC_PATH_MAGIC' => 1, - 'AC_LIBTOOL_LANG_F77_CONFIG' => 1, - 'AM_SILENT_RULES' => 1, - '_LT_LIBOBJ' => 1, + 'AC_PATH_TOOL_PREFIX' => 1, + 'AC_PROG_EGREP' => 1, + 'AC_PROG_LD' => 1, + 'AC_PROG_LD_GNU' => 1, + 'AC_PROG_LD_RELOAD_FLAG' => 1, + 'AC_PROG_LIBTOOL' => 1, + 'AC_PROG_NM' => 1, + 'AC_WITH_LTDL' => 1, + 'AM_AUTOMAKE_VERSION' => 1, + 'AM_AUX_DIR_EXPAND' => 1, + 'AM_CONDITIONAL' => 1, + 'AM_COND_IF' => 1, + 'AM_DEP_TRACK' => 1, + 'AM_DISABLE_SHARED' => 1, + 'AM_DISABLE_STATIC' => 1, 'AM_ENABLE_SHARED' => 1, - 'AM_PROG_INSTALL_STRIP' => 1, - 'LTOPTIONS_VERSION' => 1, + 'AM_ENABLE_STATIC' => 1, + 'AM_EXTRA_RECURSIVE_TARGETS' => 1, + 'AM_INIT_AUTOMAKE' => 1, + 'AM_MAKE_INCLUDE' => 1, + 'AM_MISSING_HAS_RUN' => 1, + 'AM_MISSING_PROG' => 1, + 'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, + 'AM_PROG_AR' => 1, + 'AM_PROG_AS' => 1, 'AM_PROG_CC_C_O' => 1, + 'AM_PROG_INSTALL_SH' => 1, + 'AM_PROG_INSTALL_STRIP' => 1, + 'AM_PROG_LD' => 1, 'AM_PROG_LIBTOOL' => 1, - 'AC_LIBTOOL_SYS_DYNAMIC_LINKER' => 1, - 'LT_OUTPUT' => 1, - '_AM_CONFIG_MACRO_DIRS' => 1, - 'AC_LIBLTDL_CONVENIENCE' => 1, - 'AC_LIBTOOL_SYS_LIB_STRIP' => 1, - 'AC_LIBTOOL_F77' => 1, - 'AC_LIBTOOL_SYS_HARD_LINK_LOCKS' => 1, - '_AM_SET_OPTIONS' => 1, - 'LT_PROG_GCJ' => 1, - 'AC_LIBTOOL_SYS_MAX_CMD_LEN' => 1, + 'AM_PROG_NM' => 1, 'AM_RUN_LOG' => 1, - 'AC_LTDL_SYS_DLOPEN_DEPLIBS' => 1, - 'AM_CONDITIONAL' => 1, - 'LT_PATH_LD' => 1, - '_LT_PATH_TOOL_PREFIX' => 1, - '_LT_COMPILER_OPTION' => 1, - 'AC_LTDL_DLSYM_USCORE' => 1, - 'AC_DEPLIBS_CHECK_METHOD' => 1, - 'LT_SYS_SYMBOL_USCORE' => 1, + 'AM_SANITY_CHECK' => 1, + 'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1, + 'AM_SET_DEPDIR' => 1, + 'AM_SET_LEADING_DOT' => 1, + 'AM_SILENT_RULES' => 1, + 'AM_SUBST_NOTMAKE' => 1, 'AU_DEFUN' => 1, 'AX_APPEND_COMPILE_FLAGS' => 1, - '_AM_SUBST_NOTMAKE' => 1, - 'LT_SYS_DLSEARCH_PATH' => 1, - 'LT_SYS_MODULE_PATH' => 1, - '_LT_WITH_SYSROOT' => 1, - '_m4_warn' => 1, + 'AX_APPEND_FLAG' => 1, + 'AX_APPEND_LINK_FLAGS' => 1, + 'AX_CHECK_COMPILE_FLAG' => 1, + 'AX_CHECK_ENABLE_DEBUG' => 1, + 'AX_CHECK_LINK_FLAG' => 1, + 'AX_CHECK_PREPROC_FLAG' => 1, + 'AX_PTHREAD' => 1, + 'LTDL_CONVENIENCE' => 1, + 'LTDL_INIT' => 1, + 'LTDL_INSTALLABLE' => 1, + 'LTOBSOLETE_VERSION' => 1, + 'LTOPTIONS_VERSION' => 1, + 'LTSUGAR_VERSION' => 1, 'LTVERSION_VERSION' => 1, - 'AM_PROG_LD' => 1, - '_LT_AC_PROG_CXXCPP' => 1, - 'AC_LIBTOOL_DLOPEN' => 1, + 'LT_AC_PROG_EGREP' => 1, + 'LT_AC_PROG_GCJ' => 1, 'LT_AC_PROG_RC' => 1, - '_LT_AC_LANG_GCJ' => 1, - 'AC_LIBTOOL_PROG_CC_C_O' => 1, - '_LT_AC_LANG_C_CONFIG' => 1, - 'LT_WITH_LTDL' => 1, - 'LTSUGAR_VERSION' => 1, - '_LT_COMPILER_BOILERPLATE' => 1, + 'LT_AC_PROG_SED' => 1, + 'LT_CMD_MAX_LEN' => 1, + 'LT_CONFIG_LTDL_DIR' => 1, + 'LT_FUNC_ARGZ' => 1, + 'LT_FUNC_DLSYM_USCORE' => 1, + 'LT_INIT' => 1, + 'LT_LANG' => 1, + 'LT_LIB_DLLOAD' => 1, + 'LT_LIB_M' => 1, + 'LT_OUTPUT' => 1, + 'LT_PATH_LD' => 1, + 'LT_PATH_NM' => 1, + 'LT_PROG_GCJ' => 1, 'LT_PROG_GO' => 1, - 'AC_PROG_NM' => 1, - 'AC_LIBTOOL_LANG_C_CONFIG' => 1, - '_LT_AC_SYS_COMPILER' => 1, - 'AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE' => 1, - '_PKG_SHORT_ERRORS_SUPPORTED' => 1, - 'AC_LIBTOOL_LANG_RC_CONFIG' => 1, - 'AM_SET_DEPDIR' => 1, - '_LTDL_SETUP' => 1, - 'AC_ENABLE_FAST_INSTALL' => 1, - 'LT_SYS_MODULE_EXT' => 1, - 'AX_CHECK_COMPILE_FLAG' => 1, - 'LT_SYS_DLOPEN_DEPLIBS' => 1, - '_LT_AC_PROG_ECHO_BACKSLASH' => 1, - '_AM_PROG_CC_C_O' => 1, - '_LT_PROG_LTMAIN' => 1, - 'AC_LIBTOOL_POSTDEP_PREDEP' => 1, - 'AC_LIBLTDL_INSTALLABLE' => 1, - 'AC_LIBTOOL_CONFIG' => 1, - 'AC_LIBTOOL_DLOPEN_SELF' => 1, - 'AM_MAKE_INCLUDE' => 1, - '_AC_PROG_LIBTOOL' => 1, + 'LT_PROG_RC' => 1, 'LT_SUPPORTED_TAG' => 1, - 'AC_LTDL_OBJDIR' => 1, - 'AM_AUX_DIR_EXPAND' => 1, - '_AC_AM_CONFIG_HEADER_HOOK' => 1, - 'AC_LIBTOOL_PICMODE' => 1, - 'AC_PROG_LD_RELOAD_FLAG' => 1, - 'LT_FUNC_ARGZ' => 1, - 'LT_AC_PROG_GCJ' => 1, - '_LT_AC_TAGCONFIG' => 1, - 'AC_LIBTOOL_COMPILER_OPTION' => 1, - 'AC_LIBTOOL_SETUP' => 1, + 'LT_SYS_DLOPEN_DEPLIBS' => 1, + 'LT_SYS_DLOPEN_SELF' => 1, + 'LT_SYS_DLSEARCH_PATH' => 1, + 'LT_SYS_MODULE_EXT' => 1, + 'LT_SYS_MODULE_PATH' => 1, + 'LT_SYS_SYMBOL_USCORE' => 1, + 'LT_WITH_LTDL' => 1, + 'PKG_CHECK_EXISTS' => 1, 'PKG_CHECK_MODULES' => 1, - 'AC_WITH_LTDL' => 1, - 'SHAVE_INIT' => 1, 'PKG_CHECK_MODULES_STATIC' => 1, - 'ACX_PTHREAD' => 1, - 'AC_DISABLE_STATIC' => 1, + 'PKG_CHECK_VAR' => 1, + 'PKG_INSTALLDIR' => 1, + 'PKG_NOARCH_INSTALLDIR' => 1, + 'PKG_PROG_PKG_CONFIG' => 1, + 'SHAVE_INIT' => 1, + '_AC_AM_CONFIG_HEADER_HOOK' => 1, + '_AC_PROG_LIBTOOL' => 1, + '_AM_AUTOCONF_VERSION' => 1, + '_AM_CONFIG_MACRO_DIRS' => 1, + '_AM_DEPENDENCIES' => 1, + '_AM_IF_OPTION' => 1, + '_AM_MANGLE_OPTION' => 1, + '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, + '_AM_PROG_CC_C_O' => 1, + '_AM_PROG_TAR' => 1, '_AM_SET_OPTION' => 1, - 'AC_LIBTOOL_CXX' => 1, - 'AC_DISABLE_SHARED' => 1, + '_AM_SET_OPTIONS' => 1, + '_AM_SUBST_NOTMAKE' => 1, + '_LTDL_SETUP' => 1, + '_LT_AC_CHECK_DLFCN' => 1, + '_LT_AC_FILE_LTDLL_C' => 1, + '_LT_AC_LANG_CXX' => 1, + '_LT_AC_LANG_CXX_CONFIG' => 1, + '_LT_AC_LANG_C_CONFIG' => 1, + '_LT_AC_LANG_F77' => 1, + '_LT_AC_LANG_F77_CONFIG' => 1, + '_LT_AC_LANG_GCJ' => 1, + '_LT_AC_LANG_GCJ_CONFIG' => 1, '_LT_AC_LANG_RC_CONFIG' => 1, + '_LT_AC_LOCK' => 1, + '_LT_AC_PROG_CXXCPP' => 1, + '_LT_AC_PROG_ECHO_BACKSLASH' => 1, + '_LT_AC_SHELL_INIT' => 1, + '_LT_AC_SYS_COMPILER' => 1, + '_LT_AC_SYS_LIBPATH_AIX' => 1, + '_LT_AC_TAGCONFIG' => 1, '_LT_AC_TAGVAR' => 1, - 'AC_LTDL_SHLIBEXT' => 1, - 'PKG_CHECK_EXISTS' => 1, - 'AC_LIBTOOL_LANG_CXX_CONFIG' => 1, - 'AC_LIBTOOL_PROG_LD_SHLIBS' => 1, - 'AC_LTDL_DLLIB' => 1, - 'AC_CONFIG_MACRO_DIR_TRACE' => 1, - '_LT_AC_LANG_GCJ_CONFIG' => 1, - 'AC_LIBTOOL_LANG_GCJ_CONFIG' => 1 + '_LT_AC_TRY_DLOPEN_SELF' => 1, + '_LT_CC_BASENAME' => 1, + '_LT_COMPILER_BOILERPLATE' => 1, + '_LT_COMPILER_OPTION' => 1, + '_LT_DLL_DEF_P' => 1, + '_LT_LIBOBJ' => 1, + '_LT_LINKER_BOILERPLATE' => 1, + '_LT_LINKER_OPTION' => 1, + '_LT_PATH_TOOL_PREFIX' => 1, + '_LT_PREPARE_SED_QUOTE_VARS' => 1, + '_LT_PROG_CXX' => 1, + '_LT_PROG_ECHO_BACKSLASH' => 1, + '_LT_PROG_F77' => 1, + '_LT_PROG_FC' => 1, + '_LT_PROG_LTMAIN' => 1, + '_LT_REQUIRED_DARWIN_CHECKS' => 1, + '_LT_WITH_SYSROOT' => 1, + '_PKG_SHORT_ERRORS_SUPPORTED' => 1, + '_SHAVE_ARG_ENABLE' => 1, + '_m4_warn' => 1, + 'include' => 1, + 'm4_include' => 1, + 'm4_pattern_allow' => 1, + 'm4_pattern_forbid' => 1 } ], 'Autom4te::Request' ), bless( [ '2', 1, [ - '/opt/homebrew/Cellar/autoconf/2.71/share/autoconf' + '/opt/homebrew/Cellar/autoconf/2.72/share/autoconf' ], [ - '/opt/homebrew/Cellar/autoconf/2.71/share/autoconf/autoconf/autoconf.m4f', + '/opt/homebrew/Cellar/autoconf/2.72/share/autoconf/autoconf/autoconf.m4f', 'aclocal.m4', 'configure.ac' ], { - 'AC_FC_PP_DEFINE' => 1, - 'AC_CONFIG_SUBDIRS' => 1, - 'm4_include' => 1, - 'AM_PROG_MOC' => 1, - 'AC_CONFIG_AUX_DIR' => 1, - 'm4_pattern_forbid' => 1, - 'AM_SILENT_RULES' => 1, - 'AM_PROG_CC_C_O' => 1, - 'AM_PROG_LIBTOOL' => 1, + 'AC_CANONICAL_BUILD' => 1, + 'AC_CANONICAL_HOST' => 1, 'AC_CANONICAL_SYSTEM' => 1, - 'AM_MAINTAINER_MODE' => 1, - 'AC_INIT' => 1, - 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, + 'AC_CANONICAL_TARGET' => 1, + 'AC_CONFIG_AUX_DIR' => 1, + 'AC_CONFIG_FILES' => 1, + 'AC_CONFIG_HEADERS' => 1, 'AC_CONFIG_LIBOBJ_DIR' => 1, - 'IT_PROG_INTLTOOL' => 1, - 'AM_PROG_AR' => 1, - 'sinclude' => 1, - 'AM_PROG_MKDIR_P' => 1, - 'LT_SUPPORTED_TAG' => 1, - 'AM_MAKEFILE_INCLUDE' => 1, - 'AC_FC_FREEFORM' => 1, - 'AM_INIT_AUTOMAKE' => 1, - 'AM_EXTRA_RECURSIVE_TARGETS' => 1, - 'AC_CANONICAL_HOST' => 1, 'AC_CONFIG_LINKS' => 1, - '_AM_COND_ELSE' => 1, - 'AM_XGETTEXT_OPTION' => 1, - 'AM_NLS' => 1, - 'AM_PROG_FC_C_O' => 1, - 'AC_CONFIG_HEADERS' => 1, - 'm4_pattern_allow' => 1, - 'AC_LIBSOURCE' => 1, - 'AM_PATH_GUILE' => 1, - 'AC_CONFIG_FILES' => 1, - 'GTK_DOC_CHECK' => 1, - '_AM_SUBST_NOTMAKE' => 1, - 'LT_INIT' => 1, - 'AM_AUTOMAKE_VERSION' => 1, - 'AH_OUTPUT' => 1, 'AC_CONFIG_MACRO_DIR_TRACE' => 1, + 'AC_CONFIG_SUBDIRS' => 1, + 'AC_DEFINE_TRACE_LITERAL' => 1, + 'AC_FC_FREEFORM' => 1, + 'AC_FC_PP_DEFINE' => 1, + 'AC_FC_PP_SRCEXT' => 1, + 'AC_FC_SRCEXT' => 1, + 'AC_INIT' => 1, + 'AC_LIBSOURCE' => 1, + 'AC_PROG_LIBTOOL' => 1, 'AC_REQUIRE_AUX_FILE' => 1, 'AC_SUBST' => 1, - 'AC_PROG_LIBTOOL' => 1, - '_AM_COND_IF' => 1, 'AC_SUBST_TRACE' => 1, - 'AC_FC_SRCEXT' => 1, - 'LT_CONFIG_LTDL_DIR' => 1, - '_m4_warn' => 1, - 'AC_CANONICAL_BUILD' => 1, - 'm4_sinclude' => 1, - 'AM_GNU_GETTEXT' => 1, + 'AH_OUTPUT' => 1, + 'AM_AUTOMAKE_VERSION' => 1, + 'AM_CONDITIONAL' => 1, 'AM_ENABLE_MULTILIB' => 1, - 'AC_CANONICAL_TARGET' => 1, + 'AM_EXTRA_RECURSIVE_TARGETS' => 1, + 'AM_GNU_GETTEXT' => 1, + 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, + 'AM_INIT_AUTOMAKE' => 1, + 'AM_MAINTAINER_MODE' => 1, + 'AM_MAKEFILE_INCLUDE' => 1, + 'AM_NLS' => 1, + 'AM_PATH_GUILE' => 1, + 'AM_POT_TOOLS' => 1, + 'AM_PROG_AR' => 1, + 'AM_PROG_CC_C_O' => 1, 'AM_PROG_CXX_C_O' => 1, + 'AM_PROG_F77_C_O' => 1, + 'AM_PROG_FC_C_O' => 1, + 'AM_PROG_LIBTOOL' => 1, + 'AM_PROG_MKDIR_P' => 1, + 'AM_PROG_MOC' => 1, + 'AM_SILENT_RULES' => 1, + 'AM_XGETTEXT_OPTION' => 1, + 'GTK_DOC_CHECK' => 1, + 'IT_PROG_INTLTOOL' => 1, + 'LT_CONFIG_LTDL_DIR' => 1, + 'LT_INIT' => 1, + 'LT_SUPPORTED_TAG' => 1, + '_AM_COND_ELSE' => 1, + '_AM_COND_ENDIF' => 1, + '_AM_COND_IF' => 1, '_AM_MAKEFILE_INCLUDE' => 1, + '_AM_SUBST_NOTMAKE' => 1, '_LT_AC_TAGCONFIG' => 1, - 'AM_POT_TOOLS' => 1, - 'AC_FC_PP_SRCEXT' => 1, - 'AM_CONDITIONAL' => 1, - 'AC_DEFINE_TRACE_LITERAL' => 1, - '_AM_COND_ENDIF' => 1, - 'AM_PROG_F77_C_O' => 1, - 'include' => 1 + '_m4_warn' => 1, + 'include' => 1, + 'm4_include' => 1, + 'm4_pattern_allow' => 1, + 'm4_pattern_forbid' => 1, + 'm4_sinclude' => 1, + 'sinclude' => 1 } ], 'Autom4te::Request' ), bless( [ '3', 1, [ - '/opt/homebrew/Cellar/autoconf/2.71/share/autoconf' + '/opt/homebrew/Cellar/autoconf/2.72/share/autoconf' ], [ - '/opt/homebrew/Cellar/autoconf/2.71/share/autoconf/autoconf/autoconf.m4f', + '/opt/homebrew/Cellar/autoconf/2.72/share/autoconf/autoconf/autoconf.m4f', 'aclocal.m4', - '/opt/homebrew/Cellar/autoconf/2.71/share/autoconf/autoconf/trailer.m4', + '/opt/homebrew/Cellar/autoconf/2.72/share/autoconf/autoconf/trailer.m4', 'configure.ac' ], { - 'AM_SILENT_RULES' => 1, - 'm4_pattern_forbid' => 1, - 'AM_PROG_MOC' => 1, + 'AC_CANONICAL_BUILD' => 1, + 'AC_CANONICAL_HOST' => 1, + 'AC_CANONICAL_SYSTEM' => 1, + 'AC_CANONICAL_TARGET' => 1, 'AC_CONFIG_AUX_DIR' => 1, + 'AC_CONFIG_FILES' => 1, + 'AC_CONFIG_HEADERS' => 1, + 'AC_CONFIG_LIBOBJ_DIR' => 1, + 'AC_CONFIG_LINKS' => 1, + 'AC_CONFIG_MACRO_DIR_TRACE' => 1, 'AC_CONFIG_SUBDIRS' => 1, + 'AC_DEFINE_TRACE_LITERAL' => 1, + 'AC_FC_FREEFORM' => 1, 'AC_FC_PP_DEFINE' => 1, - 'm4_include' => 1, - 'AM_MAINTAINER_MODE' => 1, - 'AM_PROG_LIBTOOL' => 1, - 'AM_PROG_CC_C_O' => 1, - 'AC_CANONICAL_SYSTEM' => 1, - 'AC_CONFIG_LIBOBJ_DIR' => 1, - 'IT_PROG_INTLTOOL' => 1, - 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, + 'AC_FC_PP_SRCEXT' => 1, + 'AC_FC_SRCEXT' => 1, 'AC_INIT' => 1, - 'LT_SUPPORTED_TAG' => 1, - 'AM_PROG_MKDIR_P' => 1, - 'sinclude' => 1, - 'AM_PROG_AR' => 1, - 'AM_INIT_AUTOMAKE' => 1, - 'AM_EXTRA_RECURSIVE_TARGETS' => 1, - 'AC_FC_FREEFORM' => 1, - 'AM_MAKEFILE_INCLUDE' => 1, - 'AC_CANONICAL_HOST' => 1, - 'AM_XGETTEXT_OPTION' => 1, - '_AM_COND_ELSE' => 1, - 'AC_CONFIG_LINKS' => 1, - 'm4_pattern_allow' => 1, - 'AC_CONFIG_HEADERS' => 1, - 'AM_PROG_FC_C_O' => 1, - 'AM_NLS' => 1, - 'GTK_DOC_CHECK' => 1, - 'AM_PATH_GUILE' => 1, - 'AC_CONFIG_FILES' => 1, 'AC_LIBSOURCE' => 1, - 'AM_AUTOMAKE_VERSION' => 1, - 'LT_INIT' => 1, - '_AM_SUBST_NOTMAKE' => 1, - '_AM_COND_IF' => 1, 'AC_PROG_LIBTOOL' => 1, - 'AC_CONFIG_MACRO_DIR_TRACE' => 1, 'AC_REQUIRE_AUX_FILE' => 1, 'AC_SUBST' => 1, + 'AC_SUBST_TRACE' => 1, 'AH_OUTPUT' => 1, - 'm4_sinclude' => 1, - 'AM_GNU_GETTEXT' => 1, + 'AM_AUTOMAKE_VERSION' => 1, + 'AM_CONDITIONAL' => 1, 'AM_ENABLE_MULTILIB' => 1, - '_m4_warn' => 1, - 'AC_CANONICAL_BUILD' => 1, - 'LT_CONFIG_LTDL_DIR' => 1, - 'AC_FC_SRCEXT' => 1, - 'AC_SUBST_TRACE' => 1, - 'AM_PROG_CXX_C_O' => 1, - 'AC_CANONICAL_TARGET' => 1, + 'AM_EXTRA_RECURSIVE_TARGETS' => 1, + 'AM_GNU_GETTEXT' => 1, + 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, + 'AM_INIT_AUTOMAKE' => 1, + 'AM_MAINTAINER_MODE' => 1, + 'AM_MAKEFILE_INCLUDE' => 1, + 'AM_NLS' => 1, + 'AM_PATH_GUILE' => 1, 'AM_POT_TOOLS' => 1, - 'AC_FC_PP_SRCEXT' => 1, + 'AM_PROG_AR' => 1, + 'AM_PROG_CC_C_O' => 1, + 'AM_PROG_CXX_C_O' => 1, + 'AM_PROG_F77_C_O' => 1, + 'AM_PROG_FC_C_O' => 1, + 'AM_PROG_LIBTOOL' => 1, + 'AM_PROG_MKDIR_P' => 1, + 'AM_PROG_MOC' => 1, + 'AM_SILENT_RULES' => 1, + 'AM_XGETTEXT_OPTION' => 1, + 'GTK_DOC_CHECK' => 1, + 'IT_PROG_INTLTOOL' => 1, + 'LT_CONFIG_LTDL_DIR' => 1, + 'LT_INIT' => 1, + 'LT_SUPPORTED_TAG' => 1, + '_AM_COND_ELSE' => 1, + '_AM_COND_ENDIF' => 1, + '_AM_COND_IF' => 1, '_AM_MAKEFILE_INCLUDE' => 1, + '_AM_SUBST_NOTMAKE' => 1, '_LT_AC_TAGCONFIG' => 1, - '_AM_COND_ENDIF' => 1, - 'AC_DEFINE_TRACE_LITERAL' => 1, - 'AM_CONDITIONAL' => 1, - 'AM_PROG_F77_C_O' => 1, - 'include' => 1 + '_m4_warn' => 1, + 'include' => 1, + 'm4_include' => 1, + 'm4_pattern_allow' => 1, + 'm4_pattern_forbid' => 1, + 'm4_sinclude' => 1, + 'sinclude' => 1 } ], 'Autom4te::Request' ) ); diff --git a/Sources/Cfyaml/autom4te.cache/traces.0 b/Sources/Cfyaml/autom4te.cache/traces.0 index 1e9c08134..7e9dfb848 100644 --- a/Sources/Cfyaml/autom4te.cache/traces.0 +++ b/Sources/Cfyaml/autom4te.cache/traces.0 @@ -34,11 +34,11 @@ _LT_SETUP m4_define([LT_INIT]) ]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:100: -1- AU_DEFUN([AC_PROG_LIBTOOL], [m4_if($#, 0, [LT_INIT], [LT_INIT($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/libtool.m4:100: -1- AC_DEFUN([AC_PROG_LIBTOOL], [m4_warn([obsolete], [The macro `AC_PROG_LIBTOOL' is obsolete. +m4trace:/opt/homebrew/share/aclocal/libtool.m4:100: -1- AC_DEFUN([AC_PROG_LIBTOOL], [m4_warn([obsolete], [The macro 'AC_PROG_LIBTOOL' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_INIT], [LT_INIT($@)])]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:101: -1- AU_DEFUN([AM_PROG_LIBTOOL], [m4_if($#, 0, [LT_INIT], [LT_INIT($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/libtool.m4:101: -1- AC_DEFUN([AM_PROG_LIBTOOL], [m4_warn([obsolete], [The macro `AM_PROG_LIBTOOL' is obsolete. +m4trace:/opt/homebrew/share/aclocal/libtool.m4:101: -1- AC_DEFUN([AM_PROG_LIBTOOL], [m4_warn([obsolete], [The macro 'AM_PROG_LIBTOOL' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_INIT], [LT_INIT($@)])]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:621: -1- AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} @@ -141,23 +141,23 @@ m4_case([$1], [m4_fatal([$0: unsupported language: "$1"])])])dnl ]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:917: -1- AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) -m4trace:/opt/homebrew/share/aclocal/libtool.m4:917: -1- AC_DEFUN([AC_LIBTOOL_CXX], [m4_warn([obsolete], [The macro `AC_LIBTOOL_CXX' is obsolete. +m4trace:/opt/homebrew/share/aclocal/libtool.m4:917: -1- AC_DEFUN([AC_LIBTOOL_CXX], [m4_warn([obsolete], [The macro 'AC_LIBTOOL_CXX' is obsolete. You should run autoupdate.])dnl LT_LANG(C++)]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:918: -1- AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) -m4trace:/opt/homebrew/share/aclocal/libtool.m4:918: -1- AC_DEFUN([AC_LIBTOOL_F77], [m4_warn([obsolete], [The macro `AC_LIBTOOL_F77' is obsolete. +m4trace:/opt/homebrew/share/aclocal/libtool.m4:918: -1- AC_DEFUN([AC_LIBTOOL_F77], [m4_warn([obsolete], [The macro 'AC_LIBTOOL_F77' is obsolete. You should run autoupdate.])dnl LT_LANG(Fortran 77)]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:919: -1- AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) -m4trace:/opt/homebrew/share/aclocal/libtool.m4:919: -1- AC_DEFUN([AC_LIBTOOL_FC], [m4_warn([obsolete], [The macro `AC_LIBTOOL_FC' is obsolete. +m4trace:/opt/homebrew/share/aclocal/libtool.m4:919: -1- AC_DEFUN([AC_LIBTOOL_FC], [m4_warn([obsolete], [The macro 'AC_LIBTOOL_FC' is obsolete. You should run autoupdate.])dnl LT_LANG(Fortran)]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:920: -1- AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) -m4trace:/opt/homebrew/share/aclocal/libtool.m4:920: -1- AC_DEFUN([AC_LIBTOOL_GCJ], [m4_warn([obsolete], [The macro `AC_LIBTOOL_GCJ' is obsolete. +m4trace:/opt/homebrew/share/aclocal/libtool.m4:920: -1- AC_DEFUN([AC_LIBTOOL_GCJ], [m4_warn([obsolete], [The macro 'AC_LIBTOOL_GCJ' is obsolete. You should run autoupdate.])dnl LT_LANG(Java)]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:921: -1- AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) -m4trace:/opt/homebrew/share/aclocal/libtool.m4:921: -1- AC_DEFUN([AC_LIBTOOL_RC], [m4_warn([obsolete], [The macro `AC_LIBTOOL_RC' is obsolete. +m4trace:/opt/homebrew/share/aclocal/libtool.m4:921: -1- AC_DEFUN([AC_LIBTOOL_RC], [m4_warn([obsolete], [The macro 'AC_LIBTOOL_RC' is obsolete. You should run autoupdate.])dnl LT_LANG(Windows Resource)]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:1244: -1- AC_DEFUN([_LT_WITH_SYSROOT], [m4_require([_LT_DECL_SED])dnl @@ -231,7 +231,7 @@ else fi ]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:1631: -1- AU_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [m4_if($#, 0, [_LT_COMPILER_OPTION], [_LT_COMPILER_OPTION($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/libtool.m4:1631: -1- AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [m4_warn([obsolete], [The macro `AC_LIBTOOL_COMPILER_OPTION' is obsolete. +m4trace:/opt/homebrew/share/aclocal/libtool.m4:1631: -1- AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [m4_warn([obsolete], [The macro 'AC_LIBTOOL_COMPILER_OPTION' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [_LT_COMPILER_OPTION], [_LT_COMPILER_OPTION($@)])]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:1640: -1- AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl @@ -267,7 +267,7 @@ else fi ]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:1675: -1- AU_DEFUN([AC_LIBTOOL_LINKER_OPTION], [m4_if($#, 0, [_LT_LINKER_OPTION], [_LT_LINKER_OPTION($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/libtool.m4:1675: -1- AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [m4_warn([obsolete], [The macro `AC_LIBTOOL_LINKER_OPTION' is obsolete. +m4trace:/opt/homebrew/share/aclocal/libtool.m4:1675: -1- AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [m4_warn([obsolete], [The macro 'AC_LIBTOOL_LINKER_OPTION' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [_LT_LINKER_OPTION], [_LT_LINKER_OPTION($@)])]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:1682: -1- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl @@ -407,7 +407,7 @@ _LT_DECL([], [max_cmd_len], [0], [What is the maximum length of a command?]) ]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:1821: -1- AU_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [m4_if($#, 0, [LT_CMD_MAX_LEN], [LT_CMD_MAX_LEN($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/libtool.m4:1821: -1- AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [m4_warn([obsolete], [The macro `AC_LIBTOOL_SYS_MAX_CMD_LEN' is obsolete. +m4trace:/opt/homebrew/share/aclocal/libtool.m4:1821: -1- AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [m4_warn([obsolete], [The macro 'AC_LIBTOOL_SYS_MAX_CMD_LEN' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_CMD_MAX_LEN], [LT_CMD_MAX_LEN($@)])]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:1932: -1- AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl @@ -533,7 +533,7 @@ _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], [Whether dlopen of statically linked programs is supported]) ]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:2057: -1- AU_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [m4_if($#, 0, [LT_SYS_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/libtool.m4:2057: -1- AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [m4_warn([obsolete], [The macro `AC_LIBTOOL_DLOPEN_SELF' is obsolete. +m4trace:/opt/homebrew/share/aclocal/libtool.m4:2057: -1- AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [m4_warn([obsolete], [The macro 'AC_LIBTOOL_DLOPEN_SELF' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_SYS_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF($@)])]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:3175: -1- AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl @@ -596,7 +596,7 @@ _LT_DECL([], [MAGIC_CMD], [0], [Used to examine libraries when file_magic_cmd begins with "file"])dnl ]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:3237: -1- AU_DEFUN([AC_PATH_TOOL_PREFIX], [m4_if($#, 0, [_LT_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/libtool.m4:3237: -1- AC_DEFUN([AC_PATH_TOOL_PREFIX], [m4_warn([obsolete], [The macro `AC_PATH_TOOL_PREFIX' is obsolete. +m4trace:/opt/homebrew/share/aclocal/libtool.m4:3237: -1- AC_DEFUN([AC_PATH_TOOL_PREFIX], [m4_warn([obsolete], [The macro 'AC_PATH_TOOL_PREFIX' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [_LT_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX($@)])]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:3260: -1- AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl @@ -686,11 +686,11 @@ AC_SUBST([LD]) _LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) ]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:3349: -1- AU_DEFUN([AM_PROG_LD], [m4_if($#, 0, [LT_PATH_LD], [LT_PATH_LD($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/libtool.m4:3349: -1- AC_DEFUN([AM_PROG_LD], [m4_warn([obsolete], [The macro `AM_PROG_LD' is obsolete. +m4trace:/opt/homebrew/share/aclocal/libtool.m4:3349: -1- AC_DEFUN([AM_PROG_LD], [m4_warn([obsolete], [The macro 'AM_PROG_LD' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_PATH_LD], [LT_PATH_LD($@)])]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:3350: -1- AU_DEFUN([AC_PROG_LD], [m4_if($#, 0, [LT_PATH_LD], [LT_PATH_LD($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/libtool.m4:3350: -1- AC_DEFUN([AC_PROG_LD], [m4_warn([obsolete], [The macro `AC_PROG_LD' is obsolete. +m4trace:/opt/homebrew/share/aclocal/libtool.m4:3350: -1- AC_DEFUN([AC_PROG_LD], [m4_warn([obsolete], [The macro 'AC_PROG_LD' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_PATH_LD], [LT_PATH_LD($@)])]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:3679: -1- AC_DEFUN([LT_PATH_NM], [AC_REQUIRE([AC_PROG_CC])dnl @@ -786,11 +786,11 @@ AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], rm -f conftest*]) ]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:3774: -1- AU_DEFUN([AM_PROG_NM], [m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/libtool.m4:3774: -1- AC_DEFUN([AM_PROG_NM], [m4_warn([obsolete], [The macro `AM_PROG_NM' is obsolete. +m4trace:/opt/homebrew/share/aclocal/libtool.m4:3774: -1- AC_DEFUN([AM_PROG_NM], [m4_warn([obsolete], [The macro 'AM_PROG_NM' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:3775: -1- AU_DEFUN([AC_PROG_NM], [m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/libtool.m4:3775: -1- AC_DEFUN([AC_PROG_NM], [m4_warn([obsolete], [The macro `AC_PROG_NM' is obsolete. +m4trace:/opt/homebrew/share/aclocal/libtool.m4:3775: -1- AC_DEFUN([AC_PROG_NM], [m4_warn([obsolete], [The macro 'AC_PROG_NM' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:3846: -1- AC_DEFUN([_LT_DLL_DEF_P], [dnl @@ -818,7 +818,7 @@ esac AC_SUBST([LIBM]) ]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:3879: -1- AU_DEFUN([AC_CHECK_LIBM], [m4_if($#, 0, [LT_LIB_M], [LT_LIB_M($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/libtool.m4:3879: -1- AC_DEFUN([AC_CHECK_LIBM], [m4_warn([obsolete], [The macro `AC_CHECK_LIBM' is obsolete. +m4trace:/opt/homebrew/share/aclocal/libtool.m4:3879: -1- AC_DEFUN([AC_CHECK_LIBM], [m4_warn([obsolete], [The macro 'AC_CHECK_LIBM' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_LIB_M], [LT_LIB_M($@)])]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:8145: -1- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], @@ -828,7 +828,7 @@ m4trace:/opt/homebrew/share/aclocal/libtool.m4:8145: -1- AC_DEFUN([LT_PROG_GCJ], AC_SUBST(GCJFLAGS)])])[]dnl ]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:8154: -1- AU_DEFUN([LT_AC_PROG_GCJ], [m4_if($#, 0, [LT_PROG_GCJ], [LT_PROG_GCJ($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/libtool.m4:8154: -1- AC_DEFUN([LT_AC_PROG_GCJ], [m4_warn([obsolete], [The macro `LT_AC_PROG_GCJ' is obsolete. +m4trace:/opt/homebrew/share/aclocal/libtool.m4:8154: -1- AC_DEFUN([LT_AC_PROG_GCJ], [m4_warn([obsolete], [The macro 'LT_AC_PROG_GCJ' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_PROG_GCJ], [LT_PROG_GCJ($@)])]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:8161: -1- AC_DEFUN([LT_PROG_GO], [AC_CHECK_TOOL(GOC, gccgo,) @@ -836,11 +836,11 @@ m4trace:/opt/homebrew/share/aclocal/libtool.m4:8161: -1- AC_DEFUN([LT_PROG_GO], m4trace:/opt/homebrew/share/aclocal/libtool.m4:8168: -1- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:8173: -1- AU_DEFUN([LT_AC_PROG_RC], [m4_if($#, 0, [LT_PROG_RC], [LT_PROG_RC($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/libtool.m4:8173: -1- AC_DEFUN([LT_AC_PROG_RC], [m4_warn([obsolete], [The macro `LT_AC_PROG_RC' is obsolete. +m4trace:/opt/homebrew/share/aclocal/libtool.m4:8173: -1- AC_DEFUN([LT_AC_PROG_RC], [m4_warn([obsolete], [The macro 'LT_AC_PROG_RC' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_PROG_RC], [LT_PROG_RC($@)])]) m4trace:/opt/homebrew/share/aclocal/libtool.m4:8301: -1- AU_DEFUN([LT_AC_PROG_SED], [m4_if($#, 0, [AC_PROG_SED], [AC_PROG_SED($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/libtool.m4:8301: -1- AC_DEFUN([LT_AC_PROG_SED], [m4_warn([obsolete], [The macro `LT_AC_PROG_SED' is obsolete. +m4trace:/opt/homebrew/share/aclocal/libtool.m4:8301: -1- AC_DEFUN([LT_AC_PROG_SED], [m4_warn([obsolete], [The macro 'LT_AC_PROG_SED' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [AC_PROG_SED], [AC_PROG_SED($@)])]) m4trace:/opt/homebrew/share/aclocal/ltargz.m4:13: -1- AC_DEFUN([LT_FUNC_ARGZ], [ @@ -922,7 +922,7 @@ _$0() ]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:82: -1- AU_DEFUN([AC_LIBLTDL_CONVENIENCE], [_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) _LTDL_CONVENIENCE]) -m4trace:/opt/homebrew/share/aclocal/ltdl.m4:82: -1- AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [m4_warn([obsolete], [The macro `AC_LIBLTDL_CONVENIENCE' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltdl.m4:82: -1- AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [m4_warn([obsolete], [The macro 'AC_LIBLTDL_CONVENIENCE' is obsolete. You should run autoupdate.])dnl _LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) _LTDL_CONVENIENCE]) @@ -937,7 +937,7 @@ _$0() ]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:138: -1- AU_DEFUN([AC_LIBLTDL_INSTALLABLE], [_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) _LTDL_INSTALLABLE]) -m4trace:/opt/homebrew/share/aclocal/ltdl.m4:138: -1- AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [m4_warn([obsolete], [The macro `AC_LIBLTDL_INSTALLABLE' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltdl.m4:138: -1- AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [m4_warn([obsolete], [The macro 'AC_LIBLTDL_INSTALLABLE' is obsolete. You should run autoupdate.])dnl _LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) _LTDL_INSTALLABLE]) @@ -1069,15 +1069,15 @@ AC_CONFIG_COMMANDS_PRE([ m4_define([LTDL_INIT]) ]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:353: -1- AU_DEFUN([AC_LIB_LTDL], [LTDL_INIT($@)]) -m4trace:/opt/homebrew/share/aclocal/ltdl.m4:353: -1- AC_DEFUN([AC_LIB_LTDL], [m4_warn([obsolete], [The macro `AC_LIB_LTDL' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltdl.m4:353: -1- AC_DEFUN([AC_LIB_LTDL], [m4_warn([obsolete], [The macro 'AC_LIB_LTDL' is obsolete. You should run autoupdate.])dnl LTDL_INIT($@)]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:354: -1- AU_DEFUN([AC_WITH_LTDL], [LTDL_INIT($@)]) -m4trace:/opt/homebrew/share/aclocal/ltdl.m4:354: -1- AC_DEFUN([AC_WITH_LTDL], [m4_warn([obsolete], [The macro `AC_WITH_LTDL' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltdl.m4:354: -1- AC_DEFUN([AC_WITH_LTDL], [m4_warn([obsolete], [The macro 'AC_WITH_LTDL' is obsolete. You should run autoupdate.])dnl LTDL_INIT($@)]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:355: -1- AU_DEFUN([LT_WITH_LTDL], [LTDL_INIT($@)]) -m4trace:/opt/homebrew/share/aclocal/ltdl.m4:355: -1- AC_DEFUN([LT_WITH_LTDL], [m4_warn([obsolete], [The macro `LT_WITH_LTDL' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltdl.m4:355: -1- AC_DEFUN([LT_WITH_LTDL], [m4_warn([obsolete], [The macro 'LT_WITH_LTDL' is obsolete. You should run autoupdate.])dnl LTDL_INIT($@)]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:368: -1- AC_DEFUN([_LTDL_SETUP], [AC_REQUIRE([AC_PROG_CC])dnl @@ -1234,7 +1234,7 @@ if test yes != "$lt_cv_sys_dlopen_deplibs"; then fi ]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:546: -1- AU_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [m4_if($#, 0, [LT_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/ltdl.m4:546: -1- AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [m4_warn([obsolete], [The macro `AC_LTDL_SYS_DLOPEN_DEPLIBS' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltdl.m4:546: -1- AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [m4_warn([obsolete], [The macro 'AC_LTDL_SYS_DLOPEN_DEPLIBS' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS($@)])]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:553: -1- AC_DEFUN([LT_SYS_MODULE_EXT], [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl @@ -1263,7 +1263,7 @@ if test -n "$shared_archive_member_spec"; then fi ]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:581: -1- AU_DEFUN([AC_LTDL_SHLIBEXT], [m4_if($#, 0, [LT_SYS_MODULE_EXT], [LT_SYS_MODULE_EXT($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/ltdl.m4:581: -1- AC_DEFUN([AC_LTDL_SHLIBEXT], [m4_warn([obsolete], [The macro `AC_LTDL_SHLIBEXT' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltdl.m4:581: -1- AC_DEFUN([AC_LTDL_SHLIBEXT], [m4_warn([obsolete], [The macro 'AC_LTDL_SHLIBEXT' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_SYS_MODULE_EXT], [LT_SYS_MODULE_EXT($@)])]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:588: -1- AC_DEFUN([LT_SYS_MODULE_PATH], [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl @@ -1276,7 +1276,7 @@ if test -n "$lt_cv_module_path_var"; then fi ]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:600: -1- AU_DEFUN([AC_LTDL_SHLIBPATH], [m4_if($#, 0, [LT_SYS_MODULE_PATH], [LT_SYS_MODULE_PATH($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/ltdl.m4:600: -1- AC_DEFUN([AC_LTDL_SHLIBPATH], [m4_warn([obsolete], [The macro `AC_LTDL_SHLIBPATH' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltdl.m4:600: -1- AC_DEFUN([AC_LTDL_SHLIBPATH], [m4_warn([obsolete], [The macro 'AC_LTDL_SHLIBPATH' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_SYS_MODULE_PATH], [LT_SYS_MODULE_PATH($@)])]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:607: -1- AC_DEFUN([LT_SYS_DLSEARCH_PATH], [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl @@ -1298,7 +1298,7 @@ if test -n "$lt_cv_sys_dlsearch_path"; then fi ]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:628: -1- AU_DEFUN([AC_LTDL_SYSSEARCHPATH], [m4_if($#, 0, [LT_SYS_DLSEARCH_PATH], [LT_SYS_DLSEARCH_PATH($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/ltdl.m4:628: -1- AC_DEFUN([AC_LTDL_SYSSEARCHPATH], [m4_warn([obsolete], [The macro `AC_LTDL_SYSSEARCHPATH' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltdl.m4:628: -1- AC_DEFUN([AC_LTDL_SYSSEARCHPATH], [m4_warn([obsolete], [The macro 'AC_LTDL_SYSSEARCHPATH' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_SYS_DLSEARCH_PATH], [LT_SYS_DLSEARCH_PATH($@)])]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:654: -1- AC_DEFUN([LT_LIB_DLLOAD], [m4_pattern_allow([^LT_DLLOADERS$]) @@ -1394,7 +1394,7 @@ LIBS=$lt_dlload_save_LIBS AC_LANG_POP ]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:749: -1- AU_DEFUN([AC_LTDL_DLLIB], [m4_if($#, 0, [LT_LIB_DLLOAD], [LT_LIB_DLLOAD($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/ltdl.m4:749: -1- AC_DEFUN([AC_LTDL_DLLIB], [m4_warn([obsolete], [The macro `AC_LTDL_DLLIB' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltdl.m4:749: -1- AC_DEFUN([AC_LTDL_DLLIB], [m4_warn([obsolete], [The macro 'AC_LTDL_DLLIB' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_LIB_DLLOAD], [LT_LIB_DLLOAD($@)])]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:757: -1- AC_DEFUN([LT_SYS_SYMBOL_USCORE], [m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl @@ -1432,7 +1432,7 @@ _LT_EOF AC_SUBST([sys_symbol_underscore]) ]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:794: -1- AU_DEFUN([AC_LTDL_SYMBOL_USCORE], [m4_if($#, 0, [LT_SYS_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/ltdl.m4:794: -1- AC_DEFUN([AC_LTDL_SYMBOL_USCORE], [m4_warn([obsolete], [The macro `AC_LTDL_SYMBOL_USCORE' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltdl.m4:794: -1- AC_DEFUN([AC_LTDL_SYMBOL_USCORE], [m4_warn([obsolete], [The macro 'AC_LTDL_SYMBOL_USCORE' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_SYS_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE($@)])]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:801: -1- AC_DEFUN([LT_FUNC_DLSYM_USCORE], [AC_REQUIRE([_LT_COMPILER_PIC])dnl for lt_prog_compiler_wl @@ -1540,7 +1540,7 @@ if test yes = "$libltdl_cv_need_uscore"; then fi ]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:908: -1- AU_DEFUN([AC_LTDL_DLSYM_USCORE], [m4_if($#, 0, [LT_FUNC_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/ltdl.m4:908: -1- AC_DEFUN([AC_LTDL_DLSYM_USCORE], [m4_warn([obsolete], [The macro `AC_LTDL_DLSYM_USCORE' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltdl.m4:908: -1- AC_DEFUN([AC_LTDL_DLSYM_USCORE], [m4_warn([obsolete], [The macro 'AC_LTDL_DLSYM_USCORE' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_FUNC_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE($@)])]) m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:14: -1- AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) @@ -1549,7 +1549,7 @@ AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'dlopen' option into LT_INIT's first parameter.]) ]) -m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:113: -1- AC_DEFUN([AC_LIBTOOL_DLOPEN], [m4_warn([obsolete], [The macro `AC_LIBTOOL_DLOPEN' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:113: -1- AC_DEFUN([AC_LIBTOOL_DLOPEN], [m4_warn([obsolete], [The macro 'AC_LIBTOOL_DLOPEN' is obsolete. You should run autoupdate.])dnl _LT_SET_OPTION([LT_INIT], [dlopen]) AC_DIAGNOSE([obsolete], @@ -1562,7 +1562,7 @@ AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'win32-dll' option into LT_INIT's first parameter.]) ]) -m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:148: -1- AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [m4_warn([obsolete], [The macro `AC_LIBTOOL_WIN32_DLL' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:148: -1- AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [m4_warn([obsolete], [The macro 'AC_LIBTOOL_WIN32_DLL' is obsolete. You should run autoupdate.])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl _LT_SET_OPTION([LT_INIT], [win32-dll]) @@ -1575,11 +1575,11 @@ m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:197: -1- AC_DEFUN([AC_ENABLE_SH m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:201: -1- AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) ]) m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:205: -1- AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) -m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:205: -1- AC_DEFUN([AM_ENABLE_SHARED], [m4_warn([obsolete], [The macro `AM_ENABLE_SHARED' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:205: -1- AC_DEFUN([AM_ENABLE_SHARED], [m4_warn([obsolete], [The macro 'AM_ENABLE_SHARED' is obsolete. You should run autoupdate.])dnl AC_ENABLE_SHARED($@)]) m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:206: -1- AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) -m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:206: -1- AC_DEFUN([AM_DISABLE_SHARED], [m4_warn([obsolete], [The macro `AM_DISABLE_SHARED' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:206: -1- AC_DEFUN([AM_DISABLE_SHARED], [m4_warn([obsolete], [The macro 'AM_DISABLE_SHARED' is obsolete. You should run autoupdate.])dnl AC_DISABLE_SHARED($@)]) m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:251: -1- AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) @@ -1587,11 +1587,11 @@ m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:251: -1- AC_DEFUN([AC_ENABLE_ST m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:255: -1- AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) ]) m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:259: -1- AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) -m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:259: -1- AC_DEFUN([AM_ENABLE_STATIC], [m4_warn([obsolete], [The macro `AM_ENABLE_STATIC' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:259: -1- AC_DEFUN([AM_ENABLE_STATIC], [m4_warn([obsolete], [The macro 'AM_ENABLE_STATIC' is obsolete. You should run autoupdate.])dnl AC_ENABLE_STATIC($@)]) m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:260: -1- AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) -m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:260: -1- AC_DEFUN([AM_DISABLE_STATIC], [m4_warn([obsolete], [The macro `AM_DISABLE_STATIC' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:260: -1- AC_DEFUN([AM_DISABLE_STATIC], [m4_warn([obsolete], [The macro 'AM_DISABLE_STATIC' is obsolete. You should run autoupdate.])dnl AC_DISABLE_STATIC($@)]) m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:305: -1- AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) @@ -1599,7 +1599,7 @@ AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'fast-install' option into LT_INIT's first parameter.]) ]) -m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:305: -1- AC_DEFUN([AC_ENABLE_FAST_INSTALL], [m4_warn([obsolete], [The macro `AC_ENABLE_FAST_INSTALL' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:305: -1- AC_DEFUN([AC_ENABLE_FAST_INSTALL], [m4_warn([obsolete], [The macro 'AC_ENABLE_FAST_INSTALL' is obsolete. You should run autoupdate.])dnl _LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) AC_DIAGNOSE([obsolete], @@ -1611,7 +1611,7 @@ AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'disable-fast-install' option into LT_INIT's first parameter.]) ]) -m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:312: -1- AC_DEFUN([AC_DISABLE_FAST_INSTALL], [m4_warn([obsolete], [The macro `AC_DISABLE_FAST_INSTALL' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:312: -1- AC_DEFUN([AC_DISABLE_FAST_INSTALL], [m4_warn([obsolete], [The macro 'AC_DISABLE_FAST_INSTALL' is obsolete. You should run autoupdate.])dnl _LT_SET_OPTION([LT_INIT], [disable-fast-install]) AC_DIAGNOSE([obsolete], @@ -1623,7 +1623,7 @@ AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'pic-only' option into LT_INIT's first parameter.]) ]) -m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:411: -1- AC_DEFUN([AC_LIBTOOL_PICMODE], [m4_warn([obsolete], [The macro `AC_LIBTOOL_PICMODE' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltoptions.m4:411: -1- AC_DEFUN([AC_LIBTOOL_PICMODE], [m4_warn([obsolete], [The macro 'AC_LIBTOOL_PICMODE' is obsolete. You should run autoupdate.])dnl _LT_SET_OPTION([LT_INIT], [pic-only]) AC_DIAGNOSE([obsolete], @@ -1866,10 +1866,31 @@ unknown) esac AC_SUBST([AR])dnl ]) +m4trace:/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/as.m4:11: -1- AC_DEFUN([AM_PROG_AS], [# By default we simply use the C compiler to build assembly code. +AC_REQUIRE([AC_PROG_CC]) +test "${CCAS+set}" = set || CCAS=$CC +test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS +AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)]) +AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)]) +_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl +]) m4trace:/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/auxdir.m4:47: -1- AC_DEFUN([AM_AUX_DIR_EXPAND], [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` ]) +m4trace:/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/cond-if.m4:23: -1- AC_DEFUN([AM_COND_IF], [m4_ifndef([_AM_COND_VALUE_$1], + [m4_fatal([$0: no such condition "$1"])])dnl +_AM_COND_IF([$1])dnl +if test -z "$$1_TRUE"; then : + m4_n([$2])[]dnl +m4_ifval([$3], +[_AM_COND_ELSE([$1])dnl +else + $3 +])dnl +_AM_COND_ENDIF([$1])dnl +fi[]dnl +]) m4trace:/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/cond.m4:12: -1- AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl @@ -2609,7 +2630,7 @@ AC_SUBST([am__untar]) ]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?A[CHUM]_]) m4trace:configure.ac:3: -1- m4_pattern_forbid([_AC_]) -m4trace:configure.ac:3: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS']) +m4trace:configure.ac:3: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section 'AC_LIBOBJ vs LIBOBJS']) m4trace:configure.ac:3: -1- m4_pattern_allow([^AS_FLAGS$]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?m4_]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^dnl$]) @@ -2659,72 +2680,83 @@ m4trace:configure.ac:3: -1- m4_pattern_allow([^LIBS$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^build_alias$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^host_alias$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^target_alias$]) -m4trace:configure.ac:8: -1- _m4_warn([obsolete], [The macro `AC_CONFIG_HEADER' is obsolete. -You should run autoupdate.], [./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from... -configure.ac:8: the top level]) -m4trace:configure.ac:9: -1- AC_CONFIG_MACRO_DIR([m4]) -m4trace:configure.ac:9: -1- AC_CONFIG_MACRO_DIR_TRACE([m4]) -m4trace:configure.ac:11: -1- AM_INIT_AUTOMAKE([foreign 1.8.5 -Wall subdir-objects ]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$]) -m4trace:configure.ac:11: -1- AM_SET_CURRENT_AUTOMAKE_VERSION -m4trace:configure.ac:11: -1- AM_AUTOMAKE_VERSION([1.16.5]) -m4trace:configure.ac:11: -1- _AM_AUTOCONF_VERSION([2.71]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^INSTALL_DATA$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^am__isrc$]) -m4trace:configure.ac:11: -1- _AM_SUBST_NOTMAKE([am__isrc]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^CYGPATH_W$]) -m4trace:configure.ac:11: -1- _AM_SET_OPTIONS([foreign 1.8.5 -Wall subdir-objects ]) -m4trace:configure.ac:11: -1- _AM_SET_OPTION([foreign]) -m4trace:configure.ac:11: -2- _AM_MANGLE_OPTION([foreign]) -m4trace:configure.ac:11: -1- _AM_SET_OPTION([1.8.5]) -m4trace:configure.ac:11: -2- _AM_MANGLE_OPTION([1.8.5]) -m4trace:configure.ac:11: -1- _AM_SET_OPTION([-Wall]) -m4trace:configure.ac:11: -2- _AM_MANGLE_OPTION([-Wall]) -m4trace:configure.ac:11: -1- _AM_SET_OPTION([subdir-objects]) -m4trace:configure.ac:11: -2- _AM_MANGLE_OPTION([subdir-objects]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^PACKAGE$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^VERSION$]) -m4trace:configure.ac:11: -1- _AM_IF_OPTION([no-define], [], [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^M4$]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^ACLOCAL_AMFLAGS$]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^build$]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^build_cpu$]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^build_vendor$]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^build_os$]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^host$]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^host_cpu$]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^host_vendor$]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^host_os$]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^target$]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^target_cpu$]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^target_vendor$]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^target_os$]) +m4trace:configure.ac:20: -1- AC_CONFIG_MACRO_DIR([m4]) +m4trace:configure.ac:20: -1- AC_CONFIG_MACRO_DIR_TRACE([m4]) +m4trace:configure.ac:21: -1- AM_INIT_AUTOMAKE([foreign 1.8.5 subdir-objects -Wno-portability]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$]) +m4trace:configure.ac:21: -1- AM_SET_CURRENT_AUTOMAKE_VERSION +m4trace:configure.ac:21: -1- AM_AUTOMAKE_VERSION([1.16.5]) +m4trace:configure.ac:21: -1- _AM_AUTOCONF_VERSION([2.72]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INSTALL_DATA$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^am__isrc$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([am__isrc]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^CYGPATH_W$]) +m4trace:configure.ac:21: -1- _AM_SET_OPTIONS([foreign 1.8.5 subdir-objects -Wno-portability]) +m4trace:configure.ac:21: -1- _AM_SET_OPTION([foreign]) +m4trace:configure.ac:21: -2- _AM_MANGLE_OPTION([foreign]) +m4trace:configure.ac:21: -1- _AM_SET_OPTION([1.8.5]) +m4trace:configure.ac:21: -2- _AM_MANGLE_OPTION([1.8.5]) +m4trace:configure.ac:21: -1- _AM_SET_OPTION([subdir-objects]) +m4trace:configure.ac:21: -2- _AM_MANGLE_OPTION([subdir-objects]) +m4trace:configure.ac:21: -1- _AM_SET_OPTION([-Wno-portability]) +m4trace:configure.ac:21: -2- _AM_MANGLE_OPTION([-Wno-portability]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:21: -1- _AM_IF_OPTION([no-define], [], [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])]) -m4trace:configure.ac:11: -2- _AM_MANGLE_OPTION([no-define]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^PACKAGE$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^VERSION$]) -m4trace:configure.ac:11: -1- AM_SANITY_CHECK -m4trace:configure.ac:11: -1- AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) -m4trace:configure.ac:11: -1- AM_MISSING_HAS_RUN -m4trace:configure.ac:11: -1- AM_AUX_DIR_EXPAND -m4trace:configure.ac:11: -1- m4_pattern_allow([^ACLOCAL$]) -m4trace:configure.ac:11: -1- AM_MISSING_PROG([AUTOCONF], [autoconf]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AUTOCONF$]) -m4trace:configure.ac:11: -1- AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AUTOMAKE$]) -m4trace:configure.ac:11: -1- AM_MISSING_PROG([AUTOHEADER], [autoheader]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AUTOHEADER$]) -m4trace:configure.ac:11: -1- AM_MISSING_PROG([MAKEINFO], [makeinfo]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^MAKEINFO$]) -m4trace:configure.ac:11: -1- AM_PROG_INSTALL_SH -m4trace:configure.ac:11: -1- m4_pattern_allow([^install_sh$]) -m4trace:configure.ac:11: -1- AM_PROG_INSTALL_STRIP -m4trace:configure.ac:11: -1- m4_pattern_allow([^STRIP$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^MKDIR_P$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^mkdir_p$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AWK$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^SET_MAKE$]) -m4trace:configure.ac:11: -1- AM_SET_LEADING_DOT -m4trace:configure.ac:11: -1- m4_pattern_allow([^am__leading_dot$]) -m4trace:configure.ac:11: -1- _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], +m4trace:configure.ac:21: -2- _AM_MANGLE_OPTION([no-define]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:21: -1- AM_SANITY_CHECK +m4trace:configure.ac:21: -1- AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) +m4trace:configure.ac:21: -1- AM_MISSING_HAS_RUN +m4trace:configure.ac:21: -1- AM_AUX_DIR_EXPAND +m4trace:configure.ac:21: -1- m4_pattern_allow([^ACLOCAL$]) +m4trace:configure.ac:21: -1- AM_MISSING_PROG([AUTOCONF], [autoconf]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AUTOCONF$]) +m4trace:configure.ac:21: -1- AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AUTOMAKE$]) +m4trace:configure.ac:21: -1- AM_MISSING_PROG([AUTOHEADER], [autoheader]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AUTOHEADER$]) +m4trace:configure.ac:21: -1- AM_MISSING_PROG([MAKEINFO], [makeinfo]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^MAKEINFO$]) +m4trace:configure.ac:21: -1- AM_PROG_INSTALL_SH +m4trace:configure.ac:21: -1- m4_pattern_allow([^install_sh$]) +m4trace:configure.ac:21: -1- AM_PROG_INSTALL_STRIP +m4trace:configure.ac:21: -1- m4_pattern_allow([^STRIP$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^MKDIR_P$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^mkdir_p$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AWK$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^SET_MAKE$]) +m4trace:configure.ac:21: -1- AM_SET_LEADING_DOT +m4trace:configure.ac:21: -1- m4_pattern_allow([^am__leading_dot$]) +m4trace:configure.ac:21: -1- _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) -m4trace:configure.ac:11: -2- _AM_MANGLE_OPTION([tar-ustar]) -m4trace:configure.ac:11: -1- _AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])]) -m4trace:configure.ac:11: -2- _AM_MANGLE_OPTION([tar-pax]) -m4trace:configure.ac:11: -1- _AM_PROG_TAR([v7]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AMTAR$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^am__tar$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^am__untar$]) -m4trace:configure.ac:11: -1- _AM_IF_OPTION([no-dependencies], [], [AC_PROVIDE_IFELSE([AC_PROG_CC], +m4trace:configure.ac:21: -2- _AM_MANGLE_OPTION([tar-ustar]) +m4trace:configure.ac:21: -1- _AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])]) +m4trace:configure.ac:21: -2- _AM_MANGLE_OPTION([tar-pax]) +m4trace:configure.ac:21: -1- _AM_PROG_TAR([v7]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AMTAR$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^am__tar$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^am__untar$]) +m4trace:configure.ac:21: -1- _AM_IF_OPTION([no-dependencies], [], [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES([CC])], [m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl @@ -2741,412 +2773,503 @@ AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) -m4trace:configure.ac:11: -2- _AM_MANGLE_OPTION([no-dependencies]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^CTAGS$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^ETAGS$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^CSCOPE$]) -m4trace:configure.ac:11: -1- AM_SILENT_RULES -m4trace:configure.ac:11: -1- m4_pattern_allow([^AM_V$]) -m4trace:configure.ac:11: -1- AM_SUBST_NOTMAKE([AM_V]) -m4trace:configure.ac:11: -1- _AM_SUBST_NOTMAKE([AM_V]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AM_DEFAULT_V$]) -m4trace:configure.ac:11: -1- AM_SUBST_NOTMAKE([AM_DEFAULT_V]) -m4trace:configure.ac:11: -1- _AM_SUBST_NOTMAKE([AM_DEFAULT_V]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AM_DEFAULT_VERBOSITY$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AM_BACKSLASH$]) -m4trace:configure.ac:11: -1- _AM_SUBST_NOTMAKE([AM_BACKSLASH]) -m4trace:configure.ac:13: -1- m4_pattern_allow([^(AM_EXTRA_RECURSIVE_TARGETS|AM_PROG_AR)$]) -m4trace:configure.ac:19: -1- AM_EXTRA_RECURSIVE_TARGETS([doc-help doc-html doc-latexpdf doc-man doc-clean doc-markdown]) -m4trace:configure.ac:28: -1- m4_pattern_allow([^MAJOR$]) -m4trace:configure.ac:29: -1- m4_pattern_allow([^MINOR$]) -m4trace:configure.ac:30: -1- m4_pattern_allow([^PATCH$]) -m4trace:configure.ac:31: -1- m4_pattern_allow([^EXTRA$]) -m4trace:configure.ac:67: -3- m4_include([.libtool-version]) -m4trace:configure.ac:68: -1- m4_pattern_allow([^LIBTOOL_VERSION$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CFLAGS$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^LDFLAGS$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^LIBS$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CPPFLAGS$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^ac_ct_CC$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^EXEEXT$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^OBJEXT$]) -m4trace:configure.ac:74: -1- _AM_PROG_CC_C_O -m4trace:configure.ac:74: -1- AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) -m4trace:configure.ac:74: -1- _AM_DEPENDENCIES([CC]) -m4trace:configure.ac:74: -1- AM_SET_DEPDIR -m4trace:configure.ac:74: -1- m4_pattern_allow([^DEPDIR$]) -m4trace:configure.ac:74: -1- AM_OUTPUT_DEPENDENCY_COMMANDS -m4trace:configure.ac:74: -1- AM_MAKE_INCLUDE -m4trace:configure.ac:74: -1- AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^am__include$]) -m4trace:configure.ac:74: -1- AM_DEP_TRACK -m4trace:configure.ac:74: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^AMDEP_TRUE$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^AMDEP_FALSE$]) -m4trace:configure.ac:74: -1- _AM_SUBST_NOTMAKE([AMDEP_TRUE]) -m4trace:configure.ac:74: -1- _AM_SUBST_NOTMAKE([AMDEP_FALSE]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^AMDEPBACKSLASH$]) -m4trace:configure.ac:74: -1- _AM_SUBST_NOTMAKE([AMDEPBACKSLASH]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^am__nodep$]) -m4trace:configure.ac:74: -1- _AM_SUBST_NOTMAKE([am__nodep]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CCDEPMODE$]) -m4trace:configure.ac:74: -1- AM_CONDITIONAL([am__fastdepCC], [ +m4trace:configure.ac:21: -2- _AM_MANGLE_OPTION([no-dependencies]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^CTAGS$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^ETAGS$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^CSCOPE$]) +m4trace:configure.ac:21: -1- AM_SILENT_RULES +m4trace:configure.ac:21: -1- m4_pattern_allow([^AM_V$]) +m4trace:configure.ac:21: -1- AM_SUBST_NOTMAKE([AM_V]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([AM_V]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AM_DEFAULT_V$]) +m4trace:configure.ac:21: -1- AM_SUBST_NOTMAKE([AM_DEFAULT_V]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([AM_DEFAULT_V]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AM_DEFAULT_VERBOSITY$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AM_BACKSLASH$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([AM_BACKSLASH]) +m4trace:configure.ac:23: -1- m4_pattern_allow([^(AM_EXTRA_RECURSIVE_TARGETS|AM_PROG_AR)$]) +m4trace:configure.ac:29: -1- AM_EXTRA_RECURSIVE_TARGETS([doc-help doc-html doc-latexpdf doc-man doc-clean doc-markdown]) +m4trace:configure.ac:38: -1- m4_pattern_allow([^MAJOR$]) +m4trace:configure.ac:39: -1- m4_pattern_allow([^MINOR$]) +m4trace:configure.ac:40: -1- m4_pattern_allow([^PATCH$]) +m4trace:configure.ac:41: -1- m4_pattern_allow([^EXTRA$]) +m4trace:configure.ac:77: -3- m4_include([.libtool-version]) +m4trace:configure.ac:78: -1- m4_pattern_allow([^LIBTOOL_VERSION$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CFLAGS$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^ac_ct_CC$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^EXEEXT$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^OBJEXT$]) +m4trace:configure.ac:84: -1- _AM_PROG_CC_C_O +m4trace:configure.ac:84: -1- AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) +m4trace:configure.ac:84: -1- _AM_DEPENDENCIES([CC]) +m4trace:configure.ac:84: -1- AM_SET_DEPDIR +m4trace:configure.ac:84: -1- m4_pattern_allow([^DEPDIR$]) +m4trace:configure.ac:84: -1- AM_OUTPUT_DEPENDENCY_COMMANDS +m4trace:configure.ac:84: -1- AM_MAKE_INCLUDE +m4trace:configure.ac:84: -1- AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^am__include$]) +m4trace:configure.ac:84: -1- AM_DEP_TRACK +m4trace:configure.ac:84: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^AMDEP_TRUE$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^AMDEP_FALSE$]) +m4trace:configure.ac:84: -1- _AM_SUBST_NOTMAKE([AMDEP_TRUE]) +m4trace:configure.ac:84: -1- _AM_SUBST_NOTMAKE([AMDEP_FALSE]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^AMDEPBACKSLASH$]) +m4trace:configure.ac:84: -1- _AM_SUBST_NOTMAKE([AMDEPBACKSLASH]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^am__nodep$]) +m4trace:configure.ac:84: -1- _AM_SUBST_NOTMAKE([am__nodep]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CCDEPMODE$]) +m4trace:configure.ac:84: -1- AM_CONDITIONAL([am__fastdepCC], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^am__fastdepCC_TRUE$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^am__fastdepCC_FALSE$]) -m4trace:configure.ac:74: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_TRUE]) -m4trace:configure.ac:74: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_FALSE]) -m4trace:configure.ac:75: -1- _m4_warn([obsolete], [The macro `AC_PROG_CC_C99' is obsolete. -You should run autoupdate.], [./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from... -configure.ac:75: the top level]) -m4trace:configure.ac:76: -1- AM_PROG_CC_C_O -m4trace:configure.ac:78: -1- m4_pattern_allow([^CPP$]) -m4trace:configure.ac:78: -1- m4_pattern_allow([^CPPFLAGS$]) -m4trace:configure.ac:78: -1- m4_pattern_allow([^CPP$]) -m4trace:configure.ac:78: -1- AC_PROG_EGREP -m4trace:configure.ac:78: -1- m4_pattern_allow([^GREP$]) -m4trace:configure.ac:78: -1- m4_pattern_allow([^EGREP$]) -m4trace:configure.ac:79: -1- AC_DEFUN([_AC_Header_stdio_h], [m4_divert_text([INIT_PREPARE], +m4trace:configure.ac:84: -1- m4_pattern_allow([^am__fastdepCC_TRUE$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^am__fastdepCC_FALSE$]) +m4trace:configure.ac:84: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_TRUE]) +m4trace:configure.ac:84: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_FALSE]) +m4trace:configure.ac:85: -1- AM_PROG_CC_C_O +m4trace:configure.ac:86: -1- AM_PROG_AS +m4trace:configure.ac:86: -1- m4_pattern_allow([^CCAS$]) +m4trace:configure.ac:86: -1- m4_pattern_allow([^CCASFLAGS$]) +m4trace:configure.ac:86: -1- _AM_IF_OPTION([no-dependencies], [], [_AM_DEPENDENCIES([CCAS])]) +m4trace:configure.ac:86: -2- _AM_MANGLE_OPTION([no-dependencies]) +m4trace:configure.ac:86: -1- _AM_DEPENDENCIES([CCAS]) +m4trace:configure.ac:86: -1- m4_pattern_allow([^CCASDEPMODE$]) +m4trace:configure.ac:86: -1- AM_CONDITIONAL([am__fastdepCCAS], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3]) +m4trace:configure.ac:86: -1- m4_pattern_allow([^am__fastdepCCAS_TRUE$]) +m4trace:configure.ac:86: -1- m4_pattern_allow([^am__fastdepCCAS_FALSE$]) +m4trace:configure.ac:86: -1- _AM_SUBST_NOTMAKE([am__fastdepCCAS_TRUE]) +m4trace:configure.ac:86: -1- _AM_SUBST_NOTMAKE([am__fastdepCCAS_FALSE]) +m4trace:configure.ac:88: -1- _m4_warn([obsolete], [The macro 'AC_PROG_GCC_TRADITIONAL' is obsolete. +You should run autoupdate.], [./lib/autoconf/c.m4:1676: AC_PROG_GCC_TRADITIONAL is expanded from... +configure.ac:88: the top level]) +m4trace:configure.ac:89: -1- AC_DEFUN([_AC_Header_stdio_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list], [" stdio.h ]AS_TR_SH([stdio.h]) AS_TR_CPP([HAVE_stdio.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)]) -m4trace:configure.ac:79: -1- AC_DEFUN([_AC_Header_stdlib_h], [m4_divert_text([INIT_PREPARE], +m4trace:configure.ac:89: -1- AC_DEFUN([_AC_Header_stdlib_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list], [" stdlib.h ]AS_TR_SH([stdlib.h]) AS_TR_CPP([HAVE_stdlib.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)]) -m4trace:configure.ac:79: -1- AC_DEFUN([_AC_Header_string_h], [m4_divert_text([INIT_PREPARE], +m4trace:configure.ac:89: -1- AC_DEFUN([_AC_Header_string_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list], [" string.h ]AS_TR_SH([string.h]) AS_TR_CPP([HAVE_string.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)]) -m4trace:configure.ac:79: -1- AC_DEFUN([_AC_Header_inttypes_h], [m4_divert_text([INIT_PREPARE], +m4trace:configure.ac:89: -1- AC_DEFUN([_AC_Header_inttypes_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list], [" inttypes.h ]AS_TR_SH([inttypes.h]) AS_TR_CPP([HAVE_inttypes.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)]) -m4trace:configure.ac:79: -1- AC_DEFUN([_AC_Header_stdint_h], [m4_divert_text([INIT_PREPARE], +m4trace:configure.ac:89: -1- AC_DEFUN([_AC_Header_stdint_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list], [" stdint.h ]AS_TR_SH([stdint.h]) AS_TR_CPP([HAVE_stdint.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)]) -m4trace:configure.ac:79: -1- AC_DEFUN([_AC_Header_strings_h], [m4_divert_text([INIT_PREPARE], +m4trace:configure.ac:89: -1- AC_DEFUN([_AC_Header_strings_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list], [" strings.h ]AS_TR_SH([strings.h]) AS_TR_CPP([HAVE_strings.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)]) -m4trace:configure.ac:79: -1- AC_DEFUN([_AC_Header_sys_stat_h], [m4_divert_text([INIT_PREPARE], +m4trace:configure.ac:89: -1- AC_DEFUN([_AC_Header_sys_stat_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list], [" sys/stat.h ]AS_TR_SH([sys/stat.h]) AS_TR_CPP([HAVE_sys/stat.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)]) -m4trace:configure.ac:79: -1- AC_DEFUN([_AC_Header_sys_types_h], [m4_divert_text([INIT_PREPARE], +m4trace:configure.ac:89: -1- AC_DEFUN([_AC_Header_sys_types_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list], [" sys/types.h ]AS_TR_SH([sys/types.h]) AS_TR_CPP([HAVE_sys/types.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)]) -m4trace:configure.ac:79: -1- AC_DEFUN([_AC_Header_unistd_h], [m4_divert_text([INIT_PREPARE], +m4trace:configure.ac:89: -1- AC_DEFUN([_AC_Header_unistd_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list], [" unistd.h ]AS_TR_SH([unistd.h]) AS_TR_CPP([HAVE_unistd.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^STDC_HEADERS$]) -m4trace:configure.ac:79: -1- AC_DEFUN([_AC_Header_wchar_h], [m4_divert_text([INIT_PREPARE], +m4trace:configure.ac:89: -1- m4_pattern_allow([^STDC_HEADERS$]) +m4trace:configure.ac:89: -1- AC_DEFUN([_AC_Header_wchar_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list], [" wchar.h ]AS_TR_SH([wchar.h]) AS_TR_CPP([HAVE_wchar.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)]) -m4trace:configure.ac:79: -1- AC_DEFUN([_AC_Header_minix_config_h], [m4_divert_text([INIT_PREPARE], +m4trace:configure.ac:89: -1- AC_DEFUN([_AC_Header_minix_config_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list], [" minix/config.h ]AS_TR_SH([minix/config.h]) AS_TR_CPP([HAVE_minix/config.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_ALL_SOURCE$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_DARWIN_C_SOURCE$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_GNU_SOURCE$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_HPUX_ALT_XOPEN_SOCKET_API$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_NETBSD_SOURCE$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_OPENBSD_SOURCE$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_POSIX_PTHREAD_SEMANTICS$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_ATTRIBS_EXT__$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_BFP_EXT__$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_DFP_EXT__$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_FUNCS_EXT__$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_TYPES_EXT__$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_LIB_EXT2__$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_MATH_SPEC_FUNCS__$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_TANDEM_SOURCE$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_MINIX$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_POSIX_SOURCE$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_POSIX_1_SOURCE$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__EXTENSIONS__$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_XOPEN_SOURCE$]) -m4trace:configure.ac:80: -1- AM_PROG_AR -m4trace:configure.ac:80: -1- m4_pattern_allow([^AR$]) -m4trace:configure.ac:80: -1- m4_pattern_allow([^ac_ct_AR$]) -m4trace:configure.ac:80: -1- m4_pattern_allow([^AR$]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^CXX$]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^CXXFLAGS$]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^LDFLAGS$]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^LIBS$]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^CPPFLAGS$]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^CXX$]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^ac_ct_CXX$]) -m4trace:configure.ac:83: -1- _AM_DEPENDENCIES([CXX]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^CXXDEPMODE$]) -m4trace:configure.ac:83: -1- AM_CONDITIONAL([am__fastdepCXX], [ +m4trace:configure.ac:89: -1- m4_pattern_allow([^_ALL_SOURCE$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_DARWIN_C_SOURCE$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_GNU_SOURCE$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_HPUX_ALT_XOPEN_SOCKET_API$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_NETBSD_SOURCE$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_OPENBSD_SOURCE$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_POSIX_PTHREAD_SEMANTICS$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_ATTRIBS_EXT__$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_BFP_EXT__$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_DFP_EXT__$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_EXT__$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_FUNCS_EXT__$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_TYPES_EXT__$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_LIB_EXT2__$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_MATH_SPEC_FUNCS__$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_TANDEM_SOURCE$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_MINIX$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_POSIX_SOURCE$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_POSIX_1_SOURCE$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__EXTENSIONS__$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_XOPEN_SOURCE$]) +m4trace:configure.ac:90: -1- AM_PROG_AR +m4trace:configure.ac:90: -1- m4_pattern_allow([^AR$]) +m4trace:configure.ac:90: -1- m4_pattern_allow([^ac_ct_AR$]) +m4trace:configure.ac:90: -1- m4_pattern_allow([^AR$]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^CXXFLAGS$]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^ac_ct_CXX$]) +m4trace:configure.ac:93: -1- _AM_DEPENDENCIES([CXX]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^CXXDEPMODE$]) +m4trace:configure.ac:93: -1- AM_CONDITIONAL([am__fastdepCXX], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^am__fastdepCXX_TRUE$]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^am__fastdepCXX_FALSE$]) -m4trace:configure.ac:83: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_TRUE]) -m4trace:configure.ac:83: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_FALSE]) -m4trace:configure.ac:84: -1- m4_pattern_allow([^AWK$]) -m4trace:configure.ac:85: -1- m4_pattern_allow([^LN_S$]) -m4trace:configure.ac:89: -1- m4_pattern_allow([^M4$]) -m4trace:configure.ac:94: -1- m4_pattern_allow([^ACLOCAL_AMFLAGS$]) -m4trace:configure.ac:97: -1- PKG_PROG_PKG_CONFIG -m4trace:configure.ac:97: -1- m4_pattern_forbid([^_?PKG_[A-Z_]+$]) -m4trace:configure.ac:97: -1- m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) -m4trace:configure.ac:97: -1- m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) -m4trace:configure.ac:97: -1- m4_pattern_allow([^PKG_CONFIG$]) -m4trace:configure.ac:97: -1- m4_pattern_allow([^PKG_CONFIG_PATH$]) -m4trace:configure.ac:97: -1- m4_pattern_allow([^PKG_CONFIG_LIBDIR$]) -m4trace:configure.ac:97: -1- m4_pattern_allow([^PKG_CONFIG$]) -m4trace:configure.ac:99: -1- AC_LTDL_ENABLE_INSTALL -m4trace:configure.ac:100: -1- AC_LIBLTDL_INSTALLABLE -m4trace:configure.ac:100: -1- _m4_warn([obsolete], [The macro `AC_LIBLTDL_INSTALLABLE' is obsolete. -You should run autoupdate.], [/opt/homebrew/share/aclocal/ltdl.m4:138: AC_LIBLTDL_INSTALLABLE is expanded from... -configure.ac:100: the top level]) -m4trace:configure.ac:100: -1- m4_pattern_allow([^LIBLTDL$]) -m4trace:configure.ac:100: -1- m4_pattern_allow([^LTDLDEPS$]) -m4trace:configure.ac:100: -1- m4_pattern_allow([^LTDLINCL$]) -m4trace:configure.ac:100: -1- m4_pattern_allow([^INCLTDL$]) -m4trace:configure.ac:101: -1- AC_LIBTOOL_DLOPEN -m4trace:configure.ac:101: -1- _m4_warn([obsolete], [The macro `AC_LIBTOOL_DLOPEN' is obsolete. -You should run autoupdate.], [/opt/homebrew/share/aclocal/ltoptions.m4:113: AC_LIBTOOL_DLOPEN is expanded from... -configure.ac:101: the top level]) -m4trace:configure.ac:101: -1- _m4_warn([obsolete], [AC_LIBTOOL_DLOPEN: Remove this warning and the call to _LT_SET_OPTION when you -put the 'dlopen' option into LT_INIT's first parameter.], [./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... -/opt/homebrew/share/aclocal/ltoptions.m4:113: AC_LIBTOOL_DLOPEN is expanded from... -configure.ac:101: the top level]) -m4trace:configure.ac:102: -1- AC_LIBTOOL_WIN32_DLL -m4trace:configure.ac:102: -1- _m4_warn([obsolete], [The macro `AC_LIBTOOL_WIN32_DLL' is obsolete. -You should run autoupdate.], [/opt/homebrew/share/aclocal/ltoptions.m4:148: AC_LIBTOOL_WIN32_DLL is expanded from... -configure.ac:102: the top level]) -m4trace:configure.ac:102: -1- m4_pattern_allow([^build$]) -m4trace:configure.ac:102: -1- m4_pattern_allow([^build_cpu$]) -m4trace:configure.ac:102: -1- m4_pattern_allow([^build_vendor$]) -m4trace:configure.ac:102: -1- m4_pattern_allow([^build_os$]) -m4trace:configure.ac:102: -1- m4_pattern_allow([^host$]) -m4trace:configure.ac:102: -1- m4_pattern_allow([^host_cpu$]) -m4trace:configure.ac:102: -1- m4_pattern_allow([^host_vendor$]) -m4trace:configure.ac:102: -1- m4_pattern_allow([^host_os$]) -m4trace:configure.ac:102: -1- m4_pattern_allow([^AS$]) -m4trace:configure.ac:102: -1- m4_pattern_allow([^DLLTOOL$]) -m4trace:configure.ac:102: -1- m4_pattern_allow([^OBJDUMP$]) -m4trace:configure.ac:102: -1- _m4_warn([obsolete], [AC_LIBTOOL_WIN32_DLL: Remove this warning and the call to _LT_SET_OPTION when you -put the 'win32-dll' option into LT_INIT's first parameter.], [./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... -/opt/homebrew/share/aclocal/ltoptions.m4:148: AC_LIBTOOL_WIN32_DLL is expanded from... -configure.ac:102: the top level]) -m4trace:configure.ac:103: -1- AC_PROG_LIBTOOL -m4trace:configure.ac:103: -1- _m4_warn([obsolete], [The macro `AC_PROG_LIBTOOL' is obsolete. -You should run autoupdate.], [/opt/homebrew/share/aclocal/libtool.m4:100: AC_PROG_LIBTOOL is expanded from... -configure.ac:103: the top level]) -m4trace:configure.ac:103: -1- LT_INIT -m4trace:configure.ac:103: -1- m4_pattern_forbid([^_?LT_[A-Z_]+$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$]) -m4trace:configure.ac:103: -1- LTOPTIONS_VERSION -m4trace:configure.ac:103: -1- LTSUGAR_VERSION -m4trace:configure.ac:103: -1- LTVERSION_VERSION -m4trace:configure.ac:103: -1- LTOBSOLETE_VERSION -m4trace:configure.ac:103: -1- _LT_PROG_LTMAIN -m4trace:configure.ac:103: -1- m4_pattern_allow([^LIBTOOL$]) -m4trace:configure.ac:103: -1- _LT_PREPARE_SED_QUOTE_VARS -m4trace:configure.ac:103: -1- _LT_PROG_ECHO_BACKSLASH -m4trace:configure.ac:103: -1- LT_PATH_LD -m4trace:configure.ac:103: -1- m4_pattern_allow([^SED$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^FGREP$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^GREP$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^LD$]) -m4trace:configure.ac:103: -1- LT_PATH_NM -m4trace:configure.ac:103: -1- m4_pattern_allow([^DUMPBIN$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^ac_ct_DUMPBIN$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^DUMPBIN$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^NM$]) -m4trace:configure.ac:103: -1- LT_CMD_MAX_LEN -m4trace:configure.ac:103: -1- m4_pattern_allow([^FILECMD$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^OBJDUMP$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^OBJDUMP$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^DLLTOOL$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^DLLTOOL$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^AR$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^ac_ct_AR$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^STRIP$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^RANLIB$]) -m4trace:configure.ac:103: -1- _LT_WITH_SYSROOT -m4trace:configure.ac:103: -1- m4_pattern_allow([LT_OBJDIR]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^LT_OBJDIR$]) -m4trace:configure.ac:103: -1- _LT_CC_BASENAME([$compiler]) -m4trace:configure.ac:103: -1- _LT_PATH_TOOL_PREFIX([${ac_tool_prefix}file], [/usr/bin$PATH_SEPARATOR$PATH]) -m4trace:configure.ac:103: -1- _LT_PATH_TOOL_PREFIX([file], [/usr/bin$PATH_SEPARATOR$PATH]) -m4trace:configure.ac:103: -1- LT_SUPPORTED_TAG([CC]) -m4trace:configure.ac:103: -1- _LT_COMPILER_BOILERPLATE -m4trace:configure.ac:103: -1- _LT_LINKER_BOILERPLATE -m4trace:configure.ac:103: -1- _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], [lt_cv_prog_compiler_rtti_exceptions], [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, )="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, ) -fno-rtti -fno-exceptions"]) -m4trace:configure.ac:103: -1- _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, ) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, )], [$_LT_TAGVAR(lt_prog_compiler_pic, )@&t@m4_if([],[],[ -DPIC],[m4_if([],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, ) in +m4trace:configure.ac:93: -1- m4_pattern_allow([^am__fastdepCXX_TRUE$]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^am__fastdepCXX_FALSE$]) +m4trace:configure.ac:93: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_TRUE]) +m4trace:configure.ac:93: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_FALSE]) +m4trace:configure.ac:94: -1- m4_pattern_allow([^AWK$]) +m4trace:configure.ac:95: -1- m4_pattern_allow([^LN_S$]) +m4trace:configure.ac:108: -1- PKG_PROG_PKG_CONFIG +m4trace:configure.ac:108: -1- m4_pattern_forbid([^_?PKG_[A-Z_]+$]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^PKG_CONFIG$]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^PKG_CONFIG_PATH$]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^PKG_CONFIG_LIBDIR$]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^PKG_CONFIG$]) +m4trace:configure.ac:110: -1- AC_LTDL_ENABLE_INSTALL +m4trace:configure.ac:111: -1- LT_INIT([dlopen win32-dll]) +m4trace:configure.ac:111: -1- m4_pattern_forbid([^_?LT_[A-Z_]+$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$]) +m4trace:configure.ac:111: -1- LTOPTIONS_VERSION +m4trace:configure.ac:111: -1- LTSUGAR_VERSION +m4trace:configure.ac:111: -1- LTVERSION_VERSION +m4trace:configure.ac:111: -1- LTOBSOLETE_VERSION +m4trace:configure.ac:111: -1- _LT_PROG_LTMAIN +m4trace:configure.ac:111: -1- m4_pattern_allow([^AS$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LIBTOOL$]) +m4trace:configure.ac:111: -1- _LT_PREPARE_SED_QUOTE_VARS +m4trace:configure.ac:111: -1- _LT_PROG_ECHO_BACKSLASH +m4trace:configure.ac:111: -1- LT_PATH_LD +m4trace:configure.ac:111: -1- m4_pattern_allow([^SED$]) +m4trace:configure.ac:111: -1- AC_PROG_EGREP +m4trace:configure.ac:111: -1- m4_pattern_allow([^GREP$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^EGREP$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^FGREP$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^GREP$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LD$]) +m4trace:configure.ac:111: -1- LT_PATH_NM +m4trace:configure.ac:111: -1- m4_pattern_allow([^DUMPBIN$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^ac_ct_DUMPBIN$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^DUMPBIN$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^NM$]) +m4trace:configure.ac:111: -1- LT_CMD_MAX_LEN +m4trace:configure.ac:111: -1- m4_pattern_allow([^FILECMD$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^AR$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^ac_ct_AR$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^STRIP$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^RANLIB$]) +m4trace:configure.ac:111: -1- _LT_WITH_SYSROOT +m4trace:configure.ac:111: -1- m4_pattern_allow([LT_OBJDIR]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LT_OBJDIR$]) +m4trace:configure.ac:111: -1- _LT_CC_BASENAME([$compiler]) +m4trace:configure.ac:111: -1- _LT_PATH_TOOL_PREFIX([${ac_tool_prefix}file], [/usr/bin$PATH_SEPARATOR$PATH]) +m4trace:configure.ac:111: -1- _LT_PATH_TOOL_PREFIX([file], [/usr/bin$PATH_SEPARATOR$PATH]) +m4trace:configure.ac:111: -1- LT_SUPPORTED_TAG([CC]) +m4trace:configure.ac:111: -1- _LT_COMPILER_BOILERPLATE +m4trace:configure.ac:111: -1- _LT_LINKER_BOILERPLATE +m4trace:configure.ac:111: -1- _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], [lt_cv_prog_compiler_rtti_exceptions], [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, )="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, ) -fno-rtti -fno-exceptions"]) +m4trace:configure.ac:111: -1- _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, ) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, )], [$_LT_TAGVAR(lt_prog_compiler_pic, )@&t@m4_if([],[],[ -DPIC],[m4_if([],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, ) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, )=" $_LT_TAGVAR(lt_prog_compiler_pic, )" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, )= _LT_TAGVAR(lt_prog_compiler_can_build_shared, )=no]) -m4trace:configure.ac:103: -1- _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], [lt_cv_prog_compiler_static_works], [$lt_tmp_static_flag], [], [_LT_TAGVAR(lt_prog_compiler_static, )=]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^MANIFEST_TOOL$]) -m4trace:configure.ac:103: -1- _LT_DLL_DEF_P([$export_symbols]) -m4trace:configure.ac:103: -1- _LT_DLL_DEF_P([$export_symbols]) -m4trace:configure.ac:103: -1- _LT_REQUIRED_DARWIN_CHECKS -m4trace:configure.ac:103: -1- m4_pattern_allow([^DSYMUTIL$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^NMEDIT$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^LIPO$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^OTOOL$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^OTOOL64$]) -m4trace:configure.ac:103: -1- _LT_LINKER_OPTION([if $CC understands -b], [lt_cv_prog_compiler__b], [-b], [_LT_TAGVAR(archive_cmds, )='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], [_LT_TAGVAR(archive_cmds, )='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags']) -m4trace:configure.ac:103: -1- m4_pattern_allow([^LT_SYS_LIBRARY_PATH$]) -m4trace:configure.ac:103: -1- LT_SYS_DLOPEN_SELF -m4trace:configure.ac:103: -1- m4_pattern_allow([^HAVE_DLFCN_H$]) -m4trace:configure.ac:103: -1- LT_LANG([CXX]) -m4trace:configure.ac:103: -1- LT_SUPPORTED_TAG([CXX]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^CXXCPP$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^CPPFLAGS$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^CXXCPP$]) -m4trace:configure.ac:103: -1- _LT_COMPILER_BOILERPLATE -m4trace:configure.ac:103: -1- _LT_LINKER_BOILERPLATE -m4trace:configure.ac:103: -1- _LT_CC_BASENAME([$compiler]) -m4trace:configure.ac:103: -1- LT_PATH_LD -m4trace:configure.ac:103: -1- m4_pattern_allow([^LD$]) -m4trace:configure.ac:103: -1- _LT_DLL_DEF_P([$export_symbols]) -m4trace:configure.ac:103: -1- _LT_DLL_DEF_P([$export_symbols]) -m4trace:configure.ac:103: -1- _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, CXX) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, CXX)], [$_LT_TAGVAR(lt_prog_compiler_pic, CXX)@&t@m4_if([CXX],[],[ -DPIC],[m4_if([CXX],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, CXX) in +m4trace:configure.ac:111: -1- _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], [lt_cv_prog_compiler_static_works], [$lt_tmp_static_flag], [], [_LT_TAGVAR(lt_prog_compiler_static, )=]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^MANIFEST_TOOL$]) +m4trace:configure.ac:111: -1- _LT_DLL_DEF_P([$export_symbols]) +m4trace:configure.ac:111: -1- _LT_DLL_DEF_P([$export_symbols]) +m4trace:configure.ac:111: -1- _LT_REQUIRED_DARWIN_CHECKS +m4trace:configure.ac:111: -1- m4_pattern_allow([^DSYMUTIL$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^NMEDIT$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LIPO$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^OTOOL$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^OTOOL64$]) +m4trace:configure.ac:111: -1- _LT_LINKER_OPTION([if $CC understands -b], [lt_cv_prog_compiler__b], [-b], [_LT_TAGVAR(archive_cmds, )='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], [_LT_TAGVAR(archive_cmds, )='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags']) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LT_SYS_LIBRARY_PATH$]) +m4trace:configure.ac:111: -1- LT_SYS_DLOPEN_SELF +m4trace:configure.ac:111: -1- m4_pattern_allow([^HAVE_DLFCN_H$]) +m4trace:configure.ac:111: -1- LT_LANG([CXX]) +m4trace:configure.ac:111: -1- LT_SUPPORTED_TAG([CXX]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^CXXCPP$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^CXXCPP$]) +m4trace:configure.ac:111: -1- _LT_COMPILER_BOILERPLATE +m4trace:configure.ac:111: -1- _LT_LINKER_BOILERPLATE +m4trace:configure.ac:111: -1- _LT_CC_BASENAME([$compiler]) +m4trace:configure.ac:111: -1- LT_PATH_LD +m4trace:configure.ac:111: -1- m4_pattern_allow([^LD$]) +m4trace:configure.ac:111: -1- _LT_DLL_DEF_P([$export_symbols]) +m4trace:configure.ac:111: -1- _LT_DLL_DEF_P([$export_symbols]) +m4trace:configure.ac:111: -1- _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, CXX) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, CXX)], [$_LT_TAGVAR(lt_prog_compiler_pic, CXX)@&t@m4_if([CXX],[],[ -DPIC],[m4_if([CXX],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, CXX) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, CXX)=" $_LT_TAGVAR(lt_prog_compiler_pic, CXX)" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, CXX)= _LT_TAGVAR(lt_prog_compiler_can_build_shared, CXX)=no]) -m4trace:configure.ac:103: -1- _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], [lt_cv_prog_compiler_static_works_CXX], [$lt_tmp_static_flag], [], [_LT_TAGVAR(lt_prog_compiler_static, CXX)=]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^LT_SYS_LIBRARY_PATH$]) -m4trace:configure.ac:104: -1- m4_pattern_allow([^LTDLINCL$]) -m4trace:configure.ac:105: -1- m4_pattern_allow([^LIBLTDL$]) -m4trace:configure.ac:106: -1- m4_pattern_allow([^subdirs$]) -m4trace:configure.ac:108: -1- _m4_warn([obsolete], [The macro `AC_HEADER_STDC' is obsolete. -You should run autoupdate.], [./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from... -configure.ac:108: the top level]) -m4trace:configure.ac:108: -1- AC_PROG_EGREP -m4trace:configure.ac:108: -1- m4_pattern_allow([^EGREP$]) -m4trace:configure.ac:109: -1- m4_pattern_allow([^const$]) -m4trace:configure.ac:110: -1- m4_pattern_allow([^WORDS_BIGENDIAN$]) -m4trace:configure.ac:110: -1- m4_pattern_allow([^AC_APPLE_UNIVERSAL_BUILD$]) -m4trace:configure.ac:111: -1- m4_pattern_allow([^pid_t$]) -m4trace:configure.ac:112: -1- m4_pattern_allow([^size_t$]) -m4trace:configure.ac:113: -1- m4_pattern_allow([^HAVE_SSIZE_T$]) -m4trace:configure.ac:113: -1- m4_pattern_allow([^ssize_t$]) -m4trace:configure.ac:115: -1- m4_pattern_allow([^off_t$]) -m4trace:configure.ac:116: -1- _m4_warn([obsolete], [The macro `AC_TYPE_SIGNAL' is obsolete. -You should run autoupdate.], [./lib/autoconf/types.m4:776: AC_TYPE_SIGNAL is expanded from... -configure.ac:116: the top level]) -m4trace:configure.ac:116: -1- m4_pattern_allow([^RETSIGTYPE$]) -m4trace:configure.ac:117: -1- m4_pattern_allow([^uid_t$]) -m4trace:configure.ac:117: -1- m4_pattern_allow([^gid_t$]) -m4trace:configure.ac:118: -1- AC_DEFUN([_AC_UNDECLARED_BUILTIN_c], [_AC_UNDECLARED_BUILTIN]) -m4trace:configure.ac:118: -1- m4_pattern_allow([^HAVE_DECL_ENVIRON$]) -m4trace:configure.ac:138: -1- m4_pattern_allow([^HAVE_QSORT_R$]) -m4trace:configure.ac:139: -1- m4_pattern_allow([^HAVE_QSORT_R$]) -m4trace:configure.ac:140: -1- AM_CONDITIONAL([HAVE_QSORT_R], [ test x$HAVE_QSORT_R = x1 ]) -m4trace:configure.ac:140: -1- m4_pattern_allow([^HAVE_QSORT_R_TRUE$]) -m4trace:configure.ac:140: -1- m4_pattern_allow([^HAVE_QSORT_R_FALSE$]) -m4trace:configure.ac:140: -1- _AM_SUBST_NOTMAKE([HAVE_QSORT_R_TRUE]) -m4trace:configure.ac:140: -1- _AM_SUBST_NOTMAKE([HAVE_QSORT_R_FALSE]) -m4trace:configure.ac:142: -1- PKG_CHECK_MODULES([LIBYAML], [ yaml-0.1 ], [HAVE_LIBYAML=1], [HAVE_LIBYAML=0]) -m4trace:configure.ac:142: -1- m4_pattern_allow([^LIBYAML_CFLAGS$]) -m4trace:configure.ac:142: -1- m4_pattern_allow([^LIBYAML_LIBS$]) -m4trace:configure.ac:142: -1- PKG_CHECK_EXISTS([ yaml-0.1 ], [pkg_cv_[]LIBYAML_CFLAGS=`$PKG_CONFIG --[]cflags " yaml-0.1 " 2>/dev/null` +m4trace:configure.ac:111: -1- _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], [lt_cv_prog_compiler_static_works_CXX], [$lt_tmp_static_flag], [], [_LT_TAGVAR(lt_prog_compiler_static, CXX)=]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LT_SYS_LIBRARY_PATH$]) +m4trace:configure.ac:112: -1- m4_pattern_allow([^LTDLINCL$]) +m4trace:configure.ac:113: -1- m4_pattern_allow([^LIBLTDL$]) +m4trace:configure.ac:114: -1- m4_pattern_allow([^subdirs$]) +m4trace:configure.ac:116: -1- m4_pattern_allow([^const$]) +m4trace:configure.ac:117: -1- m4_pattern_allow([^WORDS_BIGENDIAN$]) +m4trace:configure.ac:117: -1- m4_pattern_allow([^AC_APPLE_UNIVERSAL_BUILD$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^pid_t$]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^size_t$]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^HAVE_SSIZE_T$]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^ssize_t$]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^off_t$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^uid_t$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^gid_t$]) +m4trace:configure.ac:124: -1- AC_DEFUN([_AC_UNDECLARED_BUILTIN_c], [_AC_UNDECLARED_BUILTIN]) +m4trace:configure.ac:124: -1- m4_pattern_allow([^HAVE_DECL_ENVIRON$]) +m4trace:configure.ac:126: -1- m4_pattern_allow([^HAVE_BYTESWAP_H$]) +m4trace:configure.ac:127: -1- m4_pattern_allow([^HAVE___BUILTIN_BSWAP16$]) +m4trace:configure.ac:127: -1- m4_pattern_allow([^HAVE___BUILTIN_BSWAP32$]) +m4trace:configure.ac:127: -1- m4_pattern_allow([^HAVE___BUILTIN_BSWAP64$]) +m4trace:configure.ac:147: -1- m4_pattern_allow([^HAVE_STATIC$]) +m4trace:configure.ac:148: -1- m4_pattern_allow([^HAVE_STATIC$]) +m4trace:configure.ac:149: -1- AM_CONDITIONAL([HAVE_STATIC], [ test x$HAVE_STATIC = x1 ]) +m4trace:configure.ac:149: -1- m4_pattern_allow([^HAVE_STATIC_TRUE$]) +m4trace:configure.ac:149: -1- m4_pattern_allow([^HAVE_STATIC_FALSE$]) +m4trace:configure.ac:149: -1- _AM_SUBST_NOTMAKE([HAVE_STATIC_TRUE]) +m4trace:configure.ac:149: -1- _AM_SUBST_NOTMAKE([HAVE_STATIC_FALSE]) +m4trace:configure.ac:155: -1- m4_pattern_allow([^HAVE_WSTRINGOP_OVERREAD$]) +m4trace:configure.ac:165: -1- m4_pattern_allow([^HAVE_PORTABLE_TARGET$]) +m4trace:configure.ac:166: -1- m4_pattern_allow([^HAVE_PORTABLE_TARGET$]) +m4trace:configure.ac:167: -1- AM_CONDITIONAL([HAVE_PORTABLE_TARGET], [ test x$HAVE_PORTABLE_TARGET == x1 ]) +m4trace:configure.ac:167: -1- m4_pattern_allow([^HAVE_PORTABLE_TARGET_TRUE$]) +m4trace:configure.ac:167: -1- m4_pattern_allow([^HAVE_PORTABLE_TARGET_FALSE$]) +m4trace:configure.ac:167: -1- _AM_SUBST_NOTMAKE([HAVE_PORTABLE_TARGET_TRUE]) +m4trace:configure.ac:167: -1- _AM_SUBST_NOTMAKE([HAVE_PORTABLE_TARGET_FALSE]) +m4trace:configure.ac:169: -1- AM_CONDITIONAL([TARGET_CPU_X86], [ test x$target_cpu = xx86 ]) +m4trace:configure.ac:169: -1- m4_pattern_allow([^TARGET_CPU_X86_TRUE$]) +m4trace:configure.ac:169: -1- m4_pattern_allow([^TARGET_CPU_X86_FALSE$]) +m4trace:configure.ac:169: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_X86_TRUE]) +m4trace:configure.ac:169: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_X86_FALSE]) +m4trace:configure.ac:170: -1- AM_CONDITIONAL([TARGET_CPU_X86_64], [ test x$target_cpu = xx86_64 ]) +m4trace:configure.ac:170: -1- m4_pattern_allow([^TARGET_CPU_X86_64_TRUE$]) +m4trace:configure.ac:170: -1- m4_pattern_allow([^TARGET_CPU_X86_64_FALSE$]) +m4trace:configure.ac:170: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_X86_64_TRUE]) +m4trace:configure.ac:170: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_X86_64_FALSE]) +m4trace:configure.ac:171: -1- AM_CONDITIONAL([TARGET_CPU_ANY_X86], [ test x$target_cpu = xx86 -o x$target_cpu = xx86_64 ]) +m4trace:configure.ac:171: -1- m4_pattern_allow([^TARGET_CPU_ANY_X86_TRUE$]) +m4trace:configure.ac:171: -1- m4_pattern_allow([^TARGET_CPU_ANY_X86_FALSE$]) +m4trace:configure.ac:171: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ANY_X86_TRUE]) +m4trace:configure.ac:171: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ANY_X86_FALSE]) +m4trace:configure.ac:172: -1- AM_CONDITIONAL([TARGET_CPU_ARM], [ test x$target_cpu = xarm ]) +m4trace:configure.ac:172: -1- m4_pattern_allow([^TARGET_CPU_ARM_TRUE$]) +m4trace:configure.ac:172: -1- m4_pattern_allow([^TARGET_CPU_ARM_FALSE$]) +m4trace:configure.ac:172: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ARM_TRUE]) +m4trace:configure.ac:172: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ARM_FALSE]) +m4trace:configure.ac:173: -1- AM_CONDITIONAL([TARGET_CPU_ARM64], [ test x$target_cpu = xaarch64 ]) +m4trace:configure.ac:173: -1- m4_pattern_allow([^TARGET_CPU_ARM64_TRUE$]) +m4trace:configure.ac:173: -1- m4_pattern_allow([^TARGET_CPU_ARM64_FALSE$]) +m4trace:configure.ac:173: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ARM64_TRUE]) +m4trace:configure.ac:173: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ARM64_FALSE]) +m4trace:configure.ac:174: -1- AM_CONDITIONAL([TARGET_CPU_ANY_ARM], [ test x$target_cpu = xarm -o x$target_cpu = xaarch64 ]) +m4trace:configure.ac:174: -1- m4_pattern_allow([^TARGET_CPU_ANY_ARM_TRUE$]) +m4trace:configure.ac:174: -1- m4_pattern_allow([^TARGET_CPU_ANY_ARM_FALSE$]) +m4trace:configure.ac:174: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ANY_ARM_TRUE]) +m4trace:configure.ac:174: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ANY_ARM_FALSE]) +m4trace:configure.ac:176: -1- AM_COND_IF([TARGET_CPU_ANY_X86], [m4_version_prereq(2.64, [ + AX_CHECK_COMPILE_FLAG([-msse2], , , [-Werror]) + AX_CHECK_COMPILE_FLAG([-msse4.1], , , [-Werror]) + AX_CHECK_COMPILE_FLAG([-mavx2], , , [-Werror]) + AX_CHECK_COMPILE_FLAG([-mavx512f -mavx512vl], , , [-Werror]) + ], [true]) +]) +m4trace:configure.ac:184: -1- AM_COND_IF([TARGET_CPU_ARM], [m4_version_prereq(2.64, [ + AX_CHECK_COMPILE_FLAG([-mfpu=neon], , , [-Werror]) + ], [true]) +]) +m4trace:configure.ac:189: -1- AM_CONDITIONAL([TARGET_HAS_SSE2], [ test "x$ax_cv_check_cflags__Werror__msse2" = x"yes" -a "x$enable_portable_target" != "xyes" ]) +m4trace:configure.ac:189: -1- m4_pattern_allow([^TARGET_HAS_SSE2_TRUE$]) +m4trace:configure.ac:189: -1- m4_pattern_allow([^TARGET_HAS_SSE2_FALSE$]) +m4trace:configure.ac:189: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_SSE2_TRUE]) +m4trace:configure.ac:189: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_SSE2_FALSE]) +m4trace:configure.ac:190: -1- AM_CONDITIONAL([TARGET_HAS_SSE41], [ test "x$ax_cv_check_cflags__Werror__msse4_1" = x"yes" -a "x$enable_portable_target" != "xyes" ]) +m4trace:configure.ac:190: -1- m4_pattern_allow([^TARGET_HAS_SSE41_TRUE$]) +m4trace:configure.ac:190: -1- m4_pattern_allow([^TARGET_HAS_SSE41_FALSE$]) +m4trace:configure.ac:190: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_SSE41_TRUE]) +m4trace:configure.ac:190: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_SSE41_FALSE]) +m4trace:configure.ac:191: -1- AM_CONDITIONAL([TARGET_HAS_AVX2], [ test "x$ax_cv_check_cflags__Werror__mavx2" = x"yes" -a "x$enable_portable_target" != "xyes" ]) +m4trace:configure.ac:191: -1- m4_pattern_allow([^TARGET_HAS_AVX2_TRUE$]) +m4trace:configure.ac:191: -1- m4_pattern_allow([^TARGET_HAS_AVX2_FALSE$]) +m4trace:configure.ac:191: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_AVX2_TRUE]) +m4trace:configure.ac:191: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_AVX2_FALSE]) +m4trace:configure.ac:192: -1- AM_CONDITIONAL([TARGET_HAS_AVX512], [ test "x$ax_cv_check_cflags__Werror__mavx512f__mavx512vl" = x"yes" -a "x$enable_portable_target" != "xyes" ]) +m4trace:configure.ac:192: -1- m4_pattern_allow([^TARGET_HAS_AVX512_TRUE$]) +m4trace:configure.ac:192: -1- m4_pattern_allow([^TARGET_HAS_AVX512_FALSE$]) +m4trace:configure.ac:192: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_AVX512_TRUE]) +m4trace:configure.ac:192: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_AVX512_FALSE]) +m4trace:configure.ac:194: -1- AM_CONDITIONAL([TARGET_HAS_NEON], [ test \( x$target_cpu = xaarch64 -o "x$ax_cv_check_cflags__Werror__mcpu_neon" = x"yes" \) -a "x$enable_portable_target" != "xyes" ]) +m4trace:configure.ac:194: -1- m4_pattern_allow([^TARGET_HAS_NEON_TRUE$]) +m4trace:configure.ac:194: -1- m4_pattern_allow([^TARGET_HAS_NEON_FALSE$]) +m4trace:configure.ac:194: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_NEON_TRUE]) +m4trace:configure.ac:194: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_NEON_FALSE]) +m4trace:configure.ac:196: -2- m4_pattern_allow([^TARGET_HAS_SSE2$]) +m4trace:configure.ac:196: -1- AM_COND_IF([TARGET_HAS_SSE2], [ +printf "%s\n" "@%:@define TARGET_HAS_SSE2 1" >>confdefs.h +]) +m4trace:configure.ac:197: -2- m4_pattern_allow([^TARGET_HAS_SSE41$]) +m4trace:configure.ac:197: -1- AM_COND_IF([TARGET_HAS_SSE41], [ +printf "%s\n" "@%:@define TARGET_HAS_SSE41 1" >>confdefs.h +]) +m4trace:configure.ac:198: -2- m4_pattern_allow([^TARGET_HAS_AVX2$]) +m4trace:configure.ac:198: -1- AM_COND_IF([TARGET_HAS_AVX2], [ +printf "%s\n" "@%:@define TARGET_HAS_AVX2 1" >>confdefs.h +]) +m4trace:configure.ac:199: -2- m4_pattern_allow([^TARGET_HAS_AVX512$]) +m4trace:configure.ac:199: -1- AM_COND_IF([TARGET_HAS_AVX512], [ +printf "%s\n" "@%:@define TARGET_HAS_AVX512 1" >>confdefs.h +]) +m4trace:configure.ac:201: -2- m4_pattern_allow([^TARGET_HAS_NEON$]) +m4trace:configure.ac:201: -1- AM_COND_IF([TARGET_HAS_NEON], [ +printf "%s\n" "@%:@define TARGET_HAS_NEON 1" >>confdefs.h +]) +m4trace:configure.ac:227: -1- m4_pattern_allow([^HAVE_ASAN$]) +m4trace:configure.ac:228: -1- m4_pattern_allow([^ASAN_CFLAGS$]) +m4trace:configure.ac:229: -1- m4_pattern_allow([^ASAN_LIBS$]) +m4trace:configure.ac:230: -1- AM_CONDITIONAL([HAVE_ASAN], [ test x$HAVE_ASAN = x1 ]) +m4trace:configure.ac:230: -1- m4_pattern_allow([^HAVE_ASAN_TRUE$]) +m4trace:configure.ac:230: -1- m4_pattern_allow([^HAVE_ASAN_FALSE$]) +m4trace:configure.ac:230: -1- _AM_SUBST_NOTMAKE([HAVE_ASAN_TRUE]) +m4trace:configure.ac:230: -1- _AM_SUBST_NOTMAKE([HAVE_ASAN_FALSE]) +m4trace:configure.ac:232: -1- m4_pattern_allow([^HAVE_ASAN$]) +m4trace:configure.ac:238: -1- m4_pattern_allow([^HAVE_QSORT_R$]) +m4trace:configure.ac:239: -1- m4_pattern_allow([^HAVE_QSORT_R$]) +m4trace:configure.ac:240: -1- AM_CONDITIONAL([HAVE_QSORT_R], [ test x$HAVE_QSORT_R = x1 ]) +m4trace:configure.ac:240: -1- m4_pattern_allow([^HAVE_QSORT_R_TRUE$]) +m4trace:configure.ac:240: -1- m4_pattern_allow([^HAVE_QSORT_R_FALSE$]) +m4trace:configure.ac:240: -1- _AM_SUBST_NOTMAKE([HAVE_QSORT_R_TRUE]) +m4trace:configure.ac:240: -1- _AM_SUBST_NOTMAKE([HAVE_QSORT_R_FALSE]) +m4trace:configure.ac:242: -1- PKG_CHECK_MODULES([LIBYAML], [ yaml-0.1 ], [HAVE_LIBYAML=1], [HAVE_LIBYAML=0]) +m4trace:configure.ac:242: -1- m4_pattern_allow([^LIBYAML_CFLAGS$]) +m4trace:configure.ac:242: -1- m4_pattern_allow([^LIBYAML_LIBS$]) +m4trace:configure.ac:242: -1- PKG_CHECK_EXISTS([ yaml-0.1 ], [pkg_cv_[]LIBYAML_CFLAGS=`$PKG_CONFIG --[]cflags " yaml-0.1 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) -m4trace:configure.ac:142: -1- PKG_CHECK_EXISTS([ yaml-0.1 ], [pkg_cv_[]LIBYAML_LIBS=`$PKG_CONFIG --[]libs " yaml-0.1 " 2>/dev/null` +m4trace:configure.ac:242: -1- PKG_CHECK_EXISTS([ yaml-0.1 ], [pkg_cv_[]LIBYAML_LIBS=`$PKG_CONFIG --[]libs " yaml-0.1 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) -m4trace:configure.ac:142: -1- _PKG_SHORT_ERRORS_SUPPORTED -m4trace:configure.ac:149: -1- m4_pattern_allow([^HAVE_LIBYAML$]) -m4trace:configure.ac:150: -1- m4_pattern_allow([^LIBYAML_CFLAGS$]) -m4trace:configure.ac:151: -1- m4_pattern_allow([^LIBYAML_LIBS$]) -m4trace:configure.ac:152: -1- m4_pattern_allow([^HAVE_LIBYAML$]) -m4trace:configure.ac:153: -1- AM_CONDITIONAL([HAVE_LIBYAML], [ test x$HAVE_LIBYAML = x1 ]) -m4trace:configure.ac:153: -1- m4_pattern_allow([^HAVE_LIBYAML_TRUE$]) -m4trace:configure.ac:153: -1- m4_pattern_allow([^HAVE_LIBYAML_FALSE$]) -m4trace:configure.ac:153: -1- _AM_SUBST_NOTMAKE([HAVE_LIBYAML_TRUE]) -m4trace:configure.ac:153: -1- _AM_SUBST_NOTMAKE([HAVE_LIBYAML_FALSE]) -m4trace:configure.ac:155: -1- PKG_CHECK_MODULES([CHECK], [ check ], [HAVE_CHECK=1], [HAVE_CHECK=0]) -m4trace:configure.ac:155: -1- m4_pattern_allow([^CHECK_CFLAGS$]) -m4trace:configure.ac:155: -1- m4_pattern_allow([^CHECK_LIBS$]) -m4trace:configure.ac:155: -1- PKG_CHECK_EXISTS([ check ], [pkg_cv_[]CHECK_CFLAGS=`$PKG_CONFIG --[]cflags " check " 2>/dev/null` +m4trace:configure.ac:242: -1- _PKG_SHORT_ERRORS_SUPPORTED +m4trace:configure.ac:249: -1- m4_pattern_allow([^HAVE_LIBYAML$]) +m4trace:configure.ac:250: -1- m4_pattern_allow([^LIBYAML_CFLAGS$]) +m4trace:configure.ac:251: -1- m4_pattern_allow([^LIBYAML_LIBS$]) +m4trace:configure.ac:252: -1- m4_pattern_allow([^HAVE_LIBYAML$]) +m4trace:configure.ac:253: -1- AM_CONDITIONAL([HAVE_LIBYAML], [ test x$HAVE_LIBYAML = x1 ]) +m4trace:configure.ac:253: -1- m4_pattern_allow([^HAVE_LIBYAML_TRUE$]) +m4trace:configure.ac:253: -1- m4_pattern_allow([^HAVE_LIBYAML_FALSE$]) +m4trace:configure.ac:253: -1- _AM_SUBST_NOTMAKE([HAVE_LIBYAML_TRUE]) +m4trace:configure.ac:253: -1- _AM_SUBST_NOTMAKE([HAVE_LIBYAML_FALSE]) +m4trace:configure.ac:255: -1- PKG_CHECK_MODULES([CHECK], [ check ], [HAVE_CHECK=1], [HAVE_CHECK=0]) +m4trace:configure.ac:255: -1- m4_pattern_allow([^CHECK_CFLAGS$]) +m4trace:configure.ac:255: -1- m4_pattern_allow([^CHECK_LIBS$]) +m4trace:configure.ac:255: -1- PKG_CHECK_EXISTS([ check ], [pkg_cv_[]CHECK_CFLAGS=`$PKG_CONFIG --[]cflags " check " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) -m4trace:configure.ac:155: -1- PKG_CHECK_EXISTS([ check ], [pkg_cv_[]CHECK_LIBS=`$PKG_CONFIG --[]libs " check " 2>/dev/null` +m4trace:configure.ac:255: -1- PKG_CHECK_EXISTS([ check ], [pkg_cv_[]CHECK_LIBS=`$PKG_CONFIG --[]libs " check " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) -m4trace:configure.ac:155: -1- _PKG_SHORT_ERRORS_SUPPORTED -m4trace:configure.ac:157: -1- m4_pattern_allow([^HAVE_CHECK$]) -m4trace:configure.ac:158: -1- m4_pattern_allow([^CHECK_CFLAGS$]) -m4trace:configure.ac:159: -1- m4_pattern_allow([^CHECK_LDFLAGS$]) -m4trace:configure.ac:160: -1- m4_pattern_allow([^CHECK_LIBS$]) -m4trace:configure.ac:161: -1- m4_pattern_allow([^HAVE_CHECK$]) -m4trace:configure.ac:162: -1- AM_CONDITIONAL([HAVE_CHECK], [ test x$HAVE_CHECK = x1 ]) -m4trace:configure.ac:162: -1- m4_pattern_allow([^HAVE_CHECK_TRUE$]) -m4trace:configure.ac:162: -1- m4_pattern_allow([^HAVE_CHECK_FALSE$]) -m4trace:configure.ac:162: -1- _AM_SUBST_NOTMAKE([HAVE_CHECK_TRUE]) -m4trace:configure.ac:162: -1- _AM_SUBST_NOTMAKE([HAVE_CHECK_FALSE]) -m4trace:configure.ac:180: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK$]) -m4trace:configure.ac:181: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK$]) -m4trace:configure.ac:182: -1- AM_CONDITIONAL([HAVE_COMPATIBLE_CHECK], [ test x$HAVE_COMPATIBLE_CHECK = x1 ]) -m4trace:configure.ac:182: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK_TRUE$]) -m4trace:configure.ac:182: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK_FALSE$]) -m4trace:configure.ac:182: -1- _AM_SUBST_NOTMAKE([HAVE_COMPATIBLE_CHECK_TRUE]) -m4trace:configure.ac:182: -1- _AM_SUBST_NOTMAKE([HAVE_COMPATIBLE_CHECK_FALSE]) -m4trace:configure.ac:194: -1- m4_pattern_allow([^HAVE_NETWORK$]) -m4trace:configure.ac:195: -1- AM_CONDITIONAL([HAVE_NETWORK], [ test x$HAVE_NETWORK = x1 ]) -m4trace:configure.ac:195: -1- m4_pattern_allow([^HAVE_NETWORK_TRUE$]) -m4trace:configure.ac:195: -1- m4_pattern_allow([^HAVE_NETWORK_FALSE$]) -m4trace:configure.ac:195: -1- _AM_SUBST_NOTMAKE([HAVE_NETWORK_TRUE]) -m4trace:configure.ac:195: -1- _AM_SUBST_NOTMAKE([HAVE_NETWORK_FALSE]) -m4trace:configure.ac:208: -1- m4_pattern_allow([^HAVE_DEVMODE$]) -m4trace:configure.ac:209: -1- AM_CONDITIONAL([HAVE_DEVMODE], [ test x$HAVE_DEVMODE = x1 ]) -m4trace:configure.ac:209: -1- m4_pattern_allow([^HAVE_DEVMODE_TRUE$]) -m4trace:configure.ac:209: -1- m4_pattern_allow([^HAVE_DEVMODE_FALSE$]) -m4trace:configure.ac:209: -1- _AM_SUBST_NOTMAKE([HAVE_DEVMODE_TRUE]) -m4trace:configure.ac:209: -1- _AM_SUBST_NOTMAKE([HAVE_DEVMODE_FALSE]) -m4trace:configure.ac:211: -1- m4_pattern_allow([^HAVE_DEVMODE$]) -m4trace:configure.ac:214: -1- m4_pattern_allow([^SPHINX$]) -m4trace:configure.ac:218: -1- m4_pattern_allow([^PIP3$]) -m4trace:configure.ac:267: -1- m4_pattern_allow([^HAVE_SPHINX$]) -m4trace:configure.ac:268: -1- AM_CONDITIONAL([HAVE_SPHINX], [ test x$HAVE_SPHINX = x1 ]) -m4trace:configure.ac:268: -1- m4_pattern_allow([^HAVE_SPHINX_TRUE$]) -m4trace:configure.ac:268: -1- m4_pattern_allow([^HAVE_SPHINX_FALSE$]) -m4trace:configure.ac:268: -1- _AM_SUBST_NOTMAKE([HAVE_SPHINX_TRUE]) -m4trace:configure.ac:268: -1- _AM_SUBST_NOTMAKE([HAVE_SPHINX_FALSE]) -m4trace:configure.ac:271: -1- m4_pattern_allow([^GIT$]) -m4trace:configure.ac:277: -1- m4_pattern_allow([^HAVE_GIT$]) -m4trace:configure.ac:278: -1- AM_CONDITIONAL([HAVE_GIT], [ test x$HAVE_GIT = x1 ]) -m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_GIT_TRUE$]) -m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_GIT_FALSE$]) -m4trace:configure.ac:278: -1- _AM_SUBST_NOTMAKE([HAVE_GIT_TRUE]) -m4trace:configure.ac:278: -1- _AM_SUBST_NOTMAKE([HAVE_GIT_FALSE]) -m4trace:configure.ac:280: -1- m4_pattern_allow([^TESTSUITEURL$]) -m4trace:configure.ac:286: -1- m4_pattern_allow([^TESTSUITECHECKOUT$]) -m4trace:configure.ac:292: -1- m4_pattern_allow([^JSONTESTSUITEURL$]) -m4trace:configure.ac:298: -1- m4_pattern_allow([^JSONTESTSUITECHECKOUT$]) -m4trace:configure.ac:305: -1- m4_pattern_allow([^DOCKER$]) -m4trace:configure.ac:311: -1- AM_CONDITIONAL([HAVE_DOCKER], [ test x$HAVE_DOCKER = x1 ]) -m4trace:configure.ac:311: -1- m4_pattern_allow([^HAVE_DOCKER_TRUE$]) -m4trace:configure.ac:311: -1- m4_pattern_allow([^HAVE_DOCKER_FALSE$]) -m4trace:configure.ac:311: -1- _AM_SUBST_NOTMAKE([HAVE_DOCKER_TRUE]) -m4trace:configure.ac:311: -1- _AM_SUBST_NOTMAKE([HAVE_DOCKER_FALSE]) -m4trace:configure.ac:314: -1- m4_pattern_allow([^JQ$]) -m4trace:configure.ac:320: -1- m4_pattern_allow([^HAVE_JQ$]) -m4trace:configure.ac:321: -1- AM_CONDITIONAL([HAVE_JQ], [ test x$HAVE_JQ = x1 ]) -m4trace:configure.ac:321: -1- m4_pattern_allow([^HAVE_JQ_TRUE$]) -m4trace:configure.ac:321: -1- m4_pattern_allow([^HAVE_JQ_FALSE$]) -m4trace:configure.ac:321: -1- _AM_SUBST_NOTMAKE([HAVE_JQ_TRUE]) -m4trace:configure.ac:321: -1- _AM_SUBST_NOTMAKE([HAVE_JQ_FALSE]) -m4trace:configure.ac:322: -1- m4_pattern_allow([^JQ$]) -m4trace:configure.ac:340: -1- m4_pattern_allow([^LIB@&t@OBJS$]) -m4trace:configure.ac:340: -1- m4_pattern_allow([^LTLIBOBJS$]) -m4trace:configure.ac:340: -1- AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"]) -m4trace:configure.ac:340: -1- m4_pattern_allow([^am__EXEEXT_TRUE$]) -m4trace:configure.ac:340: -1- m4_pattern_allow([^am__EXEEXT_FALSE$]) -m4trace:configure.ac:340: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_TRUE]) -m4trace:configure.ac:340: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_FALSE]) -m4trace:configure.ac:340: -1- _AC_AM_CONFIG_HEADER_HOOK(["$ac_file"]) -m4trace:configure.ac:340: -1- _AM_OUTPUT_DEPENDENCY_COMMANDS -m4trace:configure.ac:340: -1- AM_RUN_LOG([cd "$am_dirpart" \ +m4trace:configure.ac:255: -1- _PKG_SHORT_ERRORS_SUPPORTED +m4trace:configure.ac:257: -1- m4_pattern_allow([^HAVE_CHECK$]) +m4trace:configure.ac:258: -1- m4_pattern_allow([^CHECK_CFLAGS$]) +m4trace:configure.ac:259: -1- m4_pattern_allow([^CHECK_LDFLAGS$]) +m4trace:configure.ac:260: -1- m4_pattern_allow([^CHECK_LIBS$]) +m4trace:configure.ac:261: -1- m4_pattern_allow([^HAVE_CHECK$]) +m4trace:configure.ac:262: -1- AM_CONDITIONAL([HAVE_CHECK], [ test x$HAVE_CHECK = x1 ]) +m4trace:configure.ac:262: -1- m4_pattern_allow([^HAVE_CHECK_TRUE$]) +m4trace:configure.ac:262: -1- m4_pattern_allow([^HAVE_CHECK_FALSE$]) +m4trace:configure.ac:262: -1- _AM_SUBST_NOTMAKE([HAVE_CHECK_TRUE]) +m4trace:configure.ac:262: -1- _AM_SUBST_NOTMAKE([HAVE_CHECK_FALSE]) +m4trace:configure.ac:280: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK$]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK$]) +m4trace:configure.ac:282: -1- AM_CONDITIONAL([HAVE_COMPATIBLE_CHECK], [ test x$HAVE_COMPATIBLE_CHECK = x1 ]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK_TRUE$]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK_FALSE$]) +m4trace:configure.ac:282: -1- _AM_SUBST_NOTMAKE([HAVE_COMPATIBLE_CHECK_TRUE]) +m4trace:configure.ac:282: -1- _AM_SUBST_NOTMAKE([HAVE_COMPATIBLE_CHECK_FALSE]) +m4trace:configure.ac:294: -1- m4_pattern_allow([^HAVE_NETWORK$]) +m4trace:configure.ac:295: -1- AM_CONDITIONAL([HAVE_NETWORK], [ test x$HAVE_NETWORK = x1 ]) +m4trace:configure.ac:295: -1- m4_pattern_allow([^HAVE_NETWORK_TRUE$]) +m4trace:configure.ac:295: -1- m4_pattern_allow([^HAVE_NETWORK_FALSE$]) +m4trace:configure.ac:295: -1- _AM_SUBST_NOTMAKE([HAVE_NETWORK_TRUE]) +m4trace:configure.ac:295: -1- _AM_SUBST_NOTMAKE([HAVE_NETWORK_FALSE]) +m4trace:configure.ac:308: -1- m4_pattern_allow([^HAVE_DEVMODE$]) +m4trace:configure.ac:309: -1- AM_CONDITIONAL([HAVE_DEVMODE], [ test x$HAVE_DEVMODE = x1 ]) +m4trace:configure.ac:309: -1- m4_pattern_allow([^HAVE_DEVMODE_TRUE$]) +m4trace:configure.ac:309: -1- m4_pattern_allow([^HAVE_DEVMODE_FALSE$]) +m4trace:configure.ac:309: -1- _AM_SUBST_NOTMAKE([HAVE_DEVMODE_TRUE]) +m4trace:configure.ac:309: -1- _AM_SUBST_NOTMAKE([HAVE_DEVMODE_FALSE]) +m4trace:configure.ac:311: -1- m4_pattern_allow([^HAVE_DEVMODE$]) +m4trace:configure.ac:314: -1- m4_pattern_allow([^SPHINX$]) +m4trace:configure.ac:318: -1- m4_pattern_allow([^PIP3$]) +m4trace:configure.ac:367: -1- m4_pattern_allow([^HAVE_SPHINX$]) +m4trace:configure.ac:368: -1- AM_CONDITIONAL([HAVE_SPHINX], [ test x$HAVE_SPHINX = x1 ]) +m4trace:configure.ac:368: -1- m4_pattern_allow([^HAVE_SPHINX_TRUE$]) +m4trace:configure.ac:368: -1- m4_pattern_allow([^HAVE_SPHINX_FALSE$]) +m4trace:configure.ac:368: -1- _AM_SUBST_NOTMAKE([HAVE_SPHINX_TRUE]) +m4trace:configure.ac:368: -1- _AM_SUBST_NOTMAKE([HAVE_SPHINX_FALSE]) +m4trace:configure.ac:371: -1- m4_pattern_allow([^GIT$]) +m4trace:configure.ac:377: -1- m4_pattern_allow([^HAVE_GIT$]) +m4trace:configure.ac:378: -1- AM_CONDITIONAL([HAVE_GIT], [ test x$HAVE_GIT = x1 ]) +m4trace:configure.ac:378: -1- m4_pattern_allow([^HAVE_GIT_TRUE$]) +m4trace:configure.ac:378: -1- m4_pattern_allow([^HAVE_GIT_FALSE$]) +m4trace:configure.ac:378: -1- _AM_SUBST_NOTMAKE([HAVE_GIT_TRUE]) +m4trace:configure.ac:378: -1- _AM_SUBST_NOTMAKE([HAVE_GIT_FALSE]) +m4trace:configure.ac:380: -1- m4_pattern_allow([^TESTSUITEURL$]) +m4trace:configure.ac:386: -1- m4_pattern_allow([^TESTSUITECHECKOUT$]) +m4trace:configure.ac:392: -1- m4_pattern_allow([^JSONTESTSUITEURL$]) +m4trace:configure.ac:398: -1- m4_pattern_allow([^JSONTESTSUITECHECKOUT$]) +m4trace:configure.ac:405: -1- m4_pattern_allow([^DOCKER$]) +m4trace:configure.ac:411: -1- AM_CONDITIONAL([HAVE_DOCKER], [ test x$HAVE_DOCKER = x1 ]) +m4trace:configure.ac:411: -1- m4_pattern_allow([^HAVE_DOCKER_TRUE$]) +m4trace:configure.ac:411: -1- m4_pattern_allow([^HAVE_DOCKER_FALSE$]) +m4trace:configure.ac:411: -1- _AM_SUBST_NOTMAKE([HAVE_DOCKER_TRUE]) +m4trace:configure.ac:411: -1- _AM_SUBST_NOTMAKE([HAVE_DOCKER_FALSE]) +m4trace:configure.ac:414: -1- m4_pattern_allow([^JQ$]) +m4trace:configure.ac:420: -1- m4_pattern_allow([^HAVE_JQ$]) +m4trace:configure.ac:421: -1- AM_CONDITIONAL([HAVE_JQ], [ test x$HAVE_JQ = x1 ]) +m4trace:configure.ac:421: -1- m4_pattern_allow([^HAVE_JQ_TRUE$]) +m4trace:configure.ac:421: -1- m4_pattern_allow([^HAVE_JQ_FALSE$]) +m4trace:configure.ac:421: -1- _AM_SUBST_NOTMAKE([HAVE_JQ_TRUE]) +m4trace:configure.ac:421: -1- _AM_SUBST_NOTMAKE([HAVE_JQ_FALSE]) +m4trace:configure.ac:422: -1- m4_pattern_allow([^JQ$]) +m4trace:configure.ac:459: -1- m4_pattern_allow([^LLVM_CONFIG$]) +m4trace:configure.ac:498: -1- m4_pattern_allow([^HAVE_LIBCLANG$]) +m4trace:configure.ac:499: -1- m4_pattern_allow([^LIBCLANG_CFLAGS$]) +m4trace:configure.ac:500: -1- m4_pattern_allow([^LIBCLANG_CPPFLAGS$]) +m4trace:configure.ac:501: -1- m4_pattern_allow([^LIBCLANG_LDFLAGS$]) +m4trace:configure.ac:502: -1- m4_pattern_allow([^LIBCLANG_LIBS$]) +m4trace:configure.ac:503: -1- m4_pattern_allow([^HAVE_LIBCLANG$]) +m4trace:configure.ac:504: -1- AM_CONDITIONAL([HAVE_LIBCLANG], [ test x$HAVE_LIBCLANG = x1 ]) +m4trace:configure.ac:504: -1- m4_pattern_allow([^HAVE_LIBCLANG_TRUE$]) +m4trace:configure.ac:504: -1- m4_pattern_allow([^HAVE_LIBCLANG_FALSE$]) +m4trace:configure.ac:504: -1- _AM_SUBST_NOTMAKE([HAVE_LIBCLANG_TRUE]) +m4trace:configure.ac:504: -1- _AM_SUBST_NOTMAKE([HAVE_LIBCLANG_FALSE]) +m4trace:configure.ac:539: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:539: -1- m4_pattern_allow([^LTLIBOBJS$]) +m4trace:configure.ac:539: -1- AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"]) +m4trace:configure.ac:539: -1- m4_pattern_allow([^am__EXEEXT_TRUE$]) +m4trace:configure.ac:539: -1- m4_pattern_allow([^am__EXEEXT_FALSE$]) +m4trace:configure.ac:539: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_TRUE]) +m4trace:configure.ac:539: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_FALSE]) +m4trace:configure.ac:539: -1- _AC_AM_CONFIG_HEADER_HOOK(["$ac_file"]) +m4trace:configure.ac:539: -1- _AM_OUTPUT_DEPENDENCY_COMMANDS +m4trace:configure.ac:539: -1- AM_RUN_LOG([cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles]) -m4trace:configure.ac:340: -1- _LT_PROG_LTMAIN +m4trace:configure.ac:539: -1- _LT_PROG_LTMAIN diff --git a/Sources/Cfyaml/autom4te.cache/traces.1 b/Sources/Cfyaml/autom4te.cache/traces.1 index ab2212bb0..8d891ce80 100644 --- a/Sources/Cfyaml/autom4te.cache/traces.1 +++ b/Sources/Cfyaml/autom4te.cache/traces.1 @@ -77,7 +77,7 @@ _$0() ]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:82: -1- AU_DEFUN([AC_LIBLTDL_CONVENIENCE], [_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) _LTDL_CONVENIENCE]) -m4trace:/opt/homebrew/share/aclocal/ltdl.m4:82: -1- AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [m4_warn([obsolete], [The macro `AC_LIBLTDL_CONVENIENCE' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltdl.m4:82: -1- AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [m4_warn([obsolete], [The macro 'AC_LIBLTDL_CONVENIENCE' is obsolete. You should run autoupdate.])dnl _LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) _LTDL_CONVENIENCE]) @@ -92,7 +92,7 @@ _$0() ]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:138: -1- AU_DEFUN([AC_LIBLTDL_INSTALLABLE], [_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) _LTDL_INSTALLABLE]) -m4trace:/opt/homebrew/share/aclocal/ltdl.m4:138: -1- AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [m4_warn([obsolete], [The macro `AC_LIBLTDL_INSTALLABLE' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltdl.m4:138: -1- AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [m4_warn([obsolete], [The macro 'AC_LIBLTDL_INSTALLABLE' is obsolete. You should run autoupdate.])dnl _LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) _LTDL_INSTALLABLE]) @@ -224,15 +224,15 @@ AC_CONFIG_COMMANDS_PRE([ m4_define([LTDL_INIT]) ]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:353: -1- AU_DEFUN([AC_LIB_LTDL], [LTDL_INIT($@)]) -m4trace:/opt/homebrew/share/aclocal/ltdl.m4:353: -1- AC_DEFUN([AC_LIB_LTDL], [m4_warn([obsolete], [The macro `AC_LIB_LTDL' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltdl.m4:353: -1- AC_DEFUN([AC_LIB_LTDL], [m4_warn([obsolete], [The macro 'AC_LIB_LTDL' is obsolete. You should run autoupdate.])dnl LTDL_INIT($@)]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:354: -1- AU_DEFUN([AC_WITH_LTDL], [LTDL_INIT($@)]) -m4trace:/opt/homebrew/share/aclocal/ltdl.m4:354: -1- AC_DEFUN([AC_WITH_LTDL], [m4_warn([obsolete], [The macro `AC_WITH_LTDL' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltdl.m4:354: -1- AC_DEFUN([AC_WITH_LTDL], [m4_warn([obsolete], [The macro 'AC_WITH_LTDL' is obsolete. You should run autoupdate.])dnl LTDL_INIT($@)]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:355: -1- AU_DEFUN([LT_WITH_LTDL], [LTDL_INIT($@)]) -m4trace:/opt/homebrew/share/aclocal/ltdl.m4:355: -1- AC_DEFUN([LT_WITH_LTDL], [m4_warn([obsolete], [The macro `LT_WITH_LTDL' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltdl.m4:355: -1- AC_DEFUN([LT_WITH_LTDL], [m4_warn([obsolete], [The macro 'LT_WITH_LTDL' is obsolete. You should run autoupdate.])dnl LTDL_INIT($@)]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:368: -1- AC_DEFUN([_LTDL_SETUP], [AC_REQUIRE([AC_PROG_CC])dnl @@ -389,7 +389,7 @@ if test yes != "$lt_cv_sys_dlopen_deplibs"; then fi ]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:546: -1- AU_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [m4_if($#, 0, [LT_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/ltdl.m4:546: -1- AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [m4_warn([obsolete], [The macro `AC_LTDL_SYS_DLOPEN_DEPLIBS' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltdl.m4:546: -1- AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [m4_warn([obsolete], [The macro 'AC_LTDL_SYS_DLOPEN_DEPLIBS' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS($@)])]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:553: -1- AC_DEFUN([LT_SYS_MODULE_EXT], [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl @@ -418,7 +418,7 @@ if test -n "$shared_archive_member_spec"; then fi ]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:581: -1- AU_DEFUN([AC_LTDL_SHLIBEXT], [m4_if($#, 0, [LT_SYS_MODULE_EXT], [LT_SYS_MODULE_EXT($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/ltdl.m4:581: -1- AC_DEFUN([AC_LTDL_SHLIBEXT], [m4_warn([obsolete], [The macro `AC_LTDL_SHLIBEXT' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltdl.m4:581: -1- AC_DEFUN([AC_LTDL_SHLIBEXT], [m4_warn([obsolete], [The macro 'AC_LTDL_SHLIBEXT' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_SYS_MODULE_EXT], [LT_SYS_MODULE_EXT($@)])]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:588: -1- AC_DEFUN([LT_SYS_MODULE_PATH], [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl @@ -431,7 +431,7 @@ if test -n "$lt_cv_module_path_var"; then fi ]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:600: -1- AU_DEFUN([AC_LTDL_SHLIBPATH], [m4_if($#, 0, [LT_SYS_MODULE_PATH], [LT_SYS_MODULE_PATH($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/ltdl.m4:600: -1- AC_DEFUN([AC_LTDL_SHLIBPATH], [m4_warn([obsolete], [The macro `AC_LTDL_SHLIBPATH' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltdl.m4:600: -1- AC_DEFUN([AC_LTDL_SHLIBPATH], [m4_warn([obsolete], [The macro 'AC_LTDL_SHLIBPATH' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_SYS_MODULE_PATH], [LT_SYS_MODULE_PATH($@)])]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:607: -1- AC_DEFUN([LT_SYS_DLSEARCH_PATH], [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl @@ -453,7 +453,7 @@ if test -n "$lt_cv_sys_dlsearch_path"; then fi ]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:628: -1- AU_DEFUN([AC_LTDL_SYSSEARCHPATH], [m4_if($#, 0, [LT_SYS_DLSEARCH_PATH], [LT_SYS_DLSEARCH_PATH($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/ltdl.m4:628: -1- AC_DEFUN([AC_LTDL_SYSSEARCHPATH], [m4_warn([obsolete], [The macro `AC_LTDL_SYSSEARCHPATH' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltdl.m4:628: -1- AC_DEFUN([AC_LTDL_SYSSEARCHPATH], [m4_warn([obsolete], [The macro 'AC_LTDL_SYSSEARCHPATH' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_SYS_DLSEARCH_PATH], [LT_SYS_DLSEARCH_PATH($@)])]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:654: -1- AC_DEFUN([LT_LIB_DLLOAD], [m4_pattern_allow([^LT_DLLOADERS$]) @@ -549,7 +549,7 @@ LIBS=$lt_dlload_save_LIBS AC_LANG_POP ]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:749: -1- AU_DEFUN([AC_LTDL_DLLIB], [m4_if($#, 0, [LT_LIB_DLLOAD], [LT_LIB_DLLOAD($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/ltdl.m4:749: -1- AC_DEFUN([AC_LTDL_DLLIB], [m4_warn([obsolete], [The macro `AC_LTDL_DLLIB' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltdl.m4:749: -1- AC_DEFUN([AC_LTDL_DLLIB], [m4_warn([obsolete], [The macro 'AC_LTDL_DLLIB' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_LIB_DLLOAD], [LT_LIB_DLLOAD($@)])]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:757: -1- AC_DEFUN([LT_SYS_SYMBOL_USCORE], [m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl @@ -587,7 +587,7 @@ _LT_EOF AC_SUBST([sys_symbol_underscore]) ]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:794: -1- AU_DEFUN([AC_LTDL_SYMBOL_USCORE], [m4_if($#, 0, [LT_SYS_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/ltdl.m4:794: -1- AC_DEFUN([AC_LTDL_SYMBOL_USCORE], [m4_warn([obsolete], [The macro `AC_LTDL_SYMBOL_USCORE' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltdl.m4:794: -1- AC_DEFUN([AC_LTDL_SYMBOL_USCORE], [m4_warn([obsolete], [The macro 'AC_LTDL_SYMBOL_USCORE' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_SYS_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE($@)])]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:801: -1- AC_DEFUN([LT_FUNC_DLSYM_USCORE], [AC_REQUIRE([_LT_COMPILER_PIC])dnl for lt_prog_compiler_wl @@ -695,7 +695,7 @@ if test yes = "$libltdl_cv_need_uscore"; then fi ]) m4trace:/opt/homebrew/share/aclocal/ltdl.m4:908: -1- AU_DEFUN([AC_LTDL_DLSYM_USCORE], [m4_if($#, 0, [LT_FUNC_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE($@)])], [], []) -m4trace:/opt/homebrew/share/aclocal/ltdl.m4:908: -1- AC_DEFUN([AC_LTDL_DLSYM_USCORE], [m4_warn([obsolete], [The macro `AC_LTDL_DLSYM_USCORE' is obsolete. +m4trace:/opt/homebrew/share/aclocal/ltdl.m4:908: -1- AC_DEFUN([AC_LTDL_DLSYM_USCORE], [m4_warn([obsolete], [The macro 'AC_LTDL_DLSYM_USCORE' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_FUNC_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE($@)])]) m4trace:/opt/homebrew/share/aclocal/pkg.m4:58: -1- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) @@ -877,10 +877,31 @@ unknown) esac AC_SUBST([AR])dnl ]) +m4trace:/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/as.m4:11: -1- AC_DEFUN([AM_PROG_AS], [# By default we simply use the C compiler to build assembly code. +AC_REQUIRE([AC_PROG_CC]) +test "${CCAS+set}" = set || CCAS=$CC +test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS +AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)]) +AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)]) +_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl +]) m4trace:/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/auxdir.m4:47: -1- AC_DEFUN([AM_AUX_DIR_EXPAND], [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` ]) +m4trace:/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/cond-if.m4:23: -1- AC_DEFUN([AM_COND_IF], [m4_ifndef([_AM_COND_VALUE_$1], + [m4_fatal([$0: no such condition "$1"])])dnl +_AM_COND_IF([$1])dnl +if test -z "$$1_TRUE"; then : + m4_n([$2])[]dnl +m4_ifval([$3], +[_AM_COND_ELSE([$1])dnl +else + $3 +])dnl +_AM_COND_ENDIF([$1])dnl +fi[]dnl +]) m4trace:/opt/homebrew/Cellar/automake/1.16.5/share/aclocal-1.16/cond.m4:12: -1- AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl @@ -1757,7 +1778,7 @@ m4trace:m4/ax_check_flag.m4:143: -1- AC_DEFUN([AX_APPEND_LINK_FLAGS], [for flag done ]) m4trace:m4/ax_pthread.m4:87: -1- AU_DEFUN([ACX_PTHREAD], [m4_if($#, 0, [AX_PTHREAD], [AX_PTHREAD($@)])], [], []) -m4trace:m4/ax_pthread.m4:87: -1- AC_DEFUN([ACX_PTHREAD], [m4_warn([obsolete], [The macro `ACX_PTHREAD' is obsolete. +m4trace:m4/ax_pthread.m4:87: -1- AC_DEFUN([ACX_PTHREAD], [m4_warn([obsolete], [The macro 'ACX_PTHREAD' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [AX_PTHREAD], [AX_PTHREAD($@)])]) m4trace:m4/ax_pthread.m4:88: -1- AC_DEFUN([AX_PTHREAD], [ @@ -2026,11 +2047,11 @@ _LT_SETUP m4_define([LT_INIT]) ]) m4trace:m4/libtool.m4:100: -1- AU_DEFUN([AC_PROG_LIBTOOL], [m4_if($#, 0, [LT_INIT], [LT_INIT($@)])], [], []) -m4trace:m4/libtool.m4:100: -1- AC_DEFUN([AC_PROG_LIBTOOL], [m4_warn([obsolete], [The macro `AC_PROG_LIBTOOL' is obsolete. +m4trace:m4/libtool.m4:100: -1- AC_DEFUN([AC_PROG_LIBTOOL], [m4_warn([obsolete], [The macro 'AC_PROG_LIBTOOL' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_INIT], [LT_INIT($@)])]) m4trace:m4/libtool.m4:101: -1- AU_DEFUN([AM_PROG_LIBTOOL], [m4_if($#, 0, [LT_INIT], [LT_INIT($@)])], [], []) -m4trace:m4/libtool.m4:101: -1- AC_DEFUN([AM_PROG_LIBTOOL], [m4_warn([obsolete], [The macro `AM_PROG_LIBTOOL' is obsolete. +m4trace:m4/libtool.m4:101: -1- AC_DEFUN([AM_PROG_LIBTOOL], [m4_warn([obsolete], [The macro 'AM_PROG_LIBTOOL' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_INIT], [LT_INIT($@)])]) m4trace:m4/libtool.m4:621: -1- AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} @@ -2133,23 +2154,23 @@ m4_case([$1], [m4_fatal([$0: unsupported language: "$1"])])])dnl ]) m4trace:m4/libtool.m4:917: -1- AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) -m4trace:m4/libtool.m4:917: -1- AC_DEFUN([AC_LIBTOOL_CXX], [m4_warn([obsolete], [The macro `AC_LIBTOOL_CXX' is obsolete. +m4trace:m4/libtool.m4:917: -1- AC_DEFUN([AC_LIBTOOL_CXX], [m4_warn([obsolete], [The macro 'AC_LIBTOOL_CXX' is obsolete. You should run autoupdate.])dnl LT_LANG(C++)]) m4trace:m4/libtool.m4:918: -1- AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) -m4trace:m4/libtool.m4:918: -1- AC_DEFUN([AC_LIBTOOL_F77], [m4_warn([obsolete], [The macro `AC_LIBTOOL_F77' is obsolete. +m4trace:m4/libtool.m4:918: -1- AC_DEFUN([AC_LIBTOOL_F77], [m4_warn([obsolete], [The macro 'AC_LIBTOOL_F77' is obsolete. You should run autoupdate.])dnl LT_LANG(Fortran 77)]) m4trace:m4/libtool.m4:919: -1- AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) -m4trace:m4/libtool.m4:919: -1- AC_DEFUN([AC_LIBTOOL_FC], [m4_warn([obsolete], [The macro `AC_LIBTOOL_FC' is obsolete. +m4trace:m4/libtool.m4:919: -1- AC_DEFUN([AC_LIBTOOL_FC], [m4_warn([obsolete], [The macro 'AC_LIBTOOL_FC' is obsolete. You should run autoupdate.])dnl LT_LANG(Fortran)]) m4trace:m4/libtool.m4:920: -1- AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) -m4trace:m4/libtool.m4:920: -1- AC_DEFUN([AC_LIBTOOL_GCJ], [m4_warn([obsolete], [The macro `AC_LIBTOOL_GCJ' is obsolete. +m4trace:m4/libtool.m4:920: -1- AC_DEFUN([AC_LIBTOOL_GCJ], [m4_warn([obsolete], [The macro 'AC_LIBTOOL_GCJ' is obsolete. You should run autoupdate.])dnl LT_LANG(Java)]) m4trace:m4/libtool.m4:921: -1- AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) -m4trace:m4/libtool.m4:921: -1- AC_DEFUN([AC_LIBTOOL_RC], [m4_warn([obsolete], [The macro `AC_LIBTOOL_RC' is obsolete. +m4trace:m4/libtool.m4:921: -1- AC_DEFUN([AC_LIBTOOL_RC], [m4_warn([obsolete], [The macro 'AC_LIBTOOL_RC' is obsolete. You should run autoupdate.])dnl LT_LANG(Windows Resource)]) m4trace:m4/libtool.m4:1244: -1- AC_DEFUN([_LT_WITH_SYSROOT], [m4_require([_LT_DECL_SED])dnl @@ -2223,7 +2244,7 @@ else fi ]) m4trace:m4/libtool.m4:1631: -1- AU_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [m4_if($#, 0, [_LT_COMPILER_OPTION], [_LT_COMPILER_OPTION($@)])], [], []) -m4trace:m4/libtool.m4:1631: -1- AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [m4_warn([obsolete], [The macro `AC_LIBTOOL_COMPILER_OPTION' is obsolete. +m4trace:m4/libtool.m4:1631: -1- AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [m4_warn([obsolete], [The macro 'AC_LIBTOOL_COMPILER_OPTION' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [_LT_COMPILER_OPTION], [_LT_COMPILER_OPTION($@)])]) m4trace:m4/libtool.m4:1640: -1- AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl @@ -2259,7 +2280,7 @@ else fi ]) m4trace:m4/libtool.m4:1675: -1- AU_DEFUN([AC_LIBTOOL_LINKER_OPTION], [m4_if($#, 0, [_LT_LINKER_OPTION], [_LT_LINKER_OPTION($@)])], [], []) -m4trace:m4/libtool.m4:1675: -1- AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [m4_warn([obsolete], [The macro `AC_LIBTOOL_LINKER_OPTION' is obsolete. +m4trace:m4/libtool.m4:1675: -1- AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [m4_warn([obsolete], [The macro 'AC_LIBTOOL_LINKER_OPTION' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [_LT_LINKER_OPTION], [_LT_LINKER_OPTION($@)])]) m4trace:m4/libtool.m4:1682: -1- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl @@ -2399,7 +2420,7 @@ _LT_DECL([], [max_cmd_len], [0], [What is the maximum length of a command?]) ]) m4trace:m4/libtool.m4:1821: -1- AU_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [m4_if($#, 0, [LT_CMD_MAX_LEN], [LT_CMD_MAX_LEN($@)])], [], []) -m4trace:m4/libtool.m4:1821: -1- AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [m4_warn([obsolete], [The macro `AC_LIBTOOL_SYS_MAX_CMD_LEN' is obsolete. +m4trace:m4/libtool.m4:1821: -1- AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [m4_warn([obsolete], [The macro 'AC_LIBTOOL_SYS_MAX_CMD_LEN' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_CMD_MAX_LEN], [LT_CMD_MAX_LEN($@)])]) m4trace:m4/libtool.m4:1932: -1- AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl @@ -2525,7 +2546,7 @@ _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], [Whether dlopen of statically linked programs is supported]) ]) m4trace:m4/libtool.m4:2057: -1- AU_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [m4_if($#, 0, [LT_SYS_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF($@)])], [], []) -m4trace:m4/libtool.m4:2057: -1- AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [m4_warn([obsolete], [The macro `AC_LIBTOOL_DLOPEN_SELF' is obsolete. +m4trace:m4/libtool.m4:2057: -1- AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [m4_warn([obsolete], [The macro 'AC_LIBTOOL_DLOPEN_SELF' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_SYS_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF($@)])]) m4trace:m4/libtool.m4:3175: -1- AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl @@ -2588,7 +2609,7 @@ _LT_DECL([], [MAGIC_CMD], [0], [Used to examine libraries when file_magic_cmd begins with "file"])dnl ]) m4trace:m4/libtool.m4:3237: -1- AU_DEFUN([AC_PATH_TOOL_PREFIX], [m4_if($#, 0, [_LT_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX($@)])], [], []) -m4trace:m4/libtool.m4:3237: -1- AC_DEFUN([AC_PATH_TOOL_PREFIX], [m4_warn([obsolete], [The macro `AC_PATH_TOOL_PREFIX' is obsolete. +m4trace:m4/libtool.m4:3237: -1- AC_DEFUN([AC_PATH_TOOL_PREFIX], [m4_warn([obsolete], [The macro 'AC_PATH_TOOL_PREFIX' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [_LT_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX($@)])]) m4trace:m4/libtool.m4:3260: -1- AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl @@ -2678,11 +2699,11 @@ AC_SUBST([LD]) _LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) ]) m4trace:m4/libtool.m4:3349: -1- AU_DEFUN([AM_PROG_LD], [m4_if($#, 0, [LT_PATH_LD], [LT_PATH_LD($@)])], [], []) -m4trace:m4/libtool.m4:3349: -1- AC_DEFUN([AM_PROG_LD], [m4_warn([obsolete], [The macro `AM_PROG_LD' is obsolete. +m4trace:m4/libtool.m4:3349: -1- AC_DEFUN([AM_PROG_LD], [m4_warn([obsolete], [The macro 'AM_PROG_LD' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_PATH_LD], [LT_PATH_LD($@)])]) m4trace:m4/libtool.m4:3350: -1- AU_DEFUN([AC_PROG_LD], [m4_if($#, 0, [LT_PATH_LD], [LT_PATH_LD($@)])], [], []) -m4trace:m4/libtool.m4:3350: -1- AC_DEFUN([AC_PROG_LD], [m4_warn([obsolete], [The macro `AC_PROG_LD' is obsolete. +m4trace:m4/libtool.m4:3350: -1- AC_DEFUN([AC_PROG_LD], [m4_warn([obsolete], [The macro 'AC_PROG_LD' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_PATH_LD], [LT_PATH_LD($@)])]) m4trace:m4/libtool.m4:3679: -1- AC_DEFUN([LT_PATH_NM], [AC_REQUIRE([AC_PROG_CC])dnl @@ -2778,11 +2799,11 @@ AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], rm -f conftest*]) ]) m4trace:m4/libtool.m4:3774: -1- AU_DEFUN([AM_PROG_NM], [m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])], [], []) -m4trace:m4/libtool.m4:3774: -1- AC_DEFUN([AM_PROG_NM], [m4_warn([obsolete], [The macro `AM_PROG_NM' is obsolete. +m4trace:m4/libtool.m4:3774: -1- AC_DEFUN([AM_PROG_NM], [m4_warn([obsolete], [The macro 'AM_PROG_NM' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])]) m4trace:m4/libtool.m4:3775: -1- AU_DEFUN([AC_PROG_NM], [m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])], [], []) -m4trace:m4/libtool.m4:3775: -1- AC_DEFUN([AC_PROG_NM], [m4_warn([obsolete], [The macro `AC_PROG_NM' is obsolete. +m4trace:m4/libtool.m4:3775: -1- AC_DEFUN([AC_PROG_NM], [m4_warn([obsolete], [The macro 'AC_PROG_NM' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])]) m4trace:m4/libtool.m4:3846: -1- AC_DEFUN([_LT_DLL_DEF_P], [dnl @@ -2810,7 +2831,7 @@ esac AC_SUBST([LIBM]) ]) m4trace:m4/libtool.m4:3879: -1- AU_DEFUN([AC_CHECK_LIBM], [m4_if($#, 0, [LT_LIB_M], [LT_LIB_M($@)])], [], []) -m4trace:m4/libtool.m4:3879: -1- AC_DEFUN([AC_CHECK_LIBM], [m4_warn([obsolete], [The macro `AC_CHECK_LIBM' is obsolete. +m4trace:m4/libtool.m4:3879: -1- AC_DEFUN([AC_CHECK_LIBM], [m4_warn([obsolete], [The macro 'AC_CHECK_LIBM' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_LIB_M], [LT_LIB_M($@)])]) m4trace:m4/libtool.m4:8145: -1- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], @@ -2820,7 +2841,7 @@ m4trace:m4/libtool.m4:8145: -1- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], AC_SUBST(GCJFLAGS)])])[]dnl ]) m4trace:m4/libtool.m4:8154: -1- AU_DEFUN([LT_AC_PROG_GCJ], [m4_if($#, 0, [LT_PROG_GCJ], [LT_PROG_GCJ($@)])], [], []) -m4trace:m4/libtool.m4:8154: -1- AC_DEFUN([LT_AC_PROG_GCJ], [m4_warn([obsolete], [The macro `LT_AC_PROG_GCJ' is obsolete. +m4trace:m4/libtool.m4:8154: -1- AC_DEFUN([LT_AC_PROG_GCJ], [m4_warn([obsolete], [The macro 'LT_AC_PROG_GCJ' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_PROG_GCJ], [LT_PROG_GCJ($@)])]) m4trace:m4/libtool.m4:8161: -1- AC_DEFUN([LT_PROG_GO], [AC_CHECK_TOOL(GOC, gccgo,) @@ -2828,11 +2849,11 @@ m4trace:m4/libtool.m4:8161: -1- AC_DEFUN([LT_PROG_GO], [AC_CHECK_TOOL(GOC, gccgo m4trace:m4/libtool.m4:8168: -1- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ]) m4trace:m4/libtool.m4:8173: -1- AU_DEFUN([LT_AC_PROG_RC], [m4_if($#, 0, [LT_PROG_RC], [LT_PROG_RC($@)])], [], []) -m4trace:m4/libtool.m4:8173: -1- AC_DEFUN([LT_AC_PROG_RC], [m4_warn([obsolete], [The macro `LT_AC_PROG_RC' is obsolete. +m4trace:m4/libtool.m4:8173: -1- AC_DEFUN([LT_AC_PROG_RC], [m4_warn([obsolete], [The macro 'LT_AC_PROG_RC' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [LT_PROG_RC], [LT_PROG_RC($@)])]) m4trace:m4/libtool.m4:8301: -1- AU_DEFUN([LT_AC_PROG_SED], [m4_if($#, 0, [AC_PROG_SED], [AC_PROG_SED($@)])], [], []) -m4trace:m4/libtool.m4:8301: -1- AC_DEFUN([LT_AC_PROG_SED], [m4_warn([obsolete], [The macro `LT_AC_PROG_SED' is obsolete. +m4trace:m4/libtool.m4:8301: -1- AC_DEFUN([LT_AC_PROG_SED], [m4_warn([obsolete], [The macro 'LT_AC_PROG_SED' is obsolete. You should run autoupdate.])dnl m4_if($#, 0, [AC_PROG_SED], [AC_PROG_SED($@)])]) m4trace:m4/ltoptions.m4:14: -1- AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) @@ -2841,7 +2862,7 @@ AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'dlopen' option into LT_INIT's first parameter.]) ]) -m4trace:m4/ltoptions.m4:113: -1- AC_DEFUN([AC_LIBTOOL_DLOPEN], [m4_warn([obsolete], [The macro `AC_LIBTOOL_DLOPEN' is obsolete. +m4trace:m4/ltoptions.m4:113: -1- AC_DEFUN([AC_LIBTOOL_DLOPEN], [m4_warn([obsolete], [The macro 'AC_LIBTOOL_DLOPEN' is obsolete. You should run autoupdate.])dnl _LT_SET_OPTION([LT_INIT], [dlopen]) AC_DIAGNOSE([obsolete], @@ -2854,7 +2875,7 @@ AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'win32-dll' option into LT_INIT's first parameter.]) ]) -m4trace:m4/ltoptions.m4:148: -1- AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [m4_warn([obsolete], [The macro `AC_LIBTOOL_WIN32_DLL' is obsolete. +m4trace:m4/ltoptions.m4:148: -1- AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [m4_warn([obsolete], [The macro 'AC_LIBTOOL_WIN32_DLL' is obsolete. You should run autoupdate.])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl _LT_SET_OPTION([LT_INIT], [win32-dll]) @@ -2867,11 +2888,11 @@ m4trace:m4/ltoptions.m4:197: -1- AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([L m4trace:m4/ltoptions.m4:201: -1- AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) ]) m4trace:m4/ltoptions.m4:205: -1- AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) -m4trace:m4/ltoptions.m4:205: -1- AC_DEFUN([AM_ENABLE_SHARED], [m4_warn([obsolete], [The macro `AM_ENABLE_SHARED' is obsolete. +m4trace:m4/ltoptions.m4:205: -1- AC_DEFUN([AM_ENABLE_SHARED], [m4_warn([obsolete], [The macro 'AM_ENABLE_SHARED' is obsolete. You should run autoupdate.])dnl AC_ENABLE_SHARED($@)]) m4trace:m4/ltoptions.m4:206: -1- AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) -m4trace:m4/ltoptions.m4:206: -1- AC_DEFUN([AM_DISABLE_SHARED], [m4_warn([obsolete], [The macro `AM_DISABLE_SHARED' is obsolete. +m4trace:m4/ltoptions.m4:206: -1- AC_DEFUN([AM_DISABLE_SHARED], [m4_warn([obsolete], [The macro 'AM_DISABLE_SHARED' is obsolete. You should run autoupdate.])dnl AC_DISABLE_SHARED($@)]) m4trace:m4/ltoptions.m4:251: -1- AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) @@ -2879,11 +2900,11 @@ m4trace:m4/ltoptions.m4:251: -1- AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([L m4trace:m4/ltoptions.m4:255: -1- AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) ]) m4trace:m4/ltoptions.m4:259: -1- AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) -m4trace:m4/ltoptions.m4:259: -1- AC_DEFUN([AM_ENABLE_STATIC], [m4_warn([obsolete], [The macro `AM_ENABLE_STATIC' is obsolete. +m4trace:m4/ltoptions.m4:259: -1- AC_DEFUN([AM_ENABLE_STATIC], [m4_warn([obsolete], [The macro 'AM_ENABLE_STATIC' is obsolete. You should run autoupdate.])dnl AC_ENABLE_STATIC($@)]) m4trace:m4/ltoptions.m4:260: -1- AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) -m4trace:m4/ltoptions.m4:260: -1- AC_DEFUN([AM_DISABLE_STATIC], [m4_warn([obsolete], [The macro `AM_DISABLE_STATIC' is obsolete. +m4trace:m4/ltoptions.m4:260: -1- AC_DEFUN([AM_DISABLE_STATIC], [m4_warn([obsolete], [The macro 'AM_DISABLE_STATIC' is obsolete. You should run autoupdate.])dnl AC_DISABLE_STATIC($@)]) m4trace:m4/ltoptions.m4:305: -1- AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) @@ -2891,7 +2912,7 @@ AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'fast-install' option into LT_INIT's first parameter.]) ]) -m4trace:m4/ltoptions.m4:305: -1- AC_DEFUN([AC_ENABLE_FAST_INSTALL], [m4_warn([obsolete], [The macro `AC_ENABLE_FAST_INSTALL' is obsolete. +m4trace:m4/ltoptions.m4:305: -1- AC_DEFUN([AC_ENABLE_FAST_INSTALL], [m4_warn([obsolete], [The macro 'AC_ENABLE_FAST_INSTALL' is obsolete. You should run autoupdate.])dnl _LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) AC_DIAGNOSE([obsolete], @@ -2903,7 +2924,7 @@ AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'disable-fast-install' option into LT_INIT's first parameter.]) ]) -m4trace:m4/ltoptions.m4:312: -1- AC_DEFUN([AC_DISABLE_FAST_INSTALL], [m4_warn([obsolete], [The macro `AC_DISABLE_FAST_INSTALL' is obsolete. +m4trace:m4/ltoptions.m4:312: -1- AC_DEFUN([AC_DISABLE_FAST_INSTALL], [m4_warn([obsolete], [The macro 'AC_DISABLE_FAST_INSTALL' is obsolete. You should run autoupdate.])dnl _LT_SET_OPTION([LT_INIT], [disable-fast-install]) AC_DIAGNOSE([obsolete], @@ -2915,7 +2936,7 @@ AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'pic-only' option into LT_INIT's first parameter.]) ]) -m4trace:m4/ltoptions.m4:411: -1- AC_DEFUN([AC_LIBTOOL_PICMODE], [m4_warn([obsolete], [The macro `AC_LIBTOOL_PICMODE' is obsolete. +m4trace:m4/ltoptions.m4:411: -1- AC_DEFUN([AC_LIBTOOL_PICMODE], [m4_warn([obsolete], [The macro 'AC_LIBTOOL_PICMODE' is obsolete. You should run autoupdate.])dnl _LT_SET_OPTION([LT_INIT], [pic-only]) AC_DIAGNOSE([obsolete], @@ -3049,7 +3070,7 @@ m4trace:m4/shave.m4:50: -1- AC_DEFUN([SHAVE_INIT], [ ]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?A[CHUM]_]) m4trace:configure.ac:3: -1- m4_pattern_forbid([_AC_]) -m4trace:configure.ac:3: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS']) +m4trace:configure.ac:3: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section 'AC_LIBOBJ vs LIBOBJS']) m4trace:configure.ac:3: -1- m4_pattern_allow([^AS_FLAGS$]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?m4_]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^dnl$]) @@ -3099,72 +3120,83 @@ m4trace:configure.ac:3: -1- m4_pattern_allow([^LIBS$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^build_alias$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^host_alias$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^target_alias$]) -m4trace:configure.ac:8: -1- _m4_warn([obsolete], [The macro `AC_CONFIG_HEADER' is obsolete. -You should run autoupdate.], [./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from... -configure.ac:8: the top level]) -m4trace:configure.ac:9: -1- AC_CONFIG_MACRO_DIR([m4]) -m4trace:configure.ac:9: -1- AC_CONFIG_MACRO_DIR_TRACE([m4]) -m4trace:configure.ac:11: -1- AM_INIT_AUTOMAKE([foreign 1.8.5 -Wall subdir-objects ]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$]) -m4trace:configure.ac:11: -1- AM_SET_CURRENT_AUTOMAKE_VERSION -m4trace:configure.ac:11: -1- AM_AUTOMAKE_VERSION([1.16.5]) -m4trace:configure.ac:11: -1- _AM_AUTOCONF_VERSION([2.71]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^INSTALL_DATA$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^am__isrc$]) -m4trace:configure.ac:11: -1- _AM_SUBST_NOTMAKE([am__isrc]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^CYGPATH_W$]) -m4trace:configure.ac:11: -1- _AM_SET_OPTIONS([foreign 1.8.5 -Wall subdir-objects ]) -m4trace:configure.ac:11: -1- _AM_SET_OPTION([foreign]) -m4trace:configure.ac:11: -2- _AM_MANGLE_OPTION([foreign]) -m4trace:configure.ac:11: -1- _AM_SET_OPTION([1.8.5]) -m4trace:configure.ac:11: -2- _AM_MANGLE_OPTION([1.8.5]) -m4trace:configure.ac:11: -1- _AM_SET_OPTION([-Wall]) -m4trace:configure.ac:11: -2- _AM_MANGLE_OPTION([-Wall]) -m4trace:configure.ac:11: -1- _AM_SET_OPTION([subdir-objects]) -m4trace:configure.ac:11: -2- _AM_MANGLE_OPTION([subdir-objects]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^PACKAGE$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^VERSION$]) -m4trace:configure.ac:11: -1- _AM_IF_OPTION([no-define], [], [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^M4$]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^ACLOCAL_AMFLAGS$]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^build$]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^build_cpu$]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^build_vendor$]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^build_os$]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^host$]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^host_cpu$]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^host_vendor$]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^host_os$]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^target$]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^target_cpu$]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^target_vendor$]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^target_os$]) +m4trace:configure.ac:20: -1- AC_CONFIG_MACRO_DIR([m4]) +m4trace:configure.ac:20: -1- AC_CONFIG_MACRO_DIR_TRACE([m4]) +m4trace:configure.ac:21: -1- AM_INIT_AUTOMAKE([foreign 1.8.5 subdir-objects -Wno-portability]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$]) +m4trace:configure.ac:21: -1- AM_SET_CURRENT_AUTOMAKE_VERSION +m4trace:configure.ac:21: -1- AM_AUTOMAKE_VERSION([1.16.5]) +m4trace:configure.ac:21: -1- _AM_AUTOCONF_VERSION([2.72]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INSTALL_DATA$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^am__isrc$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([am__isrc]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^CYGPATH_W$]) +m4trace:configure.ac:21: -1- _AM_SET_OPTIONS([foreign 1.8.5 subdir-objects -Wno-portability]) +m4trace:configure.ac:21: -1- _AM_SET_OPTION([foreign]) +m4trace:configure.ac:21: -2- _AM_MANGLE_OPTION([foreign]) +m4trace:configure.ac:21: -1- _AM_SET_OPTION([1.8.5]) +m4trace:configure.ac:21: -2- _AM_MANGLE_OPTION([1.8.5]) +m4trace:configure.ac:21: -1- _AM_SET_OPTION([subdir-objects]) +m4trace:configure.ac:21: -2- _AM_MANGLE_OPTION([subdir-objects]) +m4trace:configure.ac:21: -1- _AM_SET_OPTION([-Wno-portability]) +m4trace:configure.ac:21: -2- _AM_MANGLE_OPTION([-Wno-portability]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:21: -1- _AM_IF_OPTION([no-define], [], [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])]) -m4trace:configure.ac:11: -2- _AM_MANGLE_OPTION([no-define]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^PACKAGE$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^VERSION$]) -m4trace:configure.ac:11: -1- AM_SANITY_CHECK -m4trace:configure.ac:11: -1- AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) -m4trace:configure.ac:11: -1- AM_MISSING_HAS_RUN -m4trace:configure.ac:11: -1- AM_AUX_DIR_EXPAND -m4trace:configure.ac:11: -1- m4_pattern_allow([^ACLOCAL$]) -m4trace:configure.ac:11: -1- AM_MISSING_PROG([AUTOCONF], [autoconf]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AUTOCONF$]) -m4trace:configure.ac:11: -1- AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AUTOMAKE$]) -m4trace:configure.ac:11: -1- AM_MISSING_PROG([AUTOHEADER], [autoheader]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AUTOHEADER$]) -m4trace:configure.ac:11: -1- AM_MISSING_PROG([MAKEINFO], [makeinfo]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^MAKEINFO$]) -m4trace:configure.ac:11: -1- AM_PROG_INSTALL_SH -m4trace:configure.ac:11: -1- m4_pattern_allow([^install_sh$]) -m4trace:configure.ac:11: -1- AM_PROG_INSTALL_STRIP -m4trace:configure.ac:11: -1- m4_pattern_allow([^STRIP$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^MKDIR_P$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^mkdir_p$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AWK$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^SET_MAKE$]) -m4trace:configure.ac:11: -1- AM_SET_LEADING_DOT -m4trace:configure.ac:11: -1- m4_pattern_allow([^am__leading_dot$]) -m4trace:configure.ac:11: -1- _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], +m4trace:configure.ac:21: -2- _AM_MANGLE_OPTION([no-define]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:21: -1- AM_SANITY_CHECK +m4trace:configure.ac:21: -1- AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) +m4trace:configure.ac:21: -1- AM_MISSING_HAS_RUN +m4trace:configure.ac:21: -1- AM_AUX_DIR_EXPAND +m4trace:configure.ac:21: -1- m4_pattern_allow([^ACLOCAL$]) +m4trace:configure.ac:21: -1- AM_MISSING_PROG([AUTOCONF], [autoconf]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AUTOCONF$]) +m4trace:configure.ac:21: -1- AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AUTOMAKE$]) +m4trace:configure.ac:21: -1- AM_MISSING_PROG([AUTOHEADER], [autoheader]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AUTOHEADER$]) +m4trace:configure.ac:21: -1- AM_MISSING_PROG([MAKEINFO], [makeinfo]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^MAKEINFO$]) +m4trace:configure.ac:21: -1- AM_PROG_INSTALL_SH +m4trace:configure.ac:21: -1- m4_pattern_allow([^install_sh$]) +m4trace:configure.ac:21: -1- AM_PROG_INSTALL_STRIP +m4trace:configure.ac:21: -1- m4_pattern_allow([^STRIP$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^MKDIR_P$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^mkdir_p$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AWK$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^SET_MAKE$]) +m4trace:configure.ac:21: -1- AM_SET_LEADING_DOT +m4trace:configure.ac:21: -1- m4_pattern_allow([^am__leading_dot$]) +m4trace:configure.ac:21: -1- _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) -m4trace:configure.ac:11: -2- _AM_MANGLE_OPTION([tar-ustar]) -m4trace:configure.ac:11: -1- _AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])]) -m4trace:configure.ac:11: -2- _AM_MANGLE_OPTION([tar-pax]) -m4trace:configure.ac:11: -1- _AM_PROG_TAR([v7]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AMTAR$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^am__tar$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^am__untar$]) -m4trace:configure.ac:11: -1- _AM_IF_OPTION([no-dependencies], [], [AC_PROVIDE_IFELSE([AC_PROG_CC], +m4trace:configure.ac:21: -2- _AM_MANGLE_OPTION([tar-ustar]) +m4trace:configure.ac:21: -1- _AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])]) +m4trace:configure.ac:21: -2- _AM_MANGLE_OPTION([tar-pax]) +m4trace:configure.ac:21: -1- _AM_PROG_TAR([v7]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AMTAR$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^am__tar$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^am__untar$]) +m4trace:configure.ac:21: -1- _AM_IF_OPTION([no-dependencies], [], [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES([CC])], [m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl @@ -3181,444 +3213,544 @@ AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) -m4trace:configure.ac:11: -2- _AM_MANGLE_OPTION([no-dependencies]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^CTAGS$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^ETAGS$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^CSCOPE$]) -m4trace:configure.ac:11: -1- AM_SILENT_RULES -m4trace:configure.ac:11: -1- m4_pattern_allow([^AM_V$]) -m4trace:configure.ac:11: -1- AM_SUBST_NOTMAKE([AM_V]) -m4trace:configure.ac:11: -1- _AM_SUBST_NOTMAKE([AM_V]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AM_DEFAULT_V$]) -m4trace:configure.ac:11: -1- AM_SUBST_NOTMAKE([AM_DEFAULT_V]) -m4trace:configure.ac:11: -1- _AM_SUBST_NOTMAKE([AM_DEFAULT_V]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AM_DEFAULT_VERBOSITY$]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AM_BACKSLASH$]) -m4trace:configure.ac:11: -1- _AM_SUBST_NOTMAKE([AM_BACKSLASH]) -m4trace:configure.ac:13: -1- m4_pattern_allow([^(AM_EXTRA_RECURSIVE_TARGETS|AM_PROG_AR)$]) -m4trace:configure.ac:19: -1- AM_EXTRA_RECURSIVE_TARGETS([doc-help doc-html doc-latexpdf doc-man doc-clean doc-markdown]) -m4trace:configure.ac:28: -1- m4_pattern_allow([^MAJOR$]) -m4trace:configure.ac:29: -1- m4_pattern_allow([^MINOR$]) -m4trace:configure.ac:30: -1- m4_pattern_allow([^PATCH$]) -m4trace:configure.ac:31: -1- m4_pattern_allow([^EXTRA$]) -m4trace:configure.ac:67: -3- m4_include([.libtool-version]) -m4trace:configure.ac:68: -1- m4_pattern_allow([^LIBTOOL_VERSION$]) -m4trace:configure.ac:71: -1- AX_CHECK_ENABLE_DEBUG([]) -m4trace:configure.ac:71: -1- m4_pattern_allow([^NDEBUG$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CFLAGS$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^LDFLAGS$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^LIBS$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CPPFLAGS$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^ac_ct_CC$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^EXEEXT$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^OBJEXT$]) -m4trace:configure.ac:74: -1- _AM_PROG_CC_C_O -m4trace:configure.ac:74: -1- AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) -m4trace:configure.ac:74: -1- _AM_DEPENDENCIES([CC]) -m4trace:configure.ac:74: -1- AM_SET_DEPDIR -m4trace:configure.ac:74: -1- m4_pattern_allow([^DEPDIR$]) -m4trace:configure.ac:74: -1- AM_OUTPUT_DEPENDENCY_COMMANDS -m4trace:configure.ac:74: -1- AM_MAKE_INCLUDE -m4trace:configure.ac:74: -1- AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^am__include$]) -m4trace:configure.ac:74: -1- AM_DEP_TRACK -m4trace:configure.ac:74: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^AMDEP_TRUE$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^AMDEP_FALSE$]) -m4trace:configure.ac:74: -1- _AM_SUBST_NOTMAKE([AMDEP_TRUE]) -m4trace:configure.ac:74: -1- _AM_SUBST_NOTMAKE([AMDEP_FALSE]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^AMDEPBACKSLASH$]) -m4trace:configure.ac:74: -1- _AM_SUBST_NOTMAKE([AMDEPBACKSLASH]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^am__nodep$]) -m4trace:configure.ac:74: -1- _AM_SUBST_NOTMAKE([am__nodep]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CCDEPMODE$]) -m4trace:configure.ac:74: -1- AM_CONDITIONAL([am__fastdepCC], [ +m4trace:configure.ac:21: -2- _AM_MANGLE_OPTION([no-dependencies]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^CTAGS$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^ETAGS$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^CSCOPE$]) +m4trace:configure.ac:21: -1- AM_SILENT_RULES +m4trace:configure.ac:21: -1- m4_pattern_allow([^AM_V$]) +m4trace:configure.ac:21: -1- AM_SUBST_NOTMAKE([AM_V]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([AM_V]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AM_DEFAULT_V$]) +m4trace:configure.ac:21: -1- AM_SUBST_NOTMAKE([AM_DEFAULT_V]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([AM_DEFAULT_V]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AM_DEFAULT_VERBOSITY$]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AM_BACKSLASH$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([AM_BACKSLASH]) +m4trace:configure.ac:23: -1- m4_pattern_allow([^(AM_EXTRA_RECURSIVE_TARGETS|AM_PROG_AR)$]) +m4trace:configure.ac:29: -1- AM_EXTRA_RECURSIVE_TARGETS([doc-help doc-html doc-latexpdf doc-man doc-clean doc-markdown]) +m4trace:configure.ac:38: -1- m4_pattern_allow([^MAJOR$]) +m4trace:configure.ac:39: -1- m4_pattern_allow([^MINOR$]) +m4trace:configure.ac:40: -1- m4_pattern_allow([^PATCH$]) +m4trace:configure.ac:41: -1- m4_pattern_allow([^EXTRA$]) +m4trace:configure.ac:77: -3- m4_include([.libtool-version]) +m4trace:configure.ac:78: -1- m4_pattern_allow([^LIBTOOL_VERSION$]) +m4trace:configure.ac:81: -1- AX_CHECK_ENABLE_DEBUG([]) +m4trace:configure.ac:81: -1- m4_pattern_allow([^NDEBUG$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CFLAGS$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^ac_ct_CC$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^EXEEXT$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^OBJEXT$]) +m4trace:configure.ac:84: -1- _AM_PROG_CC_C_O +m4trace:configure.ac:84: -1- AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) +m4trace:configure.ac:84: -1- _AM_DEPENDENCIES([CC]) +m4trace:configure.ac:84: -1- AM_SET_DEPDIR +m4trace:configure.ac:84: -1- m4_pattern_allow([^DEPDIR$]) +m4trace:configure.ac:84: -1- AM_OUTPUT_DEPENDENCY_COMMANDS +m4trace:configure.ac:84: -1- AM_MAKE_INCLUDE +m4trace:configure.ac:84: -1- AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^am__include$]) +m4trace:configure.ac:84: -1- AM_DEP_TRACK +m4trace:configure.ac:84: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^AMDEP_TRUE$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^AMDEP_FALSE$]) +m4trace:configure.ac:84: -1- _AM_SUBST_NOTMAKE([AMDEP_TRUE]) +m4trace:configure.ac:84: -1- _AM_SUBST_NOTMAKE([AMDEP_FALSE]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^AMDEPBACKSLASH$]) +m4trace:configure.ac:84: -1- _AM_SUBST_NOTMAKE([AMDEPBACKSLASH]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^am__nodep$]) +m4trace:configure.ac:84: -1- _AM_SUBST_NOTMAKE([am__nodep]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CCDEPMODE$]) +m4trace:configure.ac:84: -1- AM_CONDITIONAL([am__fastdepCC], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^am__fastdepCC_TRUE$]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^am__fastdepCC_FALSE$]) -m4trace:configure.ac:74: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_TRUE]) -m4trace:configure.ac:74: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_FALSE]) -m4trace:configure.ac:75: -1- _m4_warn([obsolete], [The macro `AC_PROG_CC_C99' is obsolete. -You should run autoupdate.], [./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from... -configure.ac:75: the top level]) -m4trace:configure.ac:76: -1- AM_PROG_CC_C_O -m4trace:configure.ac:78: -1- m4_pattern_allow([^CPP$]) -m4trace:configure.ac:78: -1- m4_pattern_allow([^CPPFLAGS$]) -m4trace:configure.ac:78: -1- m4_pattern_allow([^CPP$]) -m4trace:configure.ac:78: -1- AC_PROG_EGREP -m4trace:configure.ac:78: -1- m4_pattern_allow([^GREP$]) -m4trace:configure.ac:78: -1- m4_pattern_allow([^EGREP$]) -m4trace:configure.ac:79: -1- AC_DEFUN([_AC_Header_stdio_h], [m4_divert_text([INIT_PREPARE], +m4trace:configure.ac:84: -1- m4_pattern_allow([^am__fastdepCC_TRUE$]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^am__fastdepCC_FALSE$]) +m4trace:configure.ac:84: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_TRUE]) +m4trace:configure.ac:84: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_FALSE]) +m4trace:configure.ac:85: -1- AM_PROG_CC_C_O +m4trace:configure.ac:86: -1- AM_PROG_AS +m4trace:configure.ac:86: -1- m4_pattern_allow([^CCAS$]) +m4trace:configure.ac:86: -1- m4_pattern_allow([^CCASFLAGS$]) +m4trace:configure.ac:86: -1- _AM_IF_OPTION([no-dependencies], [], [_AM_DEPENDENCIES([CCAS])]) +m4trace:configure.ac:86: -2- _AM_MANGLE_OPTION([no-dependencies]) +m4trace:configure.ac:86: -1- _AM_DEPENDENCIES([CCAS]) +m4trace:configure.ac:86: -1- m4_pattern_allow([^CCASDEPMODE$]) +m4trace:configure.ac:86: -1- AM_CONDITIONAL([am__fastdepCCAS], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3]) +m4trace:configure.ac:86: -1- m4_pattern_allow([^am__fastdepCCAS_TRUE$]) +m4trace:configure.ac:86: -1- m4_pattern_allow([^am__fastdepCCAS_FALSE$]) +m4trace:configure.ac:86: -1- _AM_SUBST_NOTMAKE([am__fastdepCCAS_TRUE]) +m4trace:configure.ac:86: -1- _AM_SUBST_NOTMAKE([am__fastdepCCAS_FALSE]) +m4trace:configure.ac:88: -1- _m4_warn([obsolete], [The macro 'AC_PROG_GCC_TRADITIONAL' is obsolete. +You should run autoupdate.], [./lib/autoconf/c.m4:1676: AC_PROG_GCC_TRADITIONAL is expanded from... +configure.ac:88: the top level]) +m4trace:configure.ac:89: -1- AC_DEFUN([_AC_Header_stdio_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list], [" stdio.h ]AS_TR_SH([stdio.h]) AS_TR_CPP([HAVE_stdio.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)]) -m4trace:configure.ac:79: -1- AC_DEFUN([_AC_Header_stdlib_h], [m4_divert_text([INIT_PREPARE], +m4trace:configure.ac:89: -1- AC_DEFUN([_AC_Header_stdlib_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list], [" stdlib.h ]AS_TR_SH([stdlib.h]) AS_TR_CPP([HAVE_stdlib.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)]) -m4trace:configure.ac:79: -1- AC_DEFUN([_AC_Header_string_h], [m4_divert_text([INIT_PREPARE], +m4trace:configure.ac:89: -1- AC_DEFUN([_AC_Header_string_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list], [" string.h ]AS_TR_SH([string.h]) AS_TR_CPP([HAVE_string.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)]) -m4trace:configure.ac:79: -1- AC_DEFUN([_AC_Header_inttypes_h], [m4_divert_text([INIT_PREPARE], +m4trace:configure.ac:89: -1- AC_DEFUN([_AC_Header_inttypes_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list], [" inttypes.h ]AS_TR_SH([inttypes.h]) AS_TR_CPP([HAVE_inttypes.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)]) -m4trace:configure.ac:79: -1- AC_DEFUN([_AC_Header_stdint_h], [m4_divert_text([INIT_PREPARE], +m4trace:configure.ac:89: -1- AC_DEFUN([_AC_Header_stdint_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list], [" stdint.h ]AS_TR_SH([stdint.h]) AS_TR_CPP([HAVE_stdint.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)]) -m4trace:configure.ac:79: -1- AC_DEFUN([_AC_Header_strings_h], [m4_divert_text([INIT_PREPARE], +m4trace:configure.ac:89: -1- AC_DEFUN([_AC_Header_strings_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list], [" strings.h ]AS_TR_SH([strings.h]) AS_TR_CPP([HAVE_strings.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)]) -m4trace:configure.ac:79: -1- AC_DEFUN([_AC_Header_sys_stat_h], [m4_divert_text([INIT_PREPARE], +m4trace:configure.ac:89: -1- AC_DEFUN([_AC_Header_sys_stat_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list], [" sys/stat.h ]AS_TR_SH([sys/stat.h]) AS_TR_CPP([HAVE_sys/stat.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)]) -m4trace:configure.ac:79: -1- AC_DEFUN([_AC_Header_sys_types_h], [m4_divert_text([INIT_PREPARE], +m4trace:configure.ac:89: -1- AC_DEFUN([_AC_Header_sys_types_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list], [" sys/types.h ]AS_TR_SH([sys/types.h]) AS_TR_CPP([HAVE_sys/types.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)]) -m4trace:configure.ac:79: -1- AC_DEFUN([_AC_Header_unistd_h], [m4_divert_text([INIT_PREPARE], +m4trace:configure.ac:89: -1- AC_DEFUN([_AC_Header_unistd_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list], [" unistd.h ]AS_TR_SH([unistd.h]) AS_TR_CPP([HAVE_unistd.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^STDC_HEADERS$]) -m4trace:configure.ac:79: -1- AC_DEFUN([_AC_Header_wchar_h], [m4_divert_text([INIT_PREPARE], +m4trace:configure.ac:89: -1- m4_pattern_allow([^STDC_HEADERS$]) +m4trace:configure.ac:89: -1- AC_DEFUN([_AC_Header_wchar_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list], [" wchar.h ]AS_TR_SH([wchar.h]) AS_TR_CPP([HAVE_wchar.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)]) -m4trace:configure.ac:79: -1- AC_DEFUN([_AC_Header_minix_config_h], [m4_divert_text([INIT_PREPARE], +m4trace:configure.ac:89: -1- AC_DEFUN([_AC_Header_minix_config_h], [m4_divert_text([INIT_PREPARE], [AS_VAR_APPEND([ac_header_]]_AC_LANG_ABBREV[[_list], [" minix/config.h ]AS_TR_SH([minix/config.h]) AS_TR_CPP([HAVE_minix/config.h])["])])_AC_HEADERS_EXPANSION(_AC_LANG_ABBREV)]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_ALL_SOURCE$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_DARWIN_C_SOURCE$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_GNU_SOURCE$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_HPUX_ALT_XOPEN_SOCKET_API$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_NETBSD_SOURCE$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_OPENBSD_SOURCE$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_POSIX_PTHREAD_SEMANTICS$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_ATTRIBS_EXT__$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_BFP_EXT__$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_DFP_EXT__$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_FUNCS_EXT__$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_TYPES_EXT__$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_LIB_EXT2__$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_MATH_SPEC_FUNCS__$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_TANDEM_SOURCE$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_MINIX$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_POSIX_SOURCE$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_POSIX_1_SOURCE$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__EXTENSIONS__$]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_XOPEN_SOURCE$]) -m4trace:configure.ac:80: -1- AM_PROG_AR -m4trace:configure.ac:80: -1- m4_pattern_allow([^AR$]) -m4trace:configure.ac:80: -1- m4_pattern_allow([^ac_ct_AR$]) -m4trace:configure.ac:80: -1- m4_pattern_allow([^AR$]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^CXX$]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^CXXFLAGS$]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^LDFLAGS$]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^LIBS$]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^CPPFLAGS$]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^CXX$]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^ac_ct_CXX$]) -m4trace:configure.ac:83: -1- _AM_DEPENDENCIES([CXX]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^CXXDEPMODE$]) -m4trace:configure.ac:83: -1- AM_CONDITIONAL([am__fastdepCXX], [ +m4trace:configure.ac:89: -1- m4_pattern_allow([^_ALL_SOURCE$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_DARWIN_C_SOURCE$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_GNU_SOURCE$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_HPUX_ALT_XOPEN_SOCKET_API$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_NETBSD_SOURCE$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_OPENBSD_SOURCE$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_POSIX_PTHREAD_SEMANTICS$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_ATTRIBS_EXT__$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_BFP_EXT__$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_DFP_EXT__$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_EXT__$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_FUNCS_EXT__$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_TYPES_EXT__$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_LIB_EXT2__$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_MATH_SPEC_FUNCS__$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_TANDEM_SOURCE$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_MINIX$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_POSIX_SOURCE$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_POSIX_1_SOURCE$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__EXTENSIONS__$]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_XOPEN_SOURCE$]) +m4trace:configure.ac:90: -1- AM_PROG_AR +m4trace:configure.ac:90: -1- m4_pattern_allow([^AR$]) +m4trace:configure.ac:90: -1- m4_pattern_allow([^ac_ct_AR$]) +m4trace:configure.ac:90: -1- m4_pattern_allow([^AR$]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^CXXFLAGS$]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^ac_ct_CXX$]) +m4trace:configure.ac:93: -1- _AM_DEPENDENCIES([CXX]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^CXXDEPMODE$]) +m4trace:configure.ac:93: -1- AM_CONDITIONAL([am__fastdepCXX], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^am__fastdepCXX_TRUE$]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^am__fastdepCXX_FALSE$]) -m4trace:configure.ac:83: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_TRUE]) -m4trace:configure.ac:83: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_FALSE]) -m4trace:configure.ac:84: -1- m4_pattern_allow([^AWK$]) -m4trace:configure.ac:85: -1- m4_pattern_allow([^LN_S$]) -m4trace:configure.ac:87: -1- AX_PTHREAD -m4trace:configure.ac:87: -1- m4_pattern_allow([^build$]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^build_cpu$]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^build_vendor$]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^build_os$]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^host$]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^host_cpu$]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^host_vendor$]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^host_os$]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^ax_pthread_config$]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^PTHREAD_CREATE_JOINABLE$]) -m4trace:configure.ac:87: -2- m4_pattern_allow([^HAVE_PTHREAD_PRIO_INHERIT$]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^PTHREAD_CC$]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^PTHREAD_LIBS$]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^PTHREAD_CFLAGS$]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^PTHREAD_CC$]) -m4trace:configure.ac:87: -2- m4_pattern_allow([^HAVE_PTHREAD$]) -m4trace:configure.ac:89: -1- m4_pattern_allow([^M4$]) -m4trace:configure.ac:94: -1- m4_pattern_allow([^ACLOCAL_AMFLAGS$]) -m4trace:configure.ac:97: -1- PKG_PROG_PKG_CONFIG -m4trace:configure.ac:97: -1- m4_pattern_forbid([^_?PKG_[A-Z_]+$]) -m4trace:configure.ac:97: -1- m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) -m4trace:configure.ac:97: -1- m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) -m4trace:configure.ac:97: -1- m4_pattern_allow([^PKG_CONFIG$]) -m4trace:configure.ac:97: -1- m4_pattern_allow([^PKG_CONFIG_PATH$]) -m4trace:configure.ac:97: -1- m4_pattern_allow([^PKG_CONFIG_LIBDIR$]) -m4trace:configure.ac:97: -1- m4_pattern_allow([^PKG_CONFIG$]) -m4trace:configure.ac:99: -1- AC_LTDL_ENABLE_INSTALL -m4trace:configure.ac:100: -1- AC_LIBLTDL_INSTALLABLE -m4trace:configure.ac:100: -1- _m4_warn([obsolete], [The macro `AC_LIBLTDL_INSTALLABLE' is obsolete. -You should run autoupdate.], [/opt/homebrew/share/aclocal/ltdl.m4:138: AC_LIBLTDL_INSTALLABLE is expanded from... -configure.ac:100: the top level]) -m4trace:configure.ac:100: -1- m4_pattern_allow([^LIBLTDL$]) -m4trace:configure.ac:100: -1- m4_pattern_allow([^LTDLDEPS$]) -m4trace:configure.ac:100: -1- m4_pattern_allow([^LTDLINCL$]) -m4trace:configure.ac:100: -1- m4_pattern_allow([^INCLTDL$]) -m4trace:configure.ac:101: -1- AC_LIBTOOL_DLOPEN -m4trace:configure.ac:101: -1- _m4_warn([obsolete], [The macro `AC_LIBTOOL_DLOPEN' is obsolete. -You should run autoupdate.], [m4/ltoptions.m4:113: AC_LIBTOOL_DLOPEN is expanded from... -configure.ac:101: the top level]) -m4trace:configure.ac:101: -1- _m4_warn([obsolete], [AC_LIBTOOL_DLOPEN: Remove this warning and the call to _LT_SET_OPTION when you -put the 'dlopen' option into LT_INIT's first parameter.], [./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... -m4/ltoptions.m4:113: AC_LIBTOOL_DLOPEN is expanded from... -configure.ac:101: the top level]) -m4trace:configure.ac:102: -1- AC_LIBTOOL_WIN32_DLL -m4trace:configure.ac:102: -1- _m4_warn([obsolete], [The macro `AC_LIBTOOL_WIN32_DLL' is obsolete. -You should run autoupdate.], [m4/ltoptions.m4:148: AC_LIBTOOL_WIN32_DLL is expanded from... -configure.ac:102: the top level]) -m4trace:configure.ac:102: -1- m4_pattern_allow([^AS$]) -m4trace:configure.ac:102: -1- m4_pattern_allow([^DLLTOOL$]) -m4trace:configure.ac:102: -1- m4_pattern_allow([^OBJDUMP$]) -m4trace:configure.ac:102: -1- _m4_warn([obsolete], [AC_LIBTOOL_WIN32_DLL: Remove this warning and the call to _LT_SET_OPTION when you -put the 'win32-dll' option into LT_INIT's first parameter.], [./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... -m4/ltoptions.m4:148: AC_LIBTOOL_WIN32_DLL is expanded from... -configure.ac:102: the top level]) -m4trace:configure.ac:103: -1- AC_PROG_LIBTOOL -m4trace:configure.ac:103: -1- _m4_warn([obsolete], [The macro `AC_PROG_LIBTOOL' is obsolete. -You should run autoupdate.], [m4/libtool.m4:100: AC_PROG_LIBTOOL is expanded from... -configure.ac:103: the top level]) -m4trace:configure.ac:103: -1- LT_INIT -m4trace:configure.ac:103: -1- m4_pattern_forbid([^_?LT_[A-Z_]+$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$]) -m4trace:configure.ac:103: -1- LTOPTIONS_VERSION -m4trace:configure.ac:103: -1- LTSUGAR_VERSION -m4trace:configure.ac:103: -1- LTVERSION_VERSION -m4trace:configure.ac:103: -1- LTOBSOLETE_VERSION -m4trace:configure.ac:103: -1- _LT_PROG_LTMAIN -m4trace:configure.ac:103: -1- m4_pattern_allow([^LIBTOOL$]) -m4trace:configure.ac:103: -1- _LT_PREPARE_SED_QUOTE_VARS -m4trace:configure.ac:103: -1- _LT_PROG_ECHO_BACKSLASH -m4trace:configure.ac:103: -1- LT_PATH_LD -m4trace:configure.ac:103: -1- m4_pattern_allow([^SED$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^FGREP$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^GREP$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^LD$]) -m4trace:configure.ac:103: -1- LT_PATH_NM -m4trace:configure.ac:103: -1- m4_pattern_allow([^DUMPBIN$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^ac_ct_DUMPBIN$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^DUMPBIN$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^NM$]) -m4trace:configure.ac:103: -1- LT_CMD_MAX_LEN -m4trace:configure.ac:103: -1- m4_pattern_allow([^FILECMD$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^OBJDUMP$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^OBJDUMP$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^DLLTOOL$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^DLLTOOL$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^AR$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^ac_ct_AR$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^STRIP$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^RANLIB$]) -m4trace:configure.ac:103: -1- _LT_WITH_SYSROOT -m4trace:configure.ac:103: -1- m4_pattern_allow([LT_OBJDIR]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^LT_OBJDIR$]) -m4trace:configure.ac:103: -1- _LT_CC_BASENAME([$compiler]) -m4trace:configure.ac:103: -1- _LT_PATH_TOOL_PREFIX([${ac_tool_prefix}file], [/usr/bin$PATH_SEPARATOR$PATH]) -m4trace:configure.ac:103: -1- _LT_PATH_TOOL_PREFIX([file], [/usr/bin$PATH_SEPARATOR$PATH]) -m4trace:configure.ac:103: -1- LT_SUPPORTED_TAG([CC]) -m4trace:configure.ac:103: -1- _LT_COMPILER_BOILERPLATE -m4trace:configure.ac:103: -1- _LT_LINKER_BOILERPLATE -m4trace:configure.ac:103: -1- _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], [lt_cv_prog_compiler_rtti_exceptions], [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, )="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, ) -fno-rtti -fno-exceptions"]) -m4trace:configure.ac:103: -1- _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, ) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, )], [$_LT_TAGVAR(lt_prog_compiler_pic, )@&t@m4_if([],[],[ -DPIC],[m4_if([],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, ) in +m4trace:configure.ac:93: -1- m4_pattern_allow([^am__fastdepCXX_TRUE$]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^am__fastdepCXX_FALSE$]) +m4trace:configure.ac:93: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_TRUE]) +m4trace:configure.ac:93: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_FALSE]) +m4trace:configure.ac:94: -1- m4_pattern_allow([^AWK$]) +m4trace:configure.ac:95: -1- m4_pattern_allow([^LN_S$]) +m4trace:configure.ac:97: -1- AX_PTHREAD([], [AC_MSG_ERROR("Missing required pthread support")]) +m4trace:configure.ac:97: -1- m4_pattern_allow([^ax_pthread_config$]) +m4trace:configure.ac:97: -1- m4_pattern_allow([^PTHREAD_CREATE_JOINABLE$]) +m4trace:configure.ac:97: -2- m4_pattern_allow([^HAVE_PTHREAD_PRIO_INHERIT$]) +m4trace:configure.ac:97: -1- m4_pattern_allow([^PTHREAD_CC$]) +m4trace:configure.ac:97: -1- m4_pattern_allow([^PTHREAD_LIBS$]) +m4trace:configure.ac:97: -1- m4_pattern_allow([^PTHREAD_CFLAGS$]) +m4trace:configure.ac:97: -1- m4_pattern_allow([^PTHREAD_CC$]) +m4trace:configure.ac:97: -2- m4_pattern_allow([^HAVE_PTHREAD$]) +m4trace:configure.ac:108: -1- PKG_PROG_PKG_CONFIG +m4trace:configure.ac:108: -1- m4_pattern_forbid([^_?PKG_[A-Z_]+$]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^PKG_CONFIG$]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^PKG_CONFIG_PATH$]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^PKG_CONFIG_LIBDIR$]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^PKG_CONFIG$]) +m4trace:configure.ac:110: -1- AC_LTDL_ENABLE_INSTALL +m4trace:configure.ac:111: -1- LT_INIT([dlopen win32-dll]) +m4trace:configure.ac:111: -1- m4_pattern_forbid([^_?LT_[A-Z_]+$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$]) +m4trace:configure.ac:111: -1- LTOPTIONS_VERSION +m4trace:configure.ac:111: -1- LTSUGAR_VERSION +m4trace:configure.ac:111: -1- LTVERSION_VERSION +m4trace:configure.ac:111: -1- LTOBSOLETE_VERSION +m4trace:configure.ac:111: -1- _LT_PROG_LTMAIN +m4trace:configure.ac:111: -1- m4_pattern_allow([^AS$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LIBTOOL$]) +m4trace:configure.ac:111: -1- _LT_PREPARE_SED_QUOTE_VARS +m4trace:configure.ac:111: -1- _LT_PROG_ECHO_BACKSLASH +m4trace:configure.ac:111: -1- LT_PATH_LD +m4trace:configure.ac:111: -1- m4_pattern_allow([^SED$]) +m4trace:configure.ac:111: -1- AC_PROG_EGREP +m4trace:configure.ac:111: -1- m4_pattern_allow([^GREP$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^EGREP$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^FGREP$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^GREP$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LD$]) +m4trace:configure.ac:111: -1- LT_PATH_NM +m4trace:configure.ac:111: -1- m4_pattern_allow([^DUMPBIN$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^ac_ct_DUMPBIN$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^DUMPBIN$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^NM$]) +m4trace:configure.ac:111: -1- LT_CMD_MAX_LEN +m4trace:configure.ac:111: -1- m4_pattern_allow([^FILECMD$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^AR$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^ac_ct_AR$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^STRIP$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^RANLIB$]) +m4trace:configure.ac:111: -1- _LT_WITH_SYSROOT +m4trace:configure.ac:111: -1- m4_pattern_allow([LT_OBJDIR]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LT_OBJDIR$]) +m4trace:configure.ac:111: -1- _LT_CC_BASENAME([$compiler]) +m4trace:configure.ac:111: -1- _LT_PATH_TOOL_PREFIX([${ac_tool_prefix}file], [/usr/bin$PATH_SEPARATOR$PATH]) +m4trace:configure.ac:111: -1- _LT_PATH_TOOL_PREFIX([file], [/usr/bin$PATH_SEPARATOR$PATH]) +m4trace:configure.ac:111: -1- LT_SUPPORTED_TAG([CC]) +m4trace:configure.ac:111: -1- _LT_COMPILER_BOILERPLATE +m4trace:configure.ac:111: -1- _LT_LINKER_BOILERPLATE +m4trace:configure.ac:111: -1- _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], [lt_cv_prog_compiler_rtti_exceptions], [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, )="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, ) -fno-rtti -fno-exceptions"]) +m4trace:configure.ac:111: -1- _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, ) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, )], [$_LT_TAGVAR(lt_prog_compiler_pic, )@&t@m4_if([],[],[ -DPIC],[m4_if([],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, ) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, )=" $_LT_TAGVAR(lt_prog_compiler_pic, )" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, )= _LT_TAGVAR(lt_prog_compiler_can_build_shared, )=no]) -m4trace:configure.ac:103: -1- _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], [lt_cv_prog_compiler_static_works], [$lt_tmp_static_flag], [], [_LT_TAGVAR(lt_prog_compiler_static, )=]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^MANIFEST_TOOL$]) -m4trace:configure.ac:103: -1- _LT_DLL_DEF_P([$export_symbols]) -m4trace:configure.ac:103: -1- _LT_DLL_DEF_P([$export_symbols]) -m4trace:configure.ac:103: -1- _LT_REQUIRED_DARWIN_CHECKS -m4trace:configure.ac:103: -1- m4_pattern_allow([^DSYMUTIL$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^NMEDIT$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^LIPO$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^OTOOL$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^OTOOL64$]) -m4trace:configure.ac:103: -1- _LT_LINKER_OPTION([if $CC understands -b], [lt_cv_prog_compiler__b], [-b], [_LT_TAGVAR(archive_cmds, )='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], [_LT_TAGVAR(archive_cmds, )='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags']) -m4trace:configure.ac:103: -1- m4_pattern_allow([^LT_SYS_LIBRARY_PATH$]) -m4trace:configure.ac:103: -1- LT_SYS_DLOPEN_SELF -m4trace:configure.ac:103: -1- m4_pattern_allow([^HAVE_DLFCN_H$]) -m4trace:configure.ac:103: -1- LT_LANG([CXX]) -m4trace:configure.ac:103: -1- LT_SUPPORTED_TAG([CXX]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^CXXCPP$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^CPPFLAGS$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^CXXCPP$]) -m4trace:configure.ac:103: -1- _LT_COMPILER_BOILERPLATE -m4trace:configure.ac:103: -1- _LT_LINKER_BOILERPLATE -m4trace:configure.ac:103: -1- _LT_CC_BASENAME([$compiler]) -m4trace:configure.ac:103: -1- LT_PATH_LD -m4trace:configure.ac:103: -1- m4_pattern_allow([^LD$]) -m4trace:configure.ac:103: -1- _LT_DLL_DEF_P([$export_symbols]) -m4trace:configure.ac:103: -1- _LT_DLL_DEF_P([$export_symbols]) -m4trace:configure.ac:103: -1- _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, CXX) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, CXX)], [$_LT_TAGVAR(lt_prog_compiler_pic, CXX)@&t@m4_if([CXX],[],[ -DPIC],[m4_if([CXX],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, CXX) in +m4trace:configure.ac:111: -1- _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], [lt_cv_prog_compiler_static_works], [$lt_tmp_static_flag], [], [_LT_TAGVAR(lt_prog_compiler_static, )=]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^MANIFEST_TOOL$]) +m4trace:configure.ac:111: -1- _LT_DLL_DEF_P([$export_symbols]) +m4trace:configure.ac:111: -1- _LT_DLL_DEF_P([$export_symbols]) +m4trace:configure.ac:111: -1- _LT_REQUIRED_DARWIN_CHECKS +m4trace:configure.ac:111: -1- m4_pattern_allow([^DSYMUTIL$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^NMEDIT$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LIPO$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^OTOOL$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^OTOOL64$]) +m4trace:configure.ac:111: -1- _LT_LINKER_OPTION([if $CC understands -b], [lt_cv_prog_compiler__b], [-b], [_LT_TAGVAR(archive_cmds, )='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], [_LT_TAGVAR(archive_cmds, )='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags']) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LT_SYS_LIBRARY_PATH$]) +m4trace:configure.ac:111: -1- LT_SYS_DLOPEN_SELF +m4trace:configure.ac:111: -1- m4_pattern_allow([^HAVE_DLFCN_H$]) +m4trace:configure.ac:111: -1- LT_LANG([CXX]) +m4trace:configure.ac:111: -1- LT_SUPPORTED_TAG([CXX]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^CXXCPP$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^CXXCPP$]) +m4trace:configure.ac:111: -1- _LT_COMPILER_BOILERPLATE +m4trace:configure.ac:111: -1- _LT_LINKER_BOILERPLATE +m4trace:configure.ac:111: -1- _LT_CC_BASENAME([$compiler]) +m4trace:configure.ac:111: -1- LT_PATH_LD +m4trace:configure.ac:111: -1- m4_pattern_allow([^LD$]) +m4trace:configure.ac:111: -1- _LT_DLL_DEF_P([$export_symbols]) +m4trace:configure.ac:111: -1- _LT_DLL_DEF_P([$export_symbols]) +m4trace:configure.ac:111: -1- _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, CXX) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, CXX)], [$_LT_TAGVAR(lt_prog_compiler_pic, CXX)@&t@m4_if([CXX],[],[ -DPIC],[m4_if([CXX],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, CXX) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, CXX)=" $_LT_TAGVAR(lt_prog_compiler_pic, CXX)" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, CXX)= _LT_TAGVAR(lt_prog_compiler_can_build_shared, CXX)=no]) -m4trace:configure.ac:103: -1- _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], [lt_cv_prog_compiler_static_works_CXX], [$lt_tmp_static_flag], [], [_LT_TAGVAR(lt_prog_compiler_static, CXX)=]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^LT_SYS_LIBRARY_PATH$]) -m4trace:configure.ac:104: -1- m4_pattern_allow([^LTDLINCL$]) -m4trace:configure.ac:105: -1- m4_pattern_allow([^LIBLTDL$]) -m4trace:configure.ac:106: -1- m4_pattern_allow([^subdirs$]) -m4trace:configure.ac:108: -1- _m4_warn([obsolete], [The macro `AC_HEADER_STDC' is obsolete. -You should run autoupdate.], [./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from... -configure.ac:108: the top level]) -m4trace:configure.ac:108: -1- AC_PROG_EGREP -m4trace:configure.ac:108: -1- m4_pattern_allow([^EGREP$]) -m4trace:configure.ac:109: -1- m4_pattern_allow([^const$]) -m4trace:configure.ac:110: -1- m4_pattern_allow([^WORDS_BIGENDIAN$]) -m4trace:configure.ac:110: -1- m4_pattern_allow([^AC_APPLE_UNIVERSAL_BUILD$]) -m4trace:configure.ac:111: -1- m4_pattern_allow([^pid_t$]) -m4trace:configure.ac:112: -1- m4_pattern_allow([^size_t$]) -m4trace:configure.ac:113: -1- m4_pattern_allow([^HAVE_SSIZE_T$]) -m4trace:configure.ac:113: -1- m4_pattern_allow([^ssize_t$]) -m4trace:configure.ac:115: -1- m4_pattern_allow([^off_t$]) -m4trace:configure.ac:116: -1- _m4_warn([obsolete], [The macro `AC_TYPE_SIGNAL' is obsolete. -You should run autoupdate.], [./lib/autoconf/types.m4:776: AC_TYPE_SIGNAL is expanded from... -configure.ac:116: the top level]) -m4trace:configure.ac:116: -1- m4_pattern_allow([^RETSIGTYPE$]) -m4trace:configure.ac:117: -1- m4_pattern_allow([^uid_t$]) -m4trace:configure.ac:117: -1- m4_pattern_allow([^gid_t$]) -m4trace:configure.ac:118: -1- AC_DEFUN([_AC_UNDECLARED_BUILTIN_c], [_AC_UNDECLARED_BUILTIN]) -m4trace:configure.ac:118: -1- m4_pattern_allow([^HAVE_DECL_ENVIRON$]) -m4trace:configure.ac:121: -1- AX_APPEND_COMPILE_FLAGS([-Wall -Wsign-compare -Wno-stringop-overflow], [CFLAGS], [-pedantic -Werror]) -m4trace:configure.ac:121: -1- AX_CHECK_COMPILE_FLAG([$flag], [AX_APPEND_FLAG([$flag], [CFLAGS])], [], [-pedantic -Werror]) -m4trace:configure.ac:121: -1- AX_APPEND_FLAG([$flag], [CFLAGS]) -m4trace:configure.ac:138: -1- m4_pattern_allow([^HAVE_QSORT_R$]) -m4trace:configure.ac:139: -1- m4_pattern_allow([^HAVE_QSORT_R$]) -m4trace:configure.ac:140: -1- AM_CONDITIONAL([HAVE_QSORT_R], [ test x$HAVE_QSORT_R = x1 ]) -m4trace:configure.ac:140: -1- m4_pattern_allow([^HAVE_QSORT_R_TRUE$]) -m4trace:configure.ac:140: -1- m4_pattern_allow([^HAVE_QSORT_R_FALSE$]) -m4trace:configure.ac:140: -1- _AM_SUBST_NOTMAKE([HAVE_QSORT_R_TRUE]) -m4trace:configure.ac:140: -1- _AM_SUBST_NOTMAKE([HAVE_QSORT_R_FALSE]) -m4trace:configure.ac:142: -1- PKG_CHECK_MODULES([LIBYAML], [ yaml-0.1 ], [HAVE_LIBYAML=1], [HAVE_LIBYAML=0]) -m4trace:configure.ac:142: -1- m4_pattern_allow([^LIBYAML_CFLAGS$]) -m4trace:configure.ac:142: -1- m4_pattern_allow([^LIBYAML_LIBS$]) -m4trace:configure.ac:142: -1- PKG_CHECK_EXISTS([ yaml-0.1 ], [pkg_cv_[]LIBYAML_CFLAGS=`$PKG_CONFIG --[]cflags " yaml-0.1 " 2>/dev/null` +m4trace:configure.ac:111: -1- _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], [lt_cv_prog_compiler_static_works_CXX], [$lt_tmp_static_flag], [], [_LT_TAGVAR(lt_prog_compiler_static, CXX)=]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LT_SYS_LIBRARY_PATH$]) +m4trace:configure.ac:112: -1- m4_pattern_allow([^LTDLINCL$]) +m4trace:configure.ac:113: -1- m4_pattern_allow([^LIBLTDL$]) +m4trace:configure.ac:114: -1- m4_pattern_allow([^subdirs$]) +m4trace:configure.ac:116: -1- m4_pattern_allow([^const$]) +m4trace:configure.ac:117: -1- m4_pattern_allow([^WORDS_BIGENDIAN$]) +m4trace:configure.ac:117: -1- m4_pattern_allow([^AC_APPLE_UNIVERSAL_BUILD$]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^pid_t$]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^size_t$]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^HAVE_SSIZE_T$]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^ssize_t$]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^off_t$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^uid_t$]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^gid_t$]) +m4trace:configure.ac:124: -1- AC_DEFUN([_AC_UNDECLARED_BUILTIN_c], [_AC_UNDECLARED_BUILTIN]) +m4trace:configure.ac:124: -1- m4_pattern_allow([^HAVE_DECL_ENVIRON$]) +m4trace:configure.ac:126: -1- m4_pattern_allow([^HAVE_BYTESWAP_H$]) +m4trace:configure.ac:127: -1- m4_pattern_allow([^HAVE___BUILTIN_BSWAP16$]) +m4trace:configure.ac:127: -1- m4_pattern_allow([^HAVE___BUILTIN_BSWAP32$]) +m4trace:configure.ac:127: -1- m4_pattern_allow([^HAVE___BUILTIN_BSWAP64$]) +m4trace:configure.ac:130: -1- AX_APPEND_COMPILE_FLAGS([-Wall -Wsign-compare -Wno-stringop-overflow -fvisibility=hidden], [CFLAGS], [-pedantic -Werror]) +m4trace:configure.ac:130: -1- AX_CHECK_COMPILE_FLAG([$flag], [AX_APPEND_FLAG([$flag], [CFLAGS])], [], [-pedantic -Werror]) +m4trace:configure.ac:130: -1- AX_APPEND_FLAG([$flag], [CFLAGS]) +m4trace:configure.ac:147: -1- m4_pattern_allow([^HAVE_STATIC$]) +m4trace:configure.ac:148: -1- m4_pattern_allow([^HAVE_STATIC$]) +m4trace:configure.ac:149: -1- AM_CONDITIONAL([HAVE_STATIC], [ test x$HAVE_STATIC = x1 ]) +m4trace:configure.ac:149: -1- m4_pattern_allow([^HAVE_STATIC_TRUE$]) +m4trace:configure.ac:149: -1- m4_pattern_allow([^HAVE_STATIC_FALSE$]) +m4trace:configure.ac:149: -1- _AM_SUBST_NOTMAKE([HAVE_STATIC_TRUE]) +m4trace:configure.ac:149: -1- _AM_SUBST_NOTMAKE([HAVE_STATIC_FALSE]) +m4trace:configure.ac:152: -1- AX_CHECK_COMPILE_FLAG([-Wstringop-overread], [], [], [-Werror]) +m4trace:configure.ac:155: -1- m4_pattern_allow([^HAVE_WSTRINGOP_OVERREAD$]) +m4trace:configure.ac:165: -1- m4_pattern_allow([^HAVE_PORTABLE_TARGET$]) +m4trace:configure.ac:166: -1- m4_pattern_allow([^HAVE_PORTABLE_TARGET$]) +m4trace:configure.ac:167: -1- AM_CONDITIONAL([HAVE_PORTABLE_TARGET], [ test x$HAVE_PORTABLE_TARGET == x1 ]) +m4trace:configure.ac:167: -1- m4_pattern_allow([^HAVE_PORTABLE_TARGET_TRUE$]) +m4trace:configure.ac:167: -1- m4_pattern_allow([^HAVE_PORTABLE_TARGET_FALSE$]) +m4trace:configure.ac:167: -1- _AM_SUBST_NOTMAKE([HAVE_PORTABLE_TARGET_TRUE]) +m4trace:configure.ac:167: -1- _AM_SUBST_NOTMAKE([HAVE_PORTABLE_TARGET_FALSE]) +m4trace:configure.ac:169: -1- AM_CONDITIONAL([TARGET_CPU_X86], [ test x$target_cpu = xx86 ]) +m4trace:configure.ac:169: -1- m4_pattern_allow([^TARGET_CPU_X86_TRUE$]) +m4trace:configure.ac:169: -1- m4_pattern_allow([^TARGET_CPU_X86_FALSE$]) +m4trace:configure.ac:169: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_X86_TRUE]) +m4trace:configure.ac:169: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_X86_FALSE]) +m4trace:configure.ac:170: -1- AM_CONDITIONAL([TARGET_CPU_X86_64], [ test x$target_cpu = xx86_64 ]) +m4trace:configure.ac:170: -1- m4_pattern_allow([^TARGET_CPU_X86_64_TRUE$]) +m4trace:configure.ac:170: -1- m4_pattern_allow([^TARGET_CPU_X86_64_FALSE$]) +m4trace:configure.ac:170: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_X86_64_TRUE]) +m4trace:configure.ac:170: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_X86_64_FALSE]) +m4trace:configure.ac:171: -1- AM_CONDITIONAL([TARGET_CPU_ANY_X86], [ test x$target_cpu = xx86 -o x$target_cpu = xx86_64 ]) +m4trace:configure.ac:171: -1- m4_pattern_allow([^TARGET_CPU_ANY_X86_TRUE$]) +m4trace:configure.ac:171: -1- m4_pattern_allow([^TARGET_CPU_ANY_X86_FALSE$]) +m4trace:configure.ac:171: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ANY_X86_TRUE]) +m4trace:configure.ac:171: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ANY_X86_FALSE]) +m4trace:configure.ac:172: -1- AM_CONDITIONAL([TARGET_CPU_ARM], [ test x$target_cpu = xarm ]) +m4trace:configure.ac:172: -1- m4_pattern_allow([^TARGET_CPU_ARM_TRUE$]) +m4trace:configure.ac:172: -1- m4_pattern_allow([^TARGET_CPU_ARM_FALSE$]) +m4trace:configure.ac:172: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ARM_TRUE]) +m4trace:configure.ac:172: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ARM_FALSE]) +m4trace:configure.ac:173: -1- AM_CONDITIONAL([TARGET_CPU_ARM64], [ test x$target_cpu = xaarch64 ]) +m4trace:configure.ac:173: -1- m4_pattern_allow([^TARGET_CPU_ARM64_TRUE$]) +m4trace:configure.ac:173: -1- m4_pattern_allow([^TARGET_CPU_ARM64_FALSE$]) +m4trace:configure.ac:173: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ARM64_TRUE]) +m4trace:configure.ac:173: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ARM64_FALSE]) +m4trace:configure.ac:174: -1- AM_CONDITIONAL([TARGET_CPU_ANY_ARM], [ test x$target_cpu = xarm -o x$target_cpu = xaarch64 ]) +m4trace:configure.ac:174: -1- m4_pattern_allow([^TARGET_CPU_ANY_ARM_TRUE$]) +m4trace:configure.ac:174: -1- m4_pattern_allow([^TARGET_CPU_ANY_ARM_FALSE$]) +m4trace:configure.ac:174: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ANY_ARM_TRUE]) +m4trace:configure.ac:174: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ANY_ARM_FALSE]) +m4trace:configure.ac:176: -1- AM_COND_IF([TARGET_CPU_ANY_X86], [m4_version_prereq(2.64, [ + AX_CHECK_COMPILE_FLAG([-msse2], , , [-Werror]) + AX_CHECK_COMPILE_FLAG([-msse4.1], , , [-Werror]) + AX_CHECK_COMPILE_FLAG([-mavx2], , , [-Werror]) + AX_CHECK_COMPILE_FLAG([-mavx512f -mavx512vl], , , [-Werror]) + ], [true]) +]) +m4trace:configure.ac:176: -1- AX_CHECK_COMPILE_FLAG([-msse2], [], [], [-Werror]) +m4trace:configure.ac:176: -1- AX_CHECK_COMPILE_FLAG([-msse4.1], [], [], [-Werror]) +m4trace:configure.ac:176: -1- AX_CHECK_COMPILE_FLAG([-mavx2], [], [], [-Werror]) +m4trace:configure.ac:176: -1- AX_CHECK_COMPILE_FLAG([-mavx512f -mavx512vl], [], [], [-Werror]) +m4trace:configure.ac:184: -1- AM_COND_IF([TARGET_CPU_ARM], [m4_version_prereq(2.64, [ + AX_CHECK_COMPILE_FLAG([-mfpu=neon], , , [-Werror]) + ], [true]) +]) +m4trace:configure.ac:184: -1- AX_CHECK_COMPILE_FLAG([-mfpu=neon], [], [], [-Werror]) +m4trace:configure.ac:189: -1- AM_CONDITIONAL([TARGET_HAS_SSE2], [ test "x$ax_cv_check_cflags__Werror__msse2" = x"yes" -a "x$enable_portable_target" != "xyes" ]) +m4trace:configure.ac:189: -1- m4_pattern_allow([^TARGET_HAS_SSE2_TRUE$]) +m4trace:configure.ac:189: -1- m4_pattern_allow([^TARGET_HAS_SSE2_FALSE$]) +m4trace:configure.ac:189: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_SSE2_TRUE]) +m4trace:configure.ac:189: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_SSE2_FALSE]) +m4trace:configure.ac:190: -1- AM_CONDITIONAL([TARGET_HAS_SSE41], [ test "x$ax_cv_check_cflags__Werror__msse4_1" = x"yes" -a "x$enable_portable_target" != "xyes" ]) +m4trace:configure.ac:190: -1- m4_pattern_allow([^TARGET_HAS_SSE41_TRUE$]) +m4trace:configure.ac:190: -1- m4_pattern_allow([^TARGET_HAS_SSE41_FALSE$]) +m4trace:configure.ac:190: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_SSE41_TRUE]) +m4trace:configure.ac:190: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_SSE41_FALSE]) +m4trace:configure.ac:191: -1- AM_CONDITIONAL([TARGET_HAS_AVX2], [ test "x$ax_cv_check_cflags__Werror__mavx2" = x"yes" -a "x$enable_portable_target" != "xyes" ]) +m4trace:configure.ac:191: -1- m4_pattern_allow([^TARGET_HAS_AVX2_TRUE$]) +m4trace:configure.ac:191: -1- m4_pattern_allow([^TARGET_HAS_AVX2_FALSE$]) +m4trace:configure.ac:191: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_AVX2_TRUE]) +m4trace:configure.ac:191: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_AVX2_FALSE]) +m4trace:configure.ac:192: -1- AM_CONDITIONAL([TARGET_HAS_AVX512], [ test "x$ax_cv_check_cflags__Werror__mavx512f__mavx512vl" = x"yes" -a "x$enable_portable_target" != "xyes" ]) +m4trace:configure.ac:192: -1- m4_pattern_allow([^TARGET_HAS_AVX512_TRUE$]) +m4trace:configure.ac:192: -1- m4_pattern_allow([^TARGET_HAS_AVX512_FALSE$]) +m4trace:configure.ac:192: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_AVX512_TRUE]) +m4trace:configure.ac:192: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_AVX512_FALSE]) +m4trace:configure.ac:194: -1- AM_CONDITIONAL([TARGET_HAS_NEON], [ test \( x$target_cpu = xaarch64 -o "x$ax_cv_check_cflags__Werror__mcpu_neon" = x"yes" \) -a "x$enable_portable_target" != "xyes" ]) +m4trace:configure.ac:194: -1- m4_pattern_allow([^TARGET_HAS_NEON_TRUE$]) +m4trace:configure.ac:194: -1- m4_pattern_allow([^TARGET_HAS_NEON_FALSE$]) +m4trace:configure.ac:194: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_NEON_TRUE]) +m4trace:configure.ac:194: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_NEON_FALSE]) +m4trace:configure.ac:196: -2- m4_pattern_allow([^TARGET_HAS_SSE2$]) +m4trace:configure.ac:196: -1- AM_COND_IF([TARGET_HAS_SSE2], [ +printf "%s\n" "@%:@define TARGET_HAS_SSE2 1" >>confdefs.h +]) +m4trace:configure.ac:197: -2- m4_pattern_allow([^TARGET_HAS_SSE41$]) +m4trace:configure.ac:197: -1- AM_COND_IF([TARGET_HAS_SSE41], [ +printf "%s\n" "@%:@define TARGET_HAS_SSE41 1" >>confdefs.h +]) +m4trace:configure.ac:198: -2- m4_pattern_allow([^TARGET_HAS_AVX2$]) +m4trace:configure.ac:198: -1- AM_COND_IF([TARGET_HAS_AVX2], [ +printf "%s\n" "@%:@define TARGET_HAS_AVX2 1" >>confdefs.h +]) +m4trace:configure.ac:199: -2- m4_pattern_allow([^TARGET_HAS_AVX512$]) +m4trace:configure.ac:199: -1- AM_COND_IF([TARGET_HAS_AVX512], [ +printf "%s\n" "@%:@define TARGET_HAS_AVX512 1" >>confdefs.h +]) +m4trace:configure.ac:201: -2- m4_pattern_allow([^TARGET_HAS_NEON$]) +m4trace:configure.ac:201: -1- AM_COND_IF([TARGET_HAS_NEON], [ +printf "%s\n" "@%:@define TARGET_HAS_NEON 1" >>confdefs.h +]) +m4trace:configure.ac:221: -2- AX_APPEND_COMPILE_FLAGS([-fsanitize=address -fno-omit-frame-pointer], [CFLAGS]) +m4trace:configure.ac:221: -2- AX_CHECK_COMPILE_FLAG([$flag], [AX_APPEND_FLAG([$flag], [CFLAGS])], [], []) +m4trace:configure.ac:221: -2- AX_APPEND_FLAG([$flag], [CFLAGS]) +m4trace:configure.ac:227: -1- m4_pattern_allow([^HAVE_ASAN$]) +m4trace:configure.ac:228: -1- m4_pattern_allow([^ASAN_CFLAGS$]) +m4trace:configure.ac:229: -1- m4_pattern_allow([^ASAN_LIBS$]) +m4trace:configure.ac:230: -1- AM_CONDITIONAL([HAVE_ASAN], [ test x$HAVE_ASAN = x1 ]) +m4trace:configure.ac:230: -1- m4_pattern_allow([^HAVE_ASAN_TRUE$]) +m4trace:configure.ac:230: -1- m4_pattern_allow([^HAVE_ASAN_FALSE$]) +m4trace:configure.ac:230: -1- _AM_SUBST_NOTMAKE([HAVE_ASAN_TRUE]) +m4trace:configure.ac:230: -1- _AM_SUBST_NOTMAKE([HAVE_ASAN_FALSE]) +m4trace:configure.ac:232: -1- m4_pattern_allow([^HAVE_ASAN$]) +m4trace:configure.ac:238: -1- m4_pattern_allow([^HAVE_QSORT_R$]) +m4trace:configure.ac:239: -1- m4_pattern_allow([^HAVE_QSORT_R$]) +m4trace:configure.ac:240: -1- AM_CONDITIONAL([HAVE_QSORT_R], [ test x$HAVE_QSORT_R = x1 ]) +m4trace:configure.ac:240: -1- m4_pattern_allow([^HAVE_QSORT_R_TRUE$]) +m4trace:configure.ac:240: -1- m4_pattern_allow([^HAVE_QSORT_R_FALSE$]) +m4trace:configure.ac:240: -1- _AM_SUBST_NOTMAKE([HAVE_QSORT_R_TRUE]) +m4trace:configure.ac:240: -1- _AM_SUBST_NOTMAKE([HAVE_QSORT_R_FALSE]) +m4trace:configure.ac:242: -1- PKG_CHECK_MODULES([LIBYAML], [ yaml-0.1 ], [HAVE_LIBYAML=1], [HAVE_LIBYAML=0]) +m4trace:configure.ac:242: -1- m4_pattern_allow([^LIBYAML_CFLAGS$]) +m4trace:configure.ac:242: -1- m4_pattern_allow([^LIBYAML_LIBS$]) +m4trace:configure.ac:242: -1- PKG_CHECK_EXISTS([ yaml-0.1 ], [pkg_cv_[]LIBYAML_CFLAGS=`$PKG_CONFIG --[]cflags " yaml-0.1 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) -m4trace:configure.ac:142: -1- PKG_CHECK_EXISTS([ yaml-0.1 ], [pkg_cv_[]LIBYAML_LIBS=`$PKG_CONFIG --[]libs " yaml-0.1 " 2>/dev/null` +m4trace:configure.ac:242: -1- PKG_CHECK_EXISTS([ yaml-0.1 ], [pkg_cv_[]LIBYAML_LIBS=`$PKG_CONFIG --[]libs " yaml-0.1 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) -m4trace:configure.ac:142: -1- _PKG_SHORT_ERRORS_SUPPORTED -m4trace:configure.ac:149: -1- m4_pattern_allow([^HAVE_LIBYAML$]) -m4trace:configure.ac:150: -1- m4_pattern_allow([^LIBYAML_CFLAGS$]) -m4trace:configure.ac:151: -1- m4_pattern_allow([^LIBYAML_LIBS$]) -m4trace:configure.ac:152: -1- m4_pattern_allow([^HAVE_LIBYAML$]) -m4trace:configure.ac:153: -1- AM_CONDITIONAL([HAVE_LIBYAML], [ test x$HAVE_LIBYAML = x1 ]) -m4trace:configure.ac:153: -1- m4_pattern_allow([^HAVE_LIBYAML_TRUE$]) -m4trace:configure.ac:153: -1- m4_pattern_allow([^HAVE_LIBYAML_FALSE$]) -m4trace:configure.ac:153: -1- _AM_SUBST_NOTMAKE([HAVE_LIBYAML_TRUE]) -m4trace:configure.ac:153: -1- _AM_SUBST_NOTMAKE([HAVE_LIBYAML_FALSE]) -m4trace:configure.ac:155: -1- PKG_CHECK_MODULES([CHECK], [ check ], [HAVE_CHECK=1], [HAVE_CHECK=0]) -m4trace:configure.ac:155: -1- m4_pattern_allow([^CHECK_CFLAGS$]) -m4trace:configure.ac:155: -1- m4_pattern_allow([^CHECK_LIBS$]) -m4trace:configure.ac:155: -1- PKG_CHECK_EXISTS([ check ], [pkg_cv_[]CHECK_CFLAGS=`$PKG_CONFIG --[]cflags " check " 2>/dev/null` +m4trace:configure.ac:242: -1- _PKG_SHORT_ERRORS_SUPPORTED +m4trace:configure.ac:249: -1- m4_pattern_allow([^HAVE_LIBYAML$]) +m4trace:configure.ac:250: -1- m4_pattern_allow([^LIBYAML_CFLAGS$]) +m4trace:configure.ac:251: -1- m4_pattern_allow([^LIBYAML_LIBS$]) +m4trace:configure.ac:252: -1- m4_pattern_allow([^HAVE_LIBYAML$]) +m4trace:configure.ac:253: -1- AM_CONDITIONAL([HAVE_LIBYAML], [ test x$HAVE_LIBYAML = x1 ]) +m4trace:configure.ac:253: -1- m4_pattern_allow([^HAVE_LIBYAML_TRUE$]) +m4trace:configure.ac:253: -1- m4_pattern_allow([^HAVE_LIBYAML_FALSE$]) +m4trace:configure.ac:253: -1- _AM_SUBST_NOTMAKE([HAVE_LIBYAML_TRUE]) +m4trace:configure.ac:253: -1- _AM_SUBST_NOTMAKE([HAVE_LIBYAML_FALSE]) +m4trace:configure.ac:255: -1- PKG_CHECK_MODULES([CHECK], [ check ], [HAVE_CHECK=1], [HAVE_CHECK=0]) +m4trace:configure.ac:255: -1- m4_pattern_allow([^CHECK_CFLAGS$]) +m4trace:configure.ac:255: -1- m4_pattern_allow([^CHECK_LIBS$]) +m4trace:configure.ac:255: -1- PKG_CHECK_EXISTS([ check ], [pkg_cv_[]CHECK_CFLAGS=`$PKG_CONFIG --[]cflags " check " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) -m4trace:configure.ac:155: -1- PKG_CHECK_EXISTS([ check ], [pkg_cv_[]CHECK_LIBS=`$PKG_CONFIG --[]libs " check " 2>/dev/null` +m4trace:configure.ac:255: -1- PKG_CHECK_EXISTS([ check ], [pkg_cv_[]CHECK_LIBS=`$PKG_CONFIG --[]libs " check " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) -m4trace:configure.ac:155: -1- _PKG_SHORT_ERRORS_SUPPORTED -m4trace:configure.ac:157: -1- m4_pattern_allow([^HAVE_CHECK$]) -m4trace:configure.ac:158: -1- m4_pattern_allow([^CHECK_CFLAGS$]) -m4trace:configure.ac:159: -1- m4_pattern_allow([^CHECK_LDFLAGS$]) -m4trace:configure.ac:160: -1- m4_pattern_allow([^CHECK_LIBS$]) -m4trace:configure.ac:161: -1- m4_pattern_allow([^HAVE_CHECK$]) -m4trace:configure.ac:162: -1- AM_CONDITIONAL([HAVE_CHECK], [ test x$HAVE_CHECK = x1 ]) -m4trace:configure.ac:162: -1- m4_pattern_allow([^HAVE_CHECK_TRUE$]) -m4trace:configure.ac:162: -1- m4_pattern_allow([^HAVE_CHECK_FALSE$]) -m4trace:configure.ac:162: -1- _AM_SUBST_NOTMAKE([HAVE_CHECK_TRUE]) -m4trace:configure.ac:162: -1- _AM_SUBST_NOTMAKE([HAVE_CHECK_FALSE]) -m4trace:configure.ac:180: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK$]) -m4trace:configure.ac:181: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK$]) -m4trace:configure.ac:182: -1- AM_CONDITIONAL([HAVE_COMPATIBLE_CHECK], [ test x$HAVE_COMPATIBLE_CHECK = x1 ]) -m4trace:configure.ac:182: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK_TRUE$]) -m4trace:configure.ac:182: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK_FALSE$]) -m4trace:configure.ac:182: -1- _AM_SUBST_NOTMAKE([HAVE_COMPATIBLE_CHECK_TRUE]) -m4trace:configure.ac:182: -1- _AM_SUBST_NOTMAKE([HAVE_COMPATIBLE_CHECK_FALSE]) -m4trace:configure.ac:194: -1- m4_pattern_allow([^HAVE_NETWORK$]) -m4trace:configure.ac:195: -1- AM_CONDITIONAL([HAVE_NETWORK], [ test x$HAVE_NETWORK = x1 ]) -m4trace:configure.ac:195: -1- m4_pattern_allow([^HAVE_NETWORK_TRUE$]) -m4trace:configure.ac:195: -1- m4_pattern_allow([^HAVE_NETWORK_FALSE$]) -m4trace:configure.ac:195: -1- _AM_SUBST_NOTMAKE([HAVE_NETWORK_TRUE]) -m4trace:configure.ac:195: -1- _AM_SUBST_NOTMAKE([HAVE_NETWORK_FALSE]) -m4trace:configure.ac:208: -1- m4_pattern_allow([^HAVE_DEVMODE$]) -m4trace:configure.ac:209: -1- AM_CONDITIONAL([HAVE_DEVMODE], [ test x$HAVE_DEVMODE = x1 ]) -m4trace:configure.ac:209: -1- m4_pattern_allow([^HAVE_DEVMODE_TRUE$]) -m4trace:configure.ac:209: -1- m4_pattern_allow([^HAVE_DEVMODE_FALSE$]) -m4trace:configure.ac:209: -1- _AM_SUBST_NOTMAKE([HAVE_DEVMODE_TRUE]) -m4trace:configure.ac:209: -1- _AM_SUBST_NOTMAKE([HAVE_DEVMODE_FALSE]) -m4trace:configure.ac:211: -1- m4_pattern_allow([^HAVE_DEVMODE$]) -m4trace:configure.ac:214: -1- m4_pattern_allow([^SPHINX$]) -m4trace:configure.ac:218: -1- m4_pattern_allow([^PIP3$]) -m4trace:configure.ac:267: -1- m4_pattern_allow([^HAVE_SPHINX$]) -m4trace:configure.ac:268: -1- AM_CONDITIONAL([HAVE_SPHINX], [ test x$HAVE_SPHINX = x1 ]) -m4trace:configure.ac:268: -1- m4_pattern_allow([^HAVE_SPHINX_TRUE$]) -m4trace:configure.ac:268: -1- m4_pattern_allow([^HAVE_SPHINX_FALSE$]) -m4trace:configure.ac:268: -1- _AM_SUBST_NOTMAKE([HAVE_SPHINX_TRUE]) -m4trace:configure.ac:268: -1- _AM_SUBST_NOTMAKE([HAVE_SPHINX_FALSE]) -m4trace:configure.ac:271: -1- m4_pattern_allow([^GIT$]) -m4trace:configure.ac:277: -1- m4_pattern_allow([^HAVE_GIT$]) -m4trace:configure.ac:278: -1- AM_CONDITIONAL([HAVE_GIT], [ test x$HAVE_GIT = x1 ]) -m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_GIT_TRUE$]) -m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_GIT_FALSE$]) -m4trace:configure.ac:278: -1- _AM_SUBST_NOTMAKE([HAVE_GIT_TRUE]) -m4trace:configure.ac:278: -1- _AM_SUBST_NOTMAKE([HAVE_GIT_FALSE]) -m4trace:configure.ac:280: -1- m4_pattern_allow([^TESTSUITEURL$]) -m4trace:configure.ac:286: -1- m4_pattern_allow([^TESTSUITECHECKOUT$]) -m4trace:configure.ac:292: -1- m4_pattern_allow([^JSONTESTSUITEURL$]) -m4trace:configure.ac:298: -1- m4_pattern_allow([^JSONTESTSUITECHECKOUT$]) -m4trace:configure.ac:305: -1- m4_pattern_allow([^DOCKER$]) -m4trace:configure.ac:311: -1- AM_CONDITIONAL([HAVE_DOCKER], [ test x$HAVE_DOCKER = x1 ]) -m4trace:configure.ac:311: -1- m4_pattern_allow([^HAVE_DOCKER_TRUE$]) -m4trace:configure.ac:311: -1- m4_pattern_allow([^HAVE_DOCKER_FALSE$]) -m4trace:configure.ac:311: -1- _AM_SUBST_NOTMAKE([HAVE_DOCKER_TRUE]) -m4trace:configure.ac:311: -1- _AM_SUBST_NOTMAKE([HAVE_DOCKER_FALSE]) -m4trace:configure.ac:314: -1- m4_pattern_allow([^JQ$]) -m4trace:configure.ac:320: -1- m4_pattern_allow([^HAVE_JQ$]) -m4trace:configure.ac:321: -1- AM_CONDITIONAL([HAVE_JQ], [ test x$HAVE_JQ = x1 ]) -m4trace:configure.ac:321: -1- m4_pattern_allow([^HAVE_JQ_TRUE$]) -m4trace:configure.ac:321: -1- m4_pattern_allow([^HAVE_JQ_FALSE$]) -m4trace:configure.ac:321: -1- _AM_SUBST_NOTMAKE([HAVE_JQ_TRUE]) -m4trace:configure.ac:321: -1- _AM_SUBST_NOTMAKE([HAVE_JQ_FALSE]) -m4trace:configure.ac:322: -1- m4_pattern_allow([^JQ$]) -m4trace:configure.ac:326: -1- SHAVE_INIT([build-aux], [enable]) -m4trace:configure.ac:326: -1- _SHAVE_ARG_ENABLE([yes]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^shavedir$]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^MAKEFLAGS$]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^AM_MAKEFLAGS$]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^SED$]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^LIBTOOL$]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^CCAS$]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^CXX$]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^FC$]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^F77$]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^OBJC$]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^MCS$]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^LEX$]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^YACC$]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^V$]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^Q$]) -m4trace:configure.ac:340: -1- m4_pattern_allow([^LIB@&t@OBJS$]) -m4trace:configure.ac:340: -1- m4_pattern_allow([^LTLIBOBJS$]) -m4trace:configure.ac:340: -1- AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"]) -m4trace:configure.ac:340: -1- m4_pattern_allow([^am__EXEEXT_TRUE$]) -m4trace:configure.ac:340: -1- m4_pattern_allow([^am__EXEEXT_FALSE$]) -m4trace:configure.ac:340: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_TRUE]) -m4trace:configure.ac:340: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_FALSE]) -m4trace:configure.ac:340: -1- _AC_AM_CONFIG_HEADER_HOOK(["$ac_file"]) -m4trace:configure.ac:340: -1- _AM_OUTPUT_DEPENDENCY_COMMANDS -m4trace:configure.ac:340: -1- AM_RUN_LOG([cd "$am_dirpart" \ +m4trace:configure.ac:255: -1- _PKG_SHORT_ERRORS_SUPPORTED +m4trace:configure.ac:257: -1- m4_pattern_allow([^HAVE_CHECK$]) +m4trace:configure.ac:258: -1- m4_pattern_allow([^CHECK_CFLAGS$]) +m4trace:configure.ac:259: -1- m4_pattern_allow([^CHECK_LDFLAGS$]) +m4trace:configure.ac:260: -1- m4_pattern_allow([^CHECK_LIBS$]) +m4trace:configure.ac:261: -1- m4_pattern_allow([^HAVE_CHECK$]) +m4trace:configure.ac:262: -1- AM_CONDITIONAL([HAVE_CHECK], [ test x$HAVE_CHECK = x1 ]) +m4trace:configure.ac:262: -1- m4_pattern_allow([^HAVE_CHECK_TRUE$]) +m4trace:configure.ac:262: -1- m4_pattern_allow([^HAVE_CHECK_FALSE$]) +m4trace:configure.ac:262: -1- _AM_SUBST_NOTMAKE([HAVE_CHECK_TRUE]) +m4trace:configure.ac:262: -1- _AM_SUBST_NOTMAKE([HAVE_CHECK_FALSE]) +m4trace:configure.ac:280: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK$]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK$]) +m4trace:configure.ac:282: -1- AM_CONDITIONAL([HAVE_COMPATIBLE_CHECK], [ test x$HAVE_COMPATIBLE_CHECK = x1 ]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK_TRUE$]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK_FALSE$]) +m4trace:configure.ac:282: -1- _AM_SUBST_NOTMAKE([HAVE_COMPATIBLE_CHECK_TRUE]) +m4trace:configure.ac:282: -1- _AM_SUBST_NOTMAKE([HAVE_COMPATIBLE_CHECK_FALSE]) +m4trace:configure.ac:294: -1- m4_pattern_allow([^HAVE_NETWORK$]) +m4trace:configure.ac:295: -1- AM_CONDITIONAL([HAVE_NETWORK], [ test x$HAVE_NETWORK = x1 ]) +m4trace:configure.ac:295: -1- m4_pattern_allow([^HAVE_NETWORK_TRUE$]) +m4trace:configure.ac:295: -1- m4_pattern_allow([^HAVE_NETWORK_FALSE$]) +m4trace:configure.ac:295: -1- _AM_SUBST_NOTMAKE([HAVE_NETWORK_TRUE]) +m4trace:configure.ac:295: -1- _AM_SUBST_NOTMAKE([HAVE_NETWORK_FALSE]) +m4trace:configure.ac:308: -1- m4_pattern_allow([^HAVE_DEVMODE$]) +m4trace:configure.ac:309: -1- AM_CONDITIONAL([HAVE_DEVMODE], [ test x$HAVE_DEVMODE = x1 ]) +m4trace:configure.ac:309: -1- m4_pattern_allow([^HAVE_DEVMODE_TRUE$]) +m4trace:configure.ac:309: -1- m4_pattern_allow([^HAVE_DEVMODE_FALSE$]) +m4trace:configure.ac:309: -1- _AM_SUBST_NOTMAKE([HAVE_DEVMODE_TRUE]) +m4trace:configure.ac:309: -1- _AM_SUBST_NOTMAKE([HAVE_DEVMODE_FALSE]) +m4trace:configure.ac:311: -1- m4_pattern_allow([^HAVE_DEVMODE$]) +m4trace:configure.ac:314: -1- m4_pattern_allow([^SPHINX$]) +m4trace:configure.ac:318: -1- m4_pattern_allow([^PIP3$]) +m4trace:configure.ac:367: -1- m4_pattern_allow([^HAVE_SPHINX$]) +m4trace:configure.ac:368: -1- AM_CONDITIONAL([HAVE_SPHINX], [ test x$HAVE_SPHINX = x1 ]) +m4trace:configure.ac:368: -1- m4_pattern_allow([^HAVE_SPHINX_TRUE$]) +m4trace:configure.ac:368: -1- m4_pattern_allow([^HAVE_SPHINX_FALSE$]) +m4trace:configure.ac:368: -1- _AM_SUBST_NOTMAKE([HAVE_SPHINX_TRUE]) +m4trace:configure.ac:368: -1- _AM_SUBST_NOTMAKE([HAVE_SPHINX_FALSE]) +m4trace:configure.ac:371: -1- m4_pattern_allow([^GIT$]) +m4trace:configure.ac:377: -1- m4_pattern_allow([^HAVE_GIT$]) +m4trace:configure.ac:378: -1- AM_CONDITIONAL([HAVE_GIT], [ test x$HAVE_GIT = x1 ]) +m4trace:configure.ac:378: -1- m4_pattern_allow([^HAVE_GIT_TRUE$]) +m4trace:configure.ac:378: -1- m4_pattern_allow([^HAVE_GIT_FALSE$]) +m4trace:configure.ac:378: -1- _AM_SUBST_NOTMAKE([HAVE_GIT_TRUE]) +m4trace:configure.ac:378: -1- _AM_SUBST_NOTMAKE([HAVE_GIT_FALSE]) +m4trace:configure.ac:380: -1- m4_pattern_allow([^TESTSUITEURL$]) +m4trace:configure.ac:386: -1- m4_pattern_allow([^TESTSUITECHECKOUT$]) +m4trace:configure.ac:392: -1- m4_pattern_allow([^JSONTESTSUITEURL$]) +m4trace:configure.ac:398: -1- m4_pattern_allow([^JSONTESTSUITECHECKOUT$]) +m4trace:configure.ac:405: -1- m4_pattern_allow([^DOCKER$]) +m4trace:configure.ac:411: -1- AM_CONDITIONAL([HAVE_DOCKER], [ test x$HAVE_DOCKER = x1 ]) +m4trace:configure.ac:411: -1- m4_pattern_allow([^HAVE_DOCKER_TRUE$]) +m4trace:configure.ac:411: -1- m4_pattern_allow([^HAVE_DOCKER_FALSE$]) +m4trace:configure.ac:411: -1- _AM_SUBST_NOTMAKE([HAVE_DOCKER_TRUE]) +m4trace:configure.ac:411: -1- _AM_SUBST_NOTMAKE([HAVE_DOCKER_FALSE]) +m4trace:configure.ac:414: -1- m4_pattern_allow([^JQ$]) +m4trace:configure.ac:420: -1- m4_pattern_allow([^HAVE_JQ$]) +m4trace:configure.ac:421: -1- AM_CONDITIONAL([HAVE_JQ], [ test x$HAVE_JQ = x1 ]) +m4trace:configure.ac:421: -1- m4_pattern_allow([^HAVE_JQ_TRUE$]) +m4trace:configure.ac:421: -1- m4_pattern_allow([^HAVE_JQ_FALSE$]) +m4trace:configure.ac:421: -1- _AM_SUBST_NOTMAKE([HAVE_JQ_TRUE]) +m4trace:configure.ac:421: -1- _AM_SUBST_NOTMAKE([HAVE_JQ_FALSE]) +m4trace:configure.ac:422: -1- m4_pattern_allow([^JQ$]) +m4trace:configure.ac:459: -1- m4_pattern_allow([^LLVM_CONFIG$]) +m4trace:configure.ac:498: -1- m4_pattern_allow([^HAVE_LIBCLANG$]) +m4trace:configure.ac:499: -1- m4_pattern_allow([^LIBCLANG_CFLAGS$]) +m4trace:configure.ac:500: -1- m4_pattern_allow([^LIBCLANG_CPPFLAGS$]) +m4trace:configure.ac:501: -1- m4_pattern_allow([^LIBCLANG_LDFLAGS$]) +m4trace:configure.ac:502: -1- m4_pattern_allow([^LIBCLANG_LIBS$]) +m4trace:configure.ac:503: -1- m4_pattern_allow([^HAVE_LIBCLANG$]) +m4trace:configure.ac:504: -1- AM_CONDITIONAL([HAVE_LIBCLANG], [ test x$HAVE_LIBCLANG = x1 ]) +m4trace:configure.ac:504: -1- m4_pattern_allow([^HAVE_LIBCLANG_TRUE$]) +m4trace:configure.ac:504: -1- m4_pattern_allow([^HAVE_LIBCLANG_FALSE$]) +m4trace:configure.ac:504: -1- _AM_SUBST_NOTMAKE([HAVE_LIBCLANG_TRUE]) +m4trace:configure.ac:504: -1- _AM_SUBST_NOTMAKE([HAVE_LIBCLANG_FALSE]) +m4trace:configure.ac:525: -1- SHAVE_INIT([build-aux], [enable]) +m4trace:configure.ac:525: -1- _SHAVE_ARG_ENABLE([yes]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^shavedir$]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^MAKEFLAGS$]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^AM_MAKEFLAGS$]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^SED$]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^LIBTOOL$]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^CCAS$]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^FC$]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^F77$]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^OBJC$]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^MCS$]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^LEX$]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^YACC$]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^V$]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^Q$]) +m4trace:configure.ac:539: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:539: -1- m4_pattern_allow([^LTLIBOBJS$]) +m4trace:configure.ac:539: -1- AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"]) +m4trace:configure.ac:539: -1- m4_pattern_allow([^am__EXEEXT_TRUE$]) +m4trace:configure.ac:539: -1- m4_pattern_allow([^am__EXEEXT_FALSE$]) +m4trace:configure.ac:539: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_TRUE]) +m4trace:configure.ac:539: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_FALSE]) +m4trace:configure.ac:539: -1- _AC_AM_CONFIG_HEADER_HOOK(["$ac_file"]) +m4trace:configure.ac:539: -1- _AM_OUTPUT_DEPENDENCY_COMMANDS +m4trace:configure.ac:539: -1- AM_RUN_LOG([cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles]) -m4trace:configure.ac:340: -1- _LT_PROG_LTMAIN +m4trace:configure.ac:539: -1- _LT_PROG_LTMAIN diff --git a/Sources/Cfyaml/autom4te.cache/traces.2 b/Sources/Cfyaml/autom4te.cache/traces.2 index aa8deba8f..475376950 100644 --- a/Sources/Cfyaml/autom4te.cache/traces.2 +++ b/Sources/Cfyaml/autom4te.cache/traces.2 @@ -1,19 +1,19 @@ -m4trace:aclocal.m4:1963: -1- AC_SUBST([am__quote]) -m4trace:aclocal.m4:1963: -1- AC_SUBST_TRACE([am__quote]) -m4trace:aclocal.m4:1963: -1- m4_pattern_allow([^am__quote$]) -m4trace:aclocal.m4:2415: -1- m4_include([m4/ax_check_enable_debug.m4]) -m4trace:aclocal.m4:2416: -1- m4_include([m4/ax_check_flag.m4]) -m4trace:aclocal.m4:2417: -1- m4_include([m4/ax_pthread.m4]) -m4trace:aclocal.m4:2418: -1- m4_include([m4/libtool.m4]) -m4trace:aclocal.m4:2419: -1- m4_include([m4/ltoptions.m4]) -m4trace:aclocal.m4:2420: -1- m4_include([m4/ltsugar.m4]) -m4trace:aclocal.m4:2421: -1- m4_include([m4/ltversion.m4]) -m4trace:aclocal.m4:2422: -1- m4_include([m4/lt~obsolete.m4]) -m4trace:aclocal.m4:2423: -1- m4_include([m4/shave.m4]) -m4trace:configure.ac:3: -1- AC_INIT([libfyaml], [0.7.12], [pantelis.antoniou@konsulko.com]) +m4trace:aclocal.m4:1109: -1- AC_SUBST([am__quote]) +m4trace:aclocal.m4:1109: -1- AC_SUBST_TRACE([am__quote]) +m4trace:aclocal.m4:1109: -1- m4_pattern_allow([^am__quote$]) +m4trace:aclocal.m4:1561: -1- m4_include([m4/ax_check_enable_debug.m4]) +m4trace:aclocal.m4:1562: -1- m4_include([m4/ax_check_flag.m4]) +m4trace:aclocal.m4:1563: -1- m4_include([m4/ax_pthread.m4]) +m4trace:aclocal.m4:1564: -1- m4_include([m4/libtool.m4]) +m4trace:aclocal.m4:1565: -1- m4_include([m4/ltoptions.m4]) +m4trace:aclocal.m4:1566: -1- m4_include([m4/ltsugar.m4]) +m4trace:aclocal.m4:1567: -1- m4_include([m4/ltversion.m4]) +m4trace:aclocal.m4:1568: -1- m4_include([m4/lt~obsolete.m4]) +m4trace:aclocal.m4:1569: -1- m4_include([m4/shave.m4]) +m4trace:configure.ac:3: -1- AC_INIT([libfyaml], [0.9], [pantelis.antoniou@konsulko.com]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?A[CHUM]_]) m4trace:configure.ac:3: -1- m4_pattern_forbid([_AC_]) -m4trace:configure.ac:3: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS']) +m4trace:configure.ac:3: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section 'AC_LIBOBJ vs LIBOBJS']) m4trace:configure.ac:3: -1- m4_pattern_allow([^AS_FLAGS$]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?m4_]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^dnl$]) @@ -161,240 +161,289 @@ m4trace:configure.ac:3: -1- m4_pattern_allow([^host_alias$]) m4trace:configure.ac:3: -1- AC_SUBST([target_alias]) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([target_alias]) m4trace:configure.ac:3: -1- m4_pattern_allow([^target_alias$]) -m4trace:configure.ac:8: -1- _m4_warn([obsolete], [The macro `AC_CONFIG_HEADER' is obsolete. -You should run autoupdate.], [./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from... -configure.ac:8: the top level]) -m4trace:configure.ac:8: -1- AC_CONFIG_HEADERS([config.h]) -m4trace:configure.ac:9: -1- AC_CONFIG_MACRO_DIR_TRACE([m4]) -m4trace:configure.ac:10: -1- AC_CONFIG_AUX_DIR([build-aux]) -m4trace:configure.ac:11: -1- AM_INIT_AUTOMAKE([foreign 1.8.5 -Wall subdir-objects ]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$]) -m4trace:configure.ac:11: -1- AM_AUTOMAKE_VERSION([1.16.5]) -m4trace:configure.ac:11: -1- AC_REQUIRE_AUX_FILE([install-sh]) -m4trace:configure.ac:11: -1- AC_SUBST([INSTALL_PROGRAM]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([INSTALL_PROGRAM]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) -m4trace:configure.ac:11: -1- AC_SUBST([INSTALL_SCRIPT]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([INSTALL_SCRIPT]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) -m4trace:configure.ac:11: -1- AC_SUBST([INSTALL_DATA]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([INSTALL_DATA]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^INSTALL_DATA$]) -m4trace:configure.ac:11: -1- AC_SUBST([am__isrc], [' -I$(srcdir)']) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([am__isrc]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^am__isrc$]) -m4trace:configure.ac:11: -1- _AM_SUBST_NOTMAKE([am__isrc]) -m4trace:configure.ac:11: -1- AC_SUBST([CYGPATH_W]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([CYGPATH_W]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^CYGPATH_W$]) -m4trace:configure.ac:11: -1- AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME']) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([PACKAGE]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^PACKAGE$]) -m4trace:configure.ac:11: -1- AC_SUBST([VERSION], ['AC_PACKAGE_VERSION']) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([VERSION]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^VERSION$]) -m4trace:configure.ac:11: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^PACKAGE$]) -m4trace:configure.ac:11: -1- AH_OUTPUT([PACKAGE], [/* Name of package */ +m4trace:configure.ac:7: -1- AC_CONFIG_AUX_DIR([build-aux]) +m4trace:configure.ac:9: -1- AC_SUBST([M4]) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([M4]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^M4$]) +m4trace:configure.ac:14: -1- AC_SUBST([ACLOCAL_AMFLAGS], ["-I m4"]) +m4trace:configure.ac:14: -1- AC_SUBST_TRACE([ACLOCAL_AMFLAGS]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^ACLOCAL_AMFLAGS$]) +m4trace:configure.ac:16: -1- AC_CANONICAL_TARGET +m4trace:configure.ac:16: -1- AC_CANONICAL_HOST +m4trace:configure.ac:16: -1- AC_CANONICAL_BUILD +m4trace:configure.ac:16: -1- AC_REQUIRE_AUX_FILE([config.sub]) +m4trace:configure.ac:16: -1- AC_REQUIRE_AUX_FILE([config.guess]) +m4trace:configure.ac:16: -1- AC_SUBST([build], [$ac_cv_build]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([build]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^build$]) +m4trace:configure.ac:16: -1- AC_SUBST([build_cpu], [$[1]]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([build_cpu]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^build_cpu$]) +m4trace:configure.ac:16: -1- AC_SUBST([build_vendor], [$[2]]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([build_vendor]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^build_vendor$]) +m4trace:configure.ac:16: -1- AC_SUBST([build_os]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([build_os]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^build_os$]) +m4trace:configure.ac:16: -1- AC_SUBST([host], [$ac_cv_host]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([host]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^host$]) +m4trace:configure.ac:16: -1- AC_SUBST([host_cpu], [$[1]]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([host_cpu]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^host_cpu$]) +m4trace:configure.ac:16: -1- AC_SUBST([host_vendor], [$[2]]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([host_vendor]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^host_vendor$]) +m4trace:configure.ac:16: -1- AC_SUBST([host_os]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([host_os]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^host_os$]) +m4trace:configure.ac:16: -1- AC_SUBST([target], [$ac_cv_target]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([target]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^target$]) +m4trace:configure.ac:16: -1- AC_SUBST([target_cpu], [$[1]]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([target_cpu]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^target_cpu$]) +m4trace:configure.ac:16: -1- AC_SUBST([target_vendor], [$[2]]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([target_vendor]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^target_vendor$]) +m4trace:configure.ac:16: -1- AC_SUBST([target_os]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([target_os]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^target_os$]) +m4trace:configure.ac:19: -1- AC_CONFIG_HEADERS([config.h]) +m4trace:configure.ac:20: -1- AC_CONFIG_MACRO_DIR_TRACE([m4]) +m4trace:configure.ac:21: -1- AM_INIT_AUTOMAKE([foreign 1.8.5 subdir-objects -Wno-portability]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$]) +m4trace:configure.ac:21: -1- AM_AUTOMAKE_VERSION([1.16.5]) +m4trace:configure.ac:21: -1- AC_REQUIRE_AUX_FILE([install-sh]) +m4trace:configure.ac:21: -1- AC_SUBST([INSTALL_PROGRAM]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INSTALL_PROGRAM]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) +m4trace:configure.ac:21: -1- AC_SUBST([INSTALL_SCRIPT]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INSTALL_SCRIPT]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) +m4trace:configure.ac:21: -1- AC_SUBST([INSTALL_DATA]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INSTALL_DATA]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INSTALL_DATA$]) +m4trace:configure.ac:21: -1- AC_SUBST([am__isrc], [' -I$(srcdir)']) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([am__isrc]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^am__isrc$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([am__isrc]) +m4trace:configure.ac:21: -1- AC_SUBST([CYGPATH_W]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([CYGPATH_W]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^CYGPATH_W$]) +m4trace:configure.ac:21: -1- AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME']) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([PACKAGE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:21: -1- AC_SUBST([VERSION], ['AC_PACKAGE_VERSION']) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([VERSION]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:21: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:21: -1- AH_OUTPUT([PACKAGE], [/* Name of package */ @%:@undef PACKAGE]) -m4trace:configure.ac:11: -1- AC_DEFINE_TRACE_LITERAL([VERSION]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^VERSION$]) -m4trace:configure.ac:11: -1- AH_OUTPUT([VERSION], [/* Version number of package */ +m4trace:configure.ac:21: -1- AC_DEFINE_TRACE_LITERAL([VERSION]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:21: -1- AH_OUTPUT([VERSION], [/* Version number of package */ @%:@undef VERSION]) -m4trace:configure.ac:11: -1- AC_REQUIRE_AUX_FILE([missing]) -m4trace:configure.ac:11: -1- AC_SUBST([ACLOCAL]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([ACLOCAL]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^ACLOCAL$]) -m4trace:configure.ac:11: -1- AC_SUBST([AUTOCONF]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([AUTOCONF]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AUTOCONF$]) -m4trace:configure.ac:11: -1- AC_SUBST([AUTOMAKE]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([AUTOMAKE]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AUTOMAKE$]) -m4trace:configure.ac:11: -1- AC_SUBST([AUTOHEADER]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([AUTOHEADER]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AUTOHEADER$]) -m4trace:configure.ac:11: -1- AC_SUBST([MAKEINFO]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([MAKEINFO]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^MAKEINFO$]) -m4trace:configure.ac:11: -1- AC_SUBST([install_sh]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([install_sh]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^install_sh$]) -m4trace:configure.ac:11: -1- AC_SUBST([STRIP]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([STRIP]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^STRIP$]) -m4trace:configure.ac:11: -1- AC_SUBST([INSTALL_STRIP_PROGRAM]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([INSTALL_STRIP_PROGRAM]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$]) -m4trace:configure.ac:11: -1- AC_REQUIRE_AUX_FILE([install-sh]) -m4trace:configure.ac:11: -1- AC_SUBST([MKDIR_P]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([MKDIR_P]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^MKDIR_P$]) -m4trace:configure.ac:11: -1- AC_SUBST([mkdir_p], ['$(MKDIR_P)']) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([mkdir_p]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^mkdir_p$]) -m4trace:configure.ac:11: -1- AC_SUBST([AWK]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([AWK]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AWK$]) -m4trace:configure.ac:11: -1- AC_SUBST([SET_MAKE]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([SET_MAKE]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^SET_MAKE$]) -m4trace:configure.ac:11: -1- AC_SUBST([am__leading_dot]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([am__leading_dot]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^am__leading_dot$]) -m4trace:configure.ac:11: -1- AC_SUBST([AMTAR], ['$${TAR-tar}']) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([AMTAR]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AMTAR$]) -m4trace:configure.ac:11: -1- AC_SUBST([am__tar]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([am__tar]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^am__tar$]) -m4trace:configure.ac:11: -1- AC_SUBST([am__untar]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([am__untar]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^am__untar$]) -m4trace:configure.ac:11: -1- AC_SUBST([CTAGS]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([CTAGS]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^CTAGS$]) -m4trace:configure.ac:11: -1- AC_SUBST([ETAGS]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([ETAGS]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^ETAGS$]) -m4trace:configure.ac:11: -1- AC_SUBST([CSCOPE]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([CSCOPE]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^CSCOPE$]) -m4trace:configure.ac:11: -1- AM_SILENT_RULES -m4trace:configure.ac:11: -1- AC_SUBST([AM_V]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([AM_V]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AM_V$]) -m4trace:configure.ac:11: -1- _AM_SUBST_NOTMAKE([AM_V]) -m4trace:configure.ac:11: -1- AC_SUBST([AM_DEFAULT_V]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([AM_DEFAULT_V]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AM_DEFAULT_V$]) -m4trace:configure.ac:11: -1- _AM_SUBST_NOTMAKE([AM_DEFAULT_V]) -m4trace:configure.ac:11: -1- AC_SUBST([AM_DEFAULT_VERBOSITY]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([AM_DEFAULT_VERBOSITY]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AM_DEFAULT_VERBOSITY$]) -m4trace:configure.ac:11: -1- AC_SUBST([AM_BACKSLASH]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([AM_BACKSLASH]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AM_BACKSLASH$]) -m4trace:configure.ac:11: -1- _AM_SUBST_NOTMAKE([AM_BACKSLASH]) -m4trace:configure.ac:13: -1- m4_pattern_allow([^(AM_EXTRA_RECURSIVE_TARGETS|AM_PROG_AR)$]) -m4trace:configure.ac:19: -1- AM_EXTRA_RECURSIVE_TARGETS([doc-help doc-html doc-latexpdf doc-man doc-clean doc-markdown]) -m4trace:configure.ac:28: -1- AC_SUBST([MAJOR], [`echo $VERSION | cut -d. -f1 | cut -d- -f1`]) -m4trace:configure.ac:28: -1- AC_SUBST_TRACE([MAJOR]) -m4trace:configure.ac:28: -1- m4_pattern_allow([^MAJOR$]) -m4trace:configure.ac:29: -1- AC_SUBST([MINOR], [`echo $VERSION | cut -d. -f2 | cut -d- -f1`]) -m4trace:configure.ac:29: -1- AC_SUBST_TRACE([MINOR]) -m4trace:configure.ac:29: -1- m4_pattern_allow([^MINOR$]) -m4trace:configure.ac:30: -1- AC_SUBST([PATCH], [`echo $VERSION | cut -d. -f3- | cut -d- -f1`]) -m4trace:configure.ac:30: -1- AC_SUBST_TRACE([PATCH]) -m4trace:configure.ac:30: -1- m4_pattern_allow([^PATCH$]) -m4trace:configure.ac:31: -1- AC_SUBST([EXTRA], [`echo $VERSION | cut -d- -f2- -s`]) -m4trace:configure.ac:31: -1- AC_SUBST_TRACE([EXTRA]) -m4trace:configure.ac:31: -1- m4_pattern_allow([^EXTRA$]) -m4trace:configure.ac:67: -3- m4_include([.libtool-version]) -m4trace:configure.ac:68: -1- AC_SUBST([LIBTOOL_VERSION], [1:2:0]) -m4trace:configure.ac:68: -1- AC_SUBST_TRACE([LIBTOOL_VERSION]) -m4trace:configure.ac:68: -1- m4_pattern_allow([^LIBTOOL_VERSION$]) -m4trace:configure.ac:71: -1- AC_DEFINE_TRACE_LITERAL([NDEBUG]) -m4trace:configure.ac:71: -1- m4_pattern_allow([^NDEBUG$]) -m4trace:configure.ac:71: -1- AH_OUTPUT([NDEBUG], [/* Define if debugging is disabled */ +m4trace:configure.ac:21: -1- AC_REQUIRE_AUX_FILE([missing]) +m4trace:configure.ac:21: -1- AC_SUBST([ACLOCAL]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([ACLOCAL]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^ACLOCAL$]) +m4trace:configure.ac:21: -1- AC_SUBST([AUTOCONF]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([AUTOCONF]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AUTOCONF$]) +m4trace:configure.ac:21: -1- AC_SUBST([AUTOMAKE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([AUTOMAKE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AUTOMAKE$]) +m4trace:configure.ac:21: -1- AC_SUBST([AUTOHEADER]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([AUTOHEADER]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AUTOHEADER$]) +m4trace:configure.ac:21: -1- AC_SUBST([MAKEINFO]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([MAKEINFO]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^MAKEINFO$]) +m4trace:configure.ac:21: -1- AC_SUBST([install_sh]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([install_sh]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^install_sh$]) +m4trace:configure.ac:21: -1- AC_SUBST([STRIP]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([STRIP]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^STRIP$]) +m4trace:configure.ac:21: -1- AC_SUBST([INSTALL_STRIP_PROGRAM]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INSTALL_STRIP_PROGRAM]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$]) +m4trace:configure.ac:21: -1- AC_REQUIRE_AUX_FILE([install-sh]) +m4trace:configure.ac:21: -1- AC_SUBST([MKDIR_P]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([MKDIR_P]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^MKDIR_P$]) +m4trace:configure.ac:21: -1- AC_SUBST([mkdir_p], ['$(MKDIR_P)']) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([mkdir_p]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^mkdir_p$]) +m4trace:configure.ac:21: -1- AC_SUBST([AWK]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([AWK]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AWK$]) +m4trace:configure.ac:21: -1- AC_SUBST([SET_MAKE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([SET_MAKE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^SET_MAKE$]) +m4trace:configure.ac:21: -1- AC_SUBST([am__leading_dot]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([am__leading_dot]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^am__leading_dot$]) +m4trace:configure.ac:21: -1- AC_SUBST([AMTAR], ['$${TAR-tar}']) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([AMTAR]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AMTAR$]) +m4trace:configure.ac:21: -1- AC_SUBST([am__tar]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([am__tar]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^am__tar$]) +m4trace:configure.ac:21: -1- AC_SUBST([am__untar]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([am__untar]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^am__untar$]) +m4trace:configure.ac:21: -1- AC_SUBST([CTAGS]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([CTAGS]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^CTAGS$]) +m4trace:configure.ac:21: -1- AC_SUBST([ETAGS]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([ETAGS]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^ETAGS$]) +m4trace:configure.ac:21: -1- AC_SUBST([CSCOPE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([CSCOPE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^CSCOPE$]) +m4trace:configure.ac:21: -1- AM_SILENT_RULES +m4trace:configure.ac:21: -1- AC_SUBST([AM_V]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([AM_V]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AM_V$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([AM_V]) +m4trace:configure.ac:21: -1- AC_SUBST([AM_DEFAULT_V]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([AM_DEFAULT_V]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AM_DEFAULT_V$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([AM_DEFAULT_V]) +m4trace:configure.ac:21: -1- AC_SUBST([AM_DEFAULT_VERBOSITY]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([AM_DEFAULT_VERBOSITY]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AM_DEFAULT_VERBOSITY$]) +m4trace:configure.ac:21: -1- AC_SUBST([AM_BACKSLASH]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([AM_BACKSLASH]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AM_BACKSLASH$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([AM_BACKSLASH]) +m4trace:configure.ac:23: -1- m4_pattern_allow([^(AM_EXTRA_RECURSIVE_TARGETS|AM_PROG_AR)$]) +m4trace:configure.ac:29: -1- AM_EXTRA_RECURSIVE_TARGETS([doc-help doc-html doc-latexpdf doc-man doc-clean doc-markdown]) +m4trace:configure.ac:38: -1- AC_SUBST([MAJOR], [`echo $VERSION | cut -d. -f1 | cut -d- -f1`]) +m4trace:configure.ac:38: -1- AC_SUBST_TRACE([MAJOR]) +m4trace:configure.ac:38: -1- m4_pattern_allow([^MAJOR$]) +m4trace:configure.ac:39: -1- AC_SUBST([MINOR], [`echo $VERSION | cut -d. -f2 | cut -d- -f1`]) +m4trace:configure.ac:39: -1- AC_SUBST_TRACE([MINOR]) +m4trace:configure.ac:39: -1- m4_pattern_allow([^MINOR$]) +m4trace:configure.ac:40: -1- AC_SUBST([PATCH], [`echo $VERSION | cut -d. -f3- | cut -d- -f1`]) +m4trace:configure.ac:40: -1- AC_SUBST_TRACE([PATCH]) +m4trace:configure.ac:40: -1- m4_pattern_allow([^PATCH$]) +m4trace:configure.ac:41: -1- AC_SUBST([EXTRA], [`echo $VERSION | cut -d- -f2- -s`]) +m4trace:configure.ac:41: -1- AC_SUBST_TRACE([EXTRA]) +m4trace:configure.ac:41: -1- m4_pattern_allow([^EXTRA$]) +m4trace:configure.ac:77: -3- m4_include([.libtool-version]) +m4trace:configure.ac:78: -1- AC_SUBST([LIBTOOL_VERSION], [1:4:2]) +m4trace:configure.ac:78: -1- AC_SUBST_TRACE([LIBTOOL_VERSION]) +m4trace:configure.ac:78: -1- m4_pattern_allow([^LIBTOOL_VERSION$]) +m4trace:configure.ac:81: -1- AC_DEFINE_TRACE_LITERAL([NDEBUG]) +m4trace:configure.ac:81: -1- m4_pattern_allow([^NDEBUG$]) +m4trace:configure.ac:81: -1- AH_OUTPUT([NDEBUG], [/* Define if debugging is disabled */ @%:@undef NDEBUG]) -m4trace:configure.ac:74: -1- AC_SUBST([CC]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([CC]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:74: -1- AC_SUBST([CFLAGS]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([CFLAGS]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CFLAGS$]) -m4trace:configure.ac:74: -1- AC_SUBST([LDFLAGS]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([LDFLAGS]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^LDFLAGS$]) -m4trace:configure.ac:74: -1- AC_SUBST([LIBS]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([LIBS]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^LIBS$]) -m4trace:configure.ac:74: -1- AC_SUBST([CPPFLAGS]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([CPPFLAGS]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CPPFLAGS$]) -m4trace:configure.ac:74: -1- AC_SUBST([CC]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([CC]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:74: -1- AC_SUBST([CC]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([CC]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:74: -1- AC_SUBST([CC]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([CC]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:74: -1- AC_SUBST([CC]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([CC]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:74: -1- AC_SUBST([ac_ct_CC]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([ac_ct_CC]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^ac_ct_CC$]) -m4trace:configure.ac:74: -1- AC_SUBST([CC]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([CC]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:74: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([EXEEXT]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^EXEEXT$]) -m4trace:configure.ac:74: -1- AC_SUBST([OBJEXT], [$ac_cv_objext]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([OBJEXT]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^OBJEXT$]) -m4trace:configure.ac:74: -1- AC_REQUIRE_AUX_FILE([compile]) -m4trace:configure.ac:74: -1- AC_SUBST([DEPDIR], ["${am__leading_dot}deps"]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([DEPDIR]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^DEPDIR$]) -m4trace:configure.ac:74: -1- AC_SUBST([am__include]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([am__include]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^am__include$]) -m4trace:configure.ac:74: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -m4trace:configure.ac:74: -1- AC_SUBST([AMDEP_TRUE]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([AMDEP_TRUE]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^AMDEP_TRUE$]) -m4trace:configure.ac:74: -1- AC_SUBST([AMDEP_FALSE]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([AMDEP_FALSE]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^AMDEP_FALSE$]) -m4trace:configure.ac:74: -1- _AM_SUBST_NOTMAKE([AMDEP_TRUE]) -m4trace:configure.ac:74: -1- _AM_SUBST_NOTMAKE([AMDEP_FALSE]) -m4trace:configure.ac:74: -1- AC_SUBST([AMDEPBACKSLASH]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([AMDEPBACKSLASH]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^AMDEPBACKSLASH$]) -m4trace:configure.ac:74: -1- _AM_SUBST_NOTMAKE([AMDEPBACKSLASH]) -m4trace:configure.ac:74: -1- AC_SUBST([am__nodep]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([am__nodep]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^am__nodep$]) -m4trace:configure.ac:74: -1- _AM_SUBST_NOTMAKE([am__nodep]) -m4trace:configure.ac:74: -1- AC_SUBST([CCDEPMODE], [depmode=$am_cv_CC_dependencies_compiler_type]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([CCDEPMODE]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CCDEPMODE$]) -m4trace:configure.ac:74: -1- AM_CONDITIONAL([am__fastdepCC], [ +m4trace:configure.ac:84: -1- AC_SUBST([CC]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:84: -1- AC_SUBST([CFLAGS]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([CFLAGS]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CFLAGS$]) +m4trace:configure.ac:84: -1- AC_SUBST([LDFLAGS]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([LDFLAGS]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:84: -1- AC_SUBST([LIBS]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([LIBS]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:84: -1- AC_SUBST([CPPFLAGS]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([CPPFLAGS]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:84: -1- AC_SUBST([CC]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:84: -1- AC_SUBST([CC]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:84: -1- AC_SUBST([CC]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:84: -1- AC_SUBST([CC]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:84: -1- AC_SUBST([ac_ct_CC]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([ac_ct_CC]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^ac_ct_CC$]) +m4trace:configure.ac:84: -1- AC_SUBST([CC]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:84: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([EXEEXT]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^EXEEXT$]) +m4trace:configure.ac:84: -1- AC_SUBST([OBJEXT], [$ac_cv_objext]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([OBJEXT]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^OBJEXT$]) +m4trace:configure.ac:84: -1- AC_REQUIRE_AUX_FILE([compile]) +m4trace:configure.ac:84: -1- AC_SUBST([DEPDIR], ["${am__leading_dot}deps"]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([DEPDIR]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^DEPDIR$]) +m4trace:configure.ac:84: -1- AC_SUBST([am__include]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([am__include]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^am__include$]) +m4trace:configure.ac:84: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +m4trace:configure.ac:84: -1- AC_SUBST([AMDEP_TRUE]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([AMDEP_TRUE]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^AMDEP_TRUE$]) +m4trace:configure.ac:84: -1- AC_SUBST([AMDEP_FALSE]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([AMDEP_FALSE]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^AMDEP_FALSE$]) +m4trace:configure.ac:84: -1- _AM_SUBST_NOTMAKE([AMDEP_TRUE]) +m4trace:configure.ac:84: -1- _AM_SUBST_NOTMAKE([AMDEP_FALSE]) +m4trace:configure.ac:84: -1- AC_SUBST([AMDEPBACKSLASH]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([AMDEPBACKSLASH]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^AMDEPBACKSLASH$]) +m4trace:configure.ac:84: -1- _AM_SUBST_NOTMAKE([AMDEPBACKSLASH]) +m4trace:configure.ac:84: -1- AC_SUBST([am__nodep]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([am__nodep]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^am__nodep$]) +m4trace:configure.ac:84: -1- _AM_SUBST_NOTMAKE([am__nodep]) +m4trace:configure.ac:84: -1- AC_SUBST([CCDEPMODE], [depmode=$am_cv_CC_dependencies_compiler_type]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([CCDEPMODE]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CCDEPMODE$]) +m4trace:configure.ac:84: -1- AM_CONDITIONAL([am__fastdepCC], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3]) -m4trace:configure.ac:74: -1- AC_SUBST([am__fastdepCC_TRUE]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([am__fastdepCC_TRUE]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^am__fastdepCC_TRUE$]) -m4trace:configure.ac:74: -1- AC_SUBST([am__fastdepCC_FALSE]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([am__fastdepCC_FALSE]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^am__fastdepCC_FALSE$]) -m4trace:configure.ac:74: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_TRUE]) -m4trace:configure.ac:74: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_FALSE]) -m4trace:configure.ac:75: -1- _m4_warn([obsolete], [The macro `AC_PROG_CC_C99' is obsolete. -You should run autoupdate.], [./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from... -configure.ac:75: the top level]) -m4trace:configure.ac:76: -1- AM_PROG_CC_C_O -m4trace:configure.ac:78: -1- AC_SUBST([CPP]) -m4trace:configure.ac:78: -1- AC_SUBST_TRACE([CPP]) -m4trace:configure.ac:78: -1- m4_pattern_allow([^CPP$]) -m4trace:configure.ac:78: -1- AC_SUBST([CPPFLAGS]) -m4trace:configure.ac:78: -1- AC_SUBST_TRACE([CPPFLAGS]) -m4trace:configure.ac:78: -1- m4_pattern_allow([^CPPFLAGS$]) -m4trace:configure.ac:78: -1- AC_SUBST([CPP]) -m4trace:configure.ac:78: -1- AC_SUBST_TRACE([CPP]) -m4trace:configure.ac:78: -1- m4_pattern_allow([^CPP$]) -m4trace:configure.ac:78: -1- AC_SUBST([GREP]) -m4trace:configure.ac:78: -1- AC_SUBST_TRACE([GREP]) -m4trace:configure.ac:78: -1- m4_pattern_allow([^GREP$]) -m4trace:configure.ac:78: -1- AC_SUBST([EGREP]) -m4trace:configure.ac:78: -1- AC_SUBST_TRACE([EGREP]) -m4trace:configure.ac:78: -1- m4_pattern_allow([^EGREP$]) -m4trace:configure.ac:79: -1- AH_OUTPUT([USE_SYSTEM_EXTENSIONS], [/* Enable extensions on AIX 3, Interix. */ +m4trace:configure.ac:84: -1- AC_SUBST([am__fastdepCC_TRUE]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([am__fastdepCC_TRUE]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^am__fastdepCC_TRUE$]) +m4trace:configure.ac:84: -1- AC_SUBST([am__fastdepCC_FALSE]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([am__fastdepCC_FALSE]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^am__fastdepCC_FALSE$]) +m4trace:configure.ac:84: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_TRUE]) +m4trace:configure.ac:84: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_FALSE]) +m4trace:configure.ac:85: -1- AM_PROG_CC_C_O +m4trace:configure.ac:86: -1- AC_SUBST([CCAS]) +m4trace:configure.ac:86: -1- AC_SUBST_TRACE([CCAS]) +m4trace:configure.ac:86: -1- m4_pattern_allow([^CCAS$]) +m4trace:configure.ac:86: -1- AC_SUBST([CCASFLAGS]) +m4trace:configure.ac:86: -1- AC_SUBST_TRACE([CCASFLAGS]) +m4trace:configure.ac:86: -1- m4_pattern_allow([^CCASFLAGS$]) +m4trace:configure.ac:86: -1- AC_SUBST([CCASDEPMODE], [depmode=$am_cv_CCAS_dependencies_compiler_type]) +m4trace:configure.ac:86: -1- AC_SUBST_TRACE([CCASDEPMODE]) +m4trace:configure.ac:86: -1- m4_pattern_allow([^CCASDEPMODE$]) +m4trace:configure.ac:86: -1- AM_CONDITIONAL([am__fastdepCCAS], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3]) +m4trace:configure.ac:86: -1- AC_SUBST([am__fastdepCCAS_TRUE]) +m4trace:configure.ac:86: -1- AC_SUBST_TRACE([am__fastdepCCAS_TRUE]) +m4trace:configure.ac:86: -1- m4_pattern_allow([^am__fastdepCCAS_TRUE$]) +m4trace:configure.ac:86: -1- AC_SUBST([am__fastdepCCAS_FALSE]) +m4trace:configure.ac:86: -1- AC_SUBST_TRACE([am__fastdepCCAS_FALSE]) +m4trace:configure.ac:86: -1- m4_pattern_allow([^am__fastdepCCAS_FALSE$]) +m4trace:configure.ac:86: -1- _AM_SUBST_NOTMAKE([am__fastdepCCAS_TRUE]) +m4trace:configure.ac:86: -1- _AM_SUBST_NOTMAKE([am__fastdepCCAS_FALSE]) +m4trace:configure.ac:88: -1- _m4_warn([obsolete], [The macro 'AC_PROG_GCC_TRADITIONAL' is obsolete. +You should run autoupdate.], [./lib/autoconf/c.m4:1676: AC_PROG_GCC_TRADITIONAL is expanded from... +configure.ac:88: the top level]) +m4trace:configure.ac:89: -1- AH_OUTPUT([USE_SYSTEM_EXTENSIONS], [/* Enable extensions on AIX, Interix, z/OS. */ #ifndef _ALL_SOURCE # undef _ALL_SOURCE #endif @@ -455,11 +504,15 @@ m4trace:configure.ac:79: -1- AH_OUTPUT([USE_SYSTEM_EXTENSIONS], [/* Enable exten #ifndef __STDC_WANT_IEC_60559_DFP_EXT__ # undef __STDC_WANT_IEC_60559_DFP_EXT__ #endif +/* Enable extensions specified by C23 Annex F. */ +#ifndef __STDC_WANT_IEC_60559_EXT__ +# undef __STDC_WANT_IEC_60559_EXT__ +#endif /* Enable extensions specified by ISO/IEC TS 18661-4:2015. */ #ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__ # undef __STDC_WANT_IEC_60559_FUNCS_EXT__ #endif -/* Enable extensions specified by ISO/IEC TS 18661-3:2015. */ +/* Enable extensions specified by C23 Annex H and ISO/IEC TS 18661-3:2015. */ #ifndef __STDC_WANT_IEC_60559_TYPES_EXT__ # undef __STDC_WANT_IEC_60559_TYPES_EXT__ #endif @@ -481,371 +534,306 @@ m4trace:configure.ac:79: -1- AH_OUTPUT([USE_SYSTEM_EXTENSIONS], [/* Enable exten # undef _XOPEN_SOURCE #endif ]) -m4trace:configure.ac:79: -1- AH_OUTPUT([HAVE_STDIO_H], [/* Define to 1 if you have the header file. */ +m4trace:configure.ac:89: -1- AH_OUTPUT([HAVE_STDIO_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_STDIO_H]) -m4trace:configure.ac:79: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the header file. */ +m4trace:configure.ac:89: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_STDLIB_H]) -m4trace:configure.ac:79: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the header file. */ +m4trace:configure.ac:89: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_STRING_H]) -m4trace:configure.ac:79: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the header file. */ +m4trace:configure.ac:89: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_INTTYPES_H]) -m4trace:configure.ac:79: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the header file. */ +m4trace:configure.ac:89: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_STDINT_H]) -m4trace:configure.ac:79: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the header file. */ +m4trace:configure.ac:89: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_STRINGS_H]) -m4trace:configure.ac:79: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the header file. */ +m4trace:configure.ac:89: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_SYS_STAT_H]) -m4trace:configure.ac:79: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the header file. */ +m4trace:configure.ac:89: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_SYS_TYPES_H]) -m4trace:configure.ac:79: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the header file. */ +m4trace:configure.ac:89: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_UNISTD_H]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^STDC_HEADERS$]) -m4trace:configure.ac:79: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if all of the C90 standard headers exist (not just the ones +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^STDC_HEADERS$]) +m4trace:configure.ac:89: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if all of the C89 standard headers exist (not just the ones required in a freestanding environment). This macro is provided for backward compatibility; new code need not use it. */ @%:@undef STDC_HEADERS]) -m4trace:configure.ac:79: -1- AH_OUTPUT([HAVE_WCHAR_H], [/* Define to 1 if you have the header file. */ +m4trace:configure.ac:89: -1- AH_OUTPUT([HAVE_WCHAR_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_WCHAR_H]) -m4trace:configure.ac:79: -1- AH_OUTPUT([HAVE_MINIX_CONFIG_H], [/* Define to 1 if you have the header file. */ +m4trace:configure.ac:89: -1- AH_OUTPUT([HAVE_MINIX_CONFIG_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_MINIX_CONFIG_H]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([_ALL_SOURCE]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_ALL_SOURCE$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([_DARWIN_C_SOURCE]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_DARWIN_C_SOURCE$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([_GNU_SOURCE]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_GNU_SOURCE$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([_HPUX_ALT_XOPEN_SOCKET_API]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_HPUX_ALT_XOPEN_SOCKET_API$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([_NETBSD_SOURCE]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_NETBSD_SOURCE$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([_OPENBSD_SOURCE]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_OPENBSD_SOURCE$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([_POSIX_PTHREAD_SEMANTICS]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_POSIX_PTHREAD_SEMANTICS$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_IEC_60559_ATTRIBS_EXT__]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_ATTRIBS_EXT__$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_IEC_60559_BFP_EXT__]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_BFP_EXT__$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_IEC_60559_DFP_EXT__]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_DFP_EXT__$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_IEC_60559_FUNCS_EXT__]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_FUNCS_EXT__$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_IEC_60559_TYPES_EXT__]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_TYPES_EXT__$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_LIB_EXT2__]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_LIB_EXT2__$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_MATH_SPEC_FUNCS__]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_MATH_SPEC_FUNCS__$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([_TANDEM_SOURCE]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_TANDEM_SOURCE$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([_MINIX]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_MINIX$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([_POSIX_SOURCE]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_POSIX_SOURCE$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([_POSIX_1_SOURCE]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_POSIX_1_SOURCE$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([__EXTENSIONS__]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__EXTENSIONS__$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([_XOPEN_SOURCE]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_XOPEN_SOURCE$]) -m4trace:configure.ac:80: -1- AM_PROG_AR -m4trace:configure.ac:80: -1- AC_REQUIRE_AUX_FILE([ar-lib]) -m4trace:configure.ac:80: -1- AC_SUBST([AR]) -m4trace:configure.ac:80: -1- AC_SUBST_TRACE([AR]) -m4trace:configure.ac:80: -1- m4_pattern_allow([^AR$]) -m4trace:configure.ac:80: -1- AC_SUBST([ac_ct_AR]) -m4trace:configure.ac:80: -1- AC_SUBST_TRACE([ac_ct_AR]) -m4trace:configure.ac:80: -1- m4_pattern_allow([^ac_ct_AR$]) -m4trace:configure.ac:80: -1- AC_SUBST([AR]) -m4trace:configure.ac:80: -1- AC_SUBST_TRACE([AR]) -m4trace:configure.ac:80: -1- m4_pattern_allow([^AR$]) -m4trace:configure.ac:83: -1- AC_SUBST([CXX]) -m4trace:configure.ac:83: -1- AC_SUBST_TRACE([CXX]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^CXX$]) -m4trace:configure.ac:83: -1- AC_SUBST([CXXFLAGS]) -m4trace:configure.ac:83: -1- AC_SUBST_TRACE([CXXFLAGS]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^CXXFLAGS$]) -m4trace:configure.ac:83: -1- AC_SUBST([LDFLAGS]) -m4trace:configure.ac:83: -1- AC_SUBST_TRACE([LDFLAGS]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^LDFLAGS$]) -m4trace:configure.ac:83: -1- AC_SUBST([LIBS]) -m4trace:configure.ac:83: -1- AC_SUBST_TRACE([LIBS]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^LIBS$]) -m4trace:configure.ac:83: -1- AC_SUBST([CPPFLAGS]) -m4trace:configure.ac:83: -1- AC_SUBST_TRACE([CPPFLAGS]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^CPPFLAGS$]) -m4trace:configure.ac:83: -1- AC_SUBST([CXX]) -m4trace:configure.ac:83: -1- AC_SUBST_TRACE([CXX]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^CXX$]) -m4trace:configure.ac:83: -1- AC_SUBST([ac_ct_CXX]) -m4trace:configure.ac:83: -1- AC_SUBST_TRACE([ac_ct_CXX]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^ac_ct_CXX$]) -m4trace:configure.ac:83: -1- AC_SUBST([CXXDEPMODE], [depmode=$am_cv_CXX_dependencies_compiler_type]) -m4trace:configure.ac:83: -1- AC_SUBST_TRACE([CXXDEPMODE]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^CXXDEPMODE$]) -m4trace:configure.ac:83: -1- AM_CONDITIONAL([am__fastdepCXX], [ +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([_ALL_SOURCE]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_ALL_SOURCE$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([_DARWIN_C_SOURCE]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_DARWIN_C_SOURCE$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([_GNU_SOURCE]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_GNU_SOURCE$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([_HPUX_ALT_XOPEN_SOCKET_API]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_HPUX_ALT_XOPEN_SOCKET_API$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([_NETBSD_SOURCE]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_NETBSD_SOURCE$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([_OPENBSD_SOURCE]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_OPENBSD_SOURCE$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([_POSIX_PTHREAD_SEMANTICS]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_POSIX_PTHREAD_SEMANTICS$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_IEC_60559_ATTRIBS_EXT__]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_ATTRIBS_EXT__$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_IEC_60559_BFP_EXT__]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_BFP_EXT__$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_IEC_60559_DFP_EXT__]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_DFP_EXT__$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_IEC_60559_EXT__]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_EXT__$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_IEC_60559_FUNCS_EXT__]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_FUNCS_EXT__$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_IEC_60559_TYPES_EXT__]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_TYPES_EXT__$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_LIB_EXT2__]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_LIB_EXT2__$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_MATH_SPEC_FUNCS__]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_MATH_SPEC_FUNCS__$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([_TANDEM_SOURCE]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_TANDEM_SOURCE$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([_MINIX]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_MINIX$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([_POSIX_SOURCE]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_POSIX_SOURCE$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([_POSIX_1_SOURCE]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_POSIX_1_SOURCE$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([__EXTENSIONS__]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__EXTENSIONS__$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([_XOPEN_SOURCE]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_XOPEN_SOURCE$]) +m4trace:configure.ac:90: -1- AM_PROG_AR +m4trace:configure.ac:90: -1- AC_REQUIRE_AUX_FILE([ar-lib]) +m4trace:configure.ac:90: -1- AC_SUBST([AR]) +m4trace:configure.ac:90: -1- AC_SUBST_TRACE([AR]) +m4trace:configure.ac:90: -1- m4_pattern_allow([^AR$]) +m4trace:configure.ac:90: -1- AC_SUBST([ac_ct_AR]) +m4trace:configure.ac:90: -1- AC_SUBST_TRACE([ac_ct_AR]) +m4trace:configure.ac:90: -1- m4_pattern_allow([^ac_ct_AR$]) +m4trace:configure.ac:90: -1- AC_SUBST([AR]) +m4trace:configure.ac:90: -1- AC_SUBST_TRACE([AR]) +m4trace:configure.ac:90: -1- m4_pattern_allow([^AR$]) +m4trace:configure.ac:93: -1- AC_SUBST([CXX]) +m4trace:configure.ac:93: -1- AC_SUBST_TRACE([CXX]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:93: -1- AC_SUBST([CXXFLAGS]) +m4trace:configure.ac:93: -1- AC_SUBST_TRACE([CXXFLAGS]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^CXXFLAGS$]) +m4trace:configure.ac:93: -1- AC_SUBST([LDFLAGS]) +m4trace:configure.ac:93: -1- AC_SUBST_TRACE([LDFLAGS]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:93: -1- AC_SUBST([LIBS]) +m4trace:configure.ac:93: -1- AC_SUBST_TRACE([LIBS]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:93: -1- AC_SUBST([CPPFLAGS]) +m4trace:configure.ac:93: -1- AC_SUBST_TRACE([CPPFLAGS]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:93: -1- AC_SUBST([CXX]) +m4trace:configure.ac:93: -1- AC_SUBST_TRACE([CXX]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:93: -1- AC_SUBST([ac_ct_CXX]) +m4trace:configure.ac:93: -1- AC_SUBST_TRACE([ac_ct_CXX]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^ac_ct_CXX$]) +m4trace:configure.ac:93: -1- AC_SUBST([CXXDEPMODE], [depmode=$am_cv_CXX_dependencies_compiler_type]) +m4trace:configure.ac:93: -1- AC_SUBST_TRACE([CXXDEPMODE]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^CXXDEPMODE$]) +m4trace:configure.ac:93: -1- AM_CONDITIONAL([am__fastdepCXX], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3]) -m4trace:configure.ac:83: -1- AC_SUBST([am__fastdepCXX_TRUE]) -m4trace:configure.ac:83: -1- AC_SUBST_TRACE([am__fastdepCXX_TRUE]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^am__fastdepCXX_TRUE$]) -m4trace:configure.ac:83: -1- AC_SUBST([am__fastdepCXX_FALSE]) -m4trace:configure.ac:83: -1- AC_SUBST_TRACE([am__fastdepCXX_FALSE]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^am__fastdepCXX_FALSE$]) -m4trace:configure.ac:83: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_TRUE]) -m4trace:configure.ac:83: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_FALSE]) -m4trace:configure.ac:84: -1- AC_SUBST([AWK]) -m4trace:configure.ac:84: -1- AC_SUBST_TRACE([AWK]) -m4trace:configure.ac:84: -1- m4_pattern_allow([^AWK$]) -m4trace:configure.ac:85: -1- AC_SUBST([LN_S], [$as_ln_s]) -m4trace:configure.ac:85: -1- AC_SUBST_TRACE([LN_S]) -m4trace:configure.ac:85: -1- m4_pattern_allow([^LN_S$]) -m4trace:configure.ac:87: -1- AC_CANONICAL_HOST -m4trace:configure.ac:87: -1- AC_CANONICAL_BUILD -m4trace:configure.ac:87: -1- AC_REQUIRE_AUX_FILE([config.sub]) -m4trace:configure.ac:87: -1- AC_REQUIRE_AUX_FILE([config.guess]) -m4trace:configure.ac:87: -1- AC_SUBST([build], [$ac_cv_build]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([build]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^build$]) -m4trace:configure.ac:87: -1- AC_SUBST([build_cpu], [$[1]]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([build_cpu]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^build_cpu$]) -m4trace:configure.ac:87: -1- AC_SUBST([build_vendor], [$[2]]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([build_vendor]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^build_vendor$]) -m4trace:configure.ac:87: -1- AC_SUBST([build_os]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([build_os]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^build_os$]) -m4trace:configure.ac:87: -1- AC_SUBST([host], [$ac_cv_host]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([host]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^host$]) -m4trace:configure.ac:87: -1- AC_SUBST([host_cpu], [$[1]]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([host_cpu]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^host_cpu$]) -m4trace:configure.ac:87: -1- AC_SUBST([host_vendor], [$[2]]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([host_vendor]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^host_vendor$]) -m4trace:configure.ac:87: -1- AC_SUBST([host_os]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([host_os]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^host_os$]) -m4trace:configure.ac:87: -1- AC_SUBST([ax_pthread_config]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([ax_pthread_config]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^ax_pthread_config$]) -m4trace:configure.ac:87: -1- AC_DEFINE_TRACE_LITERAL([PTHREAD_CREATE_JOINABLE]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^PTHREAD_CREATE_JOINABLE$]) -m4trace:configure.ac:87: -1- AH_OUTPUT([PTHREAD_CREATE_JOINABLE], [/* Define to necessary symbol if this constant uses a non-standard name on +m4trace:configure.ac:93: -1- AC_SUBST([am__fastdepCXX_TRUE]) +m4trace:configure.ac:93: -1- AC_SUBST_TRACE([am__fastdepCXX_TRUE]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^am__fastdepCXX_TRUE$]) +m4trace:configure.ac:93: -1- AC_SUBST([am__fastdepCXX_FALSE]) +m4trace:configure.ac:93: -1- AC_SUBST_TRACE([am__fastdepCXX_FALSE]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^am__fastdepCXX_FALSE$]) +m4trace:configure.ac:93: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_TRUE]) +m4trace:configure.ac:93: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_FALSE]) +m4trace:configure.ac:94: -1- AC_SUBST([AWK]) +m4trace:configure.ac:94: -1- AC_SUBST_TRACE([AWK]) +m4trace:configure.ac:94: -1- m4_pattern_allow([^AWK$]) +m4trace:configure.ac:95: -1- AC_SUBST([LN_S], [$as_ln_s]) +m4trace:configure.ac:95: -1- AC_SUBST_TRACE([LN_S]) +m4trace:configure.ac:95: -1- m4_pattern_allow([^LN_S$]) +m4trace:configure.ac:97: -1- AC_SUBST([ax_pthread_config]) +m4trace:configure.ac:97: -1- AC_SUBST_TRACE([ax_pthread_config]) +m4trace:configure.ac:97: -1- m4_pattern_allow([^ax_pthread_config$]) +m4trace:configure.ac:97: -1- AC_DEFINE_TRACE_LITERAL([PTHREAD_CREATE_JOINABLE]) +m4trace:configure.ac:97: -1- m4_pattern_allow([^PTHREAD_CREATE_JOINABLE$]) +m4trace:configure.ac:97: -1- AH_OUTPUT([PTHREAD_CREATE_JOINABLE], [/* Define to necessary symbol if this constant uses a non-standard name on your system. */ @%:@undef PTHREAD_CREATE_JOINABLE]) -m4trace:configure.ac:87: -2- AC_DEFINE_TRACE_LITERAL([HAVE_PTHREAD_PRIO_INHERIT]) -m4trace:configure.ac:87: -2- m4_pattern_allow([^HAVE_PTHREAD_PRIO_INHERIT$]) -m4trace:configure.ac:87: -2- AH_OUTPUT([HAVE_PTHREAD_PRIO_INHERIT], [/* Have PTHREAD_PRIO_INHERIT. */ +m4trace:configure.ac:97: -2- AC_DEFINE_TRACE_LITERAL([HAVE_PTHREAD_PRIO_INHERIT]) +m4trace:configure.ac:97: -2- m4_pattern_allow([^HAVE_PTHREAD_PRIO_INHERIT$]) +m4trace:configure.ac:97: -2- AH_OUTPUT([HAVE_PTHREAD_PRIO_INHERIT], [/* Have PTHREAD_PRIO_INHERIT. */ @%:@undef HAVE_PTHREAD_PRIO_INHERIT]) -m4trace:configure.ac:87: -1- AC_SUBST([PTHREAD_CC]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([PTHREAD_CC]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^PTHREAD_CC$]) -m4trace:configure.ac:87: -1- AC_SUBST([PTHREAD_LIBS]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([PTHREAD_LIBS]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^PTHREAD_LIBS$]) -m4trace:configure.ac:87: -1- AC_SUBST([PTHREAD_CFLAGS]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([PTHREAD_CFLAGS]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^PTHREAD_CFLAGS$]) -m4trace:configure.ac:87: -1- AC_SUBST([PTHREAD_CC]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([PTHREAD_CC]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^PTHREAD_CC$]) -m4trace:configure.ac:87: -2- AC_DEFINE_TRACE_LITERAL([HAVE_PTHREAD]) -m4trace:configure.ac:87: -2- m4_pattern_allow([^HAVE_PTHREAD$]) -m4trace:configure.ac:87: -2- AH_OUTPUT([HAVE_PTHREAD], [/* Define if you have POSIX threads libraries and header files. */ +m4trace:configure.ac:97: -1- AC_SUBST([PTHREAD_CC]) +m4trace:configure.ac:97: -1- AC_SUBST_TRACE([PTHREAD_CC]) +m4trace:configure.ac:97: -1- m4_pattern_allow([^PTHREAD_CC$]) +m4trace:configure.ac:97: -1- AC_SUBST([PTHREAD_LIBS]) +m4trace:configure.ac:97: -1- AC_SUBST_TRACE([PTHREAD_LIBS]) +m4trace:configure.ac:97: -1- m4_pattern_allow([^PTHREAD_LIBS$]) +m4trace:configure.ac:97: -1- AC_SUBST([PTHREAD_CFLAGS]) +m4trace:configure.ac:97: -1- AC_SUBST_TRACE([PTHREAD_CFLAGS]) +m4trace:configure.ac:97: -1- m4_pattern_allow([^PTHREAD_CFLAGS$]) +m4trace:configure.ac:97: -1- AC_SUBST([PTHREAD_CC]) +m4trace:configure.ac:97: -1- AC_SUBST_TRACE([PTHREAD_CC]) +m4trace:configure.ac:97: -1- m4_pattern_allow([^PTHREAD_CC$]) +m4trace:configure.ac:97: -2- AC_DEFINE_TRACE_LITERAL([HAVE_PTHREAD]) +m4trace:configure.ac:97: -2- m4_pattern_allow([^HAVE_PTHREAD$]) +m4trace:configure.ac:97: -2- AH_OUTPUT([HAVE_PTHREAD], [/* Define if you have POSIX threads libraries and header files. */ @%:@undef HAVE_PTHREAD]) -m4trace:configure.ac:89: -1- AC_SUBST([M4]) -m4trace:configure.ac:89: -1- AC_SUBST_TRACE([M4]) -m4trace:configure.ac:89: -1- m4_pattern_allow([^M4$]) -m4trace:configure.ac:94: -1- AC_SUBST([ACLOCAL_AMFLAGS], ["-I m4"]) -m4trace:configure.ac:94: -1- AC_SUBST_TRACE([ACLOCAL_AMFLAGS]) -m4trace:configure.ac:94: -1- m4_pattern_allow([^ACLOCAL_AMFLAGS$]) -m4trace:configure.ac:97: -1- m4_pattern_forbid([^_?PKG_[A-Z_]+$]) -m4trace:configure.ac:97: -1- m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) -m4trace:configure.ac:97: -1- m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) -m4trace:configure.ac:97: -1- AC_SUBST([PKG_CONFIG]) -m4trace:configure.ac:97: -1- AC_SUBST_TRACE([PKG_CONFIG]) -m4trace:configure.ac:97: -1- m4_pattern_allow([^PKG_CONFIG$]) -m4trace:configure.ac:97: -1- AC_SUBST([PKG_CONFIG_PATH]) -m4trace:configure.ac:97: -1- AC_SUBST_TRACE([PKG_CONFIG_PATH]) -m4trace:configure.ac:97: -1- m4_pattern_allow([^PKG_CONFIG_PATH$]) -m4trace:configure.ac:97: -1- AC_SUBST([PKG_CONFIG_LIBDIR]) -m4trace:configure.ac:97: -1- AC_SUBST_TRACE([PKG_CONFIG_LIBDIR]) -m4trace:configure.ac:97: -1- m4_pattern_allow([^PKG_CONFIG_LIBDIR$]) -m4trace:configure.ac:97: -1- AC_SUBST([PKG_CONFIG]) -m4trace:configure.ac:97: -1- AC_SUBST_TRACE([PKG_CONFIG]) -m4trace:configure.ac:97: -1- m4_pattern_allow([^PKG_CONFIG$]) -m4trace:configure.ac:100: -1- _m4_warn([obsolete], [The macro `AC_LIBLTDL_INSTALLABLE' is obsolete. -You should run autoupdate.], [aclocal.m4:160: AC_LIBLTDL_INSTALLABLE is expanded from... -configure.ac:100: the top level]) -m4trace:configure.ac:100: -1- AC_SUBST([LIBLTDL]) -m4trace:configure.ac:100: -1- AC_SUBST_TRACE([LIBLTDL]) -m4trace:configure.ac:100: -1- m4_pattern_allow([^LIBLTDL$]) -m4trace:configure.ac:100: -1- AC_SUBST([LTDLDEPS]) -m4trace:configure.ac:100: -1- AC_SUBST_TRACE([LTDLDEPS]) -m4trace:configure.ac:100: -1- m4_pattern_allow([^LTDLDEPS$]) -m4trace:configure.ac:100: -1- AC_SUBST([LTDLINCL]) -m4trace:configure.ac:100: -1- AC_SUBST_TRACE([LTDLINCL]) -m4trace:configure.ac:100: -1- m4_pattern_allow([^LTDLINCL$]) -m4trace:configure.ac:100: -1- AC_SUBST([INCLTDL]) -m4trace:configure.ac:100: -1- AC_SUBST_TRACE([INCLTDL]) -m4trace:configure.ac:100: -1- m4_pattern_allow([^INCLTDL$]) -m4trace:configure.ac:101: -1- _m4_warn([obsolete], [The macro `AC_LIBTOOL_DLOPEN' is obsolete. -You should run autoupdate.], [m4/ltoptions.m4:113: AC_LIBTOOL_DLOPEN is expanded from... -configure.ac:101: the top level]) -m4trace:configure.ac:101: -1- _m4_warn([obsolete], [AC_LIBTOOL_DLOPEN: Remove this warning and the call to _LT_SET_OPTION when you -put the 'dlopen' option into LT_INIT's first parameter.], [./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... -m4/ltoptions.m4:113: AC_LIBTOOL_DLOPEN is expanded from... -configure.ac:101: the top level]) -m4trace:configure.ac:102: -1- _m4_warn([obsolete], [The macro `AC_LIBTOOL_WIN32_DLL' is obsolete. -You should run autoupdate.], [m4/ltoptions.m4:148: AC_LIBTOOL_WIN32_DLL is expanded from... -configure.ac:102: the top level]) -m4trace:configure.ac:102: -1- AC_SUBST([AS]) -m4trace:configure.ac:102: -1- AC_SUBST_TRACE([AS]) -m4trace:configure.ac:102: -1- m4_pattern_allow([^AS$]) -m4trace:configure.ac:102: -1- AC_SUBST([DLLTOOL]) -m4trace:configure.ac:102: -1- AC_SUBST_TRACE([DLLTOOL]) -m4trace:configure.ac:102: -1- m4_pattern_allow([^DLLTOOL$]) -m4trace:configure.ac:102: -1- AC_SUBST([OBJDUMP]) -m4trace:configure.ac:102: -1- AC_SUBST_TRACE([OBJDUMP]) -m4trace:configure.ac:102: -1- m4_pattern_allow([^OBJDUMP$]) -m4trace:configure.ac:102: -1- _m4_warn([obsolete], [AC_LIBTOOL_WIN32_DLL: Remove this warning and the call to _LT_SET_OPTION when you -put the 'win32-dll' option into LT_INIT's first parameter.], [./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... -m4/ltoptions.m4:148: AC_LIBTOOL_WIN32_DLL is expanded from... -configure.ac:102: the top level]) -m4trace:configure.ac:103: -1- AC_PROG_LIBTOOL -m4trace:configure.ac:103: -1- _m4_warn([obsolete], [The macro `AC_PROG_LIBTOOL' is obsolete. -You should run autoupdate.], [m4/libtool.m4:100: AC_PROG_LIBTOOL is expanded from... -configure.ac:103: the top level]) -m4trace:configure.ac:103: -1- LT_INIT -m4trace:configure.ac:103: -1- m4_pattern_forbid([^_?LT_[A-Z_]+$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$]) -m4trace:configure.ac:103: -1- AC_REQUIRE_AUX_FILE([ltmain.sh]) -m4trace:configure.ac:103: -1- AC_SUBST([LIBTOOL]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([LIBTOOL]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^LIBTOOL$]) -m4trace:configure.ac:103: -1- AC_SUBST([SED]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([SED]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^SED$]) -m4trace:configure.ac:103: -1- AC_SUBST([FGREP]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([FGREP]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^FGREP$]) -m4trace:configure.ac:103: -1- AC_SUBST([GREP]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([GREP]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^GREP$]) -m4trace:configure.ac:103: -1- AC_SUBST([LD]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([LD]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^LD$]) -m4trace:configure.ac:103: -1- AC_SUBST([DUMPBIN]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([DUMPBIN]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^DUMPBIN$]) -m4trace:configure.ac:103: -1- AC_SUBST([ac_ct_DUMPBIN]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([ac_ct_DUMPBIN]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^ac_ct_DUMPBIN$]) -m4trace:configure.ac:103: -1- AC_SUBST([DUMPBIN]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([DUMPBIN]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^DUMPBIN$]) -m4trace:configure.ac:103: -1- AC_SUBST([NM]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([NM]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^NM$]) -m4trace:configure.ac:103: -1- AC_SUBST([FILECMD]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([FILECMD]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^FILECMD$]) -m4trace:configure.ac:103: -1- AC_SUBST([OBJDUMP]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([OBJDUMP]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^OBJDUMP$]) -m4trace:configure.ac:103: -1- AC_SUBST([OBJDUMP]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([OBJDUMP]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^OBJDUMP$]) -m4trace:configure.ac:103: -1- AC_SUBST([DLLTOOL]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([DLLTOOL]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^DLLTOOL$]) -m4trace:configure.ac:103: -1- AC_SUBST([DLLTOOL]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([DLLTOOL]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^DLLTOOL$]) -m4trace:configure.ac:103: -1- AC_SUBST([AR]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([AR]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^AR$]) -m4trace:configure.ac:103: -1- AC_SUBST([ac_ct_AR]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([ac_ct_AR]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^ac_ct_AR$]) -m4trace:configure.ac:103: -1- AC_SUBST([STRIP]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([STRIP]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^STRIP$]) -m4trace:configure.ac:103: -1- AC_SUBST([RANLIB]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([RANLIB]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^RANLIB$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([LT_OBJDIR]) -m4trace:configure.ac:103: -1- AC_DEFINE_TRACE_LITERAL([LT_OBJDIR]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^LT_OBJDIR$]) -m4trace:configure.ac:103: -1- AH_OUTPUT([LT_OBJDIR], [/* Define to the sub-directory where libtool stores uninstalled libraries. */ +m4trace:configure.ac:108: -1- m4_pattern_forbid([^_?PKG_[A-Z_]+$]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) +m4trace:configure.ac:108: -1- AC_SUBST([PKG_CONFIG]) +m4trace:configure.ac:108: -1- AC_SUBST_TRACE([PKG_CONFIG]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^PKG_CONFIG$]) +m4trace:configure.ac:108: -1- AC_SUBST([PKG_CONFIG_PATH]) +m4trace:configure.ac:108: -1- AC_SUBST_TRACE([PKG_CONFIG_PATH]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^PKG_CONFIG_PATH$]) +m4trace:configure.ac:108: -1- AC_SUBST([PKG_CONFIG_LIBDIR]) +m4trace:configure.ac:108: -1- AC_SUBST_TRACE([PKG_CONFIG_LIBDIR]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^PKG_CONFIG_LIBDIR$]) +m4trace:configure.ac:108: -1- AC_SUBST([PKG_CONFIG]) +m4trace:configure.ac:108: -1- AC_SUBST_TRACE([PKG_CONFIG]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^PKG_CONFIG$]) +m4trace:configure.ac:111: -1- LT_INIT([dlopen win32-dll]) +m4trace:configure.ac:111: -1- m4_pattern_forbid([^_?LT_[A-Z_]+$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$]) +m4trace:configure.ac:111: -1- AC_REQUIRE_AUX_FILE([ltmain.sh]) +m4trace:configure.ac:111: -1- AC_SUBST([AS]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([AS]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^AS$]) +m4trace:configure.ac:111: -1- AC_SUBST([DLLTOOL]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([DLLTOOL]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:111: -1- AC_SUBST([OBJDUMP]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([OBJDUMP]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:111: -1- AC_SUBST([LIBTOOL]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([LIBTOOL]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LIBTOOL$]) +m4trace:configure.ac:111: -1- AC_SUBST([SED]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([SED]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^SED$]) +m4trace:configure.ac:111: -1- AC_SUBST([GREP]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([GREP]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^GREP$]) +m4trace:configure.ac:111: -1- AC_SUBST([EGREP]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([EGREP]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^EGREP$]) +m4trace:configure.ac:111: -1- AC_SUBST([FGREP]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([FGREP]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^FGREP$]) +m4trace:configure.ac:111: -1- AC_SUBST([GREP]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([GREP]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^GREP$]) +m4trace:configure.ac:111: -1- AC_SUBST([LD]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([LD]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LD$]) +m4trace:configure.ac:111: -1- AC_SUBST([DUMPBIN]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([DUMPBIN]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^DUMPBIN$]) +m4trace:configure.ac:111: -1- AC_SUBST([ac_ct_DUMPBIN]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([ac_ct_DUMPBIN]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^ac_ct_DUMPBIN$]) +m4trace:configure.ac:111: -1- AC_SUBST([DUMPBIN]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([DUMPBIN]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^DUMPBIN$]) +m4trace:configure.ac:111: -1- AC_SUBST([NM]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([NM]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^NM$]) +m4trace:configure.ac:111: -1- AC_SUBST([FILECMD]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([FILECMD]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^FILECMD$]) +m4trace:configure.ac:111: -1- AC_SUBST([OBJDUMP]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([OBJDUMP]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:111: -1- AC_SUBST([OBJDUMP]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([OBJDUMP]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:111: -1- AC_SUBST([DLLTOOL]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([DLLTOOL]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:111: -1- AC_SUBST([DLLTOOL]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([DLLTOOL]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:111: -1- AC_SUBST([AR]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([AR]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^AR$]) +m4trace:configure.ac:111: -1- AC_SUBST([ac_ct_AR]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([ac_ct_AR]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^ac_ct_AR$]) +m4trace:configure.ac:111: -1- AC_SUBST([STRIP]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([STRIP]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^STRIP$]) +m4trace:configure.ac:111: -1- AC_SUBST([RANLIB]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([RANLIB]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^RANLIB$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([LT_OBJDIR]) +m4trace:configure.ac:111: -1- AC_DEFINE_TRACE_LITERAL([LT_OBJDIR]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LT_OBJDIR$]) +m4trace:configure.ac:111: -1- AH_OUTPUT([LT_OBJDIR], [/* Define to the sub-directory where libtool stores uninstalled libraries. */ @%:@undef LT_OBJDIR]) -m4trace:configure.ac:103: -1- LT_SUPPORTED_TAG([CC]) -m4trace:configure.ac:103: -1- AC_SUBST([MANIFEST_TOOL]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([MANIFEST_TOOL]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^MANIFEST_TOOL$]) -m4trace:configure.ac:103: -1- AC_SUBST([DSYMUTIL]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([DSYMUTIL]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^DSYMUTIL$]) -m4trace:configure.ac:103: -1- AC_SUBST([NMEDIT]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([NMEDIT]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^NMEDIT$]) -m4trace:configure.ac:103: -1- AC_SUBST([LIPO]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([LIPO]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^LIPO$]) -m4trace:configure.ac:103: -1- AC_SUBST([OTOOL]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([OTOOL]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^OTOOL$]) -m4trace:configure.ac:103: -1- AC_SUBST([OTOOL64]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([OTOOL64]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^OTOOL64$]) -m4trace:configure.ac:103: -1- AC_SUBST([LT_SYS_LIBRARY_PATH]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([LT_SYS_LIBRARY_PATH]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^LT_SYS_LIBRARY_PATH$]) -m4trace:configure.ac:103: -1- AH_OUTPUT([HAVE_DLFCN_H], [/* Define to 1 if you have the header file. */ +m4trace:configure.ac:111: -1- LT_SUPPORTED_TAG([CC]) +m4trace:configure.ac:111: -1- AC_SUBST([MANIFEST_TOOL]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([MANIFEST_TOOL]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^MANIFEST_TOOL$]) +m4trace:configure.ac:111: -1- AC_SUBST([DSYMUTIL]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([DSYMUTIL]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^DSYMUTIL$]) +m4trace:configure.ac:111: -1- AC_SUBST([NMEDIT]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([NMEDIT]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^NMEDIT$]) +m4trace:configure.ac:111: -1- AC_SUBST([LIPO]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([LIPO]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LIPO$]) +m4trace:configure.ac:111: -1- AC_SUBST([OTOOL]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([OTOOL]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^OTOOL$]) +m4trace:configure.ac:111: -1- AC_SUBST([OTOOL64]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([OTOOL64]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^OTOOL64$]) +m4trace:configure.ac:111: -1- AC_SUBST([LT_SYS_LIBRARY_PATH]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([LT_SYS_LIBRARY_PATH]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LT_SYS_LIBRARY_PATH$]) +m4trace:configure.ac:111: -1- AH_OUTPUT([HAVE_DLFCN_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_DLFCN_H]) -m4trace:configure.ac:103: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DLFCN_H]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^HAVE_DLFCN_H$]) -m4trace:configure.ac:103: -1- LT_SUPPORTED_TAG([CXX]) -m4trace:configure.ac:103: -1- AC_SUBST([CXXCPP]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([CXXCPP]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^CXXCPP$]) -m4trace:configure.ac:103: -1- AC_SUBST([CPPFLAGS]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([CPPFLAGS]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^CPPFLAGS$]) -m4trace:configure.ac:103: -1- AC_SUBST([CXXCPP]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([CXXCPP]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^CXXCPP$]) -m4trace:configure.ac:103: -1- AC_SUBST([LD]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([LD]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^LD$]) -m4trace:configure.ac:103: -1- AC_SUBST([LT_SYS_LIBRARY_PATH]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([LT_SYS_LIBRARY_PATH]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^LT_SYS_LIBRARY_PATH$]) -m4trace:configure.ac:104: -1- AC_SUBST([LTDLINCL]) -m4trace:configure.ac:104: -1- AC_SUBST_TRACE([LTDLINCL]) -m4trace:configure.ac:104: -1- m4_pattern_allow([^LTDLINCL$]) -m4trace:configure.ac:105: -1- AC_SUBST([LIBLTDL]) -m4trace:configure.ac:105: -1- AC_SUBST_TRACE([LIBLTDL]) -m4trace:configure.ac:105: -1- m4_pattern_allow([^LIBLTDL$]) -m4trace:configure.ac:106: -1- AC_CONFIG_SUBDIRS([libltdl]) -m4trace:configure.ac:106: -1- AC_SUBST([subdirs], ["$subdirs libltdl"]) -m4trace:configure.ac:106: -1- AC_SUBST_TRACE([subdirs]) -m4trace:configure.ac:106: -1- m4_pattern_allow([^subdirs$]) -m4trace:configure.ac:108: -1- _m4_warn([obsolete], [The macro `AC_HEADER_STDC' is obsolete. -You should run autoupdate.], [./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from... -configure.ac:108: the top level]) -m4trace:configure.ac:108: -1- AC_SUBST([EGREP]) -m4trace:configure.ac:108: -1- AC_SUBST_TRACE([EGREP]) -m4trace:configure.ac:108: -1- m4_pattern_allow([^EGREP$]) -m4trace:configure.ac:109: -1- AC_DEFINE_TRACE_LITERAL([const]) -m4trace:configure.ac:109: -1- m4_pattern_allow([^const$]) -m4trace:configure.ac:109: -1- AH_OUTPUT([const], [/* Define to empty if `const\' does not conform to ANSI C. */ +m4trace:configure.ac:111: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DLFCN_H]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^HAVE_DLFCN_H$]) +m4trace:configure.ac:111: -1- LT_SUPPORTED_TAG([CXX]) +m4trace:configure.ac:111: -1- AC_SUBST([CXXCPP]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([CXXCPP]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^CXXCPP$]) +m4trace:configure.ac:111: -1- AC_SUBST([CPPFLAGS]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([CPPFLAGS]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:111: -1- AC_SUBST([CXXCPP]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([CXXCPP]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^CXXCPP$]) +m4trace:configure.ac:111: -1- AC_SUBST([LD]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([LD]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LD$]) +m4trace:configure.ac:111: -1- AC_SUBST([LT_SYS_LIBRARY_PATH]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([LT_SYS_LIBRARY_PATH]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LT_SYS_LIBRARY_PATH$]) +m4trace:configure.ac:112: -1- AC_SUBST([LTDLINCL]) +m4trace:configure.ac:112: -1- AC_SUBST_TRACE([LTDLINCL]) +m4trace:configure.ac:112: -1- m4_pattern_allow([^LTDLINCL$]) +m4trace:configure.ac:113: -1- AC_SUBST([LIBLTDL]) +m4trace:configure.ac:113: -1- AC_SUBST_TRACE([LIBLTDL]) +m4trace:configure.ac:113: -1- m4_pattern_allow([^LIBLTDL$]) +m4trace:configure.ac:114: -1- AC_CONFIG_SUBDIRS([libltdl]) +m4trace:configure.ac:114: -1- AC_SUBST([subdirs], ["$subdirs libltdl"]) +m4trace:configure.ac:114: -1- AC_SUBST_TRACE([subdirs]) +m4trace:configure.ac:114: -1- m4_pattern_allow([^subdirs$]) +m4trace:configure.ac:116: -1- AC_DEFINE_TRACE_LITERAL([const]) +m4trace:configure.ac:116: -1- m4_pattern_allow([^const$]) +m4trace:configure.ac:116: -1- AH_OUTPUT([const], [/* Define to empty if \'const\' does not conform to ANSI C. */ @%:@undef const]) -m4trace:configure.ac:110: -1- AH_OUTPUT([WORDS_BIGENDIAN], [/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most +m4trace:configure.ac:117: -1- AH_OUTPUT([WORDS_BIGENDIAN], [/* 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__ @@ -856,298 +844,529 @@ m4trace:configure.ac:110: -1- AH_OUTPUT([WORDS_BIGENDIAN], [/* Define WORDS_BIGE # undef WORDS_BIGENDIAN # endif #endif]) -m4trace:configure.ac:110: -1- AC_DEFINE_TRACE_LITERAL([WORDS_BIGENDIAN]) -m4trace:configure.ac:110: -1- m4_pattern_allow([^WORDS_BIGENDIAN$]) -m4trace:configure.ac:110: -1- AC_DEFINE_TRACE_LITERAL([AC_APPLE_UNIVERSAL_BUILD]) -m4trace:configure.ac:110: -1- m4_pattern_allow([^AC_APPLE_UNIVERSAL_BUILD$]) -m4trace:configure.ac:110: -1- AH_OUTPUT([AC_APPLE_UNIVERSAL_BUILD], [/* Define if building universal (internal helper macro) */ +m4trace:configure.ac:117: -1- AC_DEFINE_TRACE_LITERAL([WORDS_BIGENDIAN]) +m4trace:configure.ac:117: -1- m4_pattern_allow([^WORDS_BIGENDIAN$]) +m4trace:configure.ac:117: -1- AC_DEFINE_TRACE_LITERAL([AC_APPLE_UNIVERSAL_BUILD]) +m4trace:configure.ac:117: -1- m4_pattern_allow([^AC_APPLE_UNIVERSAL_BUILD$]) +m4trace:configure.ac:117: -1- AH_OUTPUT([AC_APPLE_UNIVERSAL_BUILD], [/* Define if building universal (internal helper macro) */ @%:@undef AC_APPLE_UNIVERSAL_BUILD]) -m4trace:configure.ac:111: -1- AC_DEFINE_TRACE_LITERAL([pid_t]) -m4trace:configure.ac:111: -1- m4_pattern_allow([^pid_t$]) -m4trace:configure.ac:111: -1- AH_OUTPUT([pid_t], [/* Define as a signed integer type capable of holding a process identifier. */ +m4trace:configure.ac:118: -1- AC_DEFINE_TRACE_LITERAL([pid_t]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^pid_t$]) +m4trace:configure.ac:118: -1- AH_OUTPUT([pid_t], [/* Define as a signed integer type capable of holding a process identifier. */ @%:@undef pid_t]) -m4trace:configure.ac:112: -1- AC_DEFINE_TRACE_LITERAL([size_t]) -m4trace:configure.ac:112: -1- m4_pattern_allow([^size_t$]) -m4trace:configure.ac:112: -1- AH_OUTPUT([size_t], [/* Define to `unsigned int\' if does not define. */ +m4trace:configure.ac:119: -1- AC_DEFINE_TRACE_LITERAL([size_t]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^size_t$]) +m4trace:configure.ac:119: -1- AH_OUTPUT([size_t], [/* Define as \'unsigned int\' if doesn\'t define. */ @%:@undef size_t]) -m4trace:configure.ac:113: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SSIZE_T]) -m4trace:configure.ac:113: -1- m4_pattern_allow([^HAVE_SSIZE_T$]) -m4trace:configure.ac:113: -1- AH_OUTPUT([HAVE_SSIZE_T], [/* Define to 1 if the system has the type `ssize_t\'. */ +m4trace:configure.ac:120: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SSIZE_T]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^HAVE_SSIZE_T$]) +m4trace:configure.ac:120: -1- AH_OUTPUT([HAVE_SSIZE_T], [/* Define to 1 if the system has the type \'ssize_t\'. */ @%:@undef HAVE_SSIZE_T]) -m4trace:configure.ac:113: -1- AC_DEFINE_TRACE_LITERAL([ssize_t]) -m4trace:configure.ac:113: -1- m4_pattern_allow([^ssize_t$]) -m4trace:configure.ac:113: -1- AH_OUTPUT([ssize_t], [/* Define ssize_t if it is not done by the standard libs. */ +m4trace:configure.ac:120: -1- AC_DEFINE_TRACE_LITERAL([ssize_t]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^ssize_t$]) +m4trace:configure.ac:120: -1- AH_OUTPUT([ssize_t], [/* Define ssize_t if it is not done by the standard libs. */ @%:@undef ssize_t]) -m4trace:configure.ac:115: -1- AC_DEFINE_TRACE_LITERAL([off_t]) -m4trace:configure.ac:115: -1- m4_pattern_allow([^off_t$]) -m4trace:configure.ac:115: -1- AH_OUTPUT([off_t], [/* Define to `long int\' if does not define. */ +m4trace:configure.ac:122: -1- AC_DEFINE_TRACE_LITERAL([off_t]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^off_t$]) +m4trace:configure.ac:122: -1- AH_OUTPUT([off_t], [/* Define to \'long int\' if does not define. */ @%:@undef off_t]) -m4trace:configure.ac:116: -1- _m4_warn([obsolete], [The macro `AC_TYPE_SIGNAL' is obsolete. -You should run autoupdate.], [./lib/autoconf/types.m4:776: AC_TYPE_SIGNAL is expanded from... -configure.ac:116: the top level]) -m4trace:configure.ac:116: -1- AC_DEFINE_TRACE_LITERAL([RETSIGTYPE]) -m4trace:configure.ac:116: -1- m4_pattern_allow([^RETSIGTYPE$]) -m4trace:configure.ac:116: -1- AH_OUTPUT([RETSIGTYPE], [/* Define as the return type of signal handlers (`int\' or `void\'). */ -@%:@undef RETSIGTYPE]) -m4trace:configure.ac:117: -1- AC_DEFINE_TRACE_LITERAL([uid_t]) -m4trace:configure.ac:117: -1- m4_pattern_allow([^uid_t$]) -m4trace:configure.ac:117: -1- AH_OUTPUT([uid_t], [/* Define to `int\' if doesn\'t define. */ +m4trace:configure.ac:123: -1- AC_DEFINE_TRACE_LITERAL([uid_t]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^uid_t$]) +m4trace:configure.ac:123: -1- AH_OUTPUT([uid_t], [/* Define as \'int\' if doesn\'t define. */ @%:@undef uid_t]) -m4trace:configure.ac:117: -1- AC_DEFINE_TRACE_LITERAL([gid_t]) -m4trace:configure.ac:117: -1- m4_pattern_allow([^gid_t$]) -m4trace:configure.ac:117: -1- AH_OUTPUT([gid_t], [/* Define to `int\' if doesn\'t define. */ +m4trace:configure.ac:123: -1- AC_DEFINE_TRACE_LITERAL([gid_t]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^gid_t$]) +m4trace:configure.ac:123: -1- AH_OUTPUT([gid_t], [/* Define as \'int\' if doesn\'t define. */ @%:@undef gid_t]) -m4trace:configure.ac:118: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DECL_ENVIRON]) -m4trace:configure.ac:118: -1- m4_pattern_allow([^HAVE_DECL_ENVIRON$]) -m4trace:configure.ac:118: -1- AH_OUTPUT([HAVE_DECL_ENVIRON], [/* Define to 1 if you have the declaration of `environ\', and to 0 if you +m4trace:configure.ac:124: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DECL_ENVIRON]) +m4trace:configure.ac:124: -1- m4_pattern_allow([^HAVE_DECL_ENVIRON$]) +m4trace:configure.ac:124: -1- AH_OUTPUT([HAVE_DECL_ENVIRON], [/* Define to 1 if you have the declaration of \'environ\', and to 0 if you don\'t. */ @%:@undef HAVE_DECL_ENVIRON]) -m4trace:configure.ac:138: -1- AC_SUBST([HAVE_QSORT_R]) -m4trace:configure.ac:138: -1- AC_SUBST_TRACE([HAVE_QSORT_R]) -m4trace:configure.ac:138: -1- m4_pattern_allow([^HAVE_QSORT_R$]) -m4trace:configure.ac:139: -1- AC_DEFINE_TRACE_LITERAL([HAVE_QSORT_R]) -m4trace:configure.ac:139: -1- m4_pattern_allow([^HAVE_QSORT_R$]) -m4trace:configure.ac:139: -1- AH_OUTPUT([HAVE_QSORT_R], [/* Define to 1 if you have qsort_r available */ +m4trace:configure.ac:126: -1- AH_OUTPUT([HAVE_BYTESWAP_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_BYTESWAP_H]) +m4trace:configure.ac:126: -1- AC_DEFINE_TRACE_LITERAL([HAVE_BYTESWAP_H]) +m4trace:configure.ac:126: -1- m4_pattern_allow([^HAVE_BYTESWAP_H$]) +m4trace:configure.ac:127: -1- AH_OUTPUT([HAVE___BUILTIN_BSWAP16], [/* Define to 1 if you have the \'__builtin_bswap16\' function. */ +@%:@undef HAVE___BUILTIN_BSWAP16]) +m4trace:configure.ac:127: -1- AC_DEFINE_TRACE_LITERAL([HAVE___BUILTIN_BSWAP16]) +m4trace:configure.ac:127: -1- m4_pattern_allow([^HAVE___BUILTIN_BSWAP16$]) +m4trace:configure.ac:127: -1- AH_OUTPUT([HAVE___BUILTIN_BSWAP32], [/* Define to 1 if you have the \'__builtin_bswap32\' function. */ +@%:@undef HAVE___BUILTIN_BSWAP32]) +m4trace:configure.ac:127: -1- AC_DEFINE_TRACE_LITERAL([HAVE___BUILTIN_BSWAP32]) +m4trace:configure.ac:127: -1- m4_pattern_allow([^HAVE___BUILTIN_BSWAP32$]) +m4trace:configure.ac:127: -1- AH_OUTPUT([HAVE___BUILTIN_BSWAP64], [/* Define to 1 if you have the \'__builtin_bswap64\' function. */ +@%:@undef HAVE___BUILTIN_BSWAP64]) +m4trace:configure.ac:127: -1- AC_DEFINE_TRACE_LITERAL([HAVE___BUILTIN_BSWAP64]) +m4trace:configure.ac:127: -1- m4_pattern_allow([^HAVE___BUILTIN_BSWAP64$]) +m4trace:configure.ac:147: -1- AC_SUBST([HAVE_STATIC]) +m4trace:configure.ac:147: -1- AC_SUBST_TRACE([HAVE_STATIC]) +m4trace:configure.ac:147: -1- m4_pattern_allow([^HAVE_STATIC$]) +m4trace:configure.ac:148: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STATIC]) +m4trace:configure.ac:148: -1- m4_pattern_allow([^HAVE_STATIC$]) +m4trace:configure.ac:148: -1- AH_OUTPUT([HAVE_STATIC], [/* Define to 1 if static linking is available */ +@%:@undef HAVE_STATIC]) +m4trace:configure.ac:149: -1- AM_CONDITIONAL([HAVE_STATIC], [ test x$HAVE_STATIC = x1 ]) +m4trace:configure.ac:149: -1- AC_SUBST([HAVE_STATIC_TRUE]) +m4trace:configure.ac:149: -1- AC_SUBST_TRACE([HAVE_STATIC_TRUE]) +m4trace:configure.ac:149: -1- m4_pattern_allow([^HAVE_STATIC_TRUE$]) +m4trace:configure.ac:149: -1- AC_SUBST([HAVE_STATIC_FALSE]) +m4trace:configure.ac:149: -1- AC_SUBST_TRACE([HAVE_STATIC_FALSE]) +m4trace:configure.ac:149: -1- m4_pattern_allow([^HAVE_STATIC_FALSE$]) +m4trace:configure.ac:149: -1- _AM_SUBST_NOTMAKE([HAVE_STATIC_TRUE]) +m4trace:configure.ac:149: -1- _AM_SUBST_NOTMAKE([HAVE_STATIC_FALSE]) +m4trace:configure.ac:155: -1- AC_DEFINE_TRACE_LITERAL([HAVE_WSTRINGOP_OVERREAD]) +m4trace:configure.ac:155: -1- m4_pattern_allow([^HAVE_WSTRINGOP_OVERREAD$]) +m4trace:configure.ac:155: -1- AH_OUTPUT([HAVE_WSTRINGOP_OVERREAD], [/* Define to 1 if -Wstringop-overread is supported */ +@%:@undef HAVE_WSTRINGOP_OVERREAD]) +m4trace:configure.ac:165: -1- AC_SUBST([HAVE_PORTABLE_TARGET]) +m4trace:configure.ac:165: -1- AC_SUBST_TRACE([HAVE_PORTABLE_TARGET]) +m4trace:configure.ac:165: -1- m4_pattern_allow([^HAVE_PORTABLE_TARGET$]) +m4trace:configure.ac:166: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PORTABLE_TARGET]) +m4trace:configure.ac:166: -1- m4_pattern_allow([^HAVE_PORTABLE_TARGET$]) +m4trace:configure.ac:166: -1- AH_OUTPUT([HAVE_PORTABLE_TARGET], [/* Define to 1 if PORTABLE_TARGET is enabled */ +@%:@undef HAVE_PORTABLE_TARGET]) +m4trace:configure.ac:167: -1- AM_CONDITIONAL([HAVE_PORTABLE_TARGET], [ test x$HAVE_PORTABLE_TARGET == x1 ]) +m4trace:configure.ac:167: -1- AC_SUBST([HAVE_PORTABLE_TARGET_TRUE]) +m4trace:configure.ac:167: -1- AC_SUBST_TRACE([HAVE_PORTABLE_TARGET_TRUE]) +m4trace:configure.ac:167: -1- m4_pattern_allow([^HAVE_PORTABLE_TARGET_TRUE$]) +m4trace:configure.ac:167: -1- AC_SUBST([HAVE_PORTABLE_TARGET_FALSE]) +m4trace:configure.ac:167: -1- AC_SUBST_TRACE([HAVE_PORTABLE_TARGET_FALSE]) +m4trace:configure.ac:167: -1- m4_pattern_allow([^HAVE_PORTABLE_TARGET_FALSE$]) +m4trace:configure.ac:167: -1- _AM_SUBST_NOTMAKE([HAVE_PORTABLE_TARGET_TRUE]) +m4trace:configure.ac:167: -1- _AM_SUBST_NOTMAKE([HAVE_PORTABLE_TARGET_FALSE]) +m4trace:configure.ac:169: -1- AM_CONDITIONAL([TARGET_CPU_X86], [ test x$target_cpu = xx86 ]) +m4trace:configure.ac:169: -1- AC_SUBST([TARGET_CPU_X86_TRUE]) +m4trace:configure.ac:169: -1- AC_SUBST_TRACE([TARGET_CPU_X86_TRUE]) +m4trace:configure.ac:169: -1- m4_pattern_allow([^TARGET_CPU_X86_TRUE$]) +m4trace:configure.ac:169: -1- AC_SUBST([TARGET_CPU_X86_FALSE]) +m4trace:configure.ac:169: -1- AC_SUBST_TRACE([TARGET_CPU_X86_FALSE]) +m4trace:configure.ac:169: -1- m4_pattern_allow([^TARGET_CPU_X86_FALSE$]) +m4trace:configure.ac:169: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_X86_TRUE]) +m4trace:configure.ac:169: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_X86_FALSE]) +m4trace:configure.ac:170: -1- AM_CONDITIONAL([TARGET_CPU_X86_64], [ test x$target_cpu = xx86_64 ]) +m4trace:configure.ac:170: -1- AC_SUBST([TARGET_CPU_X86_64_TRUE]) +m4trace:configure.ac:170: -1- AC_SUBST_TRACE([TARGET_CPU_X86_64_TRUE]) +m4trace:configure.ac:170: -1- m4_pattern_allow([^TARGET_CPU_X86_64_TRUE$]) +m4trace:configure.ac:170: -1- AC_SUBST([TARGET_CPU_X86_64_FALSE]) +m4trace:configure.ac:170: -1- AC_SUBST_TRACE([TARGET_CPU_X86_64_FALSE]) +m4trace:configure.ac:170: -1- m4_pattern_allow([^TARGET_CPU_X86_64_FALSE$]) +m4trace:configure.ac:170: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_X86_64_TRUE]) +m4trace:configure.ac:170: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_X86_64_FALSE]) +m4trace:configure.ac:171: -1- AM_CONDITIONAL([TARGET_CPU_ANY_X86], [ test x$target_cpu = xx86 -o x$target_cpu = xx86_64 ]) +m4trace:configure.ac:171: -1- AC_SUBST([TARGET_CPU_ANY_X86_TRUE]) +m4trace:configure.ac:171: -1- AC_SUBST_TRACE([TARGET_CPU_ANY_X86_TRUE]) +m4trace:configure.ac:171: -1- m4_pattern_allow([^TARGET_CPU_ANY_X86_TRUE$]) +m4trace:configure.ac:171: -1- AC_SUBST([TARGET_CPU_ANY_X86_FALSE]) +m4trace:configure.ac:171: -1- AC_SUBST_TRACE([TARGET_CPU_ANY_X86_FALSE]) +m4trace:configure.ac:171: -1- m4_pattern_allow([^TARGET_CPU_ANY_X86_FALSE$]) +m4trace:configure.ac:171: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ANY_X86_TRUE]) +m4trace:configure.ac:171: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ANY_X86_FALSE]) +m4trace:configure.ac:172: -1- AM_CONDITIONAL([TARGET_CPU_ARM], [ test x$target_cpu = xarm ]) +m4trace:configure.ac:172: -1- AC_SUBST([TARGET_CPU_ARM_TRUE]) +m4trace:configure.ac:172: -1- AC_SUBST_TRACE([TARGET_CPU_ARM_TRUE]) +m4trace:configure.ac:172: -1- m4_pattern_allow([^TARGET_CPU_ARM_TRUE$]) +m4trace:configure.ac:172: -1- AC_SUBST([TARGET_CPU_ARM_FALSE]) +m4trace:configure.ac:172: -1- AC_SUBST_TRACE([TARGET_CPU_ARM_FALSE]) +m4trace:configure.ac:172: -1- m4_pattern_allow([^TARGET_CPU_ARM_FALSE$]) +m4trace:configure.ac:172: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ARM_TRUE]) +m4trace:configure.ac:172: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ARM_FALSE]) +m4trace:configure.ac:173: -1- AM_CONDITIONAL([TARGET_CPU_ARM64], [ test x$target_cpu = xaarch64 ]) +m4trace:configure.ac:173: -1- AC_SUBST([TARGET_CPU_ARM64_TRUE]) +m4trace:configure.ac:173: -1- AC_SUBST_TRACE([TARGET_CPU_ARM64_TRUE]) +m4trace:configure.ac:173: -1- m4_pattern_allow([^TARGET_CPU_ARM64_TRUE$]) +m4trace:configure.ac:173: -1- AC_SUBST([TARGET_CPU_ARM64_FALSE]) +m4trace:configure.ac:173: -1- AC_SUBST_TRACE([TARGET_CPU_ARM64_FALSE]) +m4trace:configure.ac:173: -1- m4_pattern_allow([^TARGET_CPU_ARM64_FALSE$]) +m4trace:configure.ac:173: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ARM64_TRUE]) +m4trace:configure.ac:173: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ARM64_FALSE]) +m4trace:configure.ac:174: -1- AM_CONDITIONAL([TARGET_CPU_ANY_ARM], [ test x$target_cpu = xarm -o x$target_cpu = xaarch64 ]) +m4trace:configure.ac:174: -1- AC_SUBST([TARGET_CPU_ANY_ARM_TRUE]) +m4trace:configure.ac:174: -1- AC_SUBST_TRACE([TARGET_CPU_ANY_ARM_TRUE]) +m4trace:configure.ac:174: -1- m4_pattern_allow([^TARGET_CPU_ANY_ARM_TRUE$]) +m4trace:configure.ac:174: -1- AC_SUBST([TARGET_CPU_ANY_ARM_FALSE]) +m4trace:configure.ac:174: -1- AC_SUBST_TRACE([TARGET_CPU_ANY_ARM_FALSE]) +m4trace:configure.ac:174: -1- m4_pattern_allow([^TARGET_CPU_ANY_ARM_FALSE$]) +m4trace:configure.ac:174: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ANY_ARM_TRUE]) +m4trace:configure.ac:174: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ANY_ARM_FALSE]) +m4trace:configure.ac:176: -1- _AM_COND_IF([TARGET_CPU_ANY_X86]) +m4trace:configure.ac:176: -1- _AM_COND_ENDIF([TARGET_CPU_ANY_X86]) +m4trace:configure.ac:184: -1- _AM_COND_IF([TARGET_CPU_ARM]) +m4trace:configure.ac:184: -1- _AM_COND_ENDIF([TARGET_CPU_ARM]) +m4trace:configure.ac:189: -1- AM_CONDITIONAL([TARGET_HAS_SSE2], [ test "x$ax_cv_check_cflags__Werror__msse2" = x"yes" -a "x$enable_portable_target" != "xyes" ]) +m4trace:configure.ac:189: -1- AC_SUBST([TARGET_HAS_SSE2_TRUE]) +m4trace:configure.ac:189: -1- AC_SUBST_TRACE([TARGET_HAS_SSE2_TRUE]) +m4trace:configure.ac:189: -1- m4_pattern_allow([^TARGET_HAS_SSE2_TRUE$]) +m4trace:configure.ac:189: -1- AC_SUBST([TARGET_HAS_SSE2_FALSE]) +m4trace:configure.ac:189: -1- AC_SUBST_TRACE([TARGET_HAS_SSE2_FALSE]) +m4trace:configure.ac:189: -1- m4_pattern_allow([^TARGET_HAS_SSE2_FALSE$]) +m4trace:configure.ac:189: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_SSE2_TRUE]) +m4trace:configure.ac:189: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_SSE2_FALSE]) +m4trace:configure.ac:190: -1- AM_CONDITIONAL([TARGET_HAS_SSE41], [ test "x$ax_cv_check_cflags__Werror__msse4_1" = x"yes" -a "x$enable_portable_target" != "xyes" ]) +m4trace:configure.ac:190: -1- AC_SUBST([TARGET_HAS_SSE41_TRUE]) +m4trace:configure.ac:190: -1- AC_SUBST_TRACE([TARGET_HAS_SSE41_TRUE]) +m4trace:configure.ac:190: -1- m4_pattern_allow([^TARGET_HAS_SSE41_TRUE$]) +m4trace:configure.ac:190: -1- AC_SUBST([TARGET_HAS_SSE41_FALSE]) +m4trace:configure.ac:190: -1- AC_SUBST_TRACE([TARGET_HAS_SSE41_FALSE]) +m4trace:configure.ac:190: -1- m4_pattern_allow([^TARGET_HAS_SSE41_FALSE$]) +m4trace:configure.ac:190: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_SSE41_TRUE]) +m4trace:configure.ac:190: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_SSE41_FALSE]) +m4trace:configure.ac:191: -1- AM_CONDITIONAL([TARGET_HAS_AVX2], [ test "x$ax_cv_check_cflags__Werror__mavx2" = x"yes" -a "x$enable_portable_target" != "xyes" ]) +m4trace:configure.ac:191: -1- AC_SUBST([TARGET_HAS_AVX2_TRUE]) +m4trace:configure.ac:191: -1- AC_SUBST_TRACE([TARGET_HAS_AVX2_TRUE]) +m4trace:configure.ac:191: -1- m4_pattern_allow([^TARGET_HAS_AVX2_TRUE$]) +m4trace:configure.ac:191: -1- AC_SUBST([TARGET_HAS_AVX2_FALSE]) +m4trace:configure.ac:191: -1- AC_SUBST_TRACE([TARGET_HAS_AVX2_FALSE]) +m4trace:configure.ac:191: -1- m4_pattern_allow([^TARGET_HAS_AVX2_FALSE$]) +m4trace:configure.ac:191: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_AVX2_TRUE]) +m4trace:configure.ac:191: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_AVX2_FALSE]) +m4trace:configure.ac:192: -1- AM_CONDITIONAL([TARGET_HAS_AVX512], [ test "x$ax_cv_check_cflags__Werror__mavx512f__mavx512vl" = x"yes" -a "x$enable_portable_target" != "xyes" ]) +m4trace:configure.ac:192: -1- AC_SUBST([TARGET_HAS_AVX512_TRUE]) +m4trace:configure.ac:192: -1- AC_SUBST_TRACE([TARGET_HAS_AVX512_TRUE]) +m4trace:configure.ac:192: -1- m4_pattern_allow([^TARGET_HAS_AVX512_TRUE$]) +m4trace:configure.ac:192: -1- AC_SUBST([TARGET_HAS_AVX512_FALSE]) +m4trace:configure.ac:192: -1- AC_SUBST_TRACE([TARGET_HAS_AVX512_FALSE]) +m4trace:configure.ac:192: -1- m4_pattern_allow([^TARGET_HAS_AVX512_FALSE$]) +m4trace:configure.ac:192: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_AVX512_TRUE]) +m4trace:configure.ac:192: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_AVX512_FALSE]) +m4trace:configure.ac:194: -1- AM_CONDITIONAL([TARGET_HAS_NEON], [ test \( x$target_cpu = xaarch64 -o "x$ax_cv_check_cflags__Werror__mcpu_neon" = x"yes" \) -a "x$enable_portable_target" != "xyes" ]) +m4trace:configure.ac:194: -1- AC_SUBST([TARGET_HAS_NEON_TRUE]) +m4trace:configure.ac:194: -1- AC_SUBST_TRACE([TARGET_HAS_NEON_TRUE]) +m4trace:configure.ac:194: -1- m4_pattern_allow([^TARGET_HAS_NEON_TRUE$]) +m4trace:configure.ac:194: -1- AC_SUBST([TARGET_HAS_NEON_FALSE]) +m4trace:configure.ac:194: -1- AC_SUBST_TRACE([TARGET_HAS_NEON_FALSE]) +m4trace:configure.ac:194: -1- m4_pattern_allow([^TARGET_HAS_NEON_FALSE$]) +m4trace:configure.ac:194: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_NEON_TRUE]) +m4trace:configure.ac:194: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_NEON_FALSE]) +m4trace:configure.ac:196: -2- AC_DEFINE_TRACE_LITERAL([TARGET_HAS_SSE2]) +m4trace:configure.ac:196: -2- m4_pattern_allow([^TARGET_HAS_SSE2$]) +m4trace:configure.ac:196: -2- AH_OUTPUT([TARGET_HAS_SSE2], [/* SSE2 target support */ +@%:@undef TARGET_HAS_SSE2]) +m4trace:configure.ac:196: -1- _AM_COND_IF([TARGET_HAS_SSE2]) +m4trace:configure.ac:196: -1- _AM_COND_ENDIF([TARGET_HAS_SSE2]) +m4trace:configure.ac:197: -2- AC_DEFINE_TRACE_LITERAL([TARGET_HAS_SSE41]) +m4trace:configure.ac:197: -2- m4_pattern_allow([^TARGET_HAS_SSE41$]) +m4trace:configure.ac:197: -2- AH_OUTPUT([TARGET_HAS_SSE41], [/* SSE41 target support */ +@%:@undef TARGET_HAS_SSE41]) +m4trace:configure.ac:197: -1- _AM_COND_IF([TARGET_HAS_SSE41]) +m4trace:configure.ac:197: -1- _AM_COND_ENDIF([TARGET_HAS_SSE41]) +m4trace:configure.ac:198: -2- AC_DEFINE_TRACE_LITERAL([TARGET_HAS_AVX2]) +m4trace:configure.ac:198: -2- m4_pattern_allow([^TARGET_HAS_AVX2$]) +m4trace:configure.ac:198: -2- AH_OUTPUT([TARGET_HAS_AVX2], [/* AVX2 target support */ +@%:@undef TARGET_HAS_AVX2]) +m4trace:configure.ac:198: -1- _AM_COND_IF([TARGET_HAS_AVX2]) +m4trace:configure.ac:198: -1- _AM_COND_ENDIF([TARGET_HAS_AVX2]) +m4trace:configure.ac:199: -2- AC_DEFINE_TRACE_LITERAL([TARGET_HAS_AVX512]) +m4trace:configure.ac:199: -2- m4_pattern_allow([^TARGET_HAS_AVX512$]) +m4trace:configure.ac:199: -2- AH_OUTPUT([TARGET_HAS_AVX512], [/* AVX512 target support */ +@%:@undef TARGET_HAS_AVX512]) +m4trace:configure.ac:199: -1- _AM_COND_IF([TARGET_HAS_AVX512]) +m4trace:configure.ac:199: -1- _AM_COND_ENDIF([TARGET_HAS_AVX512]) +m4trace:configure.ac:201: -2- AC_DEFINE_TRACE_LITERAL([TARGET_HAS_NEON]) +m4trace:configure.ac:201: -2- m4_pattern_allow([^TARGET_HAS_NEON$]) +m4trace:configure.ac:201: -2- AH_OUTPUT([TARGET_HAS_NEON], [/* NEON target support */ +@%:@undef TARGET_HAS_NEON]) +m4trace:configure.ac:201: -1- _AM_COND_IF([TARGET_HAS_NEON]) +m4trace:configure.ac:201: -1- _AM_COND_ENDIF([TARGET_HAS_NEON]) +m4trace:configure.ac:227: -1- AC_SUBST([HAVE_ASAN]) +m4trace:configure.ac:227: -1- AC_SUBST_TRACE([HAVE_ASAN]) +m4trace:configure.ac:227: -1- m4_pattern_allow([^HAVE_ASAN$]) +m4trace:configure.ac:228: -1- AC_SUBST([ASAN_CFLAGS]) +m4trace:configure.ac:228: -1- AC_SUBST_TRACE([ASAN_CFLAGS]) +m4trace:configure.ac:228: -1- m4_pattern_allow([^ASAN_CFLAGS$]) +m4trace:configure.ac:229: -1- AC_SUBST([ASAN_LIBS]) +m4trace:configure.ac:229: -1- AC_SUBST_TRACE([ASAN_LIBS]) +m4trace:configure.ac:229: -1- m4_pattern_allow([^ASAN_LIBS$]) +m4trace:configure.ac:230: -1- AM_CONDITIONAL([HAVE_ASAN], [ test x$HAVE_ASAN = x1 ]) +m4trace:configure.ac:230: -1- AC_SUBST([HAVE_ASAN_TRUE]) +m4trace:configure.ac:230: -1- AC_SUBST_TRACE([HAVE_ASAN_TRUE]) +m4trace:configure.ac:230: -1- m4_pattern_allow([^HAVE_ASAN_TRUE$]) +m4trace:configure.ac:230: -1- AC_SUBST([HAVE_ASAN_FALSE]) +m4trace:configure.ac:230: -1- AC_SUBST_TRACE([HAVE_ASAN_FALSE]) +m4trace:configure.ac:230: -1- m4_pattern_allow([^HAVE_ASAN_FALSE$]) +m4trace:configure.ac:230: -1- _AM_SUBST_NOTMAKE([HAVE_ASAN_TRUE]) +m4trace:configure.ac:230: -1- _AM_SUBST_NOTMAKE([HAVE_ASAN_FALSE]) +m4trace:configure.ac:232: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ASAN]) +m4trace:configure.ac:232: -1- m4_pattern_allow([^HAVE_ASAN$]) +m4trace:configure.ac:232: -1- AH_OUTPUT([HAVE_ASAN], [/* Define to 1 if ASAN is enabled */ +@%:@undef HAVE_ASAN]) +m4trace:configure.ac:238: -1- AC_SUBST([HAVE_QSORT_R]) +m4trace:configure.ac:238: -1- AC_SUBST_TRACE([HAVE_QSORT_R]) +m4trace:configure.ac:238: -1- m4_pattern_allow([^HAVE_QSORT_R$]) +m4trace:configure.ac:239: -1- AC_DEFINE_TRACE_LITERAL([HAVE_QSORT_R]) +m4trace:configure.ac:239: -1- m4_pattern_allow([^HAVE_QSORT_R$]) +m4trace:configure.ac:239: -1- AH_OUTPUT([HAVE_QSORT_R], [/* Define to 1 if you have qsort_r available */ @%:@undef HAVE_QSORT_R]) -m4trace:configure.ac:140: -1- AM_CONDITIONAL([HAVE_QSORT_R], [ test x$HAVE_QSORT_R = x1 ]) -m4trace:configure.ac:140: -1- AC_SUBST([HAVE_QSORT_R_TRUE]) -m4trace:configure.ac:140: -1- AC_SUBST_TRACE([HAVE_QSORT_R_TRUE]) -m4trace:configure.ac:140: -1- m4_pattern_allow([^HAVE_QSORT_R_TRUE$]) -m4trace:configure.ac:140: -1- AC_SUBST([HAVE_QSORT_R_FALSE]) -m4trace:configure.ac:140: -1- AC_SUBST_TRACE([HAVE_QSORT_R_FALSE]) -m4trace:configure.ac:140: -1- m4_pattern_allow([^HAVE_QSORT_R_FALSE$]) -m4trace:configure.ac:140: -1- _AM_SUBST_NOTMAKE([HAVE_QSORT_R_TRUE]) -m4trace:configure.ac:140: -1- _AM_SUBST_NOTMAKE([HAVE_QSORT_R_FALSE]) -m4trace:configure.ac:142: -1- AC_SUBST([LIBYAML_CFLAGS]) -m4trace:configure.ac:142: -1- AC_SUBST_TRACE([LIBYAML_CFLAGS]) -m4trace:configure.ac:142: -1- m4_pattern_allow([^LIBYAML_CFLAGS$]) -m4trace:configure.ac:142: -1- AC_SUBST([LIBYAML_LIBS]) -m4trace:configure.ac:142: -1- AC_SUBST_TRACE([LIBYAML_LIBS]) -m4trace:configure.ac:142: -1- m4_pattern_allow([^LIBYAML_LIBS$]) -m4trace:configure.ac:149: -1- AC_SUBST([HAVE_LIBYAML]) -m4trace:configure.ac:149: -1- AC_SUBST_TRACE([HAVE_LIBYAML]) -m4trace:configure.ac:149: -1- m4_pattern_allow([^HAVE_LIBYAML$]) -m4trace:configure.ac:150: -1- AC_SUBST([LIBYAML_CFLAGS]) -m4trace:configure.ac:150: -1- AC_SUBST_TRACE([LIBYAML_CFLAGS]) -m4trace:configure.ac:150: -1- m4_pattern_allow([^LIBYAML_CFLAGS$]) -m4trace:configure.ac:151: -1- AC_SUBST([LIBYAML_LIBS]) -m4trace:configure.ac:151: -1- AC_SUBST_TRACE([LIBYAML_LIBS]) -m4trace:configure.ac:151: -1- m4_pattern_allow([^LIBYAML_LIBS$]) -m4trace:configure.ac:152: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBYAML]) -m4trace:configure.ac:152: -1- m4_pattern_allow([^HAVE_LIBYAML$]) -m4trace:configure.ac:152: -1- AH_OUTPUT([HAVE_LIBYAML], [/* Define to 1 if you have libyaml available */ +m4trace:configure.ac:240: -1- AM_CONDITIONAL([HAVE_QSORT_R], [ test x$HAVE_QSORT_R = x1 ]) +m4trace:configure.ac:240: -1- AC_SUBST([HAVE_QSORT_R_TRUE]) +m4trace:configure.ac:240: -1- AC_SUBST_TRACE([HAVE_QSORT_R_TRUE]) +m4trace:configure.ac:240: -1- m4_pattern_allow([^HAVE_QSORT_R_TRUE$]) +m4trace:configure.ac:240: -1- AC_SUBST([HAVE_QSORT_R_FALSE]) +m4trace:configure.ac:240: -1- AC_SUBST_TRACE([HAVE_QSORT_R_FALSE]) +m4trace:configure.ac:240: -1- m4_pattern_allow([^HAVE_QSORT_R_FALSE$]) +m4trace:configure.ac:240: -1- _AM_SUBST_NOTMAKE([HAVE_QSORT_R_TRUE]) +m4trace:configure.ac:240: -1- _AM_SUBST_NOTMAKE([HAVE_QSORT_R_FALSE]) +m4trace:configure.ac:242: -1- AC_SUBST([LIBYAML_CFLAGS]) +m4trace:configure.ac:242: -1- AC_SUBST_TRACE([LIBYAML_CFLAGS]) +m4trace:configure.ac:242: -1- m4_pattern_allow([^LIBYAML_CFLAGS$]) +m4trace:configure.ac:242: -1- AC_SUBST([LIBYAML_LIBS]) +m4trace:configure.ac:242: -1- AC_SUBST_TRACE([LIBYAML_LIBS]) +m4trace:configure.ac:242: -1- m4_pattern_allow([^LIBYAML_LIBS$]) +m4trace:configure.ac:249: -1- AC_SUBST([HAVE_LIBYAML]) +m4trace:configure.ac:249: -1- AC_SUBST_TRACE([HAVE_LIBYAML]) +m4trace:configure.ac:249: -1- m4_pattern_allow([^HAVE_LIBYAML$]) +m4trace:configure.ac:250: -1- AC_SUBST([LIBYAML_CFLAGS]) +m4trace:configure.ac:250: -1- AC_SUBST_TRACE([LIBYAML_CFLAGS]) +m4trace:configure.ac:250: -1- m4_pattern_allow([^LIBYAML_CFLAGS$]) +m4trace:configure.ac:251: -1- AC_SUBST([LIBYAML_LIBS]) +m4trace:configure.ac:251: -1- AC_SUBST_TRACE([LIBYAML_LIBS]) +m4trace:configure.ac:251: -1- m4_pattern_allow([^LIBYAML_LIBS$]) +m4trace:configure.ac:252: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBYAML]) +m4trace:configure.ac:252: -1- m4_pattern_allow([^HAVE_LIBYAML$]) +m4trace:configure.ac:252: -1- AH_OUTPUT([HAVE_LIBYAML], [/* Define to 1 if you have libyaml available */ @%:@undef HAVE_LIBYAML]) -m4trace:configure.ac:153: -1- AM_CONDITIONAL([HAVE_LIBYAML], [ test x$HAVE_LIBYAML = x1 ]) -m4trace:configure.ac:153: -1- AC_SUBST([HAVE_LIBYAML_TRUE]) -m4trace:configure.ac:153: -1- AC_SUBST_TRACE([HAVE_LIBYAML_TRUE]) -m4trace:configure.ac:153: -1- m4_pattern_allow([^HAVE_LIBYAML_TRUE$]) -m4trace:configure.ac:153: -1- AC_SUBST([HAVE_LIBYAML_FALSE]) -m4trace:configure.ac:153: -1- AC_SUBST_TRACE([HAVE_LIBYAML_FALSE]) -m4trace:configure.ac:153: -1- m4_pattern_allow([^HAVE_LIBYAML_FALSE$]) -m4trace:configure.ac:153: -1- _AM_SUBST_NOTMAKE([HAVE_LIBYAML_TRUE]) -m4trace:configure.ac:153: -1- _AM_SUBST_NOTMAKE([HAVE_LIBYAML_FALSE]) -m4trace:configure.ac:155: -1- AC_SUBST([CHECK_CFLAGS]) -m4trace:configure.ac:155: -1- AC_SUBST_TRACE([CHECK_CFLAGS]) -m4trace:configure.ac:155: -1- m4_pattern_allow([^CHECK_CFLAGS$]) -m4trace:configure.ac:155: -1- AC_SUBST([CHECK_LIBS]) -m4trace:configure.ac:155: -1- AC_SUBST_TRACE([CHECK_LIBS]) -m4trace:configure.ac:155: -1- m4_pattern_allow([^CHECK_LIBS$]) -m4trace:configure.ac:157: -1- AC_SUBST([HAVE_CHECK]) -m4trace:configure.ac:157: -1- AC_SUBST_TRACE([HAVE_CHECK]) -m4trace:configure.ac:157: -1- m4_pattern_allow([^HAVE_CHECK$]) -m4trace:configure.ac:158: -1- AC_SUBST([CHECK_CFLAGS]) -m4trace:configure.ac:158: -1- AC_SUBST_TRACE([CHECK_CFLAGS]) -m4trace:configure.ac:158: -1- m4_pattern_allow([^CHECK_CFLAGS$]) -m4trace:configure.ac:159: -1- AC_SUBST([CHECK_LDFLAGS]) -m4trace:configure.ac:159: -1- AC_SUBST_TRACE([CHECK_LDFLAGS]) -m4trace:configure.ac:159: -1- m4_pattern_allow([^CHECK_LDFLAGS$]) -m4trace:configure.ac:160: -1- AC_SUBST([CHECK_LIBS]) -m4trace:configure.ac:160: -1- AC_SUBST_TRACE([CHECK_LIBS]) -m4trace:configure.ac:160: -1- m4_pattern_allow([^CHECK_LIBS$]) -m4trace:configure.ac:161: -1- AC_DEFINE_TRACE_LITERAL([HAVE_CHECK]) -m4trace:configure.ac:161: -1- m4_pattern_allow([^HAVE_CHECK$]) -m4trace:configure.ac:161: -1- AH_OUTPUT([HAVE_CHECK], [/* Define to 1 if you have check available */ +m4trace:configure.ac:253: -1- AM_CONDITIONAL([HAVE_LIBYAML], [ test x$HAVE_LIBYAML = x1 ]) +m4trace:configure.ac:253: -1- AC_SUBST([HAVE_LIBYAML_TRUE]) +m4trace:configure.ac:253: -1- AC_SUBST_TRACE([HAVE_LIBYAML_TRUE]) +m4trace:configure.ac:253: -1- m4_pattern_allow([^HAVE_LIBYAML_TRUE$]) +m4trace:configure.ac:253: -1- AC_SUBST([HAVE_LIBYAML_FALSE]) +m4trace:configure.ac:253: -1- AC_SUBST_TRACE([HAVE_LIBYAML_FALSE]) +m4trace:configure.ac:253: -1- m4_pattern_allow([^HAVE_LIBYAML_FALSE$]) +m4trace:configure.ac:253: -1- _AM_SUBST_NOTMAKE([HAVE_LIBYAML_TRUE]) +m4trace:configure.ac:253: -1- _AM_SUBST_NOTMAKE([HAVE_LIBYAML_FALSE]) +m4trace:configure.ac:255: -1- AC_SUBST([CHECK_CFLAGS]) +m4trace:configure.ac:255: -1- AC_SUBST_TRACE([CHECK_CFLAGS]) +m4trace:configure.ac:255: -1- m4_pattern_allow([^CHECK_CFLAGS$]) +m4trace:configure.ac:255: -1- AC_SUBST([CHECK_LIBS]) +m4trace:configure.ac:255: -1- AC_SUBST_TRACE([CHECK_LIBS]) +m4trace:configure.ac:255: -1- m4_pattern_allow([^CHECK_LIBS$]) +m4trace:configure.ac:257: -1- AC_SUBST([HAVE_CHECK]) +m4trace:configure.ac:257: -1- AC_SUBST_TRACE([HAVE_CHECK]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^HAVE_CHECK$]) +m4trace:configure.ac:258: -1- AC_SUBST([CHECK_CFLAGS]) +m4trace:configure.ac:258: -1- AC_SUBST_TRACE([CHECK_CFLAGS]) +m4trace:configure.ac:258: -1- m4_pattern_allow([^CHECK_CFLAGS$]) +m4trace:configure.ac:259: -1- AC_SUBST([CHECK_LDFLAGS]) +m4trace:configure.ac:259: -1- AC_SUBST_TRACE([CHECK_LDFLAGS]) +m4trace:configure.ac:259: -1- m4_pattern_allow([^CHECK_LDFLAGS$]) +m4trace:configure.ac:260: -1- AC_SUBST([CHECK_LIBS]) +m4trace:configure.ac:260: -1- AC_SUBST_TRACE([CHECK_LIBS]) +m4trace:configure.ac:260: -1- m4_pattern_allow([^CHECK_LIBS$]) +m4trace:configure.ac:261: -1- AC_DEFINE_TRACE_LITERAL([HAVE_CHECK]) +m4trace:configure.ac:261: -1- m4_pattern_allow([^HAVE_CHECK$]) +m4trace:configure.ac:261: -1- AH_OUTPUT([HAVE_CHECK], [/* Define to 1 if you have check available */ @%:@undef HAVE_CHECK]) -m4trace:configure.ac:162: -1- AM_CONDITIONAL([HAVE_CHECK], [ test x$HAVE_CHECK = x1 ]) -m4trace:configure.ac:162: -1- AC_SUBST([HAVE_CHECK_TRUE]) -m4trace:configure.ac:162: -1- AC_SUBST_TRACE([HAVE_CHECK_TRUE]) -m4trace:configure.ac:162: -1- m4_pattern_allow([^HAVE_CHECK_TRUE$]) -m4trace:configure.ac:162: -1- AC_SUBST([HAVE_CHECK_FALSE]) -m4trace:configure.ac:162: -1- AC_SUBST_TRACE([HAVE_CHECK_FALSE]) -m4trace:configure.ac:162: -1- m4_pattern_allow([^HAVE_CHECK_FALSE$]) -m4trace:configure.ac:162: -1- _AM_SUBST_NOTMAKE([HAVE_CHECK_TRUE]) -m4trace:configure.ac:162: -1- _AM_SUBST_NOTMAKE([HAVE_CHECK_FALSE]) -m4trace:configure.ac:180: -1- AC_SUBST([HAVE_COMPATIBLE_CHECK]) -m4trace:configure.ac:180: -1- AC_SUBST_TRACE([HAVE_COMPATIBLE_CHECK]) -m4trace:configure.ac:180: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK$]) -m4trace:configure.ac:181: -1- AC_DEFINE_TRACE_LITERAL([HAVE_COMPATIBLE_CHECK]) -m4trace:configure.ac:181: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK$]) -m4trace:configure.ac:181: -1- AH_OUTPUT([HAVE_COMPATIBLE_CHECK], [/* Define to 1 if you have a compatible version of check available */ +m4trace:configure.ac:262: -1- AM_CONDITIONAL([HAVE_CHECK], [ test x$HAVE_CHECK = x1 ]) +m4trace:configure.ac:262: -1- AC_SUBST([HAVE_CHECK_TRUE]) +m4trace:configure.ac:262: -1- AC_SUBST_TRACE([HAVE_CHECK_TRUE]) +m4trace:configure.ac:262: -1- m4_pattern_allow([^HAVE_CHECK_TRUE$]) +m4trace:configure.ac:262: -1- AC_SUBST([HAVE_CHECK_FALSE]) +m4trace:configure.ac:262: -1- AC_SUBST_TRACE([HAVE_CHECK_FALSE]) +m4trace:configure.ac:262: -1- m4_pattern_allow([^HAVE_CHECK_FALSE$]) +m4trace:configure.ac:262: -1- _AM_SUBST_NOTMAKE([HAVE_CHECK_TRUE]) +m4trace:configure.ac:262: -1- _AM_SUBST_NOTMAKE([HAVE_CHECK_FALSE]) +m4trace:configure.ac:280: -1- AC_SUBST([HAVE_COMPATIBLE_CHECK]) +m4trace:configure.ac:280: -1- AC_SUBST_TRACE([HAVE_COMPATIBLE_CHECK]) +m4trace:configure.ac:280: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK$]) +m4trace:configure.ac:281: -1- AC_DEFINE_TRACE_LITERAL([HAVE_COMPATIBLE_CHECK]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK$]) +m4trace:configure.ac:281: -1- AH_OUTPUT([HAVE_COMPATIBLE_CHECK], [/* Define to 1 if you have a compatible version of check available */ @%:@undef HAVE_COMPATIBLE_CHECK]) -m4trace:configure.ac:182: -1- AM_CONDITIONAL([HAVE_COMPATIBLE_CHECK], [ test x$HAVE_COMPATIBLE_CHECK = x1 ]) -m4trace:configure.ac:182: -1- AC_SUBST([HAVE_COMPATIBLE_CHECK_TRUE]) -m4trace:configure.ac:182: -1- AC_SUBST_TRACE([HAVE_COMPATIBLE_CHECK_TRUE]) -m4trace:configure.ac:182: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK_TRUE$]) -m4trace:configure.ac:182: -1- AC_SUBST([HAVE_COMPATIBLE_CHECK_FALSE]) -m4trace:configure.ac:182: -1- AC_SUBST_TRACE([HAVE_COMPATIBLE_CHECK_FALSE]) -m4trace:configure.ac:182: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK_FALSE$]) -m4trace:configure.ac:182: -1- _AM_SUBST_NOTMAKE([HAVE_COMPATIBLE_CHECK_TRUE]) -m4trace:configure.ac:182: -1- _AM_SUBST_NOTMAKE([HAVE_COMPATIBLE_CHECK_FALSE]) -m4trace:configure.ac:194: -1- AC_SUBST([HAVE_NETWORK]) -m4trace:configure.ac:194: -1- AC_SUBST_TRACE([HAVE_NETWORK]) -m4trace:configure.ac:194: -1- m4_pattern_allow([^HAVE_NETWORK$]) -m4trace:configure.ac:195: -1- AM_CONDITIONAL([HAVE_NETWORK], [ test x$HAVE_NETWORK = x1 ]) -m4trace:configure.ac:195: -1- AC_SUBST([HAVE_NETWORK_TRUE]) -m4trace:configure.ac:195: -1- AC_SUBST_TRACE([HAVE_NETWORK_TRUE]) -m4trace:configure.ac:195: -1- m4_pattern_allow([^HAVE_NETWORK_TRUE$]) -m4trace:configure.ac:195: -1- AC_SUBST([HAVE_NETWORK_FALSE]) -m4trace:configure.ac:195: -1- AC_SUBST_TRACE([HAVE_NETWORK_FALSE]) -m4trace:configure.ac:195: -1- m4_pattern_allow([^HAVE_NETWORK_FALSE$]) -m4trace:configure.ac:195: -1- _AM_SUBST_NOTMAKE([HAVE_NETWORK_TRUE]) -m4trace:configure.ac:195: -1- _AM_SUBST_NOTMAKE([HAVE_NETWORK_FALSE]) -m4trace:configure.ac:208: -1- AC_SUBST([HAVE_DEVMODE]) -m4trace:configure.ac:208: -1- AC_SUBST_TRACE([HAVE_DEVMODE]) -m4trace:configure.ac:208: -1- m4_pattern_allow([^HAVE_DEVMODE$]) -m4trace:configure.ac:209: -1- AM_CONDITIONAL([HAVE_DEVMODE], [ test x$HAVE_DEVMODE = x1 ]) -m4trace:configure.ac:209: -1- AC_SUBST([HAVE_DEVMODE_TRUE]) -m4trace:configure.ac:209: -1- AC_SUBST_TRACE([HAVE_DEVMODE_TRUE]) -m4trace:configure.ac:209: -1- m4_pattern_allow([^HAVE_DEVMODE_TRUE$]) -m4trace:configure.ac:209: -1- AC_SUBST([HAVE_DEVMODE_FALSE]) -m4trace:configure.ac:209: -1- AC_SUBST_TRACE([HAVE_DEVMODE_FALSE]) -m4trace:configure.ac:209: -1- m4_pattern_allow([^HAVE_DEVMODE_FALSE$]) -m4trace:configure.ac:209: -1- _AM_SUBST_NOTMAKE([HAVE_DEVMODE_TRUE]) -m4trace:configure.ac:209: -1- _AM_SUBST_NOTMAKE([HAVE_DEVMODE_FALSE]) -m4trace:configure.ac:211: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DEVMODE]) -m4trace:configure.ac:211: -1- m4_pattern_allow([^HAVE_DEVMODE$]) -m4trace:configure.ac:211: -1- AH_OUTPUT([HAVE_DEVMODE], [/* Define to 1 if developer mode is enabled */ +m4trace:configure.ac:282: -1- AM_CONDITIONAL([HAVE_COMPATIBLE_CHECK], [ test x$HAVE_COMPATIBLE_CHECK = x1 ]) +m4trace:configure.ac:282: -1- AC_SUBST([HAVE_COMPATIBLE_CHECK_TRUE]) +m4trace:configure.ac:282: -1- AC_SUBST_TRACE([HAVE_COMPATIBLE_CHECK_TRUE]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK_TRUE$]) +m4trace:configure.ac:282: -1- AC_SUBST([HAVE_COMPATIBLE_CHECK_FALSE]) +m4trace:configure.ac:282: -1- AC_SUBST_TRACE([HAVE_COMPATIBLE_CHECK_FALSE]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK_FALSE$]) +m4trace:configure.ac:282: -1- _AM_SUBST_NOTMAKE([HAVE_COMPATIBLE_CHECK_TRUE]) +m4trace:configure.ac:282: -1- _AM_SUBST_NOTMAKE([HAVE_COMPATIBLE_CHECK_FALSE]) +m4trace:configure.ac:294: -1- AC_SUBST([HAVE_NETWORK]) +m4trace:configure.ac:294: -1- AC_SUBST_TRACE([HAVE_NETWORK]) +m4trace:configure.ac:294: -1- m4_pattern_allow([^HAVE_NETWORK$]) +m4trace:configure.ac:295: -1- AM_CONDITIONAL([HAVE_NETWORK], [ test x$HAVE_NETWORK = x1 ]) +m4trace:configure.ac:295: -1- AC_SUBST([HAVE_NETWORK_TRUE]) +m4trace:configure.ac:295: -1- AC_SUBST_TRACE([HAVE_NETWORK_TRUE]) +m4trace:configure.ac:295: -1- m4_pattern_allow([^HAVE_NETWORK_TRUE$]) +m4trace:configure.ac:295: -1- AC_SUBST([HAVE_NETWORK_FALSE]) +m4trace:configure.ac:295: -1- AC_SUBST_TRACE([HAVE_NETWORK_FALSE]) +m4trace:configure.ac:295: -1- m4_pattern_allow([^HAVE_NETWORK_FALSE$]) +m4trace:configure.ac:295: -1- _AM_SUBST_NOTMAKE([HAVE_NETWORK_TRUE]) +m4trace:configure.ac:295: -1- _AM_SUBST_NOTMAKE([HAVE_NETWORK_FALSE]) +m4trace:configure.ac:308: -1- AC_SUBST([HAVE_DEVMODE]) +m4trace:configure.ac:308: -1- AC_SUBST_TRACE([HAVE_DEVMODE]) +m4trace:configure.ac:308: -1- m4_pattern_allow([^HAVE_DEVMODE$]) +m4trace:configure.ac:309: -1- AM_CONDITIONAL([HAVE_DEVMODE], [ test x$HAVE_DEVMODE = x1 ]) +m4trace:configure.ac:309: -1- AC_SUBST([HAVE_DEVMODE_TRUE]) +m4trace:configure.ac:309: -1- AC_SUBST_TRACE([HAVE_DEVMODE_TRUE]) +m4trace:configure.ac:309: -1- m4_pattern_allow([^HAVE_DEVMODE_TRUE$]) +m4trace:configure.ac:309: -1- AC_SUBST([HAVE_DEVMODE_FALSE]) +m4trace:configure.ac:309: -1- AC_SUBST_TRACE([HAVE_DEVMODE_FALSE]) +m4trace:configure.ac:309: -1- m4_pattern_allow([^HAVE_DEVMODE_FALSE$]) +m4trace:configure.ac:309: -1- _AM_SUBST_NOTMAKE([HAVE_DEVMODE_TRUE]) +m4trace:configure.ac:309: -1- _AM_SUBST_NOTMAKE([HAVE_DEVMODE_FALSE]) +m4trace:configure.ac:311: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DEVMODE]) +m4trace:configure.ac:311: -1- m4_pattern_allow([^HAVE_DEVMODE$]) +m4trace:configure.ac:311: -1- AH_OUTPUT([HAVE_DEVMODE], [/* Define to 1 if developer mode is enabled */ @%:@undef HAVE_DEVMODE]) -m4trace:configure.ac:214: -1- AC_SUBST([SPHINX]) -m4trace:configure.ac:214: -1- AC_SUBST_TRACE([SPHINX]) -m4trace:configure.ac:214: -1- m4_pattern_allow([^SPHINX$]) -m4trace:configure.ac:218: -1- AC_SUBST([PIP3]) -m4trace:configure.ac:218: -1- AC_SUBST_TRACE([PIP3]) -m4trace:configure.ac:218: -1- m4_pattern_allow([^PIP3$]) -m4trace:configure.ac:267: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SPHINX]) -m4trace:configure.ac:267: -1- m4_pattern_allow([^HAVE_SPHINX$]) -m4trace:configure.ac:267: -1- AH_OUTPUT([HAVE_SPHINX], [/* Define to 1 if you have sphinx (and all required packages) available */ +m4trace:configure.ac:314: -1- AC_SUBST([SPHINX]) +m4trace:configure.ac:314: -1- AC_SUBST_TRACE([SPHINX]) +m4trace:configure.ac:314: -1- m4_pattern_allow([^SPHINX$]) +m4trace:configure.ac:318: -1- AC_SUBST([PIP3]) +m4trace:configure.ac:318: -1- AC_SUBST_TRACE([PIP3]) +m4trace:configure.ac:318: -1- m4_pattern_allow([^PIP3$]) +m4trace:configure.ac:367: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SPHINX]) +m4trace:configure.ac:367: -1- m4_pattern_allow([^HAVE_SPHINX$]) +m4trace:configure.ac:367: -1- AH_OUTPUT([HAVE_SPHINX], [/* Define to 1 if you have sphinx (and all required packages) available */ @%:@undef HAVE_SPHINX]) -m4trace:configure.ac:268: -1- AM_CONDITIONAL([HAVE_SPHINX], [ test x$HAVE_SPHINX = x1 ]) -m4trace:configure.ac:268: -1- AC_SUBST([HAVE_SPHINX_TRUE]) -m4trace:configure.ac:268: -1- AC_SUBST_TRACE([HAVE_SPHINX_TRUE]) -m4trace:configure.ac:268: -1- m4_pattern_allow([^HAVE_SPHINX_TRUE$]) -m4trace:configure.ac:268: -1- AC_SUBST([HAVE_SPHINX_FALSE]) -m4trace:configure.ac:268: -1- AC_SUBST_TRACE([HAVE_SPHINX_FALSE]) -m4trace:configure.ac:268: -1- m4_pattern_allow([^HAVE_SPHINX_FALSE$]) -m4trace:configure.ac:268: -1- _AM_SUBST_NOTMAKE([HAVE_SPHINX_TRUE]) -m4trace:configure.ac:268: -1- _AM_SUBST_NOTMAKE([HAVE_SPHINX_FALSE]) -m4trace:configure.ac:271: -1- AC_SUBST([GIT]) -m4trace:configure.ac:271: -1- AC_SUBST_TRACE([GIT]) -m4trace:configure.ac:271: -1- m4_pattern_allow([^GIT$]) -m4trace:configure.ac:277: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GIT]) -m4trace:configure.ac:277: -1- m4_pattern_allow([^HAVE_GIT$]) -m4trace:configure.ac:277: -1- AH_OUTPUT([HAVE_GIT], [/* Define to 1 if you have git available */ +m4trace:configure.ac:368: -1- AM_CONDITIONAL([HAVE_SPHINX], [ test x$HAVE_SPHINX = x1 ]) +m4trace:configure.ac:368: -1- AC_SUBST([HAVE_SPHINX_TRUE]) +m4trace:configure.ac:368: -1- AC_SUBST_TRACE([HAVE_SPHINX_TRUE]) +m4trace:configure.ac:368: -1- m4_pattern_allow([^HAVE_SPHINX_TRUE$]) +m4trace:configure.ac:368: -1- AC_SUBST([HAVE_SPHINX_FALSE]) +m4trace:configure.ac:368: -1- AC_SUBST_TRACE([HAVE_SPHINX_FALSE]) +m4trace:configure.ac:368: -1- m4_pattern_allow([^HAVE_SPHINX_FALSE$]) +m4trace:configure.ac:368: -1- _AM_SUBST_NOTMAKE([HAVE_SPHINX_TRUE]) +m4trace:configure.ac:368: -1- _AM_SUBST_NOTMAKE([HAVE_SPHINX_FALSE]) +m4trace:configure.ac:371: -1- AC_SUBST([GIT]) +m4trace:configure.ac:371: -1- AC_SUBST_TRACE([GIT]) +m4trace:configure.ac:371: -1- m4_pattern_allow([^GIT$]) +m4trace:configure.ac:377: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GIT]) +m4trace:configure.ac:377: -1- m4_pattern_allow([^HAVE_GIT$]) +m4trace:configure.ac:377: -1- AH_OUTPUT([HAVE_GIT], [/* Define to 1 if you have git available */ @%:@undef HAVE_GIT]) -m4trace:configure.ac:278: -1- AM_CONDITIONAL([HAVE_GIT], [ test x$HAVE_GIT = x1 ]) -m4trace:configure.ac:278: -1- AC_SUBST([HAVE_GIT_TRUE]) -m4trace:configure.ac:278: -1- AC_SUBST_TRACE([HAVE_GIT_TRUE]) -m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_GIT_TRUE$]) -m4trace:configure.ac:278: -1- AC_SUBST([HAVE_GIT_FALSE]) -m4trace:configure.ac:278: -1- AC_SUBST_TRACE([HAVE_GIT_FALSE]) -m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_GIT_FALSE$]) -m4trace:configure.ac:278: -1- _AM_SUBST_NOTMAKE([HAVE_GIT_TRUE]) -m4trace:configure.ac:278: -1- _AM_SUBST_NOTMAKE([HAVE_GIT_FALSE]) -m4trace:configure.ac:280: -1- AC_SUBST([TESTSUITEURL]) -m4trace:configure.ac:280: -1- AC_SUBST_TRACE([TESTSUITEURL]) -m4trace:configure.ac:280: -1- m4_pattern_allow([^TESTSUITEURL$]) -m4trace:configure.ac:286: -1- AC_SUBST([TESTSUITECHECKOUT]) -m4trace:configure.ac:286: -1- AC_SUBST_TRACE([TESTSUITECHECKOUT]) -m4trace:configure.ac:286: -1- m4_pattern_allow([^TESTSUITECHECKOUT$]) -m4trace:configure.ac:292: -1- AC_SUBST([JSONTESTSUITEURL]) -m4trace:configure.ac:292: -1- AC_SUBST_TRACE([JSONTESTSUITEURL]) -m4trace:configure.ac:292: -1- m4_pattern_allow([^JSONTESTSUITEURL$]) -m4trace:configure.ac:298: -1- AC_SUBST([JSONTESTSUITECHECKOUT]) -m4trace:configure.ac:298: -1- AC_SUBST_TRACE([JSONTESTSUITECHECKOUT]) -m4trace:configure.ac:298: -1- m4_pattern_allow([^JSONTESTSUITECHECKOUT$]) -m4trace:configure.ac:305: -1- AC_SUBST([DOCKER]) -m4trace:configure.ac:305: -1- AC_SUBST_TRACE([DOCKER]) -m4trace:configure.ac:305: -1- m4_pattern_allow([^DOCKER$]) -m4trace:configure.ac:311: -1- AM_CONDITIONAL([HAVE_DOCKER], [ test x$HAVE_DOCKER = x1 ]) -m4trace:configure.ac:311: -1- AC_SUBST([HAVE_DOCKER_TRUE]) -m4trace:configure.ac:311: -1- AC_SUBST_TRACE([HAVE_DOCKER_TRUE]) -m4trace:configure.ac:311: -1- m4_pattern_allow([^HAVE_DOCKER_TRUE$]) -m4trace:configure.ac:311: -1- AC_SUBST([HAVE_DOCKER_FALSE]) -m4trace:configure.ac:311: -1- AC_SUBST_TRACE([HAVE_DOCKER_FALSE]) -m4trace:configure.ac:311: -1- m4_pattern_allow([^HAVE_DOCKER_FALSE$]) -m4trace:configure.ac:311: -1- _AM_SUBST_NOTMAKE([HAVE_DOCKER_TRUE]) -m4trace:configure.ac:311: -1- _AM_SUBST_NOTMAKE([HAVE_DOCKER_FALSE]) -m4trace:configure.ac:314: -1- AC_SUBST([JQ]) -m4trace:configure.ac:314: -1- AC_SUBST_TRACE([JQ]) -m4trace:configure.ac:314: -1- m4_pattern_allow([^JQ$]) -m4trace:configure.ac:320: -1- AC_DEFINE_TRACE_LITERAL([HAVE_JQ]) -m4trace:configure.ac:320: -1- m4_pattern_allow([^HAVE_JQ$]) -m4trace:configure.ac:320: -1- AH_OUTPUT([HAVE_JQ], [/* Define to 1 if you have jq available */ +m4trace:configure.ac:378: -1- AM_CONDITIONAL([HAVE_GIT], [ test x$HAVE_GIT = x1 ]) +m4trace:configure.ac:378: -1- AC_SUBST([HAVE_GIT_TRUE]) +m4trace:configure.ac:378: -1- AC_SUBST_TRACE([HAVE_GIT_TRUE]) +m4trace:configure.ac:378: -1- m4_pattern_allow([^HAVE_GIT_TRUE$]) +m4trace:configure.ac:378: -1- AC_SUBST([HAVE_GIT_FALSE]) +m4trace:configure.ac:378: -1- AC_SUBST_TRACE([HAVE_GIT_FALSE]) +m4trace:configure.ac:378: -1- m4_pattern_allow([^HAVE_GIT_FALSE$]) +m4trace:configure.ac:378: -1- _AM_SUBST_NOTMAKE([HAVE_GIT_TRUE]) +m4trace:configure.ac:378: -1- _AM_SUBST_NOTMAKE([HAVE_GIT_FALSE]) +m4trace:configure.ac:380: -1- AC_SUBST([TESTSUITEURL]) +m4trace:configure.ac:380: -1- AC_SUBST_TRACE([TESTSUITEURL]) +m4trace:configure.ac:380: -1- m4_pattern_allow([^TESTSUITEURL$]) +m4trace:configure.ac:386: -1- AC_SUBST([TESTSUITECHECKOUT]) +m4trace:configure.ac:386: -1- AC_SUBST_TRACE([TESTSUITECHECKOUT]) +m4trace:configure.ac:386: -1- m4_pattern_allow([^TESTSUITECHECKOUT$]) +m4trace:configure.ac:392: -1- AC_SUBST([JSONTESTSUITEURL]) +m4trace:configure.ac:392: -1- AC_SUBST_TRACE([JSONTESTSUITEURL]) +m4trace:configure.ac:392: -1- m4_pattern_allow([^JSONTESTSUITEURL$]) +m4trace:configure.ac:398: -1- AC_SUBST([JSONTESTSUITECHECKOUT]) +m4trace:configure.ac:398: -1- AC_SUBST_TRACE([JSONTESTSUITECHECKOUT]) +m4trace:configure.ac:398: -1- m4_pattern_allow([^JSONTESTSUITECHECKOUT$]) +m4trace:configure.ac:405: -1- AC_SUBST([DOCKER]) +m4trace:configure.ac:405: -1- AC_SUBST_TRACE([DOCKER]) +m4trace:configure.ac:405: -1- m4_pattern_allow([^DOCKER$]) +m4trace:configure.ac:411: -1- AM_CONDITIONAL([HAVE_DOCKER], [ test x$HAVE_DOCKER = x1 ]) +m4trace:configure.ac:411: -1- AC_SUBST([HAVE_DOCKER_TRUE]) +m4trace:configure.ac:411: -1- AC_SUBST_TRACE([HAVE_DOCKER_TRUE]) +m4trace:configure.ac:411: -1- m4_pattern_allow([^HAVE_DOCKER_TRUE$]) +m4trace:configure.ac:411: -1- AC_SUBST([HAVE_DOCKER_FALSE]) +m4trace:configure.ac:411: -1- AC_SUBST_TRACE([HAVE_DOCKER_FALSE]) +m4trace:configure.ac:411: -1- m4_pattern_allow([^HAVE_DOCKER_FALSE$]) +m4trace:configure.ac:411: -1- _AM_SUBST_NOTMAKE([HAVE_DOCKER_TRUE]) +m4trace:configure.ac:411: -1- _AM_SUBST_NOTMAKE([HAVE_DOCKER_FALSE]) +m4trace:configure.ac:414: -1- AC_SUBST([JQ]) +m4trace:configure.ac:414: -1- AC_SUBST_TRACE([JQ]) +m4trace:configure.ac:414: -1- m4_pattern_allow([^JQ$]) +m4trace:configure.ac:420: -1- AC_DEFINE_TRACE_LITERAL([HAVE_JQ]) +m4trace:configure.ac:420: -1- m4_pattern_allow([^HAVE_JQ$]) +m4trace:configure.ac:420: -1- AH_OUTPUT([HAVE_JQ], [/* Define to 1 if you have jq available */ @%:@undef HAVE_JQ]) -m4trace:configure.ac:321: -1- AM_CONDITIONAL([HAVE_JQ], [ test x$HAVE_JQ = x1 ]) -m4trace:configure.ac:321: -1- AC_SUBST([HAVE_JQ_TRUE]) -m4trace:configure.ac:321: -1- AC_SUBST_TRACE([HAVE_JQ_TRUE]) -m4trace:configure.ac:321: -1- m4_pattern_allow([^HAVE_JQ_TRUE$]) -m4trace:configure.ac:321: -1- AC_SUBST([HAVE_JQ_FALSE]) -m4trace:configure.ac:321: -1- AC_SUBST_TRACE([HAVE_JQ_FALSE]) -m4trace:configure.ac:321: -1- m4_pattern_allow([^HAVE_JQ_FALSE$]) -m4trace:configure.ac:321: -1- _AM_SUBST_NOTMAKE([HAVE_JQ_TRUE]) -m4trace:configure.ac:321: -1- _AM_SUBST_NOTMAKE([HAVE_JQ_FALSE]) -m4trace:configure.ac:322: -1- AC_SUBST([JQ], ["$JQ"]) -m4trace:configure.ac:322: -1- AC_SUBST_TRACE([JQ]) -m4trace:configure.ac:322: -1- m4_pattern_allow([^JQ$]) -m4trace:configure.ac:326: -1- AC_SUBST([shavedir]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([shavedir]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^shavedir$]) -m4trace:configure.ac:326: -1- AC_SUBST([MAKEFLAGS], [-s]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([MAKEFLAGS]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^MAKEFLAGS$]) -m4trace:configure.ac:326: -1- AC_SUBST([AM_MAKEFLAGS], ['`test -z $V && echo -s`']) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([AM_MAKEFLAGS]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^AM_MAKEFLAGS$]) -m4trace:configure.ac:326: -1- AC_SUBST([SED]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([SED]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^SED$]) -m4trace:configure.ac:326: -1- AC_SUBST([LIBTOOL]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([LIBTOOL]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^LIBTOOL$]) -m4trace:configure.ac:326: -1- AC_SUBST([CCAS]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([CCAS]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^CCAS$]) -m4trace:configure.ac:326: -1- AC_SUBST([CC]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([CC]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:326: -1- AC_SUBST([CXX]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([CXX]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^CXX$]) -m4trace:configure.ac:326: -1- AC_SUBST([FC]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([FC]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^FC$]) -m4trace:configure.ac:326: -1- AC_SUBST([F77]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([F77]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^F77$]) -m4trace:configure.ac:326: -1- AC_SUBST([OBJC]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([OBJC]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^OBJC$]) -m4trace:configure.ac:326: -1- AC_SUBST([MCS]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([MCS]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^MCS$]) -m4trace:configure.ac:326: -1- AC_SUBST([LEX]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([LEX]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^LEX$]) -m4trace:configure.ac:326: -1- AC_SUBST([YACC]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([YACC]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^YACC$]) -m4trace:configure.ac:326: -1- AC_SUBST([V]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([V]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^V$]) -m4trace:configure.ac:326: -1- AC_SUBST([Q]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([Q]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^Q$]) -m4trace:configure.ac:328: -1- AC_CONFIG_FILES([ +m4trace:configure.ac:421: -1- AM_CONDITIONAL([HAVE_JQ], [ test x$HAVE_JQ = x1 ]) +m4trace:configure.ac:421: -1- AC_SUBST([HAVE_JQ_TRUE]) +m4trace:configure.ac:421: -1- AC_SUBST_TRACE([HAVE_JQ_TRUE]) +m4trace:configure.ac:421: -1- m4_pattern_allow([^HAVE_JQ_TRUE$]) +m4trace:configure.ac:421: -1- AC_SUBST([HAVE_JQ_FALSE]) +m4trace:configure.ac:421: -1- AC_SUBST_TRACE([HAVE_JQ_FALSE]) +m4trace:configure.ac:421: -1- m4_pattern_allow([^HAVE_JQ_FALSE$]) +m4trace:configure.ac:421: -1- _AM_SUBST_NOTMAKE([HAVE_JQ_TRUE]) +m4trace:configure.ac:421: -1- _AM_SUBST_NOTMAKE([HAVE_JQ_FALSE]) +m4trace:configure.ac:422: -1- AC_SUBST([JQ], ["$JQ"]) +m4trace:configure.ac:422: -1- AC_SUBST_TRACE([JQ]) +m4trace:configure.ac:422: -1- m4_pattern_allow([^JQ$]) +m4trace:configure.ac:459: -1- AC_SUBST([LLVM_CONFIG]) +m4trace:configure.ac:459: -1- AC_SUBST_TRACE([LLVM_CONFIG]) +m4trace:configure.ac:459: -1- m4_pattern_allow([^LLVM_CONFIG$]) +m4trace:configure.ac:498: -1- AC_SUBST([HAVE_LIBCLANG]) +m4trace:configure.ac:498: -1- AC_SUBST_TRACE([HAVE_LIBCLANG]) +m4trace:configure.ac:498: -1- m4_pattern_allow([^HAVE_LIBCLANG$]) +m4trace:configure.ac:499: -1- AC_SUBST([LIBCLANG_CFLAGS]) +m4trace:configure.ac:499: -1- AC_SUBST_TRACE([LIBCLANG_CFLAGS]) +m4trace:configure.ac:499: -1- m4_pattern_allow([^LIBCLANG_CFLAGS$]) +m4trace:configure.ac:500: -1- AC_SUBST([LIBCLANG_CPPFLAGS]) +m4trace:configure.ac:500: -1- AC_SUBST_TRACE([LIBCLANG_CPPFLAGS]) +m4trace:configure.ac:500: -1- m4_pattern_allow([^LIBCLANG_CPPFLAGS$]) +m4trace:configure.ac:501: -1- AC_SUBST([LIBCLANG_LDFLAGS]) +m4trace:configure.ac:501: -1- AC_SUBST_TRACE([LIBCLANG_LDFLAGS]) +m4trace:configure.ac:501: -1- m4_pattern_allow([^LIBCLANG_LDFLAGS$]) +m4trace:configure.ac:502: -1- AC_SUBST([LIBCLANG_LIBS]) +m4trace:configure.ac:502: -1- AC_SUBST_TRACE([LIBCLANG_LIBS]) +m4trace:configure.ac:502: -1- m4_pattern_allow([^LIBCLANG_LIBS$]) +m4trace:configure.ac:503: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBCLANG]) +m4trace:configure.ac:503: -1- m4_pattern_allow([^HAVE_LIBCLANG$]) +m4trace:configure.ac:503: -1- AH_OUTPUT([HAVE_LIBCLANG], [/* Define to 1 if libclang is available */ +@%:@undef HAVE_LIBCLANG]) +m4trace:configure.ac:504: -1- AM_CONDITIONAL([HAVE_LIBCLANG], [ test x$HAVE_LIBCLANG = x1 ]) +m4trace:configure.ac:504: -1- AC_SUBST([HAVE_LIBCLANG_TRUE]) +m4trace:configure.ac:504: -1- AC_SUBST_TRACE([HAVE_LIBCLANG_TRUE]) +m4trace:configure.ac:504: -1- m4_pattern_allow([^HAVE_LIBCLANG_TRUE$]) +m4trace:configure.ac:504: -1- AC_SUBST([HAVE_LIBCLANG_FALSE]) +m4trace:configure.ac:504: -1- AC_SUBST_TRACE([HAVE_LIBCLANG_FALSE]) +m4trace:configure.ac:504: -1- m4_pattern_allow([^HAVE_LIBCLANG_FALSE$]) +m4trace:configure.ac:504: -1- _AM_SUBST_NOTMAKE([HAVE_LIBCLANG_TRUE]) +m4trace:configure.ac:504: -1- _AM_SUBST_NOTMAKE([HAVE_LIBCLANG_FALSE]) +m4trace:configure.ac:525: -1- AC_SUBST([shavedir]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([shavedir]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^shavedir$]) +m4trace:configure.ac:525: -1- AC_SUBST([MAKEFLAGS], [-s]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([MAKEFLAGS]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^MAKEFLAGS$]) +m4trace:configure.ac:525: -1- AC_SUBST([AM_MAKEFLAGS], ['`test -z $V && echo -s`']) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([AM_MAKEFLAGS]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^AM_MAKEFLAGS$]) +m4trace:configure.ac:525: -1- AC_SUBST([SED]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([SED]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^SED$]) +m4trace:configure.ac:525: -1- AC_SUBST([LIBTOOL]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([LIBTOOL]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^LIBTOOL$]) +m4trace:configure.ac:525: -1- AC_SUBST([CCAS]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([CCAS]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^CCAS$]) +m4trace:configure.ac:525: -1- AC_SUBST([CC]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:525: -1- AC_SUBST([CXX]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([CXX]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:525: -1- AC_SUBST([FC]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([FC]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^FC$]) +m4trace:configure.ac:525: -1- AC_SUBST([F77]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([F77]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^F77$]) +m4trace:configure.ac:525: -1- AC_SUBST([OBJC]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([OBJC]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^OBJC$]) +m4trace:configure.ac:525: -1- AC_SUBST([MCS]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([MCS]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^MCS$]) +m4trace:configure.ac:525: -1- AC_SUBST([LEX]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([LEX]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^LEX$]) +m4trace:configure.ac:525: -1- AC_SUBST([YACC]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([YACC]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^YACC$]) +m4trace:configure.ac:525: -1- AC_SUBST([V]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([V]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^V$]) +m4trace:configure.ac:525: -1- AC_SUBST([Q]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([Q]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^Q$]) +m4trace:configure.ac:527: -1- AC_CONFIG_FILES([ build-aux/shave build-aux/shave-libtool Makefile @@ -1156,31 +1375,31 @@ m4trace:configure.ac:328: -1- AC_CONFIG_FILES([ doc/Makefile libfyaml.pc ]) -m4trace:configure.ac:338: -1- AC_REQUIRE_AUX_FILE([tap-driver.sh]) -m4trace:configure.ac:340: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) -m4trace:configure.ac:340: -1- m4_pattern_allow([^LIB@&t@OBJS$]) -m4trace:configure.ac:340: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([LTLIBOBJS]) -m4trace:configure.ac:340: -1- m4_pattern_allow([^LTLIBOBJS$]) -m4trace:configure.ac:340: -1- AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"]) -m4trace:configure.ac:340: -1- AC_SUBST([am__EXEEXT_TRUE]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([am__EXEEXT_TRUE]) -m4trace:configure.ac:340: -1- m4_pattern_allow([^am__EXEEXT_TRUE$]) -m4trace:configure.ac:340: -1- AC_SUBST([am__EXEEXT_FALSE]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([am__EXEEXT_FALSE]) -m4trace:configure.ac:340: -1- m4_pattern_allow([^am__EXEEXT_FALSE$]) -m4trace:configure.ac:340: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_TRUE]) -m4trace:configure.ac:340: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_FALSE]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([top_builddir]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([top_build_prefix]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([srcdir]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([abs_srcdir]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([top_srcdir]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([abs_top_srcdir]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([builddir]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([abs_builddir]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([abs_top_builddir]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([INSTALL]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([MKDIR_P]) -m4trace:configure.ac:340: -1- AC_REQUIRE_AUX_FILE([ltmain.sh]) +m4trace:configure.ac:537: -1- AC_REQUIRE_AUX_FILE([tap-driver.sh]) +m4trace:configure.ac:539: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) +m4trace:configure.ac:539: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:539: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([LTLIBOBJS]) +m4trace:configure.ac:539: -1- m4_pattern_allow([^LTLIBOBJS$]) +m4trace:configure.ac:539: -1- AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"]) +m4trace:configure.ac:539: -1- AC_SUBST([am__EXEEXT_TRUE]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([am__EXEEXT_TRUE]) +m4trace:configure.ac:539: -1- m4_pattern_allow([^am__EXEEXT_TRUE$]) +m4trace:configure.ac:539: -1- AC_SUBST([am__EXEEXT_FALSE]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([am__EXEEXT_FALSE]) +m4trace:configure.ac:539: -1- m4_pattern_allow([^am__EXEEXT_FALSE$]) +m4trace:configure.ac:539: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_TRUE]) +m4trace:configure.ac:539: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_FALSE]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([top_builddir]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([top_build_prefix]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([srcdir]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([abs_srcdir]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([top_srcdir]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([abs_top_srcdir]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([builddir]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([abs_builddir]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([abs_top_builddir]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([INSTALL]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([MKDIR_P]) +m4trace:configure.ac:539: -1- AC_REQUIRE_AUX_FILE([ltmain.sh]) diff --git a/Sources/Cfyaml/autom4te.cache/traces.3 b/Sources/Cfyaml/autom4te.cache/traces.3 index aa8deba8f..475376950 100644 --- a/Sources/Cfyaml/autom4te.cache/traces.3 +++ b/Sources/Cfyaml/autom4te.cache/traces.3 @@ -1,19 +1,19 @@ -m4trace:aclocal.m4:1963: -1- AC_SUBST([am__quote]) -m4trace:aclocal.m4:1963: -1- AC_SUBST_TRACE([am__quote]) -m4trace:aclocal.m4:1963: -1- m4_pattern_allow([^am__quote$]) -m4trace:aclocal.m4:2415: -1- m4_include([m4/ax_check_enable_debug.m4]) -m4trace:aclocal.m4:2416: -1- m4_include([m4/ax_check_flag.m4]) -m4trace:aclocal.m4:2417: -1- m4_include([m4/ax_pthread.m4]) -m4trace:aclocal.m4:2418: -1- m4_include([m4/libtool.m4]) -m4trace:aclocal.m4:2419: -1- m4_include([m4/ltoptions.m4]) -m4trace:aclocal.m4:2420: -1- m4_include([m4/ltsugar.m4]) -m4trace:aclocal.m4:2421: -1- m4_include([m4/ltversion.m4]) -m4trace:aclocal.m4:2422: -1- m4_include([m4/lt~obsolete.m4]) -m4trace:aclocal.m4:2423: -1- m4_include([m4/shave.m4]) -m4trace:configure.ac:3: -1- AC_INIT([libfyaml], [0.7.12], [pantelis.antoniou@konsulko.com]) +m4trace:aclocal.m4:1109: -1- AC_SUBST([am__quote]) +m4trace:aclocal.m4:1109: -1- AC_SUBST_TRACE([am__quote]) +m4trace:aclocal.m4:1109: -1- m4_pattern_allow([^am__quote$]) +m4trace:aclocal.m4:1561: -1- m4_include([m4/ax_check_enable_debug.m4]) +m4trace:aclocal.m4:1562: -1- m4_include([m4/ax_check_flag.m4]) +m4trace:aclocal.m4:1563: -1- m4_include([m4/ax_pthread.m4]) +m4trace:aclocal.m4:1564: -1- m4_include([m4/libtool.m4]) +m4trace:aclocal.m4:1565: -1- m4_include([m4/ltoptions.m4]) +m4trace:aclocal.m4:1566: -1- m4_include([m4/ltsugar.m4]) +m4trace:aclocal.m4:1567: -1- m4_include([m4/ltversion.m4]) +m4trace:aclocal.m4:1568: -1- m4_include([m4/lt~obsolete.m4]) +m4trace:aclocal.m4:1569: -1- m4_include([m4/shave.m4]) +m4trace:configure.ac:3: -1- AC_INIT([libfyaml], [0.9], [pantelis.antoniou@konsulko.com]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?A[CHUM]_]) m4trace:configure.ac:3: -1- m4_pattern_forbid([_AC_]) -m4trace:configure.ac:3: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS']) +m4trace:configure.ac:3: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section 'AC_LIBOBJ vs LIBOBJS']) m4trace:configure.ac:3: -1- m4_pattern_allow([^AS_FLAGS$]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?m4_]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^dnl$]) @@ -161,240 +161,289 @@ m4trace:configure.ac:3: -1- m4_pattern_allow([^host_alias$]) m4trace:configure.ac:3: -1- AC_SUBST([target_alias]) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([target_alias]) m4trace:configure.ac:3: -1- m4_pattern_allow([^target_alias$]) -m4trace:configure.ac:8: -1- _m4_warn([obsolete], [The macro `AC_CONFIG_HEADER' is obsolete. -You should run autoupdate.], [./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from... -configure.ac:8: the top level]) -m4trace:configure.ac:8: -1- AC_CONFIG_HEADERS([config.h]) -m4trace:configure.ac:9: -1- AC_CONFIG_MACRO_DIR_TRACE([m4]) -m4trace:configure.ac:10: -1- AC_CONFIG_AUX_DIR([build-aux]) -m4trace:configure.ac:11: -1- AM_INIT_AUTOMAKE([foreign 1.8.5 -Wall subdir-objects ]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$]) -m4trace:configure.ac:11: -1- AM_AUTOMAKE_VERSION([1.16.5]) -m4trace:configure.ac:11: -1- AC_REQUIRE_AUX_FILE([install-sh]) -m4trace:configure.ac:11: -1- AC_SUBST([INSTALL_PROGRAM]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([INSTALL_PROGRAM]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) -m4trace:configure.ac:11: -1- AC_SUBST([INSTALL_SCRIPT]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([INSTALL_SCRIPT]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) -m4trace:configure.ac:11: -1- AC_SUBST([INSTALL_DATA]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([INSTALL_DATA]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^INSTALL_DATA$]) -m4trace:configure.ac:11: -1- AC_SUBST([am__isrc], [' -I$(srcdir)']) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([am__isrc]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^am__isrc$]) -m4trace:configure.ac:11: -1- _AM_SUBST_NOTMAKE([am__isrc]) -m4trace:configure.ac:11: -1- AC_SUBST([CYGPATH_W]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([CYGPATH_W]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^CYGPATH_W$]) -m4trace:configure.ac:11: -1- AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME']) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([PACKAGE]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^PACKAGE$]) -m4trace:configure.ac:11: -1- AC_SUBST([VERSION], ['AC_PACKAGE_VERSION']) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([VERSION]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^VERSION$]) -m4trace:configure.ac:11: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^PACKAGE$]) -m4trace:configure.ac:11: -1- AH_OUTPUT([PACKAGE], [/* Name of package */ +m4trace:configure.ac:7: -1- AC_CONFIG_AUX_DIR([build-aux]) +m4trace:configure.ac:9: -1- AC_SUBST([M4]) +m4trace:configure.ac:9: -1- AC_SUBST_TRACE([M4]) +m4trace:configure.ac:9: -1- m4_pattern_allow([^M4$]) +m4trace:configure.ac:14: -1- AC_SUBST([ACLOCAL_AMFLAGS], ["-I m4"]) +m4trace:configure.ac:14: -1- AC_SUBST_TRACE([ACLOCAL_AMFLAGS]) +m4trace:configure.ac:14: -1- m4_pattern_allow([^ACLOCAL_AMFLAGS$]) +m4trace:configure.ac:16: -1- AC_CANONICAL_TARGET +m4trace:configure.ac:16: -1- AC_CANONICAL_HOST +m4trace:configure.ac:16: -1- AC_CANONICAL_BUILD +m4trace:configure.ac:16: -1- AC_REQUIRE_AUX_FILE([config.sub]) +m4trace:configure.ac:16: -1- AC_REQUIRE_AUX_FILE([config.guess]) +m4trace:configure.ac:16: -1- AC_SUBST([build], [$ac_cv_build]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([build]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^build$]) +m4trace:configure.ac:16: -1- AC_SUBST([build_cpu], [$[1]]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([build_cpu]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^build_cpu$]) +m4trace:configure.ac:16: -1- AC_SUBST([build_vendor], [$[2]]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([build_vendor]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^build_vendor$]) +m4trace:configure.ac:16: -1- AC_SUBST([build_os]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([build_os]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^build_os$]) +m4trace:configure.ac:16: -1- AC_SUBST([host], [$ac_cv_host]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([host]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^host$]) +m4trace:configure.ac:16: -1- AC_SUBST([host_cpu], [$[1]]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([host_cpu]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^host_cpu$]) +m4trace:configure.ac:16: -1- AC_SUBST([host_vendor], [$[2]]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([host_vendor]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^host_vendor$]) +m4trace:configure.ac:16: -1- AC_SUBST([host_os]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([host_os]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^host_os$]) +m4trace:configure.ac:16: -1- AC_SUBST([target], [$ac_cv_target]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([target]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^target$]) +m4trace:configure.ac:16: -1- AC_SUBST([target_cpu], [$[1]]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([target_cpu]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^target_cpu$]) +m4trace:configure.ac:16: -1- AC_SUBST([target_vendor], [$[2]]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([target_vendor]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^target_vendor$]) +m4trace:configure.ac:16: -1- AC_SUBST([target_os]) +m4trace:configure.ac:16: -1- AC_SUBST_TRACE([target_os]) +m4trace:configure.ac:16: -1- m4_pattern_allow([^target_os$]) +m4trace:configure.ac:19: -1- AC_CONFIG_HEADERS([config.h]) +m4trace:configure.ac:20: -1- AC_CONFIG_MACRO_DIR_TRACE([m4]) +m4trace:configure.ac:21: -1- AM_INIT_AUTOMAKE([foreign 1.8.5 subdir-objects -Wno-portability]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$]) +m4trace:configure.ac:21: -1- AM_AUTOMAKE_VERSION([1.16.5]) +m4trace:configure.ac:21: -1- AC_REQUIRE_AUX_FILE([install-sh]) +m4trace:configure.ac:21: -1- AC_SUBST([INSTALL_PROGRAM]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INSTALL_PROGRAM]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) +m4trace:configure.ac:21: -1- AC_SUBST([INSTALL_SCRIPT]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INSTALL_SCRIPT]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) +m4trace:configure.ac:21: -1- AC_SUBST([INSTALL_DATA]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INSTALL_DATA]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INSTALL_DATA$]) +m4trace:configure.ac:21: -1- AC_SUBST([am__isrc], [' -I$(srcdir)']) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([am__isrc]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^am__isrc$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([am__isrc]) +m4trace:configure.ac:21: -1- AC_SUBST([CYGPATH_W]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([CYGPATH_W]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^CYGPATH_W$]) +m4trace:configure.ac:21: -1- AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME']) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([PACKAGE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:21: -1- AC_SUBST([VERSION], ['AC_PACKAGE_VERSION']) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([VERSION]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:21: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^PACKAGE$]) +m4trace:configure.ac:21: -1- AH_OUTPUT([PACKAGE], [/* Name of package */ @%:@undef PACKAGE]) -m4trace:configure.ac:11: -1- AC_DEFINE_TRACE_LITERAL([VERSION]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^VERSION$]) -m4trace:configure.ac:11: -1- AH_OUTPUT([VERSION], [/* Version number of package */ +m4trace:configure.ac:21: -1- AC_DEFINE_TRACE_LITERAL([VERSION]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^VERSION$]) +m4trace:configure.ac:21: -1- AH_OUTPUT([VERSION], [/* Version number of package */ @%:@undef VERSION]) -m4trace:configure.ac:11: -1- AC_REQUIRE_AUX_FILE([missing]) -m4trace:configure.ac:11: -1- AC_SUBST([ACLOCAL]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([ACLOCAL]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^ACLOCAL$]) -m4trace:configure.ac:11: -1- AC_SUBST([AUTOCONF]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([AUTOCONF]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AUTOCONF$]) -m4trace:configure.ac:11: -1- AC_SUBST([AUTOMAKE]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([AUTOMAKE]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AUTOMAKE$]) -m4trace:configure.ac:11: -1- AC_SUBST([AUTOHEADER]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([AUTOHEADER]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AUTOHEADER$]) -m4trace:configure.ac:11: -1- AC_SUBST([MAKEINFO]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([MAKEINFO]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^MAKEINFO$]) -m4trace:configure.ac:11: -1- AC_SUBST([install_sh]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([install_sh]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^install_sh$]) -m4trace:configure.ac:11: -1- AC_SUBST([STRIP]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([STRIP]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^STRIP$]) -m4trace:configure.ac:11: -1- AC_SUBST([INSTALL_STRIP_PROGRAM]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([INSTALL_STRIP_PROGRAM]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$]) -m4trace:configure.ac:11: -1- AC_REQUIRE_AUX_FILE([install-sh]) -m4trace:configure.ac:11: -1- AC_SUBST([MKDIR_P]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([MKDIR_P]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^MKDIR_P$]) -m4trace:configure.ac:11: -1- AC_SUBST([mkdir_p], ['$(MKDIR_P)']) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([mkdir_p]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^mkdir_p$]) -m4trace:configure.ac:11: -1- AC_SUBST([AWK]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([AWK]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AWK$]) -m4trace:configure.ac:11: -1- AC_SUBST([SET_MAKE]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([SET_MAKE]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^SET_MAKE$]) -m4trace:configure.ac:11: -1- AC_SUBST([am__leading_dot]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([am__leading_dot]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^am__leading_dot$]) -m4trace:configure.ac:11: -1- AC_SUBST([AMTAR], ['$${TAR-tar}']) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([AMTAR]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AMTAR$]) -m4trace:configure.ac:11: -1- AC_SUBST([am__tar]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([am__tar]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^am__tar$]) -m4trace:configure.ac:11: -1- AC_SUBST([am__untar]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([am__untar]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^am__untar$]) -m4trace:configure.ac:11: -1- AC_SUBST([CTAGS]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([CTAGS]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^CTAGS$]) -m4trace:configure.ac:11: -1- AC_SUBST([ETAGS]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([ETAGS]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^ETAGS$]) -m4trace:configure.ac:11: -1- AC_SUBST([CSCOPE]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([CSCOPE]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^CSCOPE$]) -m4trace:configure.ac:11: -1- AM_SILENT_RULES -m4trace:configure.ac:11: -1- AC_SUBST([AM_V]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([AM_V]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AM_V$]) -m4trace:configure.ac:11: -1- _AM_SUBST_NOTMAKE([AM_V]) -m4trace:configure.ac:11: -1- AC_SUBST([AM_DEFAULT_V]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([AM_DEFAULT_V]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AM_DEFAULT_V$]) -m4trace:configure.ac:11: -1- _AM_SUBST_NOTMAKE([AM_DEFAULT_V]) -m4trace:configure.ac:11: -1- AC_SUBST([AM_DEFAULT_VERBOSITY]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([AM_DEFAULT_VERBOSITY]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AM_DEFAULT_VERBOSITY$]) -m4trace:configure.ac:11: -1- AC_SUBST([AM_BACKSLASH]) -m4trace:configure.ac:11: -1- AC_SUBST_TRACE([AM_BACKSLASH]) -m4trace:configure.ac:11: -1- m4_pattern_allow([^AM_BACKSLASH$]) -m4trace:configure.ac:11: -1- _AM_SUBST_NOTMAKE([AM_BACKSLASH]) -m4trace:configure.ac:13: -1- m4_pattern_allow([^(AM_EXTRA_RECURSIVE_TARGETS|AM_PROG_AR)$]) -m4trace:configure.ac:19: -1- AM_EXTRA_RECURSIVE_TARGETS([doc-help doc-html doc-latexpdf doc-man doc-clean doc-markdown]) -m4trace:configure.ac:28: -1- AC_SUBST([MAJOR], [`echo $VERSION | cut -d. -f1 | cut -d- -f1`]) -m4trace:configure.ac:28: -1- AC_SUBST_TRACE([MAJOR]) -m4trace:configure.ac:28: -1- m4_pattern_allow([^MAJOR$]) -m4trace:configure.ac:29: -1- AC_SUBST([MINOR], [`echo $VERSION | cut -d. -f2 | cut -d- -f1`]) -m4trace:configure.ac:29: -1- AC_SUBST_TRACE([MINOR]) -m4trace:configure.ac:29: -1- m4_pattern_allow([^MINOR$]) -m4trace:configure.ac:30: -1- AC_SUBST([PATCH], [`echo $VERSION | cut -d. -f3- | cut -d- -f1`]) -m4trace:configure.ac:30: -1- AC_SUBST_TRACE([PATCH]) -m4trace:configure.ac:30: -1- m4_pattern_allow([^PATCH$]) -m4trace:configure.ac:31: -1- AC_SUBST([EXTRA], [`echo $VERSION | cut -d- -f2- -s`]) -m4trace:configure.ac:31: -1- AC_SUBST_TRACE([EXTRA]) -m4trace:configure.ac:31: -1- m4_pattern_allow([^EXTRA$]) -m4trace:configure.ac:67: -3- m4_include([.libtool-version]) -m4trace:configure.ac:68: -1- AC_SUBST([LIBTOOL_VERSION], [1:2:0]) -m4trace:configure.ac:68: -1- AC_SUBST_TRACE([LIBTOOL_VERSION]) -m4trace:configure.ac:68: -1- m4_pattern_allow([^LIBTOOL_VERSION$]) -m4trace:configure.ac:71: -1- AC_DEFINE_TRACE_LITERAL([NDEBUG]) -m4trace:configure.ac:71: -1- m4_pattern_allow([^NDEBUG$]) -m4trace:configure.ac:71: -1- AH_OUTPUT([NDEBUG], [/* Define if debugging is disabled */ +m4trace:configure.ac:21: -1- AC_REQUIRE_AUX_FILE([missing]) +m4trace:configure.ac:21: -1- AC_SUBST([ACLOCAL]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([ACLOCAL]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^ACLOCAL$]) +m4trace:configure.ac:21: -1- AC_SUBST([AUTOCONF]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([AUTOCONF]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AUTOCONF$]) +m4trace:configure.ac:21: -1- AC_SUBST([AUTOMAKE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([AUTOMAKE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AUTOMAKE$]) +m4trace:configure.ac:21: -1- AC_SUBST([AUTOHEADER]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([AUTOHEADER]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AUTOHEADER$]) +m4trace:configure.ac:21: -1- AC_SUBST([MAKEINFO]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([MAKEINFO]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^MAKEINFO$]) +m4trace:configure.ac:21: -1- AC_SUBST([install_sh]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([install_sh]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^install_sh$]) +m4trace:configure.ac:21: -1- AC_SUBST([STRIP]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([STRIP]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^STRIP$]) +m4trace:configure.ac:21: -1- AC_SUBST([INSTALL_STRIP_PROGRAM]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([INSTALL_STRIP_PROGRAM]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$]) +m4trace:configure.ac:21: -1- AC_REQUIRE_AUX_FILE([install-sh]) +m4trace:configure.ac:21: -1- AC_SUBST([MKDIR_P]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([MKDIR_P]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^MKDIR_P$]) +m4trace:configure.ac:21: -1- AC_SUBST([mkdir_p], ['$(MKDIR_P)']) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([mkdir_p]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^mkdir_p$]) +m4trace:configure.ac:21: -1- AC_SUBST([AWK]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([AWK]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AWK$]) +m4trace:configure.ac:21: -1- AC_SUBST([SET_MAKE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([SET_MAKE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^SET_MAKE$]) +m4trace:configure.ac:21: -1- AC_SUBST([am__leading_dot]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([am__leading_dot]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^am__leading_dot$]) +m4trace:configure.ac:21: -1- AC_SUBST([AMTAR], ['$${TAR-tar}']) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([AMTAR]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AMTAR$]) +m4trace:configure.ac:21: -1- AC_SUBST([am__tar]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([am__tar]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^am__tar$]) +m4trace:configure.ac:21: -1- AC_SUBST([am__untar]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([am__untar]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^am__untar$]) +m4trace:configure.ac:21: -1- AC_SUBST([CTAGS]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([CTAGS]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^CTAGS$]) +m4trace:configure.ac:21: -1- AC_SUBST([ETAGS]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([ETAGS]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^ETAGS$]) +m4trace:configure.ac:21: -1- AC_SUBST([CSCOPE]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([CSCOPE]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^CSCOPE$]) +m4trace:configure.ac:21: -1- AM_SILENT_RULES +m4trace:configure.ac:21: -1- AC_SUBST([AM_V]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([AM_V]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AM_V$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([AM_V]) +m4trace:configure.ac:21: -1- AC_SUBST([AM_DEFAULT_V]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([AM_DEFAULT_V]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AM_DEFAULT_V$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([AM_DEFAULT_V]) +m4trace:configure.ac:21: -1- AC_SUBST([AM_DEFAULT_VERBOSITY]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([AM_DEFAULT_VERBOSITY]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AM_DEFAULT_VERBOSITY$]) +m4trace:configure.ac:21: -1- AC_SUBST([AM_BACKSLASH]) +m4trace:configure.ac:21: -1- AC_SUBST_TRACE([AM_BACKSLASH]) +m4trace:configure.ac:21: -1- m4_pattern_allow([^AM_BACKSLASH$]) +m4trace:configure.ac:21: -1- _AM_SUBST_NOTMAKE([AM_BACKSLASH]) +m4trace:configure.ac:23: -1- m4_pattern_allow([^(AM_EXTRA_RECURSIVE_TARGETS|AM_PROG_AR)$]) +m4trace:configure.ac:29: -1- AM_EXTRA_RECURSIVE_TARGETS([doc-help doc-html doc-latexpdf doc-man doc-clean doc-markdown]) +m4trace:configure.ac:38: -1- AC_SUBST([MAJOR], [`echo $VERSION | cut -d. -f1 | cut -d- -f1`]) +m4trace:configure.ac:38: -1- AC_SUBST_TRACE([MAJOR]) +m4trace:configure.ac:38: -1- m4_pattern_allow([^MAJOR$]) +m4trace:configure.ac:39: -1- AC_SUBST([MINOR], [`echo $VERSION | cut -d. -f2 | cut -d- -f1`]) +m4trace:configure.ac:39: -1- AC_SUBST_TRACE([MINOR]) +m4trace:configure.ac:39: -1- m4_pattern_allow([^MINOR$]) +m4trace:configure.ac:40: -1- AC_SUBST([PATCH], [`echo $VERSION | cut -d. -f3- | cut -d- -f1`]) +m4trace:configure.ac:40: -1- AC_SUBST_TRACE([PATCH]) +m4trace:configure.ac:40: -1- m4_pattern_allow([^PATCH$]) +m4trace:configure.ac:41: -1- AC_SUBST([EXTRA], [`echo $VERSION | cut -d- -f2- -s`]) +m4trace:configure.ac:41: -1- AC_SUBST_TRACE([EXTRA]) +m4trace:configure.ac:41: -1- m4_pattern_allow([^EXTRA$]) +m4trace:configure.ac:77: -3- m4_include([.libtool-version]) +m4trace:configure.ac:78: -1- AC_SUBST([LIBTOOL_VERSION], [1:4:2]) +m4trace:configure.ac:78: -1- AC_SUBST_TRACE([LIBTOOL_VERSION]) +m4trace:configure.ac:78: -1- m4_pattern_allow([^LIBTOOL_VERSION$]) +m4trace:configure.ac:81: -1- AC_DEFINE_TRACE_LITERAL([NDEBUG]) +m4trace:configure.ac:81: -1- m4_pattern_allow([^NDEBUG$]) +m4trace:configure.ac:81: -1- AH_OUTPUT([NDEBUG], [/* Define if debugging is disabled */ @%:@undef NDEBUG]) -m4trace:configure.ac:74: -1- AC_SUBST([CC]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([CC]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:74: -1- AC_SUBST([CFLAGS]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([CFLAGS]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CFLAGS$]) -m4trace:configure.ac:74: -1- AC_SUBST([LDFLAGS]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([LDFLAGS]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^LDFLAGS$]) -m4trace:configure.ac:74: -1- AC_SUBST([LIBS]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([LIBS]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^LIBS$]) -m4trace:configure.ac:74: -1- AC_SUBST([CPPFLAGS]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([CPPFLAGS]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CPPFLAGS$]) -m4trace:configure.ac:74: -1- AC_SUBST([CC]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([CC]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:74: -1- AC_SUBST([CC]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([CC]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:74: -1- AC_SUBST([CC]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([CC]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:74: -1- AC_SUBST([CC]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([CC]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:74: -1- AC_SUBST([ac_ct_CC]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([ac_ct_CC]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^ac_ct_CC$]) -m4trace:configure.ac:74: -1- AC_SUBST([CC]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([CC]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:74: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([EXEEXT]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^EXEEXT$]) -m4trace:configure.ac:74: -1- AC_SUBST([OBJEXT], [$ac_cv_objext]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([OBJEXT]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^OBJEXT$]) -m4trace:configure.ac:74: -1- AC_REQUIRE_AUX_FILE([compile]) -m4trace:configure.ac:74: -1- AC_SUBST([DEPDIR], ["${am__leading_dot}deps"]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([DEPDIR]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^DEPDIR$]) -m4trace:configure.ac:74: -1- AC_SUBST([am__include]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([am__include]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^am__include$]) -m4trace:configure.ac:74: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -m4trace:configure.ac:74: -1- AC_SUBST([AMDEP_TRUE]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([AMDEP_TRUE]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^AMDEP_TRUE$]) -m4trace:configure.ac:74: -1- AC_SUBST([AMDEP_FALSE]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([AMDEP_FALSE]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^AMDEP_FALSE$]) -m4trace:configure.ac:74: -1- _AM_SUBST_NOTMAKE([AMDEP_TRUE]) -m4trace:configure.ac:74: -1- _AM_SUBST_NOTMAKE([AMDEP_FALSE]) -m4trace:configure.ac:74: -1- AC_SUBST([AMDEPBACKSLASH]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([AMDEPBACKSLASH]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^AMDEPBACKSLASH$]) -m4trace:configure.ac:74: -1- _AM_SUBST_NOTMAKE([AMDEPBACKSLASH]) -m4trace:configure.ac:74: -1- AC_SUBST([am__nodep]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([am__nodep]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^am__nodep$]) -m4trace:configure.ac:74: -1- _AM_SUBST_NOTMAKE([am__nodep]) -m4trace:configure.ac:74: -1- AC_SUBST([CCDEPMODE], [depmode=$am_cv_CC_dependencies_compiler_type]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([CCDEPMODE]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^CCDEPMODE$]) -m4trace:configure.ac:74: -1- AM_CONDITIONAL([am__fastdepCC], [ +m4trace:configure.ac:84: -1- AC_SUBST([CC]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:84: -1- AC_SUBST([CFLAGS]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([CFLAGS]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CFLAGS$]) +m4trace:configure.ac:84: -1- AC_SUBST([LDFLAGS]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([LDFLAGS]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:84: -1- AC_SUBST([LIBS]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([LIBS]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:84: -1- AC_SUBST([CPPFLAGS]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([CPPFLAGS]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:84: -1- AC_SUBST([CC]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:84: -1- AC_SUBST([CC]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:84: -1- AC_SUBST([CC]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:84: -1- AC_SUBST([CC]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:84: -1- AC_SUBST([ac_ct_CC]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([ac_ct_CC]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^ac_ct_CC$]) +m4trace:configure.ac:84: -1- AC_SUBST([CC]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:84: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([EXEEXT]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^EXEEXT$]) +m4trace:configure.ac:84: -1- AC_SUBST([OBJEXT], [$ac_cv_objext]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([OBJEXT]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^OBJEXT$]) +m4trace:configure.ac:84: -1- AC_REQUIRE_AUX_FILE([compile]) +m4trace:configure.ac:84: -1- AC_SUBST([DEPDIR], ["${am__leading_dot}deps"]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([DEPDIR]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^DEPDIR$]) +m4trace:configure.ac:84: -1- AC_SUBST([am__include]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([am__include]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^am__include$]) +m4trace:configure.ac:84: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +m4trace:configure.ac:84: -1- AC_SUBST([AMDEP_TRUE]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([AMDEP_TRUE]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^AMDEP_TRUE$]) +m4trace:configure.ac:84: -1- AC_SUBST([AMDEP_FALSE]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([AMDEP_FALSE]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^AMDEP_FALSE$]) +m4trace:configure.ac:84: -1- _AM_SUBST_NOTMAKE([AMDEP_TRUE]) +m4trace:configure.ac:84: -1- _AM_SUBST_NOTMAKE([AMDEP_FALSE]) +m4trace:configure.ac:84: -1- AC_SUBST([AMDEPBACKSLASH]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([AMDEPBACKSLASH]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^AMDEPBACKSLASH$]) +m4trace:configure.ac:84: -1- _AM_SUBST_NOTMAKE([AMDEPBACKSLASH]) +m4trace:configure.ac:84: -1- AC_SUBST([am__nodep]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([am__nodep]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^am__nodep$]) +m4trace:configure.ac:84: -1- _AM_SUBST_NOTMAKE([am__nodep]) +m4trace:configure.ac:84: -1- AC_SUBST([CCDEPMODE], [depmode=$am_cv_CC_dependencies_compiler_type]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([CCDEPMODE]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^CCDEPMODE$]) +m4trace:configure.ac:84: -1- AM_CONDITIONAL([am__fastdepCC], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3]) -m4trace:configure.ac:74: -1- AC_SUBST([am__fastdepCC_TRUE]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([am__fastdepCC_TRUE]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^am__fastdepCC_TRUE$]) -m4trace:configure.ac:74: -1- AC_SUBST([am__fastdepCC_FALSE]) -m4trace:configure.ac:74: -1- AC_SUBST_TRACE([am__fastdepCC_FALSE]) -m4trace:configure.ac:74: -1- m4_pattern_allow([^am__fastdepCC_FALSE$]) -m4trace:configure.ac:74: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_TRUE]) -m4trace:configure.ac:74: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_FALSE]) -m4trace:configure.ac:75: -1- _m4_warn([obsolete], [The macro `AC_PROG_CC_C99' is obsolete. -You should run autoupdate.], [./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from... -configure.ac:75: the top level]) -m4trace:configure.ac:76: -1- AM_PROG_CC_C_O -m4trace:configure.ac:78: -1- AC_SUBST([CPP]) -m4trace:configure.ac:78: -1- AC_SUBST_TRACE([CPP]) -m4trace:configure.ac:78: -1- m4_pattern_allow([^CPP$]) -m4trace:configure.ac:78: -1- AC_SUBST([CPPFLAGS]) -m4trace:configure.ac:78: -1- AC_SUBST_TRACE([CPPFLAGS]) -m4trace:configure.ac:78: -1- m4_pattern_allow([^CPPFLAGS$]) -m4trace:configure.ac:78: -1- AC_SUBST([CPP]) -m4trace:configure.ac:78: -1- AC_SUBST_TRACE([CPP]) -m4trace:configure.ac:78: -1- m4_pattern_allow([^CPP$]) -m4trace:configure.ac:78: -1- AC_SUBST([GREP]) -m4trace:configure.ac:78: -1- AC_SUBST_TRACE([GREP]) -m4trace:configure.ac:78: -1- m4_pattern_allow([^GREP$]) -m4trace:configure.ac:78: -1- AC_SUBST([EGREP]) -m4trace:configure.ac:78: -1- AC_SUBST_TRACE([EGREP]) -m4trace:configure.ac:78: -1- m4_pattern_allow([^EGREP$]) -m4trace:configure.ac:79: -1- AH_OUTPUT([USE_SYSTEM_EXTENSIONS], [/* Enable extensions on AIX 3, Interix. */ +m4trace:configure.ac:84: -1- AC_SUBST([am__fastdepCC_TRUE]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([am__fastdepCC_TRUE]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^am__fastdepCC_TRUE$]) +m4trace:configure.ac:84: -1- AC_SUBST([am__fastdepCC_FALSE]) +m4trace:configure.ac:84: -1- AC_SUBST_TRACE([am__fastdepCC_FALSE]) +m4trace:configure.ac:84: -1- m4_pattern_allow([^am__fastdepCC_FALSE$]) +m4trace:configure.ac:84: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_TRUE]) +m4trace:configure.ac:84: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_FALSE]) +m4trace:configure.ac:85: -1- AM_PROG_CC_C_O +m4trace:configure.ac:86: -1- AC_SUBST([CCAS]) +m4trace:configure.ac:86: -1- AC_SUBST_TRACE([CCAS]) +m4trace:configure.ac:86: -1- m4_pattern_allow([^CCAS$]) +m4trace:configure.ac:86: -1- AC_SUBST([CCASFLAGS]) +m4trace:configure.ac:86: -1- AC_SUBST_TRACE([CCASFLAGS]) +m4trace:configure.ac:86: -1- m4_pattern_allow([^CCASFLAGS$]) +m4trace:configure.ac:86: -1- AC_SUBST([CCASDEPMODE], [depmode=$am_cv_CCAS_dependencies_compiler_type]) +m4trace:configure.ac:86: -1- AC_SUBST_TRACE([CCASDEPMODE]) +m4trace:configure.ac:86: -1- m4_pattern_allow([^CCASDEPMODE$]) +m4trace:configure.ac:86: -1- AM_CONDITIONAL([am__fastdepCCAS], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3]) +m4trace:configure.ac:86: -1- AC_SUBST([am__fastdepCCAS_TRUE]) +m4trace:configure.ac:86: -1- AC_SUBST_TRACE([am__fastdepCCAS_TRUE]) +m4trace:configure.ac:86: -1- m4_pattern_allow([^am__fastdepCCAS_TRUE$]) +m4trace:configure.ac:86: -1- AC_SUBST([am__fastdepCCAS_FALSE]) +m4trace:configure.ac:86: -1- AC_SUBST_TRACE([am__fastdepCCAS_FALSE]) +m4trace:configure.ac:86: -1- m4_pattern_allow([^am__fastdepCCAS_FALSE$]) +m4trace:configure.ac:86: -1- _AM_SUBST_NOTMAKE([am__fastdepCCAS_TRUE]) +m4trace:configure.ac:86: -1- _AM_SUBST_NOTMAKE([am__fastdepCCAS_FALSE]) +m4trace:configure.ac:88: -1- _m4_warn([obsolete], [The macro 'AC_PROG_GCC_TRADITIONAL' is obsolete. +You should run autoupdate.], [./lib/autoconf/c.m4:1676: AC_PROG_GCC_TRADITIONAL is expanded from... +configure.ac:88: the top level]) +m4trace:configure.ac:89: -1- AH_OUTPUT([USE_SYSTEM_EXTENSIONS], [/* Enable extensions on AIX, Interix, z/OS. */ #ifndef _ALL_SOURCE # undef _ALL_SOURCE #endif @@ -455,11 +504,15 @@ m4trace:configure.ac:79: -1- AH_OUTPUT([USE_SYSTEM_EXTENSIONS], [/* Enable exten #ifndef __STDC_WANT_IEC_60559_DFP_EXT__ # undef __STDC_WANT_IEC_60559_DFP_EXT__ #endif +/* Enable extensions specified by C23 Annex F. */ +#ifndef __STDC_WANT_IEC_60559_EXT__ +# undef __STDC_WANT_IEC_60559_EXT__ +#endif /* Enable extensions specified by ISO/IEC TS 18661-4:2015. */ #ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__ # undef __STDC_WANT_IEC_60559_FUNCS_EXT__ #endif -/* Enable extensions specified by ISO/IEC TS 18661-3:2015. */ +/* Enable extensions specified by C23 Annex H and ISO/IEC TS 18661-3:2015. */ #ifndef __STDC_WANT_IEC_60559_TYPES_EXT__ # undef __STDC_WANT_IEC_60559_TYPES_EXT__ #endif @@ -481,371 +534,306 @@ m4trace:configure.ac:79: -1- AH_OUTPUT([USE_SYSTEM_EXTENSIONS], [/* Enable exten # undef _XOPEN_SOURCE #endif ]) -m4trace:configure.ac:79: -1- AH_OUTPUT([HAVE_STDIO_H], [/* Define to 1 if you have the header file. */ +m4trace:configure.ac:89: -1- AH_OUTPUT([HAVE_STDIO_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_STDIO_H]) -m4trace:configure.ac:79: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the header file. */ +m4trace:configure.ac:89: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_STDLIB_H]) -m4trace:configure.ac:79: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the header file. */ +m4trace:configure.ac:89: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_STRING_H]) -m4trace:configure.ac:79: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the header file. */ +m4trace:configure.ac:89: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_INTTYPES_H]) -m4trace:configure.ac:79: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the header file. */ +m4trace:configure.ac:89: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_STDINT_H]) -m4trace:configure.ac:79: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the header file. */ +m4trace:configure.ac:89: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_STRINGS_H]) -m4trace:configure.ac:79: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the header file. */ +m4trace:configure.ac:89: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_SYS_STAT_H]) -m4trace:configure.ac:79: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the header file. */ +m4trace:configure.ac:89: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_SYS_TYPES_H]) -m4trace:configure.ac:79: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the header file. */ +m4trace:configure.ac:89: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_UNISTD_H]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^STDC_HEADERS$]) -m4trace:configure.ac:79: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if all of the C90 standard headers exist (not just the ones +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^STDC_HEADERS$]) +m4trace:configure.ac:89: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if all of the C89 standard headers exist (not just the ones required in a freestanding environment). This macro is provided for backward compatibility; new code need not use it. */ @%:@undef STDC_HEADERS]) -m4trace:configure.ac:79: -1- AH_OUTPUT([HAVE_WCHAR_H], [/* Define to 1 if you have the header file. */ +m4trace:configure.ac:89: -1- AH_OUTPUT([HAVE_WCHAR_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_WCHAR_H]) -m4trace:configure.ac:79: -1- AH_OUTPUT([HAVE_MINIX_CONFIG_H], [/* Define to 1 if you have the header file. */ +m4trace:configure.ac:89: -1- AH_OUTPUT([HAVE_MINIX_CONFIG_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_MINIX_CONFIG_H]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([_ALL_SOURCE]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_ALL_SOURCE$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([_DARWIN_C_SOURCE]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_DARWIN_C_SOURCE$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([_GNU_SOURCE]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_GNU_SOURCE$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([_HPUX_ALT_XOPEN_SOCKET_API]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_HPUX_ALT_XOPEN_SOCKET_API$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([_NETBSD_SOURCE]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_NETBSD_SOURCE$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([_OPENBSD_SOURCE]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_OPENBSD_SOURCE$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([_POSIX_PTHREAD_SEMANTICS]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_POSIX_PTHREAD_SEMANTICS$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_IEC_60559_ATTRIBS_EXT__]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_ATTRIBS_EXT__$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_IEC_60559_BFP_EXT__]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_BFP_EXT__$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_IEC_60559_DFP_EXT__]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_DFP_EXT__$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_IEC_60559_FUNCS_EXT__]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_FUNCS_EXT__$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_IEC_60559_TYPES_EXT__]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_TYPES_EXT__$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_LIB_EXT2__]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_LIB_EXT2__$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_MATH_SPEC_FUNCS__]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__STDC_WANT_MATH_SPEC_FUNCS__$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([_TANDEM_SOURCE]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_TANDEM_SOURCE$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([_MINIX]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_MINIX$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([_POSIX_SOURCE]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_POSIX_SOURCE$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([_POSIX_1_SOURCE]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_POSIX_1_SOURCE$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([__EXTENSIONS__]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^__EXTENSIONS__$]) -m4trace:configure.ac:79: -1- AC_DEFINE_TRACE_LITERAL([_XOPEN_SOURCE]) -m4trace:configure.ac:79: -1- m4_pattern_allow([^_XOPEN_SOURCE$]) -m4trace:configure.ac:80: -1- AM_PROG_AR -m4trace:configure.ac:80: -1- AC_REQUIRE_AUX_FILE([ar-lib]) -m4trace:configure.ac:80: -1- AC_SUBST([AR]) -m4trace:configure.ac:80: -1- AC_SUBST_TRACE([AR]) -m4trace:configure.ac:80: -1- m4_pattern_allow([^AR$]) -m4trace:configure.ac:80: -1- AC_SUBST([ac_ct_AR]) -m4trace:configure.ac:80: -1- AC_SUBST_TRACE([ac_ct_AR]) -m4trace:configure.ac:80: -1- m4_pattern_allow([^ac_ct_AR$]) -m4trace:configure.ac:80: -1- AC_SUBST([AR]) -m4trace:configure.ac:80: -1- AC_SUBST_TRACE([AR]) -m4trace:configure.ac:80: -1- m4_pattern_allow([^AR$]) -m4trace:configure.ac:83: -1- AC_SUBST([CXX]) -m4trace:configure.ac:83: -1- AC_SUBST_TRACE([CXX]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^CXX$]) -m4trace:configure.ac:83: -1- AC_SUBST([CXXFLAGS]) -m4trace:configure.ac:83: -1- AC_SUBST_TRACE([CXXFLAGS]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^CXXFLAGS$]) -m4trace:configure.ac:83: -1- AC_SUBST([LDFLAGS]) -m4trace:configure.ac:83: -1- AC_SUBST_TRACE([LDFLAGS]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^LDFLAGS$]) -m4trace:configure.ac:83: -1- AC_SUBST([LIBS]) -m4trace:configure.ac:83: -1- AC_SUBST_TRACE([LIBS]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^LIBS$]) -m4trace:configure.ac:83: -1- AC_SUBST([CPPFLAGS]) -m4trace:configure.ac:83: -1- AC_SUBST_TRACE([CPPFLAGS]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^CPPFLAGS$]) -m4trace:configure.ac:83: -1- AC_SUBST([CXX]) -m4trace:configure.ac:83: -1- AC_SUBST_TRACE([CXX]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^CXX$]) -m4trace:configure.ac:83: -1- AC_SUBST([ac_ct_CXX]) -m4trace:configure.ac:83: -1- AC_SUBST_TRACE([ac_ct_CXX]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^ac_ct_CXX$]) -m4trace:configure.ac:83: -1- AC_SUBST([CXXDEPMODE], [depmode=$am_cv_CXX_dependencies_compiler_type]) -m4trace:configure.ac:83: -1- AC_SUBST_TRACE([CXXDEPMODE]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^CXXDEPMODE$]) -m4trace:configure.ac:83: -1- AM_CONDITIONAL([am__fastdepCXX], [ +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([_ALL_SOURCE]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_ALL_SOURCE$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([_DARWIN_C_SOURCE]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_DARWIN_C_SOURCE$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([_GNU_SOURCE]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_GNU_SOURCE$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([_HPUX_ALT_XOPEN_SOCKET_API]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_HPUX_ALT_XOPEN_SOCKET_API$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([_NETBSD_SOURCE]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_NETBSD_SOURCE$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([_OPENBSD_SOURCE]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_OPENBSD_SOURCE$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([_POSIX_PTHREAD_SEMANTICS]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_POSIX_PTHREAD_SEMANTICS$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_IEC_60559_ATTRIBS_EXT__]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_ATTRIBS_EXT__$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_IEC_60559_BFP_EXT__]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_BFP_EXT__$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_IEC_60559_DFP_EXT__]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_DFP_EXT__$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_IEC_60559_EXT__]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_EXT__$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_IEC_60559_FUNCS_EXT__]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_FUNCS_EXT__$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_IEC_60559_TYPES_EXT__]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_IEC_60559_TYPES_EXT__$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_LIB_EXT2__]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_LIB_EXT2__$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([__STDC_WANT_MATH_SPEC_FUNCS__]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__STDC_WANT_MATH_SPEC_FUNCS__$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([_TANDEM_SOURCE]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_TANDEM_SOURCE$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([_MINIX]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_MINIX$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([_POSIX_SOURCE]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_POSIX_SOURCE$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([_POSIX_1_SOURCE]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_POSIX_1_SOURCE$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([__EXTENSIONS__]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^__EXTENSIONS__$]) +m4trace:configure.ac:89: -1- AC_DEFINE_TRACE_LITERAL([_XOPEN_SOURCE]) +m4trace:configure.ac:89: -1- m4_pattern_allow([^_XOPEN_SOURCE$]) +m4trace:configure.ac:90: -1- AM_PROG_AR +m4trace:configure.ac:90: -1- AC_REQUIRE_AUX_FILE([ar-lib]) +m4trace:configure.ac:90: -1- AC_SUBST([AR]) +m4trace:configure.ac:90: -1- AC_SUBST_TRACE([AR]) +m4trace:configure.ac:90: -1- m4_pattern_allow([^AR$]) +m4trace:configure.ac:90: -1- AC_SUBST([ac_ct_AR]) +m4trace:configure.ac:90: -1- AC_SUBST_TRACE([ac_ct_AR]) +m4trace:configure.ac:90: -1- m4_pattern_allow([^ac_ct_AR$]) +m4trace:configure.ac:90: -1- AC_SUBST([AR]) +m4trace:configure.ac:90: -1- AC_SUBST_TRACE([AR]) +m4trace:configure.ac:90: -1- m4_pattern_allow([^AR$]) +m4trace:configure.ac:93: -1- AC_SUBST([CXX]) +m4trace:configure.ac:93: -1- AC_SUBST_TRACE([CXX]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:93: -1- AC_SUBST([CXXFLAGS]) +m4trace:configure.ac:93: -1- AC_SUBST_TRACE([CXXFLAGS]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^CXXFLAGS$]) +m4trace:configure.ac:93: -1- AC_SUBST([LDFLAGS]) +m4trace:configure.ac:93: -1- AC_SUBST_TRACE([LDFLAGS]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^LDFLAGS$]) +m4trace:configure.ac:93: -1- AC_SUBST([LIBS]) +m4trace:configure.ac:93: -1- AC_SUBST_TRACE([LIBS]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^LIBS$]) +m4trace:configure.ac:93: -1- AC_SUBST([CPPFLAGS]) +m4trace:configure.ac:93: -1- AC_SUBST_TRACE([CPPFLAGS]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:93: -1- AC_SUBST([CXX]) +m4trace:configure.ac:93: -1- AC_SUBST_TRACE([CXX]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:93: -1- AC_SUBST([ac_ct_CXX]) +m4trace:configure.ac:93: -1- AC_SUBST_TRACE([ac_ct_CXX]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^ac_ct_CXX$]) +m4trace:configure.ac:93: -1- AC_SUBST([CXXDEPMODE], [depmode=$am_cv_CXX_dependencies_compiler_type]) +m4trace:configure.ac:93: -1- AC_SUBST_TRACE([CXXDEPMODE]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^CXXDEPMODE$]) +m4trace:configure.ac:93: -1- AM_CONDITIONAL([am__fastdepCXX], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3]) -m4trace:configure.ac:83: -1- AC_SUBST([am__fastdepCXX_TRUE]) -m4trace:configure.ac:83: -1- AC_SUBST_TRACE([am__fastdepCXX_TRUE]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^am__fastdepCXX_TRUE$]) -m4trace:configure.ac:83: -1- AC_SUBST([am__fastdepCXX_FALSE]) -m4trace:configure.ac:83: -1- AC_SUBST_TRACE([am__fastdepCXX_FALSE]) -m4trace:configure.ac:83: -1- m4_pattern_allow([^am__fastdepCXX_FALSE$]) -m4trace:configure.ac:83: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_TRUE]) -m4trace:configure.ac:83: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_FALSE]) -m4trace:configure.ac:84: -1- AC_SUBST([AWK]) -m4trace:configure.ac:84: -1- AC_SUBST_TRACE([AWK]) -m4trace:configure.ac:84: -1- m4_pattern_allow([^AWK$]) -m4trace:configure.ac:85: -1- AC_SUBST([LN_S], [$as_ln_s]) -m4trace:configure.ac:85: -1- AC_SUBST_TRACE([LN_S]) -m4trace:configure.ac:85: -1- m4_pattern_allow([^LN_S$]) -m4trace:configure.ac:87: -1- AC_CANONICAL_HOST -m4trace:configure.ac:87: -1- AC_CANONICAL_BUILD -m4trace:configure.ac:87: -1- AC_REQUIRE_AUX_FILE([config.sub]) -m4trace:configure.ac:87: -1- AC_REQUIRE_AUX_FILE([config.guess]) -m4trace:configure.ac:87: -1- AC_SUBST([build], [$ac_cv_build]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([build]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^build$]) -m4trace:configure.ac:87: -1- AC_SUBST([build_cpu], [$[1]]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([build_cpu]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^build_cpu$]) -m4trace:configure.ac:87: -1- AC_SUBST([build_vendor], [$[2]]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([build_vendor]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^build_vendor$]) -m4trace:configure.ac:87: -1- AC_SUBST([build_os]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([build_os]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^build_os$]) -m4trace:configure.ac:87: -1- AC_SUBST([host], [$ac_cv_host]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([host]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^host$]) -m4trace:configure.ac:87: -1- AC_SUBST([host_cpu], [$[1]]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([host_cpu]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^host_cpu$]) -m4trace:configure.ac:87: -1- AC_SUBST([host_vendor], [$[2]]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([host_vendor]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^host_vendor$]) -m4trace:configure.ac:87: -1- AC_SUBST([host_os]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([host_os]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^host_os$]) -m4trace:configure.ac:87: -1- AC_SUBST([ax_pthread_config]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([ax_pthread_config]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^ax_pthread_config$]) -m4trace:configure.ac:87: -1- AC_DEFINE_TRACE_LITERAL([PTHREAD_CREATE_JOINABLE]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^PTHREAD_CREATE_JOINABLE$]) -m4trace:configure.ac:87: -1- AH_OUTPUT([PTHREAD_CREATE_JOINABLE], [/* Define to necessary symbol if this constant uses a non-standard name on +m4trace:configure.ac:93: -1- AC_SUBST([am__fastdepCXX_TRUE]) +m4trace:configure.ac:93: -1- AC_SUBST_TRACE([am__fastdepCXX_TRUE]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^am__fastdepCXX_TRUE$]) +m4trace:configure.ac:93: -1- AC_SUBST([am__fastdepCXX_FALSE]) +m4trace:configure.ac:93: -1- AC_SUBST_TRACE([am__fastdepCXX_FALSE]) +m4trace:configure.ac:93: -1- m4_pattern_allow([^am__fastdepCXX_FALSE$]) +m4trace:configure.ac:93: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_TRUE]) +m4trace:configure.ac:93: -1- _AM_SUBST_NOTMAKE([am__fastdepCXX_FALSE]) +m4trace:configure.ac:94: -1- AC_SUBST([AWK]) +m4trace:configure.ac:94: -1- AC_SUBST_TRACE([AWK]) +m4trace:configure.ac:94: -1- m4_pattern_allow([^AWK$]) +m4trace:configure.ac:95: -1- AC_SUBST([LN_S], [$as_ln_s]) +m4trace:configure.ac:95: -1- AC_SUBST_TRACE([LN_S]) +m4trace:configure.ac:95: -1- m4_pattern_allow([^LN_S$]) +m4trace:configure.ac:97: -1- AC_SUBST([ax_pthread_config]) +m4trace:configure.ac:97: -1- AC_SUBST_TRACE([ax_pthread_config]) +m4trace:configure.ac:97: -1- m4_pattern_allow([^ax_pthread_config$]) +m4trace:configure.ac:97: -1- AC_DEFINE_TRACE_LITERAL([PTHREAD_CREATE_JOINABLE]) +m4trace:configure.ac:97: -1- m4_pattern_allow([^PTHREAD_CREATE_JOINABLE$]) +m4trace:configure.ac:97: -1- AH_OUTPUT([PTHREAD_CREATE_JOINABLE], [/* Define to necessary symbol if this constant uses a non-standard name on your system. */ @%:@undef PTHREAD_CREATE_JOINABLE]) -m4trace:configure.ac:87: -2- AC_DEFINE_TRACE_LITERAL([HAVE_PTHREAD_PRIO_INHERIT]) -m4trace:configure.ac:87: -2- m4_pattern_allow([^HAVE_PTHREAD_PRIO_INHERIT$]) -m4trace:configure.ac:87: -2- AH_OUTPUT([HAVE_PTHREAD_PRIO_INHERIT], [/* Have PTHREAD_PRIO_INHERIT. */ +m4trace:configure.ac:97: -2- AC_DEFINE_TRACE_LITERAL([HAVE_PTHREAD_PRIO_INHERIT]) +m4trace:configure.ac:97: -2- m4_pattern_allow([^HAVE_PTHREAD_PRIO_INHERIT$]) +m4trace:configure.ac:97: -2- AH_OUTPUT([HAVE_PTHREAD_PRIO_INHERIT], [/* Have PTHREAD_PRIO_INHERIT. */ @%:@undef HAVE_PTHREAD_PRIO_INHERIT]) -m4trace:configure.ac:87: -1- AC_SUBST([PTHREAD_CC]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([PTHREAD_CC]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^PTHREAD_CC$]) -m4trace:configure.ac:87: -1- AC_SUBST([PTHREAD_LIBS]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([PTHREAD_LIBS]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^PTHREAD_LIBS$]) -m4trace:configure.ac:87: -1- AC_SUBST([PTHREAD_CFLAGS]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([PTHREAD_CFLAGS]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^PTHREAD_CFLAGS$]) -m4trace:configure.ac:87: -1- AC_SUBST([PTHREAD_CC]) -m4trace:configure.ac:87: -1- AC_SUBST_TRACE([PTHREAD_CC]) -m4trace:configure.ac:87: -1- m4_pattern_allow([^PTHREAD_CC$]) -m4trace:configure.ac:87: -2- AC_DEFINE_TRACE_LITERAL([HAVE_PTHREAD]) -m4trace:configure.ac:87: -2- m4_pattern_allow([^HAVE_PTHREAD$]) -m4trace:configure.ac:87: -2- AH_OUTPUT([HAVE_PTHREAD], [/* Define if you have POSIX threads libraries and header files. */ +m4trace:configure.ac:97: -1- AC_SUBST([PTHREAD_CC]) +m4trace:configure.ac:97: -1- AC_SUBST_TRACE([PTHREAD_CC]) +m4trace:configure.ac:97: -1- m4_pattern_allow([^PTHREAD_CC$]) +m4trace:configure.ac:97: -1- AC_SUBST([PTHREAD_LIBS]) +m4trace:configure.ac:97: -1- AC_SUBST_TRACE([PTHREAD_LIBS]) +m4trace:configure.ac:97: -1- m4_pattern_allow([^PTHREAD_LIBS$]) +m4trace:configure.ac:97: -1- AC_SUBST([PTHREAD_CFLAGS]) +m4trace:configure.ac:97: -1- AC_SUBST_TRACE([PTHREAD_CFLAGS]) +m4trace:configure.ac:97: -1- m4_pattern_allow([^PTHREAD_CFLAGS$]) +m4trace:configure.ac:97: -1- AC_SUBST([PTHREAD_CC]) +m4trace:configure.ac:97: -1- AC_SUBST_TRACE([PTHREAD_CC]) +m4trace:configure.ac:97: -1- m4_pattern_allow([^PTHREAD_CC$]) +m4trace:configure.ac:97: -2- AC_DEFINE_TRACE_LITERAL([HAVE_PTHREAD]) +m4trace:configure.ac:97: -2- m4_pattern_allow([^HAVE_PTHREAD$]) +m4trace:configure.ac:97: -2- AH_OUTPUT([HAVE_PTHREAD], [/* Define if you have POSIX threads libraries and header files. */ @%:@undef HAVE_PTHREAD]) -m4trace:configure.ac:89: -1- AC_SUBST([M4]) -m4trace:configure.ac:89: -1- AC_SUBST_TRACE([M4]) -m4trace:configure.ac:89: -1- m4_pattern_allow([^M4$]) -m4trace:configure.ac:94: -1- AC_SUBST([ACLOCAL_AMFLAGS], ["-I m4"]) -m4trace:configure.ac:94: -1- AC_SUBST_TRACE([ACLOCAL_AMFLAGS]) -m4trace:configure.ac:94: -1- m4_pattern_allow([^ACLOCAL_AMFLAGS$]) -m4trace:configure.ac:97: -1- m4_pattern_forbid([^_?PKG_[A-Z_]+$]) -m4trace:configure.ac:97: -1- m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) -m4trace:configure.ac:97: -1- m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) -m4trace:configure.ac:97: -1- AC_SUBST([PKG_CONFIG]) -m4trace:configure.ac:97: -1- AC_SUBST_TRACE([PKG_CONFIG]) -m4trace:configure.ac:97: -1- m4_pattern_allow([^PKG_CONFIG$]) -m4trace:configure.ac:97: -1- AC_SUBST([PKG_CONFIG_PATH]) -m4trace:configure.ac:97: -1- AC_SUBST_TRACE([PKG_CONFIG_PATH]) -m4trace:configure.ac:97: -1- m4_pattern_allow([^PKG_CONFIG_PATH$]) -m4trace:configure.ac:97: -1- AC_SUBST([PKG_CONFIG_LIBDIR]) -m4trace:configure.ac:97: -1- AC_SUBST_TRACE([PKG_CONFIG_LIBDIR]) -m4trace:configure.ac:97: -1- m4_pattern_allow([^PKG_CONFIG_LIBDIR$]) -m4trace:configure.ac:97: -1- AC_SUBST([PKG_CONFIG]) -m4trace:configure.ac:97: -1- AC_SUBST_TRACE([PKG_CONFIG]) -m4trace:configure.ac:97: -1- m4_pattern_allow([^PKG_CONFIG$]) -m4trace:configure.ac:100: -1- _m4_warn([obsolete], [The macro `AC_LIBLTDL_INSTALLABLE' is obsolete. -You should run autoupdate.], [aclocal.m4:160: AC_LIBLTDL_INSTALLABLE is expanded from... -configure.ac:100: the top level]) -m4trace:configure.ac:100: -1- AC_SUBST([LIBLTDL]) -m4trace:configure.ac:100: -1- AC_SUBST_TRACE([LIBLTDL]) -m4trace:configure.ac:100: -1- m4_pattern_allow([^LIBLTDL$]) -m4trace:configure.ac:100: -1- AC_SUBST([LTDLDEPS]) -m4trace:configure.ac:100: -1- AC_SUBST_TRACE([LTDLDEPS]) -m4trace:configure.ac:100: -1- m4_pattern_allow([^LTDLDEPS$]) -m4trace:configure.ac:100: -1- AC_SUBST([LTDLINCL]) -m4trace:configure.ac:100: -1- AC_SUBST_TRACE([LTDLINCL]) -m4trace:configure.ac:100: -1- m4_pattern_allow([^LTDLINCL$]) -m4trace:configure.ac:100: -1- AC_SUBST([INCLTDL]) -m4trace:configure.ac:100: -1- AC_SUBST_TRACE([INCLTDL]) -m4trace:configure.ac:100: -1- m4_pattern_allow([^INCLTDL$]) -m4trace:configure.ac:101: -1- _m4_warn([obsolete], [The macro `AC_LIBTOOL_DLOPEN' is obsolete. -You should run autoupdate.], [m4/ltoptions.m4:113: AC_LIBTOOL_DLOPEN is expanded from... -configure.ac:101: the top level]) -m4trace:configure.ac:101: -1- _m4_warn([obsolete], [AC_LIBTOOL_DLOPEN: Remove this warning and the call to _LT_SET_OPTION when you -put the 'dlopen' option into LT_INIT's first parameter.], [./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... -m4/ltoptions.m4:113: AC_LIBTOOL_DLOPEN is expanded from... -configure.ac:101: the top level]) -m4trace:configure.ac:102: -1- _m4_warn([obsolete], [The macro `AC_LIBTOOL_WIN32_DLL' is obsolete. -You should run autoupdate.], [m4/ltoptions.m4:148: AC_LIBTOOL_WIN32_DLL is expanded from... -configure.ac:102: the top level]) -m4trace:configure.ac:102: -1- AC_SUBST([AS]) -m4trace:configure.ac:102: -1- AC_SUBST_TRACE([AS]) -m4trace:configure.ac:102: -1- m4_pattern_allow([^AS$]) -m4trace:configure.ac:102: -1- AC_SUBST([DLLTOOL]) -m4trace:configure.ac:102: -1- AC_SUBST_TRACE([DLLTOOL]) -m4trace:configure.ac:102: -1- m4_pattern_allow([^DLLTOOL$]) -m4trace:configure.ac:102: -1- AC_SUBST([OBJDUMP]) -m4trace:configure.ac:102: -1- AC_SUBST_TRACE([OBJDUMP]) -m4trace:configure.ac:102: -1- m4_pattern_allow([^OBJDUMP$]) -m4trace:configure.ac:102: -1- _m4_warn([obsolete], [AC_LIBTOOL_WIN32_DLL: Remove this warning and the call to _LT_SET_OPTION when you -put the 'win32-dll' option into LT_INIT's first parameter.], [./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... -m4/ltoptions.m4:148: AC_LIBTOOL_WIN32_DLL is expanded from... -configure.ac:102: the top level]) -m4trace:configure.ac:103: -1- AC_PROG_LIBTOOL -m4trace:configure.ac:103: -1- _m4_warn([obsolete], [The macro `AC_PROG_LIBTOOL' is obsolete. -You should run autoupdate.], [m4/libtool.m4:100: AC_PROG_LIBTOOL is expanded from... -configure.ac:103: the top level]) -m4trace:configure.ac:103: -1- LT_INIT -m4trace:configure.ac:103: -1- m4_pattern_forbid([^_?LT_[A-Z_]+$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$]) -m4trace:configure.ac:103: -1- AC_REQUIRE_AUX_FILE([ltmain.sh]) -m4trace:configure.ac:103: -1- AC_SUBST([LIBTOOL]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([LIBTOOL]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^LIBTOOL$]) -m4trace:configure.ac:103: -1- AC_SUBST([SED]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([SED]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^SED$]) -m4trace:configure.ac:103: -1- AC_SUBST([FGREP]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([FGREP]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^FGREP$]) -m4trace:configure.ac:103: -1- AC_SUBST([GREP]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([GREP]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^GREP$]) -m4trace:configure.ac:103: -1- AC_SUBST([LD]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([LD]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^LD$]) -m4trace:configure.ac:103: -1- AC_SUBST([DUMPBIN]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([DUMPBIN]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^DUMPBIN$]) -m4trace:configure.ac:103: -1- AC_SUBST([ac_ct_DUMPBIN]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([ac_ct_DUMPBIN]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^ac_ct_DUMPBIN$]) -m4trace:configure.ac:103: -1- AC_SUBST([DUMPBIN]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([DUMPBIN]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^DUMPBIN$]) -m4trace:configure.ac:103: -1- AC_SUBST([NM]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([NM]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^NM$]) -m4trace:configure.ac:103: -1- AC_SUBST([FILECMD]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([FILECMD]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^FILECMD$]) -m4trace:configure.ac:103: -1- AC_SUBST([OBJDUMP]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([OBJDUMP]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^OBJDUMP$]) -m4trace:configure.ac:103: -1- AC_SUBST([OBJDUMP]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([OBJDUMP]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^OBJDUMP$]) -m4trace:configure.ac:103: -1- AC_SUBST([DLLTOOL]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([DLLTOOL]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^DLLTOOL$]) -m4trace:configure.ac:103: -1- AC_SUBST([DLLTOOL]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([DLLTOOL]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^DLLTOOL$]) -m4trace:configure.ac:103: -1- AC_SUBST([AR]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([AR]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^AR$]) -m4trace:configure.ac:103: -1- AC_SUBST([ac_ct_AR]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([ac_ct_AR]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^ac_ct_AR$]) -m4trace:configure.ac:103: -1- AC_SUBST([STRIP]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([STRIP]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^STRIP$]) -m4trace:configure.ac:103: -1- AC_SUBST([RANLIB]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([RANLIB]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^RANLIB$]) -m4trace:configure.ac:103: -1- m4_pattern_allow([LT_OBJDIR]) -m4trace:configure.ac:103: -1- AC_DEFINE_TRACE_LITERAL([LT_OBJDIR]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^LT_OBJDIR$]) -m4trace:configure.ac:103: -1- AH_OUTPUT([LT_OBJDIR], [/* Define to the sub-directory where libtool stores uninstalled libraries. */ +m4trace:configure.ac:108: -1- m4_pattern_forbid([^_?PKG_[A-Z_]+$]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) +m4trace:configure.ac:108: -1- AC_SUBST([PKG_CONFIG]) +m4trace:configure.ac:108: -1- AC_SUBST_TRACE([PKG_CONFIG]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^PKG_CONFIG$]) +m4trace:configure.ac:108: -1- AC_SUBST([PKG_CONFIG_PATH]) +m4trace:configure.ac:108: -1- AC_SUBST_TRACE([PKG_CONFIG_PATH]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^PKG_CONFIG_PATH$]) +m4trace:configure.ac:108: -1- AC_SUBST([PKG_CONFIG_LIBDIR]) +m4trace:configure.ac:108: -1- AC_SUBST_TRACE([PKG_CONFIG_LIBDIR]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^PKG_CONFIG_LIBDIR$]) +m4trace:configure.ac:108: -1- AC_SUBST([PKG_CONFIG]) +m4trace:configure.ac:108: -1- AC_SUBST_TRACE([PKG_CONFIG]) +m4trace:configure.ac:108: -1- m4_pattern_allow([^PKG_CONFIG$]) +m4trace:configure.ac:111: -1- LT_INIT([dlopen win32-dll]) +m4trace:configure.ac:111: -1- m4_pattern_forbid([^_?LT_[A-Z_]+$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$]) +m4trace:configure.ac:111: -1- AC_REQUIRE_AUX_FILE([ltmain.sh]) +m4trace:configure.ac:111: -1- AC_SUBST([AS]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([AS]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^AS$]) +m4trace:configure.ac:111: -1- AC_SUBST([DLLTOOL]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([DLLTOOL]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:111: -1- AC_SUBST([OBJDUMP]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([OBJDUMP]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:111: -1- AC_SUBST([LIBTOOL]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([LIBTOOL]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LIBTOOL$]) +m4trace:configure.ac:111: -1- AC_SUBST([SED]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([SED]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^SED$]) +m4trace:configure.ac:111: -1- AC_SUBST([GREP]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([GREP]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^GREP$]) +m4trace:configure.ac:111: -1- AC_SUBST([EGREP]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([EGREP]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^EGREP$]) +m4trace:configure.ac:111: -1- AC_SUBST([FGREP]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([FGREP]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^FGREP$]) +m4trace:configure.ac:111: -1- AC_SUBST([GREP]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([GREP]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^GREP$]) +m4trace:configure.ac:111: -1- AC_SUBST([LD]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([LD]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LD$]) +m4trace:configure.ac:111: -1- AC_SUBST([DUMPBIN]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([DUMPBIN]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^DUMPBIN$]) +m4trace:configure.ac:111: -1- AC_SUBST([ac_ct_DUMPBIN]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([ac_ct_DUMPBIN]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^ac_ct_DUMPBIN$]) +m4trace:configure.ac:111: -1- AC_SUBST([DUMPBIN]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([DUMPBIN]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^DUMPBIN$]) +m4trace:configure.ac:111: -1- AC_SUBST([NM]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([NM]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^NM$]) +m4trace:configure.ac:111: -1- AC_SUBST([FILECMD]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([FILECMD]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^FILECMD$]) +m4trace:configure.ac:111: -1- AC_SUBST([OBJDUMP]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([OBJDUMP]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:111: -1- AC_SUBST([OBJDUMP]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([OBJDUMP]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^OBJDUMP$]) +m4trace:configure.ac:111: -1- AC_SUBST([DLLTOOL]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([DLLTOOL]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:111: -1- AC_SUBST([DLLTOOL]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([DLLTOOL]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^DLLTOOL$]) +m4trace:configure.ac:111: -1- AC_SUBST([AR]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([AR]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^AR$]) +m4trace:configure.ac:111: -1- AC_SUBST([ac_ct_AR]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([ac_ct_AR]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^ac_ct_AR$]) +m4trace:configure.ac:111: -1- AC_SUBST([STRIP]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([STRIP]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^STRIP$]) +m4trace:configure.ac:111: -1- AC_SUBST([RANLIB]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([RANLIB]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^RANLIB$]) +m4trace:configure.ac:111: -1- m4_pattern_allow([LT_OBJDIR]) +m4trace:configure.ac:111: -1- AC_DEFINE_TRACE_LITERAL([LT_OBJDIR]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LT_OBJDIR$]) +m4trace:configure.ac:111: -1- AH_OUTPUT([LT_OBJDIR], [/* Define to the sub-directory where libtool stores uninstalled libraries. */ @%:@undef LT_OBJDIR]) -m4trace:configure.ac:103: -1- LT_SUPPORTED_TAG([CC]) -m4trace:configure.ac:103: -1- AC_SUBST([MANIFEST_TOOL]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([MANIFEST_TOOL]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^MANIFEST_TOOL$]) -m4trace:configure.ac:103: -1- AC_SUBST([DSYMUTIL]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([DSYMUTIL]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^DSYMUTIL$]) -m4trace:configure.ac:103: -1- AC_SUBST([NMEDIT]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([NMEDIT]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^NMEDIT$]) -m4trace:configure.ac:103: -1- AC_SUBST([LIPO]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([LIPO]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^LIPO$]) -m4trace:configure.ac:103: -1- AC_SUBST([OTOOL]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([OTOOL]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^OTOOL$]) -m4trace:configure.ac:103: -1- AC_SUBST([OTOOL64]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([OTOOL64]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^OTOOL64$]) -m4trace:configure.ac:103: -1- AC_SUBST([LT_SYS_LIBRARY_PATH]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([LT_SYS_LIBRARY_PATH]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^LT_SYS_LIBRARY_PATH$]) -m4trace:configure.ac:103: -1- AH_OUTPUT([HAVE_DLFCN_H], [/* Define to 1 if you have the header file. */ +m4trace:configure.ac:111: -1- LT_SUPPORTED_TAG([CC]) +m4trace:configure.ac:111: -1- AC_SUBST([MANIFEST_TOOL]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([MANIFEST_TOOL]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^MANIFEST_TOOL$]) +m4trace:configure.ac:111: -1- AC_SUBST([DSYMUTIL]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([DSYMUTIL]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^DSYMUTIL$]) +m4trace:configure.ac:111: -1- AC_SUBST([NMEDIT]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([NMEDIT]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^NMEDIT$]) +m4trace:configure.ac:111: -1- AC_SUBST([LIPO]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([LIPO]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LIPO$]) +m4trace:configure.ac:111: -1- AC_SUBST([OTOOL]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([OTOOL]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^OTOOL$]) +m4trace:configure.ac:111: -1- AC_SUBST([OTOOL64]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([OTOOL64]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^OTOOL64$]) +m4trace:configure.ac:111: -1- AC_SUBST([LT_SYS_LIBRARY_PATH]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([LT_SYS_LIBRARY_PATH]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LT_SYS_LIBRARY_PATH$]) +m4trace:configure.ac:111: -1- AH_OUTPUT([HAVE_DLFCN_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_DLFCN_H]) -m4trace:configure.ac:103: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DLFCN_H]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^HAVE_DLFCN_H$]) -m4trace:configure.ac:103: -1- LT_SUPPORTED_TAG([CXX]) -m4trace:configure.ac:103: -1- AC_SUBST([CXXCPP]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([CXXCPP]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^CXXCPP$]) -m4trace:configure.ac:103: -1- AC_SUBST([CPPFLAGS]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([CPPFLAGS]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^CPPFLAGS$]) -m4trace:configure.ac:103: -1- AC_SUBST([CXXCPP]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([CXXCPP]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^CXXCPP$]) -m4trace:configure.ac:103: -1- AC_SUBST([LD]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([LD]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^LD$]) -m4trace:configure.ac:103: -1- AC_SUBST([LT_SYS_LIBRARY_PATH]) -m4trace:configure.ac:103: -1- AC_SUBST_TRACE([LT_SYS_LIBRARY_PATH]) -m4trace:configure.ac:103: -1- m4_pattern_allow([^LT_SYS_LIBRARY_PATH$]) -m4trace:configure.ac:104: -1- AC_SUBST([LTDLINCL]) -m4trace:configure.ac:104: -1- AC_SUBST_TRACE([LTDLINCL]) -m4trace:configure.ac:104: -1- m4_pattern_allow([^LTDLINCL$]) -m4trace:configure.ac:105: -1- AC_SUBST([LIBLTDL]) -m4trace:configure.ac:105: -1- AC_SUBST_TRACE([LIBLTDL]) -m4trace:configure.ac:105: -1- m4_pattern_allow([^LIBLTDL$]) -m4trace:configure.ac:106: -1- AC_CONFIG_SUBDIRS([libltdl]) -m4trace:configure.ac:106: -1- AC_SUBST([subdirs], ["$subdirs libltdl"]) -m4trace:configure.ac:106: -1- AC_SUBST_TRACE([subdirs]) -m4trace:configure.ac:106: -1- m4_pattern_allow([^subdirs$]) -m4trace:configure.ac:108: -1- _m4_warn([obsolete], [The macro `AC_HEADER_STDC' is obsolete. -You should run autoupdate.], [./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from... -configure.ac:108: the top level]) -m4trace:configure.ac:108: -1- AC_SUBST([EGREP]) -m4trace:configure.ac:108: -1- AC_SUBST_TRACE([EGREP]) -m4trace:configure.ac:108: -1- m4_pattern_allow([^EGREP$]) -m4trace:configure.ac:109: -1- AC_DEFINE_TRACE_LITERAL([const]) -m4trace:configure.ac:109: -1- m4_pattern_allow([^const$]) -m4trace:configure.ac:109: -1- AH_OUTPUT([const], [/* Define to empty if `const\' does not conform to ANSI C. */ +m4trace:configure.ac:111: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DLFCN_H]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^HAVE_DLFCN_H$]) +m4trace:configure.ac:111: -1- LT_SUPPORTED_TAG([CXX]) +m4trace:configure.ac:111: -1- AC_SUBST([CXXCPP]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([CXXCPP]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^CXXCPP$]) +m4trace:configure.ac:111: -1- AC_SUBST([CPPFLAGS]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([CPPFLAGS]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^CPPFLAGS$]) +m4trace:configure.ac:111: -1- AC_SUBST([CXXCPP]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([CXXCPP]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^CXXCPP$]) +m4trace:configure.ac:111: -1- AC_SUBST([LD]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([LD]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LD$]) +m4trace:configure.ac:111: -1- AC_SUBST([LT_SYS_LIBRARY_PATH]) +m4trace:configure.ac:111: -1- AC_SUBST_TRACE([LT_SYS_LIBRARY_PATH]) +m4trace:configure.ac:111: -1- m4_pattern_allow([^LT_SYS_LIBRARY_PATH$]) +m4trace:configure.ac:112: -1- AC_SUBST([LTDLINCL]) +m4trace:configure.ac:112: -1- AC_SUBST_TRACE([LTDLINCL]) +m4trace:configure.ac:112: -1- m4_pattern_allow([^LTDLINCL$]) +m4trace:configure.ac:113: -1- AC_SUBST([LIBLTDL]) +m4trace:configure.ac:113: -1- AC_SUBST_TRACE([LIBLTDL]) +m4trace:configure.ac:113: -1- m4_pattern_allow([^LIBLTDL$]) +m4trace:configure.ac:114: -1- AC_CONFIG_SUBDIRS([libltdl]) +m4trace:configure.ac:114: -1- AC_SUBST([subdirs], ["$subdirs libltdl"]) +m4trace:configure.ac:114: -1- AC_SUBST_TRACE([subdirs]) +m4trace:configure.ac:114: -1- m4_pattern_allow([^subdirs$]) +m4trace:configure.ac:116: -1- AC_DEFINE_TRACE_LITERAL([const]) +m4trace:configure.ac:116: -1- m4_pattern_allow([^const$]) +m4trace:configure.ac:116: -1- AH_OUTPUT([const], [/* Define to empty if \'const\' does not conform to ANSI C. */ @%:@undef const]) -m4trace:configure.ac:110: -1- AH_OUTPUT([WORDS_BIGENDIAN], [/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most +m4trace:configure.ac:117: -1- AH_OUTPUT([WORDS_BIGENDIAN], [/* 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__ @@ -856,298 +844,529 @@ m4trace:configure.ac:110: -1- AH_OUTPUT([WORDS_BIGENDIAN], [/* Define WORDS_BIGE # undef WORDS_BIGENDIAN # endif #endif]) -m4trace:configure.ac:110: -1- AC_DEFINE_TRACE_LITERAL([WORDS_BIGENDIAN]) -m4trace:configure.ac:110: -1- m4_pattern_allow([^WORDS_BIGENDIAN$]) -m4trace:configure.ac:110: -1- AC_DEFINE_TRACE_LITERAL([AC_APPLE_UNIVERSAL_BUILD]) -m4trace:configure.ac:110: -1- m4_pattern_allow([^AC_APPLE_UNIVERSAL_BUILD$]) -m4trace:configure.ac:110: -1- AH_OUTPUT([AC_APPLE_UNIVERSAL_BUILD], [/* Define if building universal (internal helper macro) */ +m4trace:configure.ac:117: -1- AC_DEFINE_TRACE_LITERAL([WORDS_BIGENDIAN]) +m4trace:configure.ac:117: -1- m4_pattern_allow([^WORDS_BIGENDIAN$]) +m4trace:configure.ac:117: -1- AC_DEFINE_TRACE_LITERAL([AC_APPLE_UNIVERSAL_BUILD]) +m4trace:configure.ac:117: -1- m4_pattern_allow([^AC_APPLE_UNIVERSAL_BUILD$]) +m4trace:configure.ac:117: -1- AH_OUTPUT([AC_APPLE_UNIVERSAL_BUILD], [/* Define if building universal (internal helper macro) */ @%:@undef AC_APPLE_UNIVERSAL_BUILD]) -m4trace:configure.ac:111: -1- AC_DEFINE_TRACE_LITERAL([pid_t]) -m4trace:configure.ac:111: -1- m4_pattern_allow([^pid_t$]) -m4trace:configure.ac:111: -1- AH_OUTPUT([pid_t], [/* Define as a signed integer type capable of holding a process identifier. */ +m4trace:configure.ac:118: -1- AC_DEFINE_TRACE_LITERAL([pid_t]) +m4trace:configure.ac:118: -1- m4_pattern_allow([^pid_t$]) +m4trace:configure.ac:118: -1- AH_OUTPUT([pid_t], [/* Define as a signed integer type capable of holding a process identifier. */ @%:@undef pid_t]) -m4trace:configure.ac:112: -1- AC_DEFINE_TRACE_LITERAL([size_t]) -m4trace:configure.ac:112: -1- m4_pattern_allow([^size_t$]) -m4trace:configure.ac:112: -1- AH_OUTPUT([size_t], [/* Define to `unsigned int\' if does not define. */ +m4trace:configure.ac:119: -1- AC_DEFINE_TRACE_LITERAL([size_t]) +m4trace:configure.ac:119: -1- m4_pattern_allow([^size_t$]) +m4trace:configure.ac:119: -1- AH_OUTPUT([size_t], [/* Define as \'unsigned int\' if doesn\'t define. */ @%:@undef size_t]) -m4trace:configure.ac:113: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SSIZE_T]) -m4trace:configure.ac:113: -1- m4_pattern_allow([^HAVE_SSIZE_T$]) -m4trace:configure.ac:113: -1- AH_OUTPUT([HAVE_SSIZE_T], [/* Define to 1 if the system has the type `ssize_t\'. */ +m4trace:configure.ac:120: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SSIZE_T]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^HAVE_SSIZE_T$]) +m4trace:configure.ac:120: -1- AH_OUTPUT([HAVE_SSIZE_T], [/* Define to 1 if the system has the type \'ssize_t\'. */ @%:@undef HAVE_SSIZE_T]) -m4trace:configure.ac:113: -1- AC_DEFINE_TRACE_LITERAL([ssize_t]) -m4trace:configure.ac:113: -1- m4_pattern_allow([^ssize_t$]) -m4trace:configure.ac:113: -1- AH_OUTPUT([ssize_t], [/* Define ssize_t if it is not done by the standard libs. */ +m4trace:configure.ac:120: -1- AC_DEFINE_TRACE_LITERAL([ssize_t]) +m4trace:configure.ac:120: -1- m4_pattern_allow([^ssize_t$]) +m4trace:configure.ac:120: -1- AH_OUTPUT([ssize_t], [/* Define ssize_t if it is not done by the standard libs. */ @%:@undef ssize_t]) -m4trace:configure.ac:115: -1- AC_DEFINE_TRACE_LITERAL([off_t]) -m4trace:configure.ac:115: -1- m4_pattern_allow([^off_t$]) -m4trace:configure.ac:115: -1- AH_OUTPUT([off_t], [/* Define to `long int\' if does not define. */ +m4trace:configure.ac:122: -1- AC_DEFINE_TRACE_LITERAL([off_t]) +m4trace:configure.ac:122: -1- m4_pattern_allow([^off_t$]) +m4trace:configure.ac:122: -1- AH_OUTPUT([off_t], [/* Define to \'long int\' if does not define. */ @%:@undef off_t]) -m4trace:configure.ac:116: -1- _m4_warn([obsolete], [The macro `AC_TYPE_SIGNAL' is obsolete. -You should run autoupdate.], [./lib/autoconf/types.m4:776: AC_TYPE_SIGNAL is expanded from... -configure.ac:116: the top level]) -m4trace:configure.ac:116: -1- AC_DEFINE_TRACE_LITERAL([RETSIGTYPE]) -m4trace:configure.ac:116: -1- m4_pattern_allow([^RETSIGTYPE$]) -m4trace:configure.ac:116: -1- AH_OUTPUT([RETSIGTYPE], [/* Define as the return type of signal handlers (`int\' or `void\'). */ -@%:@undef RETSIGTYPE]) -m4trace:configure.ac:117: -1- AC_DEFINE_TRACE_LITERAL([uid_t]) -m4trace:configure.ac:117: -1- m4_pattern_allow([^uid_t$]) -m4trace:configure.ac:117: -1- AH_OUTPUT([uid_t], [/* Define to `int\' if doesn\'t define. */ +m4trace:configure.ac:123: -1- AC_DEFINE_TRACE_LITERAL([uid_t]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^uid_t$]) +m4trace:configure.ac:123: -1- AH_OUTPUT([uid_t], [/* Define as \'int\' if doesn\'t define. */ @%:@undef uid_t]) -m4trace:configure.ac:117: -1- AC_DEFINE_TRACE_LITERAL([gid_t]) -m4trace:configure.ac:117: -1- m4_pattern_allow([^gid_t$]) -m4trace:configure.ac:117: -1- AH_OUTPUT([gid_t], [/* Define to `int\' if doesn\'t define. */ +m4trace:configure.ac:123: -1- AC_DEFINE_TRACE_LITERAL([gid_t]) +m4trace:configure.ac:123: -1- m4_pattern_allow([^gid_t$]) +m4trace:configure.ac:123: -1- AH_OUTPUT([gid_t], [/* Define as \'int\' if doesn\'t define. */ @%:@undef gid_t]) -m4trace:configure.ac:118: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DECL_ENVIRON]) -m4trace:configure.ac:118: -1- m4_pattern_allow([^HAVE_DECL_ENVIRON$]) -m4trace:configure.ac:118: -1- AH_OUTPUT([HAVE_DECL_ENVIRON], [/* Define to 1 if you have the declaration of `environ\', and to 0 if you +m4trace:configure.ac:124: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DECL_ENVIRON]) +m4trace:configure.ac:124: -1- m4_pattern_allow([^HAVE_DECL_ENVIRON$]) +m4trace:configure.ac:124: -1- AH_OUTPUT([HAVE_DECL_ENVIRON], [/* Define to 1 if you have the declaration of \'environ\', and to 0 if you don\'t. */ @%:@undef HAVE_DECL_ENVIRON]) -m4trace:configure.ac:138: -1- AC_SUBST([HAVE_QSORT_R]) -m4trace:configure.ac:138: -1- AC_SUBST_TRACE([HAVE_QSORT_R]) -m4trace:configure.ac:138: -1- m4_pattern_allow([^HAVE_QSORT_R$]) -m4trace:configure.ac:139: -1- AC_DEFINE_TRACE_LITERAL([HAVE_QSORT_R]) -m4trace:configure.ac:139: -1- m4_pattern_allow([^HAVE_QSORT_R$]) -m4trace:configure.ac:139: -1- AH_OUTPUT([HAVE_QSORT_R], [/* Define to 1 if you have qsort_r available */ +m4trace:configure.ac:126: -1- AH_OUTPUT([HAVE_BYTESWAP_H], [/* Define to 1 if you have the header file. */ +@%:@undef HAVE_BYTESWAP_H]) +m4trace:configure.ac:126: -1- AC_DEFINE_TRACE_LITERAL([HAVE_BYTESWAP_H]) +m4trace:configure.ac:126: -1- m4_pattern_allow([^HAVE_BYTESWAP_H$]) +m4trace:configure.ac:127: -1- AH_OUTPUT([HAVE___BUILTIN_BSWAP16], [/* Define to 1 if you have the \'__builtin_bswap16\' function. */ +@%:@undef HAVE___BUILTIN_BSWAP16]) +m4trace:configure.ac:127: -1- AC_DEFINE_TRACE_LITERAL([HAVE___BUILTIN_BSWAP16]) +m4trace:configure.ac:127: -1- m4_pattern_allow([^HAVE___BUILTIN_BSWAP16$]) +m4trace:configure.ac:127: -1- AH_OUTPUT([HAVE___BUILTIN_BSWAP32], [/* Define to 1 if you have the \'__builtin_bswap32\' function. */ +@%:@undef HAVE___BUILTIN_BSWAP32]) +m4trace:configure.ac:127: -1- AC_DEFINE_TRACE_LITERAL([HAVE___BUILTIN_BSWAP32]) +m4trace:configure.ac:127: -1- m4_pattern_allow([^HAVE___BUILTIN_BSWAP32$]) +m4trace:configure.ac:127: -1- AH_OUTPUT([HAVE___BUILTIN_BSWAP64], [/* Define to 1 if you have the \'__builtin_bswap64\' function. */ +@%:@undef HAVE___BUILTIN_BSWAP64]) +m4trace:configure.ac:127: -1- AC_DEFINE_TRACE_LITERAL([HAVE___BUILTIN_BSWAP64]) +m4trace:configure.ac:127: -1- m4_pattern_allow([^HAVE___BUILTIN_BSWAP64$]) +m4trace:configure.ac:147: -1- AC_SUBST([HAVE_STATIC]) +m4trace:configure.ac:147: -1- AC_SUBST_TRACE([HAVE_STATIC]) +m4trace:configure.ac:147: -1- m4_pattern_allow([^HAVE_STATIC$]) +m4trace:configure.ac:148: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STATIC]) +m4trace:configure.ac:148: -1- m4_pattern_allow([^HAVE_STATIC$]) +m4trace:configure.ac:148: -1- AH_OUTPUT([HAVE_STATIC], [/* Define to 1 if static linking is available */ +@%:@undef HAVE_STATIC]) +m4trace:configure.ac:149: -1- AM_CONDITIONAL([HAVE_STATIC], [ test x$HAVE_STATIC = x1 ]) +m4trace:configure.ac:149: -1- AC_SUBST([HAVE_STATIC_TRUE]) +m4trace:configure.ac:149: -1- AC_SUBST_TRACE([HAVE_STATIC_TRUE]) +m4trace:configure.ac:149: -1- m4_pattern_allow([^HAVE_STATIC_TRUE$]) +m4trace:configure.ac:149: -1- AC_SUBST([HAVE_STATIC_FALSE]) +m4trace:configure.ac:149: -1- AC_SUBST_TRACE([HAVE_STATIC_FALSE]) +m4trace:configure.ac:149: -1- m4_pattern_allow([^HAVE_STATIC_FALSE$]) +m4trace:configure.ac:149: -1- _AM_SUBST_NOTMAKE([HAVE_STATIC_TRUE]) +m4trace:configure.ac:149: -1- _AM_SUBST_NOTMAKE([HAVE_STATIC_FALSE]) +m4trace:configure.ac:155: -1- AC_DEFINE_TRACE_LITERAL([HAVE_WSTRINGOP_OVERREAD]) +m4trace:configure.ac:155: -1- m4_pattern_allow([^HAVE_WSTRINGOP_OVERREAD$]) +m4trace:configure.ac:155: -1- AH_OUTPUT([HAVE_WSTRINGOP_OVERREAD], [/* Define to 1 if -Wstringop-overread is supported */ +@%:@undef HAVE_WSTRINGOP_OVERREAD]) +m4trace:configure.ac:165: -1- AC_SUBST([HAVE_PORTABLE_TARGET]) +m4trace:configure.ac:165: -1- AC_SUBST_TRACE([HAVE_PORTABLE_TARGET]) +m4trace:configure.ac:165: -1- m4_pattern_allow([^HAVE_PORTABLE_TARGET$]) +m4trace:configure.ac:166: -1- AC_DEFINE_TRACE_LITERAL([HAVE_PORTABLE_TARGET]) +m4trace:configure.ac:166: -1- m4_pattern_allow([^HAVE_PORTABLE_TARGET$]) +m4trace:configure.ac:166: -1- AH_OUTPUT([HAVE_PORTABLE_TARGET], [/* Define to 1 if PORTABLE_TARGET is enabled */ +@%:@undef HAVE_PORTABLE_TARGET]) +m4trace:configure.ac:167: -1- AM_CONDITIONAL([HAVE_PORTABLE_TARGET], [ test x$HAVE_PORTABLE_TARGET == x1 ]) +m4trace:configure.ac:167: -1- AC_SUBST([HAVE_PORTABLE_TARGET_TRUE]) +m4trace:configure.ac:167: -1- AC_SUBST_TRACE([HAVE_PORTABLE_TARGET_TRUE]) +m4trace:configure.ac:167: -1- m4_pattern_allow([^HAVE_PORTABLE_TARGET_TRUE$]) +m4trace:configure.ac:167: -1- AC_SUBST([HAVE_PORTABLE_TARGET_FALSE]) +m4trace:configure.ac:167: -1- AC_SUBST_TRACE([HAVE_PORTABLE_TARGET_FALSE]) +m4trace:configure.ac:167: -1- m4_pattern_allow([^HAVE_PORTABLE_TARGET_FALSE$]) +m4trace:configure.ac:167: -1- _AM_SUBST_NOTMAKE([HAVE_PORTABLE_TARGET_TRUE]) +m4trace:configure.ac:167: -1- _AM_SUBST_NOTMAKE([HAVE_PORTABLE_TARGET_FALSE]) +m4trace:configure.ac:169: -1- AM_CONDITIONAL([TARGET_CPU_X86], [ test x$target_cpu = xx86 ]) +m4trace:configure.ac:169: -1- AC_SUBST([TARGET_CPU_X86_TRUE]) +m4trace:configure.ac:169: -1- AC_SUBST_TRACE([TARGET_CPU_X86_TRUE]) +m4trace:configure.ac:169: -1- m4_pattern_allow([^TARGET_CPU_X86_TRUE$]) +m4trace:configure.ac:169: -1- AC_SUBST([TARGET_CPU_X86_FALSE]) +m4trace:configure.ac:169: -1- AC_SUBST_TRACE([TARGET_CPU_X86_FALSE]) +m4trace:configure.ac:169: -1- m4_pattern_allow([^TARGET_CPU_X86_FALSE$]) +m4trace:configure.ac:169: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_X86_TRUE]) +m4trace:configure.ac:169: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_X86_FALSE]) +m4trace:configure.ac:170: -1- AM_CONDITIONAL([TARGET_CPU_X86_64], [ test x$target_cpu = xx86_64 ]) +m4trace:configure.ac:170: -1- AC_SUBST([TARGET_CPU_X86_64_TRUE]) +m4trace:configure.ac:170: -1- AC_SUBST_TRACE([TARGET_CPU_X86_64_TRUE]) +m4trace:configure.ac:170: -1- m4_pattern_allow([^TARGET_CPU_X86_64_TRUE$]) +m4trace:configure.ac:170: -1- AC_SUBST([TARGET_CPU_X86_64_FALSE]) +m4trace:configure.ac:170: -1- AC_SUBST_TRACE([TARGET_CPU_X86_64_FALSE]) +m4trace:configure.ac:170: -1- m4_pattern_allow([^TARGET_CPU_X86_64_FALSE$]) +m4trace:configure.ac:170: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_X86_64_TRUE]) +m4trace:configure.ac:170: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_X86_64_FALSE]) +m4trace:configure.ac:171: -1- AM_CONDITIONAL([TARGET_CPU_ANY_X86], [ test x$target_cpu = xx86 -o x$target_cpu = xx86_64 ]) +m4trace:configure.ac:171: -1- AC_SUBST([TARGET_CPU_ANY_X86_TRUE]) +m4trace:configure.ac:171: -1- AC_SUBST_TRACE([TARGET_CPU_ANY_X86_TRUE]) +m4trace:configure.ac:171: -1- m4_pattern_allow([^TARGET_CPU_ANY_X86_TRUE$]) +m4trace:configure.ac:171: -1- AC_SUBST([TARGET_CPU_ANY_X86_FALSE]) +m4trace:configure.ac:171: -1- AC_SUBST_TRACE([TARGET_CPU_ANY_X86_FALSE]) +m4trace:configure.ac:171: -1- m4_pattern_allow([^TARGET_CPU_ANY_X86_FALSE$]) +m4trace:configure.ac:171: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ANY_X86_TRUE]) +m4trace:configure.ac:171: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ANY_X86_FALSE]) +m4trace:configure.ac:172: -1- AM_CONDITIONAL([TARGET_CPU_ARM], [ test x$target_cpu = xarm ]) +m4trace:configure.ac:172: -1- AC_SUBST([TARGET_CPU_ARM_TRUE]) +m4trace:configure.ac:172: -1- AC_SUBST_TRACE([TARGET_CPU_ARM_TRUE]) +m4trace:configure.ac:172: -1- m4_pattern_allow([^TARGET_CPU_ARM_TRUE$]) +m4trace:configure.ac:172: -1- AC_SUBST([TARGET_CPU_ARM_FALSE]) +m4trace:configure.ac:172: -1- AC_SUBST_TRACE([TARGET_CPU_ARM_FALSE]) +m4trace:configure.ac:172: -1- m4_pattern_allow([^TARGET_CPU_ARM_FALSE$]) +m4trace:configure.ac:172: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ARM_TRUE]) +m4trace:configure.ac:172: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ARM_FALSE]) +m4trace:configure.ac:173: -1- AM_CONDITIONAL([TARGET_CPU_ARM64], [ test x$target_cpu = xaarch64 ]) +m4trace:configure.ac:173: -1- AC_SUBST([TARGET_CPU_ARM64_TRUE]) +m4trace:configure.ac:173: -1- AC_SUBST_TRACE([TARGET_CPU_ARM64_TRUE]) +m4trace:configure.ac:173: -1- m4_pattern_allow([^TARGET_CPU_ARM64_TRUE$]) +m4trace:configure.ac:173: -1- AC_SUBST([TARGET_CPU_ARM64_FALSE]) +m4trace:configure.ac:173: -1- AC_SUBST_TRACE([TARGET_CPU_ARM64_FALSE]) +m4trace:configure.ac:173: -1- m4_pattern_allow([^TARGET_CPU_ARM64_FALSE$]) +m4trace:configure.ac:173: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ARM64_TRUE]) +m4trace:configure.ac:173: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ARM64_FALSE]) +m4trace:configure.ac:174: -1- AM_CONDITIONAL([TARGET_CPU_ANY_ARM], [ test x$target_cpu = xarm -o x$target_cpu = xaarch64 ]) +m4trace:configure.ac:174: -1- AC_SUBST([TARGET_CPU_ANY_ARM_TRUE]) +m4trace:configure.ac:174: -1- AC_SUBST_TRACE([TARGET_CPU_ANY_ARM_TRUE]) +m4trace:configure.ac:174: -1- m4_pattern_allow([^TARGET_CPU_ANY_ARM_TRUE$]) +m4trace:configure.ac:174: -1- AC_SUBST([TARGET_CPU_ANY_ARM_FALSE]) +m4trace:configure.ac:174: -1- AC_SUBST_TRACE([TARGET_CPU_ANY_ARM_FALSE]) +m4trace:configure.ac:174: -1- m4_pattern_allow([^TARGET_CPU_ANY_ARM_FALSE$]) +m4trace:configure.ac:174: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ANY_ARM_TRUE]) +m4trace:configure.ac:174: -1- _AM_SUBST_NOTMAKE([TARGET_CPU_ANY_ARM_FALSE]) +m4trace:configure.ac:176: -1- _AM_COND_IF([TARGET_CPU_ANY_X86]) +m4trace:configure.ac:176: -1- _AM_COND_ENDIF([TARGET_CPU_ANY_X86]) +m4trace:configure.ac:184: -1- _AM_COND_IF([TARGET_CPU_ARM]) +m4trace:configure.ac:184: -1- _AM_COND_ENDIF([TARGET_CPU_ARM]) +m4trace:configure.ac:189: -1- AM_CONDITIONAL([TARGET_HAS_SSE2], [ test "x$ax_cv_check_cflags__Werror__msse2" = x"yes" -a "x$enable_portable_target" != "xyes" ]) +m4trace:configure.ac:189: -1- AC_SUBST([TARGET_HAS_SSE2_TRUE]) +m4trace:configure.ac:189: -1- AC_SUBST_TRACE([TARGET_HAS_SSE2_TRUE]) +m4trace:configure.ac:189: -1- m4_pattern_allow([^TARGET_HAS_SSE2_TRUE$]) +m4trace:configure.ac:189: -1- AC_SUBST([TARGET_HAS_SSE2_FALSE]) +m4trace:configure.ac:189: -1- AC_SUBST_TRACE([TARGET_HAS_SSE2_FALSE]) +m4trace:configure.ac:189: -1- m4_pattern_allow([^TARGET_HAS_SSE2_FALSE$]) +m4trace:configure.ac:189: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_SSE2_TRUE]) +m4trace:configure.ac:189: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_SSE2_FALSE]) +m4trace:configure.ac:190: -1- AM_CONDITIONAL([TARGET_HAS_SSE41], [ test "x$ax_cv_check_cflags__Werror__msse4_1" = x"yes" -a "x$enable_portable_target" != "xyes" ]) +m4trace:configure.ac:190: -1- AC_SUBST([TARGET_HAS_SSE41_TRUE]) +m4trace:configure.ac:190: -1- AC_SUBST_TRACE([TARGET_HAS_SSE41_TRUE]) +m4trace:configure.ac:190: -1- m4_pattern_allow([^TARGET_HAS_SSE41_TRUE$]) +m4trace:configure.ac:190: -1- AC_SUBST([TARGET_HAS_SSE41_FALSE]) +m4trace:configure.ac:190: -1- AC_SUBST_TRACE([TARGET_HAS_SSE41_FALSE]) +m4trace:configure.ac:190: -1- m4_pattern_allow([^TARGET_HAS_SSE41_FALSE$]) +m4trace:configure.ac:190: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_SSE41_TRUE]) +m4trace:configure.ac:190: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_SSE41_FALSE]) +m4trace:configure.ac:191: -1- AM_CONDITIONAL([TARGET_HAS_AVX2], [ test "x$ax_cv_check_cflags__Werror__mavx2" = x"yes" -a "x$enable_portable_target" != "xyes" ]) +m4trace:configure.ac:191: -1- AC_SUBST([TARGET_HAS_AVX2_TRUE]) +m4trace:configure.ac:191: -1- AC_SUBST_TRACE([TARGET_HAS_AVX2_TRUE]) +m4trace:configure.ac:191: -1- m4_pattern_allow([^TARGET_HAS_AVX2_TRUE$]) +m4trace:configure.ac:191: -1- AC_SUBST([TARGET_HAS_AVX2_FALSE]) +m4trace:configure.ac:191: -1- AC_SUBST_TRACE([TARGET_HAS_AVX2_FALSE]) +m4trace:configure.ac:191: -1- m4_pattern_allow([^TARGET_HAS_AVX2_FALSE$]) +m4trace:configure.ac:191: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_AVX2_TRUE]) +m4trace:configure.ac:191: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_AVX2_FALSE]) +m4trace:configure.ac:192: -1- AM_CONDITIONAL([TARGET_HAS_AVX512], [ test "x$ax_cv_check_cflags__Werror__mavx512f__mavx512vl" = x"yes" -a "x$enable_portable_target" != "xyes" ]) +m4trace:configure.ac:192: -1- AC_SUBST([TARGET_HAS_AVX512_TRUE]) +m4trace:configure.ac:192: -1- AC_SUBST_TRACE([TARGET_HAS_AVX512_TRUE]) +m4trace:configure.ac:192: -1- m4_pattern_allow([^TARGET_HAS_AVX512_TRUE$]) +m4trace:configure.ac:192: -1- AC_SUBST([TARGET_HAS_AVX512_FALSE]) +m4trace:configure.ac:192: -1- AC_SUBST_TRACE([TARGET_HAS_AVX512_FALSE]) +m4trace:configure.ac:192: -1- m4_pattern_allow([^TARGET_HAS_AVX512_FALSE$]) +m4trace:configure.ac:192: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_AVX512_TRUE]) +m4trace:configure.ac:192: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_AVX512_FALSE]) +m4trace:configure.ac:194: -1- AM_CONDITIONAL([TARGET_HAS_NEON], [ test \( x$target_cpu = xaarch64 -o "x$ax_cv_check_cflags__Werror__mcpu_neon" = x"yes" \) -a "x$enable_portable_target" != "xyes" ]) +m4trace:configure.ac:194: -1- AC_SUBST([TARGET_HAS_NEON_TRUE]) +m4trace:configure.ac:194: -1- AC_SUBST_TRACE([TARGET_HAS_NEON_TRUE]) +m4trace:configure.ac:194: -1- m4_pattern_allow([^TARGET_HAS_NEON_TRUE$]) +m4trace:configure.ac:194: -1- AC_SUBST([TARGET_HAS_NEON_FALSE]) +m4trace:configure.ac:194: -1- AC_SUBST_TRACE([TARGET_HAS_NEON_FALSE]) +m4trace:configure.ac:194: -1- m4_pattern_allow([^TARGET_HAS_NEON_FALSE$]) +m4trace:configure.ac:194: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_NEON_TRUE]) +m4trace:configure.ac:194: -1- _AM_SUBST_NOTMAKE([TARGET_HAS_NEON_FALSE]) +m4trace:configure.ac:196: -2- AC_DEFINE_TRACE_LITERAL([TARGET_HAS_SSE2]) +m4trace:configure.ac:196: -2- m4_pattern_allow([^TARGET_HAS_SSE2$]) +m4trace:configure.ac:196: -2- AH_OUTPUT([TARGET_HAS_SSE2], [/* SSE2 target support */ +@%:@undef TARGET_HAS_SSE2]) +m4trace:configure.ac:196: -1- _AM_COND_IF([TARGET_HAS_SSE2]) +m4trace:configure.ac:196: -1- _AM_COND_ENDIF([TARGET_HAS_SSE2]) +m4trace:configure.ac:197: -2- AC_DEFINE_TRACE_LITERAL([TARGET_HAS_SSE41]) +m4trace:configure.ac:197: -2- m4_pattern_allow([^TARGET_HAS_SSE41$]) +m4trace:configure.ac:197: -2- AH_OUTPUT([TARGET_HAS_SSE41], [/* SSE41 target support */ +@%:@undef TARGET_HAS_SSE41]) +m4trace:configure.ac:197: -1- _AM_COND_IF([TARGET_HAS_SSE41]) +m4trace:configure.ac:197: -1- _AM_COND_ENDIF([TARGET_HAS_SSE41]) +m4trace:configure.ac:198: -2- AC_DEFINE_TRACE_LITERAL([TARGET_HAS_AVX2]) +m4trace:configure.ac:198: -2- m4_pattern_allow([^TARGET_HAS_AVX2$]) +m4trace:configure.ac:198: -2- AH_OUTPUT([TARGET_HAS_AVX2], [/* AVX2 target support */ +@%:@undef TARGET_HAS_AVX2]) +m4trace:configure.ac:198: -1- _AM_COND_IF([TARGET_HAS_AVX2]) +m4trace:configure.ac:198: -1- _AM_COND_ENDIF([TARGET_HAS_AVX2]) +m4trace:configure.ac:199: -2- AC_DEFINE_TRACE_LITERAL([TARGET_HAS_AVX512]) +m4trace:configure.ac:199: -2- m4_pattern_allow([^TARGET_HAS_AVX512$]) +m4trace:configure.ac:199: -2- AH_OUTPUT([TARGET_HAS_AVX512], [/* AVX512 target support */ +@%:@undef TARGET_HAS_AVX512]) +m4trace:configure.ac:199: -1- _AM_COND_IF([TARGET_HAS_AVX512]) +m4trace:configure.ac:199: -1- _AM_COND_ENDIF([TARGET_HAS_AVX512]) +m4trace:configure.ac:201: -2- AC_DEFINE_TRACE_LITERAL([TARGET_HAS_NEON]) +m4trace:configure.ac:201: -2- m4_pattern_allow([^TARGET_HAS_NEON$]) +m4trace:configure.ac:201: -2- AH_OUTPUT([TARGET_HAS_NEON], [/* NEON target support */ +@%:@undef TARGET_HAS_NEON]) +m4trace:configure.ac:201: -1- _AM_COND_IF([TARGET_HAS_NEON]) +m4trace:configure.ac:201: -1- _AM_COND_ENDIF([TARGET_HAS_NEON]) +m4trace:configure.ac:227: -1- AC_SUBST([HAVE_ASAN]) +m4trace:configure.ac:227: -1- AC_SUBST_TRACE([HAVE_ASAN]) +m4trace:configure.ac:227: -1- m4_pattern_allow([^HAVE_ASAN$]) +m4trace:configure.ac:228: -1- AC_SUBST([ASAN_CFLAGS]) +m4trace:configure.ac:228: -1- AC_SUBST_TRACE([ASAN_CFLAGS]) +m4trace:configure.ac:228: -1- m4_pattern_allow([^ASAN_CFLAGS$]) +m4trace:configure.ac:229: -1- AC_SUBST([ASAN_LIBS]) +m4trace:configure.ac:229: -1- AC_SUBST_TRACE([ASAN_LIBS]) +m4trace:configure.ac:229: -1- m4_pattern_allow([^ASAN_LIBS$]) +m4trace:configure.ac:230: -1- AM_CONDITIONAL([HAVE_ASAN], [ test x$HAVE_ASAN = x1 ]) +m4trace:configure.ac:230: -1- AC_SUBST([HAVE_ASAN_TRUE]) +m4trace:configure.ac:230: -1- AC_SUBST_TRACE([HAVE_ASAN_TRUE]) +m4trace:configure.ac:230: -1- m4_pattern_allow([^HAVE_ASAN_TRUE$]) +m4trace:configure.ac:230: -1- AC_SUBST([HAVE_ASAN_FALSE]) +m4trace:configure.ac:230: -1- AC_SUBST_TRACE([HAVE_ASAN_FALSE]) +m4trace:configure.ac:230: -1- m4_pattern_allow([^HAVE_ASAN_FALSE$]) +m4trace:configure.ac:230: -1- _AM_SUBST_NOTMAKE([HAVE_ASAN_TRUE]) +m4trace:configure.ac:230: -1- _AM_SUBST_NOTMAKE([HAVE_ASAN_FALSE]) +m4trace:configure.ac:232: -1- AC_DEFINE_TRACE_LITERAL([HAVE_ASAN]) +m4trace:configure.ac:232: -1- m4_pattern_allow([^HAVE_ASAN$]) +m4trace:configure.ac:232: -1- AH_OUTPUT([HAVE_ASAN], [/* Define to 1 if ASAN is enabled */ +@%:@undef HAVE_ASAN]) +m4trace:configure.ac:238: -1- AC_SUBST([HAVE_QSORT_R]) +m4trace:configure.ac:238: -1- AC_SUBST_TRACE([HAVE_QSORT_R]) +m4trace:configure.ac:238: -1- m4_pattern_allow([^HAVE_QSORT_R$]) +m4trace:configure.ac:239: -1- AC_DEFINE_TRACE_LITERAL([HAVE_QSORT_R]) +m4trace:configure.ac:239: -1- m4_pattern_allow([^HAVE_QSORT_R$]) +m4trace:configure.ac:239: -1- AH_OUTPUT([HAVE_QSORT_R], [/* Define to 1 if you have qsort_r available */ @%:@undef HAVE_QSORT_R]) -m4trace:configure.ac:140: -1- AM_CONDITIONAL([HAVE_QSORT_R], [ test x$HAVE_QSORT_R = x1 ]) -m4trace:configure.ac:140: -1- AC_SUBST([HAVE_QSORT_R_TRUE]) -m4trace:configure.ac:140: -1- AC_SUBST_TRACE([HAVE_QSORT_R_TRUE]) -m4trace:configure.ac:140: -1- m4_pattern_allow([^HAVE_QSORT_R_TRUE$]) -m4trace:configure.ac:140: -1- AC_SUBST([HAVE_QSORT_R_FALSE]) -m4trace:configure.ac:140: -1- AC_SUBST_TRACE([HAVE_QSORT_R_FALSE]) -m4trace:configure.ac:140: -1- m4_pattern_allow([^HAVE_QSORT_R_FALSE$]) -m4trace:configure.ac:140: -1- _AM_SUBST_NOTMAKE([HAVE_QSORT_R_TRUE]) -m4trace:configure.ac:140: -1- _AM_SUBST_NOTMAKE([HAVE_QSORT_R_FALSE]) -m4trace:configure.ac:142: -1- AC_SUBST([LIBYAML_CFLAGS]) -m4trace:configure.ac:142: -1- AC_SUBST_TRACE([LIBYAML_CFLAGS]) -m4trace:configure.ac:142: -1- m4_pattern_allow([^LIBYAML_CFLAGS$]) -m4trace:configure.ac:142: -1- AC_SUBST([LIBYAML_LIBS]) -m4trace:configure.ac:142: -1- AC_SUBST_TRACE([LIBYAML_LIBS]) -m4trace:configure.ac:142: -1- m4_pattern_allow([^LIBYAML_LIBS$]) -m4trace:configure.ac:149: -1- AC_SUBST([HAVE_LIBYAML]) -m4trace:configure.ac:149: -1- AC_SUBST_TRACE([HAVE_LIBYAML]) -m4trace:configure.ac:149: -1- m4_pattern_allow([^HAVE_LIBYAML$]) -m4trace:configure.ac:150: -1- AC_SUBST([LIBYAML_CFLAGS]) -m4trace:configure.ac:150: -1- AC_SUBST_TRACE([LIBYAML_CFLAGS]) -m4trace:configure.ac:150: -1- m4_pattern_allow([^LIBYAML_CFLAGS$]) -m4trace:configure.ac:151: -1- AC_SUBST([LIBYAML_LIBS]) -m4trace:configure.ac:151: -1- AC_SUBST_TRACE([LIBYAML_LIBS]) -m4trace:configure.ac:151: -1- m4_pattern_allow([^LIBYAML_LIBS$]) -m4trace:configure.ac:152: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBYAML]) -m4trace:configure.ac:152: -1- m4_pattern_allow([^HAVE_LIBYAML$]) -m4trace:configure.ac:152: -1- AH_OUTPUT([HAVE_LIBYAML], [/* Define to 1 if you have libyaml available */ +m4trace:configure.ac:240: -1- AM_CONDITIONAL([HAVE_QSORT_R], [ test x$HAVE_QSORT_R = x1 ]) +m4trace:configure.ac:240: -1- AC_SUBST([HAVE_QSORT_R_TRUE]) +m4trace:configure.ac:240: -1- AC_SUBST_TRACE([HAVE_QSORT_R_TRUE]) +m4trace:configure.ac:240: -1- m4_pattern_allow([^HAVE_QSORT_R_TRUE$]) +m4trace:configure.ac:240: -1- AC_SUBST([HAVE_QSORT_R_FALSE]) +m4trace:configure.ac:240: -1- AC_SUBST_TRACE([HAVE_QSORT_R_FALSE]) +m4trace:configure.ac:240: -1- m4_pattern_allow([^HAVE_QSORT_R_FALSE$]) +m4trace:configure.ac:240: -1- _AM_SUBST_NOTMAKE([HAVE_QSORT_R_TRUE]) +m4trace:configure.ac:240: -1- _AM_SUBST_NOTMAKE([HAVE_QSORT_R_FALSE]) +m4trace:configure.ac:242: -1- AC_SUBST([LIBYAML_CFLAGS]) +m4trace:configure.ac:242: -1- AC_SUBST_TRACE([LIBYAML_CFLAGS]) +m4trace:configure.ac:242: -1- m4_pattern_allow([^LIBYAML_CFLAGS$]) +m4trace:configure.ac:242: -1- AC_SUBST([LIBYAML_LIBS]) +m4trace:configure.ac:242: -1- AC_SUBST_TRACE([LIBYAML_LIBS]) +m4trace:configure.ac:242: -1- m4_pattern_allow([^LIBYAML_LIBS$]) +m4trace:configure.ac:249: -1- AC_SUBST([HAVE_LIBYAML]) +m4trace:configure.ac:249: -1- AC_SUBST_TRACE([HAVE_LIBYAML]) +m4trace:configure.ac:249: -1- m4_pattern_allow([^HAVE_LIBYAML$]) +m4trace:configure.ac:250: -1- AC_SUBST([LIBYAML_CFLAGS]) +m4trace:configure.ac:250: -1- AC_SUBST_TRACE([LIBYAML_CFLAGS]) +m4trace:configure.ac:250: -1- m4_pattern_allow([^LIBYAML_CFLAGS$]) +m4trace:configure.ac:251: -1- AC_SUBST([LIBYAML_LIBS]) +m4trace:configure.ac:251: -1- AC_SUBST_TRACE([LIBYAML_LIBS]) +m4trace:configure.ac:251: -1- m4_pattern_allow([^LIBYAML_LIBS$]) +m4trace:configure.ac:252: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBYAML]) +m4trace:configure.ac:252: -1- m4_pattern_allow([^HAVE_LIBYAML$]) +m4trace:configure.ac:252: -1- AH_OUTPUT([HAVE_LIBYAML], [/* Define to 1 if you have libyaml available */ @%:@undef HAVE_LIBYAML]) -m4trace:configure.ac:153: -1- AM_CONDITIONAL([HAVE_LIBYAML], [ test x$HAVE_LIBYAML = x1 ]) -m4trace:configure.ac:153: -1- AC_SUBST([HAVE_LIBYAML_TRUE]) -m4trace:configure.ac:153: -1- AC_SUBST_TRACE([HAVE_LIBYAML_TRUE]) -m4trace:configure.ac:153: -1- m4_pattern_allow([^HAVE_LIBYAML_TRUE$]) -m4trace:configure.ac:153: -1- AC_SUBST([HAVE_LIBYAML_FALSE]) -m4trace:configure.ac:153: -1- AC_SUBST_TRACE([HAVE_LIBYAML_FALSE]) -m4trace:configure.ac:153: -1- m4_pattern_allow([^HAVE_LIBYAML_FALSE$]) -m4trace:configure.ac:153: -1- _AM_SUBST_NOTMAKE([HAVE_LIBYAML_TRUE]) -m4trace:configure.ac:153: -1- _AM_SUBST_NOTMAKE([HAVE_LIBYAML_FALSE]) -m4trace:configure.ac:155: -1- AC_SUBST([CHECK_CFLAGS]) -m4trace:configure.ac:155: -1- AC_SUBST_TRACE([CHECK_CFLAGS]) -m4trace:configure.ac:155: -1- m4_pattern_allow([^CHECK_CFLAGS$]) -m4trace:configure.ac:155: -1- AC_SUBST([CHECK_LIBS]) -m4trace:configure.ac:155: -1- AC_SUBST_TRACE([CHECK_LIBS]) -m4trace:configure.ac:155: -1- m4_pattern_allow([^CHECK_LIBS$]) -m4trace:configure.ac:157: -1- AC_SUBST([HAVE_CHECK]) -m4trace:configure.ac:157: -1- AC_SUBST_TRACE([HAVE_CHECK]) -m4trace:configure.ac:157: -1- m4_pattern_allow([^HAVE_CHECK$]) -m4trace:configure.ac:158: -1- AC_SUBST([CHECK_CFLAGS]) -m4trace:configure.ac:158: -1- AC_SUBST_TRACE([CHECK_CFLAGS]) -m4trace:configure.ac:158: -1- m4_pattern_allow([^CHECK_CFLAGS$]) -m4trace:configure.ac:159: -1- AC_SUBST([CHECK_LDFLAGS]) -m4trace:configure.ac:159: -1- AC_SUBST_TRACE([CHECK_LDFLAGS]) -m4trace:configure.ac:159: -1- m4_pattern_allow([^CHECK_LDFLAGS$]) -m4trace:configure.ac:160: -1- AC_SUBST([CHECK_LIBS]) -m4trace:configure.ac:160: -1- AC_SUBST_TRACE([CHECK_LIBS]) -m4trace:configure.ac:160: -1- m4_pattern_allow([^CHECK_LIBS$]) -m4trace:configure.ac:161: -1- AC_DEFINE_TRACE_LITERAL([HAVE_CHECK]) -m4trace:configure.ac:161: -1- m4_pattern_allow([^HAVE_CHECK$]) -m4trace:configure.ac:161: -1- AH_OUTPUT([HAVE_CHECK], [/* Define to 1 if you have check available */ +m4trace:configure.ac:253: -1- AM_CONDITIONAL([HAVE_LIBYAML], [ test x$HAVE_LIBYAML = x1 ]) +m4trace:configure.ac:253: -1- AC_SUBST([HAVE_LIBYAML_TRUE]) +m4trace:configure.ac:253: -1- AC_SUBST_TRACE([HAVE_LIBYAML_TRUE]) +m4trace:configure.ac:253: -1- m4_pattern_allow([^HAVE_LIBYAML_TRUE$]) +m4trace:configure.ac:253: -1- AC_SUBST([HAVE_LIBYAML_FALSE]) +m4trace:configure.ac:253: -1- AC_SUBST_TRACE([HAVE_LIBYAML_FALSE]) +m4trace:configure.ac:253: -1- m4_pattern_allow([^HAVE_LIBYAML_FALSE$]) +m4trace:configure.ac:253: -1- _AM_SUBST_NOTMAKE([HAVE_LIBYAML_TRUE]) +m4trace:configure.ac:253: -1- _AM_SUBST_NOTMAKE([HAVE_LIBYAML_FALSE]) +m4trace:configure.ac:255: -1- AC_SUBST([CHECK_CFLAGS]) +m4trace:configure.ac:255: -1- AC_SUBST_TRACE([CHECK_CFLAGS]) +m4trace:configure.ac:255: -1- m4_pattern_allow([^CHECK_CFLAGS$]) +m4trace:configure.ac:255: -1- AC_SUBST([CHECK_LIBS]) +m4trace:configure.ac:255: -1- AC_SUBST_TRACE([CHECK_LIBS]) +m4trace:configure.ac:255: -1- m4_pattern_allow([^CHECK_LIBS$]) +m4trace:configure.ac:257: -1- AC_SUBST([HAVE_CHECK]) +m4trace:configure.ac:257: -1- AC_SUBST_TRACE([HAVE_CHECK]) +m4trace:configure.ac:257: -1- m4_pattern_allow([^HAVE_CHECK$]) +m4trace:configure.ac:258: -1- AC_SUBST([CHECK_CFLAGS]) +m4trace:configure.ac:258: -1- AC_SUBST_TRACE([CHECK_CFLAGS]) +m4trace:configure.ac:258: -1- m4_pattern_allow([^CHECK_CFLAGS$]) +m4trace:configure.ac:259: -1- AC_SUBST([CHECK_LDFLAGS]) +m4trace:configure.ac:259: -1- AC_SUBST_TRACE([CHECK_LDFLAGS]) +m4trace:configure.ac:259: -1- m4_pattern_allow([^CHECK_LDFLAGS$]) +m4trace:configure.ac:260: -1- AC_SUBST([CHECK_LIBS]) +m4trace:configure.ac:260: -1- AC_SUBST_TRACE([CHECK_LIBS]) +m4trace:configure.ac:260: -1- m4_pattern_allow([^CHECK_LIBS$]) +m4trace:configure.ac:261: -1- AC_DEFINE_TRACE_LITERAL([HAVE_CHECK]) +m4trace:configure.ac:261: -1- m4_pattern_allow([^HAVE_CHECK$]) +m4trace:configure.ac:261: -1- AH_OUTPUT([HAVE_CHECK], [/* Define to 1 if you have check available */ @%:@undef HAVE_CHECK]) -m4trace:configure.ac:162: -1- AM_CONDITIONAL([HAVE_CHECK], [ test x$HAVE_CHECK = x1 ]) -m4trace:configure.ac:162: -1- AC_SUBST([HAVE_CHECK_TRUE]) -m4trace:configure.ac:162: -1- AC_SUBST_TRACE([HAVE_CHECK_TRUE]) -m4trace:configure.ac:162: -1- m4_pattern_allow([^HAVE_CHECK_TRUE$]) -m4trace:configure.ac:162: -1- AC_SUBST([HAVE_CHECK_FALSE]) -m4trace:configure.ac:162: -1- AC_SUBST_TRACE([HAVE_CHECK_FALSE]) -m4trace:configure.ac:162: -1- m4_pattern_allow([^HAVE_CHECK_FALSE$]) -m4trace:configure.ac:162: -1- _AM_SUBST_NOTMAKE([HAVE_CHECK_TRUE]) -m4trace:configure.ac:162: -1- _AM_SUBST_NOTMAKE([HAVE_CHECK_FALSE]) -m4trace:configure.ac:180: -1- AC_SUBST([HAVE_COMPATIBLE_CHECK]) -m4trace:configure.ac:180: -1- AC_SUBST_TRACE([HAVE_COMPATIBLE_CHECK]) -m4trace:configure.ac:180: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK$]) -m4trace:configure.ac:181: -1- AC_DEFINE_TRACE_LITERAL([HAVE_COMPATIBLE_CHECK]) -m4trace:configure.ac:181: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK$]) -m4trace:configure.ac:181: -1- AH_OUTPUT([HAVE_COMPATIBLE_CHECK], [/* Define to 1 if you have a compatible version of check available */ +m4trace:configure.ac:262: -1- AM_CONDITIONAL([HAVE_CHECK], [ test x$HAVE_CHECK = x1 ]) +m4trace:configure.ac:262: -1- AC_SUBST([HAVE_CHECK_TRUE]) +m4trace:configure.ac:262: -1- AC_SUBST_TRACE([HAVE_CHECK_TRUE]) +m4trace:configure.ac:262: -1- m4_pattern_allow([^HAVE_CHECK_TRUE$]) +m4trace:configure.ac:262: -1- AC_SUBST([HAVE_CHECK_FALSE]) +m4trace:configure.ac:262: -1- AC_SUBST_TRACE([HAVE_CHECK_FALSE]) +m4trace:configure.ac:262: -1- m4_pattern_allow([^HAVE_CHECK_FALSE$]) +m4trace:configure.ac:262: -1- _AM_SUBST_NOTMAKE([HAVE_CHECK_TRUE]) +m4trace:configure.ac:262: -1- _AM_SUBST_NOTMAKE([HAVE_CHECK_FALSE]) +m4trace:configure.ac:280: -1- AC_SUBST([HAVE_COMPATIBLE_CHECK]) +m4trace:configure.ac:280: -1- AC_SUBST_TRACE([HAVE_COMPATIBLE_CHECK]) +m4trace:configure.ac:280: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK$]) +m4trace:configure.ac:281: -1- AC_DEFINE_TRACE_LITERAL([HAVE_COMPATIBLE_CHECK]) +m4trace:configure.ac:281: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK$]) +m4trace:configure.ac:281: -1- AH_OUTPUT([HAVE_COMPATIBLE_CHECK], [/* Define to 1 if you have a compatible version of check available */ @%:@undef HAVE_COMPATIBLE_CHECK]) -m4trace:configure.ac:182: -1- AM_CONDITIONAL([HAVE_COMPATIBLE_CHECK], [ test x$HAVE_COMPATIBLE_CHECK = x1 ]) -m4trace:configure.ac:182: -1- AC_SUBST([HAVE_COMPATIBLE_CHECK_TRUE]) -m4trace:configure.ac:182: -1- AC_SUBST_TRACE([HAVE_COMPATIBLE_CHECK_TRUE]) -m4trace:configure.ac:182: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK_TRUE$]) -m4trace:configure.ac:182: -1- AC_SUBST([HAVE_COMPATIBLE_CHECK_FALSE]) -m4trace:configure.ac:182: -1- AC_SUBST_TRACE([HAVE_COMPATIBLE_CHECK_FALSE]) -m4trace:configure.ac:182: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK_FALSE$]) -m4trace:configure.ac:182: -1- _AM_SUBST_NOTMAKE([HAVE_COMPATIBLE_CHECK_TRUE]) -m4trace:configure.ac:182: -1- _AM_SUBST_NOTMAKE([HAVE_COMPATIBLE_CHECK_FALSE]) -m4trace:configure.ac:194: -1- AC_SUBST([HAVE_NETWORK]) -m4trace:configure.ac:194: -1- AC_SUBST_TRACE([HAVE_NETWORK]) -m4trace:configure.ac:194: -1- m4_pattern_allow([^HAVE_NETWORK$]) -m4trace:configure.ac:195: -1- AM_CONDITIONAL([HAVE_NETWORK], [ test x$HAVE_NETWORK = x1 ]) -m4trace:configure.ac:195: -1- AC_SUBST([HAVE_NETWORK_TRUE]) -m4trace:configure.ac:195: -1- AC_SUBST_TRACE([HAVE_NETWORK_TRUE]) -m4trace:configure.ac:195: -1- m4_pattern_allow([^HAVE_NETWORK_TRUE$]) -m4trace:configure.ac:195: -1- AC_SUBST([HAVE_NETWORK_FALSE]) -m4trace:configure.ac:195: -1- AC_SUBST_TRACE([HAVE_NETWORK_FALSE]) -m4trace:configure.ac:195: -1- m4_pattern_allow([^HAVE_NETWORK_FALSE$]) -m4trace:configure.ac:195: -1- _AM_SUBST_NOTMAKE([HAVE_NETWORK_TRUE]) -m4trace:configure.ac:195: -1- _AM_SUBST_NOTMAKE([HAVE_NETWORK_FALSE]) -m4trace:configure.ac:208: -1- AC_SUBST([HAVE_DEVMODE]) -m4trace:configure.ac:208: -1- AC_SUBST_TRACE([HAVE_DEVMODE]) -m4trace:configure.ac:208: -1- m4_pattern_allow([^HAVE_DEVMODE$]) -m4trace:configure.ac:209: -1- AM_CONDITIONAL([HAVE_DEVMODE], [ test x$HAVE_DEVMODE = x1 ]) -m4trace:configure.ac:209: -1- AC_SUBST([HAVE_DEVMODE_TRUE]) -m4trace:configure.ac:209: -1- AC_SUBST_TRACE([HAVE_DEVMODE_TRUE]) -m4trace:configure.ac:209: -1- m4_pattern_allow([^HAVE_DEVMODE_TRUE$]) -m4trace:configure.ac:209: -1- AC_SUBST([HAVE_DEVMODE_FALSE]) -m4trace:configure.ac:209: -1- AC_SUBST_TRACE([HAVE_DEVMODE_FALSE]) -m4trace:configure.ac:209: -1- m4_pattern_allow([^HAVE_DEVMODE_FALSE$]) -m4trace:configure.ac:209: -1- _AM_SUBST_NOTMAKE([HAVE_DEVMODE_TRUE]) -m4trace:configure.ac:209: -1- _AM_SUBST_NOTMAKE([HAVE_DEVMODE_FALSE]) -m4trace:configure.ac:211: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DEVMODE]) -m4trace:configure.ac:211: -1- m4_pattern_allow([^HAVE_DEVMODE$]) -m4trace:configure.ac:211: -1- AH_OUTPUT([HAVE_DEVMODE], [/* Define to 1 if developer mode is enabled */ +m4trace:configure.ac:282: -1- AM_CONDITIONAL([HAVE_COMPATIBLE_CHECK], [ test x$HAVE_COMPATIBLE_CHECK = x1 ]) +m4trace:configure.ac:282: -1- AC_SUBST([HAVE_COMPATIBLE_CHECK_TRUE]) +m4trace:configure.ac:282: -1- AC_SUBST_TRACE([HAVE_COMPATIBLE_CHECK_TRUE]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK_TRUE$]) +m4trace:configure.ac:282: -1- AC_SUBST([HAVE_COMPATIBLE_CHECK_FALSE]) +m4trace:configure.ac:282: -1- AC_SUBST_TRACE([HAVE_COMPATIBLE_CHECK_FALSE]) +m4trace:configure.ac:282: -1- m4_pattern_allow([^HAVE_COMPATIBLE_CHECK_FALSE$]) +m4trace:configure.ac:282: -1- _AM_SUBST_NOTMAKE([HAVE_COMPATIBLE_CHECK_TRUE]) +m4trace:configure.ac:282: -1- _AM_SUBST_NOTMAKE([HAVE_COMPATIBLE_CHECK_FALSE]) +m4trace:configure.ac:294: -1- AC_SUBST([HAVE_NETWORK]) +m4trace:configure.ac:294: -1- AC_SUBST_TRACE([HAVE_NETWORK]) +m4trace:configure.ac:294: -1- m4_pattern_allow([^HAVE_NETWORK$]) +m4trace:configure.ac:295: -1- AM_CONDITIONAL([HAVE_NETWORK], [ test x$HAVE_NETWORK = x1 ]) +m4trace:configure.ac:295: -1- AC_SUBST([HAVE_NETWORK_TRUE]) +m4trace:configure.ac:295: -1- AC_SUBST_TRACE([HAVE_NETWORK_TRUE]) +m4trace:configure.ac:295: -1- m4_pattern_allow([^HAVE_NETWORK_TRUE$]) +m4trace:configure.ac:295: -1- AC_SUBST([HAVE_NETWORK_FALSE]) +m4trace:configure.ac:295: -1- AC_SUBST_TRACE([HAVE_NETWORK_FALSE]) +m4trace:configure.ac:295: -1- m4_pattern_allow([^HAVE_NETWORK_FALSE$]) +m4trace:configure.ac:295: -1- _AM_SUBST_NOTMAKE([HAVE_NETWORK_TRUE]) +m4trace:configure.ac:295: -1- _AM_SUBST_NOTMAKE([HAVE_NETWORK_FALSE]) +m4trace:configure.ac:308: -1- AC_SUBST([HAVE_DEVMODE]) +m4trace:configure.ac:308: -1- AC_SUBST_TRACE([HAVE_DEVMODE]) +m4trace:configure.ac:308: -1- m4_pattern_allow([^HAVE_DEVMODE$]) +m4trace:configure.ac:309: -1- AM_CONDITIONAL([HAVE_DEVMODE], [ test x$HAVE_DEVMODE = x1 ]) +m4trace:configure.ac:309: -1- AC_SUBST([HAVE_DEVMODE_TRUE]) +m4trace:configure.ac:309: -1- AC_SUBST_TRACE([HAVE_DEVMODE_TRUE]) +m4trace:configure.ac:309: -1- m4_pattern_allow([^HAVE_DEVMODE_TRUE$]) +m4trace:configure.ac:309: -1- AC_SUBST([HAVE_DEVMODE_FALSE]) +m4trace:configure.ac:309: -1- AC_SUBST_TRACE([HAVE_DEVMODE_FALSE]) +m4trace:configure.ac:309: -1- m4_pattern_allow([^HAVE_DEVMODE_FALSE$]) +m4trace:configure.ac:309: -1- _AM_SUBST_NOTMAKE([HAVE_DEVMODE_TRUE]) +m4trace:configure.ac:309: -1- _AM_SUBST_NOTMAKE([HAVE_DEVMODE_FALSE]) +m4trace:configure.ac:311: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DEVMODE]) +m4trace:configure.ac:311: -1- m4_pattern_allow([^HAVE_DEVMODE$]) +m4trace:configure.ac:311: -1- AH_OUTPUT([HAVE_DEVMODE], [/* Define to 1 if developer mode is enabled */ @%:@undef HAVE_DEVMODE]) -m4trace:configure.ac:214: -1- AC_SUBST([SPHINX]) -m4trace:configure.ac:214: -1- AC_SUBST_TRACE([SPHINX]) -m4trace:configure.ac:214: -1- m4_pattern_allow([^SPHINX$]) -m4trace:configure.ac:218: -1- AC_SUBST([PIP3]) -m4trace:configure.ac:218: -1- AC_SUBST_TRACE([PIP3]) -m4trace:configure.ac:218: -1- m4_pattern_allow([^PIP3$]) -m4trace:configure.ac:267: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SPHINX]) -m4trace:configure.ac:267: -1- m4_pattern_allow([^HAVE_SPHINX$]) -m4trace:configure.ac:267: -1- AH_OUTPUT([HAVE_SPHINX], [/* Define to 1 if you have sphinx (and all required packages) available */ +m4trace:configure.ac:314: -1- AC_SUBST([SPHINX]) +m4trace:configure.ac:314: -1- AC_SUBST_TRACE([SPHINX]) +m4trace:configure.ac:314: -1- m4_pattern_allow([^SPHINX$]) +m4trace:configure.ac:318: -1- AC_SUBST([PIP3]) +m4trace:configure.ac:318: -1- AC_SUBST_TRACE([PIP3]) +m4trace:configure.ac:318: -1- m4_pattern_allow([^PIP3$]) +m4trace:configure.ac:367: -1- AC_DEFINE_TRACE_LITERAL([HAVE_SPHINX]) +m4trace:configure.ac:367: -1- m4_pattern_allow([^HAVE_SPHINX$]) +m4trace:configure.ac:367: -1- AH_OUTPUT([HAVE_SPHINX], [/* Define to 1 if you have sphinx (and all required packages) available */ @%:@undef HAVE_SPHINX]) -m4trace:configure.ac:268: -1- AM_CONDITIONAL([HAVE_SPHINX], [ test x$HAVE_SPHINX = x1 ]) -m4trace:configure.ac:268: -1- AC_SUBST([HAVE_SPHINX_TRUE]) -m4trace:configure.ac:268: -1- AC_SUBST_TRACE([HAVE_SPHINX_TRUE]) -m4trace:configure.ac:268: -1- m4_pattern_allow([^HAVE_SPHINX_TRUE$]) -m4trace:configure.ac:268: -1- AC_SUBST([HAVE_SPHINX_FALSE]) -m4trace:configure.ac:268: -1- AC_SUBST_TRACE([HAVE_SPHINX_FALSE]) -m4trace:configure.ac:268: -1- m4_pattern_allow([^HAVE_SPHINX_FALSE$]) -m4trace:configure.ac:268: -1- _AM_SUBST_NOTMAKE([HAVE_SPHINX_TRUE]) -m4trace:configure.ac:268: -1- _AM_SUBST_NOTMAKE([HAVE_SPHINX_FALSE]) -m4trace:configure.ac:271: -1- AC_SUBST([GIT]) -m4trace:configure.ac:271: -1- AC_SUBST_TRACE([GIT]) -m4trace:configure.ac:271: -1- m4_pattern_allow([^GIT$]) -m4trace:configure.ac:277: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GIT]) -m4trace:configure.ac:277: -1- m4_pattern_allow([^HAVE_GIT$]) -m4trace:configure.ac:277: -1- AH_OUTPUT([HAVE_GIT], [/* Define to 1 if you have git available */ +m4trace:configure.ac:368: -1- AM_CONDITIONAL([HAVE_SPHINX], [ test x$HAVE_SPHINX = x1 ]) +m4trace:configure.ac:368: -1- AC_SUBST([HAVE_SPHINX_TRUE]) +m4trace:configure.ac:368: -1- AC_SUBST_TRACE([HAVE_SPHINX_TRUE]) +m4trace:configure.ac:368: -1- m4_pattern_allow([^HAVE_SPHINX_TRUE$]) +m4trace:configure.ac:368: -1- AC_SUBST([HAVE_SPHINX_FALSE]) +m4trace:configure.ac:368: -1- AC_SUBST_TRACE([HAVE_SPHINX_FALSE]) +m4trace:configure.ac:368: -1- m4_pattern_allow([^HAVE_SPHINX_FALSE$]) +m4trace:configure.ac:368: -1- _AM_SUBST_NOTMAKE([HAVE_SPHINX_TRUE]) +m4trace:configure.ac:368: -1- _AM_SUBST_NOTMAKE([HAVE_SPHINX_FALSE]) +m4trace:configure.ac:371: -1- AC_SUBST([GIT]) +m4trace:configure.ac:371: -1- AC_SUBST_TRACE([GIT]) +m4trace:configure.ac:371: -1- m4_pattern_allow([^GIT$]) +m4trace:configure.ac:377: -1- AC_DEFINE_TRACE_LITERAL([HAVE_GIT]) +m4trace:configure.ac:377: -1- m4_pattern_allow([^HAVE_GIT$]) +m4trace:configure.ac:377: -1- AH_OUTPUT([HAVE_GIT], [/* Define to 1 if you have git available */ @%:@undef HAVE_GIT]) -m4trace:configure.ac:278: -1- AM_CONDITIONAL([HAVE_GIT], [ test x$HAVE_GIT = x1 ]) -m4trace:configure.ac:278: -1- AC_SUBST([HAVE_GIT_TRUE]) -m4trace:configure.ac:278: -1- AC_SUBST_TRACE([HAVE_GIT_TRUE]) -m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_GIT_TRUE$]) -m4trace:configure.ac:278: -1- AC_SUBST([HAVE_GIT_FALSE]) -m4trace:configure.ac:278: -1- AC_SUBST_TRACE([HAVE_GIT_FALSE]) -m4trace:configure.ac:278: -1- m4_pattern_allow([^HAVE_GIT_FALSE$]) -m4trace:configure.ac:278: -1- _AM_SUBST_NOTMAKE([HAVE_GIT_TRUE]) -m4trace:configure.ac:278: -1- _AM_SUBST_NOTMAKE([HAVE_GIT_FALSE]) -m4trace:configure.ac:280: -1- AC_SUBST([TESTSUITEURL]) -m4trace:configure.ac:280: -1- AC_SUBST_TRACE([TESTSUITEURL]) -m4trace:configure.ac:280: -1- m4_pattern_allow([^TESTSUITEURL$]) -m4trace:configure.ac:286: -1- AC_SUBST([TESTSUITECHECKOUT]) -m4trace:configure.ac:286: -1- AC_SUBST_TRACE([TESTSUITECHECKOUT]) -m4trace:configure.ac:286: -1- m4_pattern_allow([^TESTSUITECHECKOUT$]) -m4trace:configure.ac:292: -1- AC_SUBST([JSONTESTSUITEURL]) -m4trace:configure.ac:292: -1- AC_SUBST_TRACE([JSONTESTSUITEURL]) -m4trace:configure.ac:292: -1- m4_pattern_allow([^JSONTESTSUITEURL$]) -m4trace:configure.ac:298: -1- AC_SUBST([JSONTESTSUITECHECKOUT]) -m4trace:configure.ac:298: -1- AC_SUBST_TRACE([JSONTESTSUITECHECKOUT]) -m4trace:configure.ac:298: -1- m4_pattern_allow([^JSONTESTSUITECHECKOUT$]) -m4trace:configure.ac:305: -1- AC_SUBST([DOCKER]) -m4trace:configure.ac:305: -1- AC_SUBST_TRACE([DOCKER]) -m4trace:configure.ac:305: -1- m4_pattern_allow([^DOCKER$]) -m4trace:configure.ac:311: -1- AM_CONDITIONAL([HAVE_DOCKER], [ test x$HAVE_DOCKER = x1 ]) -m4trace:configure.ac:311: -1- AC_SUBST([HAVE_DOCKER_TRUE]) -m4trace:configure.ac:311: -1- AC_SUBST_TRACE([HAVE_DOCKER_TRUE]) -m4trace:configure.ac:311: -1- m4_pattern_allow([^HAVE_DOCKER_TRUE$]) -m4trace:configure.ac:311: -1- AC_SUBST([HAVE_DOCKER_FALSE]) -m4trace:configure.ac:311: -1- AC_SUBST_TRACE([HAVE_DOCKER_FALSE]) -m4trace:configure.ac:311: -1- m4_pattern_allow([^HAVE_DOCKER_FALSE$]) -m4trace:configure.ac:311: -1- _AM_SUBST_NOTMAKE([HAVE_DOCKER_TRUE]) -m4trace:configure.ac:311: -1- _AM_SUBST_NOTMAKE([HAVE_DOCKER_FALSE]) -m4trace:configure.ac:314: -1- AC_SUBST([JQ]) -m4trace:configure.ac:314: -1- AC_SUBST_TRACE([JQ]) -m4trace:configure.ac:314: -1- m4_pattern_allow([^JQ$]) -m4trace:configure.ac:320: -1- AC_DEFINE_TRACE_LITERAL([HAVE_JQ]) -m4trace:configure.ac:320: -1- m4_pattern_allow([^HAVE_JQ$]) -m4trace:configure.ac:320: -1- AH_OUTPUT([HAVE_JQ], [/* Define to 1 if you have jq available */ +m4trace:configure.ac:378: -1- AM_CONDITIONAL([HAVE_GIT], [ test x$HAVE_GIT = x1 ]) +m4trace:configure.ac:378: -1- AC_SUBST([HAVE_GIT_TRUE]) +m4trace:configure.ac:378: -1- AC_SUBST_TRACE([HAVE_GIT_TRUE]) +m4trace:configure.ac:378: -1- m4_pattern_allow([^HAVE_GIT_TRUE$]) +m4trace:configure.ac:378: -1- AC_SUBST([HAVE_GIT_FALSE]) +m4trace:configure.ac:378: -1- AC_SUBST_TRACE([HAVE_GIT_FALSE]) +m4trace:configure.ac:378: -1- m4_pattern_allow([^HAVE_GIT_FALSE$]) +m4trace:configure.ac:378: -1- _AM_SUBST_NOTMAKE([HAVE_GIT_TRUE]) +m4trace:configure.ac:378: -1- _AM_SUBST_NOTMAKE([HAVE_GIT_FALSE]) +m4trace:configure.ac:380: -1- AC_SUBST([TESTSUITEURL]) +m4trace:configure.ac:380: -1- AC_SUBST_TRACE([TESTSUITEURL]) +m4trace:configure.ac:380: -1- m4_pattern_allow([^TESTSUITEURL$]) +m4trace:configure.ac:386: -1- AC_SUBST([TESTSUITECHECKOUT]) +m4trace:configure.ac:386: -1- AC_SUBST_TRACE([TESTSUITECHECKOUT]) +m4trace:configure.ac:386: -1- m4_pattern_allow([^TESTSUITECHECKOUT$]) +m4trace:configure.ac:392: -1- AC_SUBST([JSONTESTSUITEURL]) +m4trace:configure.ac:392: -1- AC_SUBST_TRACE([JSONTESTSUITEURL]) +m4trace:configure.ac:392: -1- m4_pattern_allow([^JSONTESTSUITEURL$]) +m4trace:configure.ac:398: -1- AC_SUBST([JSONTESTSUITECHECKOUT]) +m4trace:configure.ac:398: -1- AC_SUBST_TRACE([JSONTESTSUITECHECKOUT]) +m4trace:configure.ac:398: -1- m4_pattern_allow([^JSONTESTSUITECHECKOUT$]) +m4trace:configure.ac:405: -1- AC_SUBST([DOCKER]) +m4trace:configure.ac:405: -1- AC_SUBST_TRACE([DOCKER]) +m4trace:configure.ac:405: -1- m4_pattern_allow([^DOCKER$]) +m4trace:configure.ac:411: -1- AM_CONDITIONAL([HAVE_DOCKER], [ test x$HAVE_DOCKER = x1 ]) +m4trace:configure.ac:411: -1- AC_SUBST([HAVE_DOCKER_TRUE]) +m4trace:configure.ac:411: -1- AC_SUBST_TRACE([HAVE_DOCKER_TRUE]) +m4trace:configure.ac:411: -1- m4_pattern_allow([^HAVE_DOCKER_TRUE$]) +m4trace:configure.ac:411: -1- AC_SUBST([HAVE_DOCKER_FALSE]) +m4trace:configure.ac:411: -1- AC_SUBST_TRACE([HAVE_DOCKER_FALSE]) +m4trace:configure.ac:411: -1- m4_pattern_allow([^HAVE_DOCKER_FALSE$]) +m4trace:configure.ac:411: -1- _AM_SUBST_NOTMAKE([HAVE_DOCKER_TRUE]) +m4trace:configure.ac:411: -1- _AM_SUBST_NOTMAKE([HAVE_DOCKER_FALSE]) +m4trace:configure.ac:414: -1- AC_SUBST([JQ]) +m4trace:configure.ac:414: -1- AC_SUBST_TRACE([JQ]) +m4trace:configure.ac:414: -1- m4_pattern_allow([^JQ$]) +m4trace:configure.ac:420: -1- AC_DEFINE_TRACE_LITERAL([HAVE_JQ]) +m4trace:configure.ac:420: -1- m4_pattern_allow([^HAVE_JQ$]) +m4trace:configure.ac:420: -1- AH_OUTPUT([HAVE_JQ], [/* Define to 1 if you have jq available */ @%:@undef HAVE_JQ]) -m4trace:configure.ac:321: -1- AM_CONDITIONAL([HAVE_JQ], [ test x$HAVE_JQ = x1 ]) -m4trace:configure.ac:321: -1- AC_SUBST([HAVE_JQ_TRUE]) -m4trace:configure.ac:321: -1- AC_SUBST_TRACE([HAVE_JQ_TRUE]) -m4trace:configure.ac:321: -1- m4_pattern_allow([^HAVE_JQ_TRUE$]) -m4trace:configure.ac:321: -1- AC_SUBST([HAVE_JQ_FALSE]) -m4trace:configure.ac:321: -1- AC_SUBST_TRACE([HAVE_JQ_FALSE]) -m4trace:configure.ac:321: -1- m4_pattern_allow([^HAVE_JQ_FALSE$]) -m4trace:configure.ac:321: -1- _AM_SUBST_NOTMAKE([HAVE_JQ_TRUE]) -m4trace:configure.ac:321: -1- _AM_SUBST_NOTMAKE([HAVE_JQ_FALSE]) -m4trace:configure.ac:322: -1- AC_SUBST([JQ], ["$JQ"]) -m4trace:configure.ac:322: -1- AC_SUBST_TRACE([JQ]) -m4trace:configure.ac:322: -1- m4_pattern_allow([^JQ$]) -m4trace:configure.ac:326: -1- AC_SUBST([shavedir]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([shavedir]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^shavedir$]) -m4trace:configure.ac:326: -1- AC_SUBST([MAKEFLAGS], [-s]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([MAKEFLAGS]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^MAKEFLAGS$]) -m4trace:configure.ac:326: -1- AC_SUBST([AM_MAKEFLAGS], ['`test -z $V && echo -s`']) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([AM_MAKEFLAGS]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^AM_MAKEFLAGS$]) -m4trace:configure.ac:326: -1- AC_SUBST([SED]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([SED]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^SED$]) -m4trace:configure.ac:326: -1- AC_SUBST([LIBTOOL]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([LIBTOOL]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^LIBTOOL$]) -m4trace:configure.ac:326: -1- AC_SUBST([CCAS]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([CCAS]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^CCAS$]) -m4trace:configure.ac:326: -1- AC_SUBST([CC]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([CC]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^CC$]) -m4trace:configure.ac:326: -1- AC_SUBST([CXX]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([CXX]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^CXX$]) -m4trace:configure.ac:326: -1- AC_SUBST([FC]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([FC]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^FC$]) -m4trace:configure.ac:326: -1- AC_SUBST([F77]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([F77]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^F77$]) -m4trace:configure.ac:326: -1- AC_SUBST([OBJC]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([OBJC]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^OBJC$]) -m4trace:configure.ac:326: -1- AC_SUBST([MCS]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([MCS]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^MCS$]) -m4trace:configure.ac:326: -1- AC_SUBST([LEX]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([LEX]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^LEX$]) -m4trace:configure.ac:326: -1- AC_SUBST([YACC]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([YACC]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^YACC$]) -m4trace:configure.ac:326: -1- AC_SUBST([V]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([V]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^V$]) -m4trace:configure.ac:326: -1- AC_SUBST([Q]) -m4trace:configure.ac:326: -1- AC_SUBST_TRACE([Q]) -m4trace:configure.ac:326: -1- m4_pattern_allow([^Q$]) -m4trace:configure.ac:328: -1- AC_CONFIG_FILES([ +m4trace:configure.ac:421: -1- AM_CONDITIONAL([HAVE_JQ], [ test x$HAVE_JQ = x1 ]) +m4trace:configure.ac:421: -1- AC_SUBST([HAVE_JQ_TRUE]) +m4trace:configure.ac:421: -1- AC_SUBST_TRACE([HAVE_JQ_TRUE]) +m4trace:configure.ac:421: -1- m4_pattern_allow([^HAVE_JQ_TRUE$]) +m4trace:configure.ac:421: -1- AC_SUBST([HAVE_JQ_FALSE]) +m4trace:configure.ac:421: -1- AC_SUBST_TRACE([HAVE_JQ_FALSE]) +m4trace:configure.ac:421: -1- m4_pattern_allow([^HAVE_JQ_FALSE$]) +m4trace:configure.ac:421: -1- _AM_SUBST_NOTMAKE([HAVE_JQ_TRUE]) +m4trace:configure.ac:421: -1- _AM_SUBST_NOTMAKE([HAVE_JQ_FALSE]) +m4trace:configure.ac:422: -1- AC_SUBST([JQ], ["$JQ"]) +m4trace:configure.ac:422: -1- AC_SUBST_TRACE([JQ]) +m4trace:configure.ac:422: -1- m4_pattern_allow([^JQ$]) +m4trace:configure.ac:459: -1- AC_SUBST([LLVM_CONFIG]) +m4trace:configure.ac:459: -1- AC_SUBST_TRACE([LLVM_CONFIG]) +m4trace:configure.ac:459: -1- m4_pattern_allow([^LLVM_CONFIG$]) +m4trace:configure.ac:498: -1- AC_SUBST([HAVE_LIBCLANG]) +m4trace:configure.ac:498: -1- AC_SUBST_TRACE([HAVE_LIBCLANG]) +m4trace:configure.ac:498: -1- m4_pattern_allow([^HAVE_LIBCLANG$]) +m4trace:configure.ac:499: -1- AC_SUBST([LIBCLANG_CFLAGS]) +m4trace:configure.ac:499: -1- AC_SUBST_TRACE([LIBCLANG_CFLAGS]) +m4trace:configure.ac:499: -1- m4_pattern_allow([^LIBCLANG_CFLAGS$]) +m4trace:configure.ac:500: -1- AC_SUBST([LIBCLANG_CPPFLAGS]) +m4trace:configure.ac:500: -1- AC_SUBST_TRACE([LIBCLANG_CPPFLAGS]) +m4trace:configure.ac:500: -1- m4_pattern_allow([^LIBCLANG_CPPFLAGS$]) +m4trace:configure.ac:501: -1- AC_SUBST([LIBCLANG_LDFLAGS]) +m4trace:configure.ac:501: -1- AC_SUBST_TRACE([LIBCLANG_LDFLAGS]) +m4trace:configure.ac:501: -1- m4_pattern_allow([^LIBCLANG_LDFLAGS$]) +m4trace:configure.ac:502: -1- AC_SUBST([LIBCLANG_LIBS]) +m4trace:configure.ac:502: -1- AC_SUBST_TRACE([LIBCLANG_LIBS]) +m4trace:configure.ac:502: -1- m4_pattern_allow([^LIBCLANG_LIBS$]) +m4trace:configure.ac:503: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBCLANG]) +m4trace:configure.ac:503: -1- m4_pattern_allow([^HAVE_LIBCLANG$]) +m4trace:configure.ac:503: -1- AH_OUTPUT([HAVE_LIBCLANG], [/* Define to 1 if libclang is available */ +@%:@undef HAVE_LIBCLANG]) +m4trace:configure.ac:504: -1- AM_CONDITIONAL([HAVE_LIBCLANG], [ test x$HAVE_LIBCLANG = x1 ]) +m4trace:configure.ac:504: -1- AC_SUBST([HAVE_LIBCLANG_TRUE]) +m4trace:configure.ac:504: -1- AC_SUBST_TRACE([HAVE_LIBCLANG_TRUE]) +m4trace:configure.ac:504: -1- m4_pattern_allow([^HAVE_LIBCLANG_TRUE$]) +m4trace:configure.ac:504: -1- AC_SUBST([HAVE_LIBCLANG_FALSE]) +m4trace:configure.ac:504: -1- AC_SUBST_TRACE([HAVE_LIBCLANG_FALSE]) +m4trace:configure.ac:504: -1- m4_pattern_allow([^HAVE_LIBCLANG_FALSE$]) +m4trace:configure.ac:504: -1- _AM_SUBST_NOTMAKE([HAVE_LIBCLANG_TRUE]) +m4trace:configure.ac:504: -1- _AM_SUBST_NOTMAKE([HAVE_LIBCLANG_FALSE]) +m4trace:configure.ac:525: -1- AC_SUBST([shavedir]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([shavedir]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^shavedir$]) +m4trace:configure.ac:525: -1- AC_SUBST([MAKEFLAGS], [-s]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([MAKEFLAGS]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^MAKEFLAGS$]) +m4trace:configure.ac:525: -1- AC_SUBST([AM_MAKEFLAGS], ['`test -z $V && echo -s`']) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([AM_MAKEFLAGS]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^AM_MAKEFLAGS$]) +m4trace:configure.ac:525: -1- AC_SUBST([SED]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([SED]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^SED$]) +m4trace:configure.ac:525: -1- AC_SUBST([LIBTOOL]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([LIBTOOL]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^LIBTOOL$]) +m4trace:configure.ac:525: -1- AC_SUBST([CCAS]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([CCAS]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^CCAS$]) +m4trace:configure.ac:525: -1- AC_SUBST([CC]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([CC]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^CC$]) +m4trace:configure.ac:525: -1- AC_SUBST([CXX]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([CXX]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^CXX$]) +m4trace:configure.ac:525: -1- AC_SUBST([FC]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([FC]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^FC$]) +m4trace:configure.ac:525: -1- AC_SUBST([F77]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([F77]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^F77$]) +m4trace:configure.ac:525: -1- AC_SUBST([OBJC]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([OBJC]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^OBJC$]) +m4trace:configure.ac:525: -1- AC_SUBST([MCS]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([MCS]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^MCS$]) +m4trace:configure.ac:525: -1- AC_SUBST([LEX]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([LEX]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^LEX$]) +m4trace:configure.ac:525: -1- AC_SUBST([YACC]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([YACC]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^YACC$]) +m4trace:configure.ac:525: -1- AC_SUBST([V]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([V]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^V$]) +m4trace:configure.ac:525: -1- AC_SUBST([Q]) +m4trace:configure.ac:525: -1- AC_SUBST_TRACE([Q]) +m4trace:configure.ac:525: -1- m4_pattern_allow([^Q$]) +m4trace:configure.ac:527: -1- AC_CONFIG_FILES([ build-aux/shave build-aux/shave-libtool Makefile @@ -1156,31 +1375,31 @@ m4trace:configure.ac:328: -1- AC_CONFIG_FILES([ doc/Makefile libfyaml.pc ]) -m4trace:configure.ac:338: -1- AC_REQUIRE_AUX_FILE([tap-driver.sh]) -m4trace:configure.ac:340: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) -m4trace:configure.ac:340: -1- m4_pattern_allow([^LIB@&t@OBJS$]) -m4trace:configure.ac:340: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([LTLIBOBJS]) -m4trace:configure.ac:340: -1- m4_pattern_allow([^LTLIBOBJS$]) -m4trace:configure.ac:340: -1- AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"]) -m4trace:configure.ac:340: -1- AC_SUBST([am__EXEEXT_TRUE]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([am__EXEEXT_TRUE]) -m4trace:configure.ac:340: -1- m4_pattern_allow([^am__EXEEXT_TRUE$]) -m4trace:configure.ac:340: -1- AC_SUBST([am__EXEEXT_FALSE]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([am__EXEEXT_FALSE]) -m4trace:configure.ac:340: -1- m4_pattern_allow([^am__EXEEXT_FALSE$]) -m4trace:configure.ac:340: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_TRUE]) -m4trace:configure.ac:340: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_FALSE]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([top_builddir]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([top_build_prefix]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([srcdir]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([abs_srcdir]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([top_srcdir]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([abs_top_srcdir]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([builddir]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([abs_builddir]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([abs_top_builddir]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([INSTALL]) -m4trace:configure.ac:340: -1- AC_SUBST_TRACE([MKDIR_P]) -m4trace:configure.ac:340: -1- AC_REQUIRE_AUX_FILE([ltmain.sh]) +m4trace:configure.ac:537: -1- AC_REQUIRE_AUX_FILE([tap-driver.sh]) +m4trace:configure.ac:539: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) +m4trace:configure.ac:539: -1- m4_pattern_allow([^LIB@&t@OBJS$]) +m4trace:configure.ac:539: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([LTLIBOBJS]) +m4trace:configure.ac:539: -1- m4_pattern_allow([^LTLIBOBJS$]) +m4trace:configure.ac:539: -1- AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"]) +m4trace:configure.ac:539: -1- AC_SUBST([am__EXEEXT_TRUE]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([am__EXEEXT_TRUE]) +m4trace:configure.ac:539: -1- m4_pattern_allow([^am__EXEEXT_TRUE$]) +m4trace:configure.ac:539: -1- AC_SUBST([am__EXEEXT_FALSE]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([am__EXEEXT_FALSE]) +m4trace:configure.ac:539: -1- m4_pattern_allow([^am__EXEEXT_FALSE$]) +m4trace:configure.ac:539: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_TRUE]) +m4trace:configure.ac:539: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_FALSE]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([top_builddir]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([top_build_prefix]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([srcdir]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([abs_srcdir]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([top_srcdir]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([abs_top_srcdir]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([builddir]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([abs_builddir]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([abs_top_builddir]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([INSTALL]) +m4trace:configure.ac:539: -1- AC_SUBST_TRACE([MKDIR_P]) +m4trace:configure.ac:539: -1- AC_REQUIRE_AUX_FILE([ltmain.sh]) diff --git a/Sources/Cfyaml/build-aux/config.guess b/Sources/Cfyaml/build-aux/config.guess index e81d3ae7c..cdfc43920 100755 --- a/Sources/Cfyaml/build-aux/config.guess +++ b/Sources/Cfyaml/build-aux/config.guess @@ -1,14 +1,14 @@ #! /bin/sh # Attempt to guess a canonical system name. -# Copyright 1992-2021 Free Software Foundation, Inc. +# Copyright 1992-2023 Free Software Foundation, Inc. # shellcheck disable=SC2006,SC2268 # see below for rationale -timestamp='2021-06-03' +timestamp='2023-08-22' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3 of the License, or +# the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but @@ -47,7 +47,7 @@ me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] -Output the configuration name of the system \`$me' is run on. +Output the configuration name of the system '$me' is run on. Options: -h, --help print this help, then exit @@ -60,13 +60,13 @@ version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright 1992-2021 Free Software Foundation, Inc. +Copyright 1992-2023 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" -Try \`$me --help' for more information." +Try '$me --help' for more information." # Parse command line while test $# -gt 0 ; do @@ -102,8 +102,8 @@ GUESS= # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. -# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still -# use `HOST_CC' if defined, but it is deprecated. +# Historically, 'CC_FOR_BUILD' used to be named 'HOST_CC'. We still +# use 'HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. @@ -155,6 +155,9 @@ Linux|GNU|GNU/*) set_cc_for_build cat <<-EOF > "$dummy.c" + #if defined(__ANDROID__) + LIBC=android + #else #include #if defined(__UCLIBC__) LIBC=uclibc @@ -169,6 +172,7 @@ Linux|GNU|GNU/*) LIBC=musl #endif #endif + #endif EOF cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` eval "$cc_set_libc" @@ -437,7 +441,7 @@ case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in # This test works for both compilers. if test "$CC_FOR_BUILD" != no_compiler_found; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ - (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + (CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH=x86_64 @@ -459,7 +463,7 @@ case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in UNAME_RELEASE=`uname -v` ;; esac - # Japanese Language versions have a version number like `4.1.3-JL'. + # Japanese Language versions have a version number like '4.1.3-JL'. SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'` GUESS=sparc-sun-sunos$SUN_REL ;; @@ -904,7 +908,7 @@ EOF fi ;; *:FreeBSD:*:*) - UNAME_PROCESSOR=`/usr/bin/uname -p` + UNAME_PROCESSOR=`uname -p` case $UNAME_PROCESSOR in amd64) UNAME_PROCESSOR=x86_64 ;; @@ -929,6 +933,9 @@ EOF i*:PW*:*) GUESS=$UNAME_MACHINE-pc-pw32 ;; + *:SerenityOS:*:*) + GUESS=$UNAME_MACHINE-pc-serenity + ;; *:Interix*:*) case $UNAME_MACHINE in x86) @@ -963,11 +970,37 @@ EOF GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC ;; + x86_64:[Mm]anagarm:*:*|i?86:[Mm]anagarm:*:*) + GUESS="$UNAME_MACHINE-pc-managarm-mlibc" + ;; + *:[Mm]anagarm:*:*) + GUESS="$UNAME_MACHINE-unknown-managarm-mlibc" + ;; *:Minix:*:*) GUESS=$UNAME_MACHINE-unknown-minix ;; aarch64:Linux:*:*) - GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + set_cc_for_build + CPU=$UNAME_MACHINE + LIBCABI=$LIBC + if test "$CC_FOR_BUILD" != no_compiler_found; then + ABI=64 + sed 's/^ //' << EOF > "$dummy.c" + #ifdef __ARM_EABI__ + #ifdef __ARM_PCS_VFP + ABI=eabihf + #else + ABI=eabi + #endif + #endif +EOF + cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` + eval "$cc_set_abi" + case $ABI in + eabi | eabihf) CPU=armv8l; LIBCABI=$LIBC$ABI ;; + esac + fi + GUESS=$CPU-unknown-linux-$LIBCABI ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be @@ -1033,7 +1066,16 @@ EOF k1om:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; - loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*) + kvx:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + kvx:cos:*:*) + GUESS=$UNAME_MACHINE-unknown-cos + ;; + kvx:mbr:*:*) + GUESS=$UNAME_MACHINE-unknown-mbr + ;; + loongarch32:Linux:*:* | loongarch64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; m32r*:Linux:*:*) @@ -1148,16 +1190,27 @@ EOF ;; x86_64:Linux:*:*) set_cc_for_build + CPU=$UNAME_MACHINE LIBCABI=$LIBC if test "$CC_FOR_BUILD" != no_compiler_found; then - if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \ - (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ - grep IS_X32 >/dev/null - then - LIBCABI=${LIBC}x32 - fi + ABI=64 + sed 's/^ //' << EOF > "$dummy.c" + #ifdef __i386__ + ABI=x86 + #else + #ifdef __ILP32__ + ABI=x32 + #endif + #endif +EOF + cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` + eval "$cc_set_abi" + case $ABI in + x86) CPU=i686 ;; + x32) LIBCABI=${LIBC}x32 ;; + esac fi - GUESS=$UNAME_MACHINE-pc-linux-$LIBCABI + GUESS=$CPU-pc-linux-$LIBCABI ;; xtensa*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC @@ -1177,7 +1230,7 @@ EOF GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION ;; i*86:OS/2:*:*) - # If we were able to find `uname', then EMX Unix compatibility + # If we were able to find 'uname', then EMX Unix compatibility # is probably installed. GUESS=$UNAME_MACHINE-pc-os2-emx ;; @@ -1318,7 +1371,7 @@ EOF GUESS=ns32k-sni-sysv fi ;; - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + PENTIUM:*:4.0*:*) # Unisys 'ClearPath HMP IX 4000' SVR4/MP effort # says GUESS=i586-unisys-sysv4 ;; @@ -1364,8 +1417,11 @@ EOF BePC:Haiku:*:*) # Haiku running on Intel PC compatible. GUESS=i586-pc-haiku ;; - x86_64:Haiku:*:*) - GUESS=x86_64-unknown-haiku + ppc:Haiku:*:*) # Haiku running on Apple PowerPC + GUESS=powerpc-apple-haiku + ;; + *:Haiku:*:*) # Haiku modern gcc (not bound by BeOS compat) + GUESS=$UNAME_MACHINE-unknown-haiku ;; SX-4:SUPER-UX:*:*) GUESS=sx4-nec-superux$UNAME_RELEASE @@ -1522,6 +1578,9 @@ EOF i*86:rdos:*:*) GUESS=$UNAME_MACHINE-pc-rdos ;; + i*86:Fiwix:*:*) + GUESS=$UNAME_MACHINE-pc-fiwix + ;; *:AROS:*:*) GUESS=$UNAME_MACHINE-unknown-aros ;; diff --git a/Sources/Cfyaml/build-aux/config.guess~ b/Sources/Cfyaml/build-aux/config.guess~ new file mode 100755 index 000000000..e81d3ae7c --- /dev/null +++ b/Sources/Cfyaml/build-aux/config.guess~ @@ -0,0 +1,1748 @@ +#! /bin/sh +# Attempt to guess a canonical system name. +# Copyright 1992-2021 Free Software Foundation, Inc. + +# shellcheck disable=SC2006,SC2268 # see below for rationale + +timestamp='2021-06-03' + +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program 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 +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, see . +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that +# program. This Exception is an additional permission under section 7 +# of the GNU General Public License, version 3 ("GPLv3"). +# +# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. +# +# You can get the latest version of this script from: +# https://git.savannah.gnu.org/cgit/config.git/plain/config.guess +# +# Please send patches to . + + +# The "shellcheck disable" line above the timestamp inhibits complaints +# about features and limitations of the classic Bourne shell that were +# superseded or lifted in POSIX. However, this script identifies a wide +# variety of pre-POSIX systems that do not have POSIX shells at all, and +# even some reasonably current systems (Solaris 10 as case-in-point) still +# have a pre-POSIX /bin/sh. + + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] + +Output the configuration name of the system \`$me' is run on. + +Options: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.guess ($timestamp) + +Originally written by Per Bothner. +Copyright 1992-2021 Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" >&2 + exit 1 ;; + * ) + break ;; + esac +done + +if test $# != 0; then + echo "$me: too many arguments$help" >&2 + exit 1 +fi + +# Just in case it came from the environment. +GUESS= + +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a +# compiler to aid in system detection is discouraged as it requires +# temporary files to be created and, as you can see below, it is a +# headache to deal with in a portable fashion. + +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still +# use `HOST_CC' if defined, but it is deprecated. + +# Portable tmp directory creation inspired by the Autoconf team. + +tmp= +# shellcheck disable=SC2172 +trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15 + +set_cc_for_build() { + # prevent multiple calls if $tmp is already set + test "$tmp" && return 0 + : "${TMPDIR=/tmp}" + # shellcheck disable=SC2039,SC3028 + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } || + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } || + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } + dummy=$tmp/dummy + case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in + ,,) echo "int x;" > "$dummy.c" + for driver in cc gcc c89 c99 ; do + if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then + CC_FOR_BUILD=$driver + break + fi + done + if test x"$CC_FOR_BUILD" = x ; then + CC_FOR_BUILD=no_compiler_found + fi + ;; + ,,*) CC_FOR_BUILD=$CC ;; + ,*,*) CC_FOR_BUILD=$HOST_CC ;; + esac +} + +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. +# (ghazi@noc.rutgers.edu 1994-08-24) +if test -f /.attbin/uname ; then + PATH=$PATH:/.attbin ; export PATH +fi + +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown + +case $UNAME_SYSTEM in +Linux|GNU|GNU/*) + LIBC=unknown + + set_cc_for_build + cat <<-EOF > "$dummy.c" + #include + #if defined(__UCLIBC__) + LIBC=uclibc + #elif defined(__dietlibc__) + LIBC=dietlibc + #elif defined(__GLIBC__) + LIBC=gnu + #else + #include + /* First heuristic to detect musl libc. */ + #ifdef __DEFINED_va_list + LIBC=musl + #endif + #endif + EOF + cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` + eval "$cc_set_libc" + + # Second heuristic to detect musl libc. + if [ "$LIBC" = unknown ] && + command -v ldd >/dev/null && + ldd --version 2>&1 | grep -q ^musl; then + LIBC=musl + fi + + # If the system lacks a compiler, then just pick glibc. + # We could probably try harder. + if [ "$LIBC" = unknown ]; then + LIBC=gnu + fi + ;; +esac + +# Note: order is significant - the case branches are not exclusive. + +case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in + *:NetBSD:*:*) + # NetBSD (nbsd) targets should (where applicable) match one or + # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently + # switched to ELF, *-*-netbsd* would select the old + # object file format. This provides both forward + # compatibility and a consistent mechanism for selecting the + # object file format. + # + # Note: NetBSD doesn't particularly care about the vendor + # portion of the name. We always set it to "unknown". + UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ + /sbin/sysctl -n hw.machine_arch 2>/dev/null || \ + /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \ + echo unknown)` + case $UNAME_MACHINE_ARCH in + aarch64eb) machine=aarch64_be-unknown ;; + armeb) machine=armeb-unknown ;; + arm*) machine=arm-unknown ;; + sh3el) machine=shl-unknown ;; + sh3eb) machine=sh-unknown ;; + sh5el) machine=sh5le-unknown ;; + earmv*) + arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` + endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` + machine=${arch}${endian}-unknown + ;; + *) machine=$UNAME_MACHINE_ARCH-unknown ;; + esac + # The Operating System including object format, if it has switched + # to ELF recently (or will in the future) and ABI. + case $UNAME_MACHINE_ARCH in + earm*) + os=netbsdelf + ;; + arm*|i386|m68k|ns32k|sh3*|sparc|vax) + set_cc_for_build + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ELF__ + then + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). + # Return netbsd for either. FIX? + os=netbsd + else + os=netbsdelf + fi + ;; + *) + os=netbsd + ;; + esac + # Determine ABI tags. + case $UNAME_MACHINE_ARCH in + earm*) + expr='s/^earmv[0-9]/-eabi/;s/eb$//' + abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` + ;; + esac + # The OS release + # Debian GNU/NetBSD machines have a different userland, and + # thus, need a distinct triplet. However, they do not need + # kernel version information, so it can be replaced with a + # suitable tag, in the style of linux-gnu. + case $UNAME_VERSION in + Debian*) + release='-gnu' + ;; + *) + release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` + ;; + esac + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: + # contains redundant information, the shorter form: + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. + GUESS=$machine-${os}${release}${abi-} + ;; + *:Bitrig:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` + GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE + ;; + *:OpenBSD:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` + GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE + ;; + *:SecBSD:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'` + GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE + ;; + *:LibertyBSD:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` + GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE + ;; + *:MidnightBSD:*:*) + GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE + ;; + *:ekkoBSD:*:*) + GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE + ;; + *:SolidBSD:*:*) + GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE + ;; + *:OS108:*:*) + GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE + ;; + macppc:MirBSD:*:*) + GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE + ;; + *:MirBSD:*:*) + GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE + ;; + *:Sortix:*:*) + GUESS=$UNAME_MACHINE-unknown-sortix + ;; + *:Twizzler:*:*) + GUESS=$UNAME_MACHINE-unknown-twizzler + ;; + *:Redox:*:*) + GUESS=$UNAME_MACHINE-unknown-redox + ;; + mips:OSF1:*.*) + GUESS=mips-dec-osf1 + ;; + alpha:OSF1:*:*) + # Reset EXIT trap before exiting to avoid spurious non-zero exit code. + trap '' 0 + case $UNAME_RELEASE in + *4.0) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` + ;; + *5.*) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + ;; + esac + # According to Compaq, /usr/sbin/psrinfo has been available on + # OSF/1 and Tru64 systems produced since 1995. I hope that + # covers most systems running today. This code pipes the CPU + # types through head -n 1, so we only detect the type of CPU 0. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` + case $ALPHA_CPU_TYPE in + "EV4 (21064)") + UNAME_MACHINE=alpha ;; + "EV4.5 (21064)") + UNAME_MACHINE=alpha ;; + "LCA4 (21066/21068)") + UNAME_MACHINE=alpha ;; + "EV5 (21164)") + UNAME_MACHINE=alphaev5 ;; + "EV5.6 (21164A)") + UNAME_MACHINE=alphaev56 ;; + "EV5.6 (21164PC)") + UNAME_MACHINE=alphapca56 ;; + "EV5.7 (21164PC)") + UNAME_MACHINE=alphapca57 ;; + "EV6 (21264)") + UNAME_MACHINE=alphaev6 ;; + "EV6.7 (21264A)") + UNAME_MACHINE=alphaev67 ;; + "EV6.8CB (21264C)") + UNAME_MACHINE=alphaev68 ;; + "EV6.8AL (21264B)") + UNAME_MACHINE=alphaev68 ;; + "EV6.8CX (21264D)") + UNAME_MACHINE=alphaev68 ;; + "EV6.9A (21264/EV69A)") + UNAME_MACHINE=alphaev69 ;; + "EV7 (21364)") + UNAME_MACHINE=alphaev7 ;; + "EV7.9 (21364A)") + UNAME_MACHINE=alphaev79 ;; + esac + # A Pn.n version is a patched version. + # A Vn.n version is a released version. + # A Tn.n version is a released field test version. + # A Xn.n version is an unreleased experimental baselevel. + # 1.2 uses "1.2" for uname -r. + OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` + GUESS=$UNAME_MACHINE-dec-osf$OSF_REL + ;; + Amiga*:UNIX_System_V:4.0:*) + GUESS=m68k-unknown-sysv4 + ;; + *:[Aa]miga[Oo][Ss]:*:*) + GUESS=$UNAME_MACHINE-unknown-amigaos + ;; + *:[Mm]orph[Oo][Ss]:*:*) + GUESS=$UNAME_MACHINE-unknown-morphos + ;; + *:OS/390:*:*) + GUESS=i370-ibm-openedition + ;; + *:z/VM:*:*) + GUESS=s390-ibm-zvmoe + ;; + *:OS400:*:*) + GUESS=powerpc-ibm-os400 + ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + GUESS=arm-acorn-riscix$UNAME_RELEASE + ;; + arm*:riscos:*:*|arm*:RISCOS:*:*) + GUESS=arm-unknown-riscos + ;; + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) + GUESS=hppa1.1-hitachi-hiuxmpp + ;; + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. + case `(/bin/universe) 2>/dev/null` in + att) GUESS=pyramid-pyramid-sysv3 ;; + *) GUESS=pyramid-pyramid-bsd ;; + esac + ;; + NILE*:*:*:dcosx) + GUESS=pyramid-pyramid-svr4 + ;; + DRS?6000:unix:4.0:6*) + GUESS=sparc-icl-nx6 + ;; + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) + case `/usr/bin/uname -p` in + sparc) GUESS=sparc-icl-nx7 ;; + esac + ;; + s390x:SunOS:*:*) + SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` + GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL + ;; + sun4H:SunOS:5.*:*) + SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` + GUESS=sparc-hal-solaris2$SUN_REL + ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` + GUESS=sparc-sun-solaris2$SUN_REL + ;; + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) + GUESS=i386-pc-auroraux$UNAME_RELEASE + ;; + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) + set_cc_for_build + SUN_ARCH=i386 + # If there is a compiler, see if it is configured for 64-bit objects. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. + # This test works for both compilers. + if test "$CC_FOR_BUILD" != no_compiler_found; then + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + SUN_ARCH=x86_64 + fi + fi + SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` + GUESS=$SUN_ARCH-pc-solaris2$SUN_REL + ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` + GUESS=sparc-sun-solaris3$SUN_REL + ;; + sun4*:SunOS:*:*) + case `/usr/bin/arch -k` in + Series*|S4*) + UNAME_RELEASE=`uname -v` + ;; + esac + # Japanese Language versions have a version number like `4.1.3-JL'. + SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'` + GUESS=sparc-sun-sunos$SUN_REL + ;; + sun3*:SunOS:*:*) + GUESS=m68k-sun-sunos$UNAME_RELEASE + ;; + sun*:*:4.2BSD:*) + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 + case `/bin/arch` in + sun3) + GUESS=m68k-sun-sunos$UNAME_RELEASE + ;; + sun4) + GUESS=sparc-sun-sunos$UNAME_RELEASE + ;; + esac + ;; + aushp:SunOS:*:*) + GUESS=sparc-auspex-sunos$UNAME_RELEASE + ;; + # The situation for MiNT is a little confusing. The machine name + # can be virtually everything (everything which is not + # "atarist" or "atariste" at least should have a processor + # > m68000). The system name ranges from "MiNT" over "FreeMiNT" + # to the lowercase version "mint" (or "freemint"). Finally + # the system name "TOS" denotes a system which is actually not + # MiNT. But MiNT is downward compatible to TOS, so this should + # be no problem. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) + GUESS=m68k-atari-mint$UNAME_RELEASE + ;; + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) + GUESS=m68k-atari-mint$UNAME_RELEASE + ;; + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) + GUESS=m68k-atari-mint$UNAME_RELEASE + ;; + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) + GUESS=m68k-milan-mint$UNAME_RELEASE + ;; + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) + GUESS=m68k-hades-mint$UNAME_RELEASE + ;; + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) + GUESS=m68k-unknown-mint$UNAME_RELEASE + ;; + m68k:machten:*:*) + GUESS=m68k-apple-machten$UNAME_RELEASE + ;; + powerpc:machten:*:*) + GUESS=powerpc-apple-machten$UNAME_RELEASE + ;; + RISC*:Mach:*:*) + GUESS=mips-dec-mach_bsd4.3 + ;; + RISC*:ULTRIX:*:*) + GUESS=mips-dec-ultrix$UNAME_RELEASE + ;; + VAX*:ULTRIX*:*:*) + GUESS=vax-dec-ultrix$UNAME_RELEASE + ;; + 2020:CLIX:*:* | 2430:CLIX:*:*) + GUESS=clipper-intergraph-clix$UNAME_RELEASE + ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + set_cc_for_build + sed 's/^ //' << EOF > "$dummy.c" +#ifdef __cplusplus +#include /* for printf() prototype */ + int main (int argc, char *argv[]) { +#else + int main (argc, argv) int argc; char *argv[]; { +#endif + #if defined (host_mips) && defined (MIPSEB) + #if defined (SYSTYPE_SYSV) + printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_SVR4) + printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) + printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); + #endif + #endif + exit (-1); + } +EOF + $CC_FOR_BUILD -o "$dummy" "$dummy.c" && + dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && + SYSTEM_NAME=`"$dummy" "$dummyarg"` && + { echo "$SYSTEM_NAME"; exit; } + GUESS=mips-mips-riscos$UNAME_RELEASE + ;; + Motorola:PowerMAX_OS:*:*) + GUESS=powerpc-motorola-powermax + ;; + Motorola:*:4.3:PL8-*) + GUESS=powerpc-harris-powermax + ;; + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) + GUESS=powerpc-harris-powermax + ;; + Night_Hawk:Power_UNIX:*:*) + GUESS=powerpc-harris-powerunix + ;; + m88k:CX/UX:7*:*) + GUESS=m88k-harris-cxux7 + ;; + m88k:*:4*:R4*) + GUESS=m88k-motorola-sysv4 + ;; + m88k:*:3*:R3*) + GUESS=m88k-motorola-sysv3 + ;; + AViiON:dgux:*:*) + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` + if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110 + then + if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \ + test "$TARGET_BINARY_INTERFACE"x = x + then + GUESS=m88k-dg-dgux$UNAME_RELEASE + else + GUESS=m88k-dg-dguxbcs$UNAME_RELEASE + fi + else + GUESS=i586-dg-dgux$UNAME_RELEASE + fi + ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + GUESS=m88k-dolphin-sysv3 + ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + GUESS=m88k-motorola-sysv3 + ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + GUESS=m88k-tektronix-sysv3 + ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + GUESS=m68k-tektronix-bsd + ;; + *:IRIX*:*:*) + IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'` + GUESS=mips-sgi-irix$IRIX_REL + ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. + GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id + ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i*86:AIX:*:*) + GUESS=i386-ibm-aix + ;; + ia64:AIX:*:*) + if test -x /usr/bin/oslevel ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=$UNAME_VERSION.$UNAME_RELEASE + fi + GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV + ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + set_cc_for_build + sed 's/^ //' << EOF > "$dummy.c" + #include + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` + then + GUESS=$SYSTEM_NAME + else + GUESS=rs6000-ibm-aix3.2.5 + fi + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + GUESS=rs6000-ibm-aix3.2.4 + else + GUESS=rs6000-ibm-aix3.2 + fi + ;; + *:AIX:*:[4567]) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else + IBM_ARCH=powerpc + fi + if test -x /usr/bin/lslpp ; then + IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \ + awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` + else + IBM_REV=$UNAME_VERSION.$UNAME_RELEASE + fi + GUESS=$IBM_ARCH-ibm-aix$IBM_REV + ;; + *:AIX:*:*) + GUESS=rs6000-ibm-aix + ;; + ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) + GUESS=romp-ibm-bsd4.4 + ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and + GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to + ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + GUESS=rs6000-bull-bosx + ;; + DPX/2?00:B.O.S.:*:*) + GUESS=m68k-bull-sysv3 + ;; + 9000/[34]??:4.3bsd:1.*:*) + GUESS=m68k-hp-bsd + ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + GUESS=m68k-hp-bsd4.4 + ;; + 9000/[34678]??:HP-UX:*:*) + HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` + case $UNAME_MACHINE in + 9000/31?) HP_ARCH=m68000 ;; + 9000/[34]??) HP_ARCH=m68k ;; + 9000/[678][0-9][0-9]) + if test -x /usr/bin/getconf; then + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + case $sc_cpu_version in + 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 + 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 + 532) # CPU_PA_RISC2_0 + case $sc_kernel_bits in + 32) HP_ARCH=hppa2.0n ;; + 64) HP_ARCH=hppa2.0w ;; + '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 + esac ;; + esac + fi + if test "$HP_ARCH" = ""; then + set_cc_for_build + sed 's/^ //' << EOF > "$dummy.c" + + #define _HPUX_SOURCE + #include + #include + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } +EOF + (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` + test -z "$HP_ARCH" && HP_ARCH=hppa + fi ;; + esac + if test "$HP_ARCH" = hppa2.0w + then + set_cc_for_build + + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler + # generating 64-bit code. GNU and HP use different nomenclature: + # + # $ CC_FOR_BUILD=cc ./config.guess + # => hppa2.0w-hp-hpux11.23 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess + # => hppa64-hp-hpux11.23 + + if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | + grep -q __LP64__ + then + HP_ARCH=hppa2.0w + else + HP_ARCH=hppa64 + fi + fi + GUESS=$HP_ARCH-hp-hpux$HPUX_REV + ;; + ia64:HP-UX:*:*) + HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` + GUESS=ia64-hp-hpux$HPUX_REV + ;; + 3050*:HI-UX:*:*) + set_cc_for_build + sed 's/^ //' << EOF > "$dummy.c" + #include + int + main () + { + long cpu = sysconf (_SC_CPU_VERSION); + /* The order matters, because CPU_IS_HP_MC68K erroneously returns + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct + results, however. */ + if (CPU_IS_PA_RISC (cpu)) + { + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; + default: puts ("hppa-hitachi-hiuxwe2"); break; + } + } + else if (CPU_IS_HP_MC68K (cpu)) + puts ("m68k-hitachi-hiuxwe2"); + else puts ("unknown-hitachi-hiuxwe2"); + exit (0); + } +EOF + $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && + { echo "$SYSTEM_NAME"; exit; } + GUESS=unknown-hitachi-hiuxwe2 + ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) + GUESS=hppa1.1-hp-bsd + ;; + 9000/8??:4.3bsd:*:*) + GUESS=hppa1.0-hp-bsd + ;; + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) + GUESS=hppa1.0-hp-mpeix + ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) + GUESS=hppa1.1-hp-osf + ;; + hp8??:OSF1:*:*) + GUESS=hppa1.0-hp-osf + ;; + i*86:OSF1:*:*) + if test -x /usr/sbin/sysversion ; then + GUESS=$UNAME_MACHINE-unknown-osf1mk + else + GUESS=$UNAME_MACHINE-unknown-osf1 + fi + ;; + parisc*:Lites*:*:*) + GUESS=hppa1.1-hp-lites + ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + GUESS=c1-convex-bsd + ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + GUESS=c34-convex-bsd + ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + GUESS=c38-convex-bsd + ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + GUESS=c4-convex-bsd + ;; + CRAY*Y-MP:*:*:*) + CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` + GUESS=ymp-cray-unicos$CRAY_REL + ;; + CRAY*[A-Z]90:*:*:*) + echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ + -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*TS:*:*:*) + CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` + GUESS=t90-cray-unicos$CRAY_REL + ;; + CRAY*T3E:*:*:*) + CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` + GUESS=alphaev5-cray-unicosmk$CRAY_REL + ;; + CRAY*SV1:*:*:*) + CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` + GUESS=sv1-cray-unicos$CRAY_REL + ;; + *:UNICOS/mp:*:*) + CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` + GUESS=craynv-cray-unicosmp$CRAY_REL + ;; + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) + FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` + FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` + FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` + GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} + ;; + 5000:UNIX_System_V:4.*:*) + FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` + FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` + GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} + ;; + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) + GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE + ;; + sparc*:BSD/OS:*:*) + GUESS=sparc-unknown-bsdi$UNAME_RELEASE + ;; + *:BSD/OS:*:*) + GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE + ;; + arm:FreeBSD:*:*) + UNAME_PROCESSOR=`uname -p` + set_cc_for_build + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_PCS_VFP + then + FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` + GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi + else + FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` + GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf + fi + ;; + *:FreeBSD:*:*) + UNAME_PROCESSOR=`/usr/bin/uname -p` + case $UNAME_PROCESSOR in + amd64) + UNAME_PROCESSOR=x86_64 ;; + i386) + UNAME_PROCESSOR=i586 ;; + esac + FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` + GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL + ;; + i*:CYGWIN*:*) + GUESS=$UNAME_MACHINE-pc-cygwin + ;; + *:MINGW64*:*) + GUESS=$UNAME_MACHINE-pc-mingw64 + ;; + *:MINGW*:*) + GUESS=$UNAME_MACHINE-pc-mingw32 + ;; + *:MSYS*:*) + GUESS=$UNAME_MACHINE-pc-msys + ;; + i*:PW*:*) + GUESS=$UNAME_MACHINE-pc-pw32 + ;; + *:Interix*:*) + case $UNAME_MACHINE in + x86) + GUESS=i586-pc-interix$UNAME_RELEASE + ;; + authenticamd | genuineintel | EM64T) + GUESS=x86_64-unknown-interix$UNAME_RELEASE + ;; + IA64) + GUESS=ia64-unknown-interix$UNAME_RELEASE + ;; + esac ;; + i*:UWIN*:*) + GUESS=$UNAME_MACHINE-pc-uwin + ;; + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) + GUESS=x86_64-pc-cygwin + ;; + prep*:SunOS:5.*:*) + SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` + GUESS=powerpcle-unknown-solaris2$SUN_REL + ;; + *:GNU:*:*) + # the GNU system + GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'` + GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'` + GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL + ;; + *:GNU/*:*:*) + # other systems with GNU libc and userland + GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"` + GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` + GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC + ;; + *:Minix:*:*) + GUESS=$UNAME_MACHINE-unknown-minix + ;; + aarch64:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + aarch64_be:Linux:*:*) + UNAME_MACHINE=aarch64_be + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in + EV5) UNAME_MACHINE=alphaev5 ;; + EV56) UNAME_MACHINE=alphaev56 ;; + PCA56) UNAME_MACHINE=alphapca56 ;; + PCA57) UNAME_MACHINE=alphapca56 ;; + EV6) UNAME_MACHINE=alphaev6 ;; + EV67) UNAME_MACHINE=alphaev67 ;; + EV68*) UNAME_MACHINE=alphaev68 ;; + esac + objdump --private-headers /bin/sh | grep -q ld.so.1 + if test "$?" = 0 ; then LIBC=gnulibc1 ; fi + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + arm*:Linux:*:*) + set_cc_for_build + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_EABI__ + then + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + else + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_PCS_VFP + then + GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi + else + GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf + fi + fi + ;; + avr32*:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + cris:Linux:*:*) + GUESS=$UNAME_MACHINE-axis-linux-$LIBC + ;; + crisv32:Linux:*:*) + GUESS=$UNAME_MACHINE-axis-linux-$LIBC + ;; + e2k:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + frv:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + hexagon:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + i*86:Linux:*:*) + GUESS=$UNAME_MACHINE-pc-linux-$LIBC + ;; + ia64:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + k1om:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + m32r*:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + m68*:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + mips:Linux:*:* | mips64:Linux:*:*) + set_cc_for_build + IS_GLIBC=0 + test x"${LIBC}" = xgnu && IS_GLIBC=1 + sed 's/^ //' << EOF > "$dummy.c" + #undef CPU + #undef mips + #undef mipsel + #undef mips64 + #undef mips64el + #if ${IS_GLIBC} && defined(_ABI64) + LIBCABI=gnuabi64 + #else + #if ${IS_GLIBC} && defined(_ABIN32) + LIBCABI=gnuabin32 + #else + LIBCABI=${LIBC} + #endif + #endif + + #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 + CPU=mipsisa64r6 + #else + #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 + CPU=mipsisa32r6 + #else + #if defined(__mips64) + CPU=mips64 + #else + CPU=mips + #endif + #endif + #endif + + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + MIPS_ENDIAN=el + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + MIPS_ENDIAN= + #else + MIPS_ENDIAN= + #endif + #endif +EOF + cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'` + eval "$cc_set_vars" + test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; } + ;; + mips64el:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + openrisc*:Linux:*:*) + GUESS=or1k-unknown-linux-$LIBC + ;; + or32:Linux:*:* | or1k*:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + padre:Linux:*:*) + GUESS=sparc-unknown-linux-$LIBC + ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + GUESS=hppa64-unknown-linux-$LIBC + ;; + parisc:Linux:*:* | hppa:Linux:*:*) + # Look for CPU level + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in + PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;; + PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;; + *) GUESS=hppa-unknown-linux-$LIBC ;; + esac + ;; + ppc64:Linux:*:*) + GUESS=powerpc64-unknown-linux-$LIBC + ;; + ppc:Linux:*:*) + GUESS=powerpc-unknown-linux-$LIBC + ;; + ppc64le:Linux:*:*) + GUESS=powerpc64le-unknown-linux-$LIBC + ;; + ppcle:Linux:*:*) + GUESS=powerpcle-unknown-linux-$LIBC + ;; + riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + s390:Linux:*:* | s390x:Linux:*:*) + GUESS=$UNAME_MACHINE-ibm-linux-$LIBC + ;; + sh64*:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + sh*:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + sparc:Linux:*:* | sparc64:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + tile*:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + vax:Linux:*:*) + GUESS=$UNAME_MACHINE-dec-linux-$LIBC + ;; + x86_64:Linux:*:*) + set_cc_for_build + LIBCABI=$LIBC + if test "$CC_FOR_BUILD" != no_compiler_found; then + if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \ + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_X32 >/dev/null + then + LIBCABI=${LIBC}x32 + fi + fi + GUESS=$UNAME_MACHINE-pc-linux-$LIBCABI + ;; + xtensa*:Linux:*:*) + GUESS=$UNAME_MACHINE-unknown-linux-$LIBC + ;; + i*86:DYNIX/ptx:4*:*) + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. + # earlier versions are messed up and put the nodename in both + # sysname and nodename. + GUESS=i386-sequent-sysv4 + ;; + i*86:UNIX_SV:4.2MP:2.*) + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, + # I just have to hope. -- rms. + # Use sysv4.2uw... so that sysv4* matches it. + GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION + ;; + i*86:OS/2:*:*) + # If we were able to find `uname', then EMX Unix compatibility + # is probably installed. + GUESS=$UNAME_MACHINE-pc-os2-emx + ;; + i*86:XTS-300:*:STOP) + GUESS=$UNAME_MACHINE-unknown-stop + ;; + i*86:atheos:*:*) + GUESS=$UNAME_MACHINE-unknown-atheos + ;; + i*86:syllable:*:*) + GUESS=$UNAME_MACHINE-pc-syllable + ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) + GUESS=i386-unknown-lynxos$UNAME_RELEASE + ;; + i*86:*DOS:*:*) + GUESS=$UNAME_MACHINE-pc-msdosdjgpp + ;; + i*86:*:4.*:*) + UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then + GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL + else + GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL + fi + ;; + i*86:*:5:[678]*) + # UnixWare 7.x, OpenUNIX and OpenServer 6. + case `/bin/uname -X | grep "^Machine"` in + *486*) UNAME_MACHINE=i486 ;; + *Pentium) UNAME_MACHINE=i586 ;; + *Pent*|*Celeron) UNAME_MACHINE=i686 ;; + esac + GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} + ;; + i*86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=i586 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ + && UNAME_MACHINE=i686 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ + && UNAME_MACHINE=i686 + GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL + else + GUESS=$UNAME_MACHINE-pc-sysv32 + fi + ;; + pc:*:*:*) + # Left here for compatibility: + # uname -m prints for DJGPP always 'pc', but it prints nothing about + # the processor, so we play safe by assuming i586. + # Note: whatever this is, it MUST be the same as what config.sub + # prints for the "djgpp" host, or else GDB configure will decide that + # this is a cross-build. + GUESS=i586-pc-msdosdjgpp + ;; + Intel:Mach:3*:*) + GUESS=i386-pc-mach3 + ;; + paragon:*:*:*) + GUESS=i860-intel-osf1 + ;; + i860:*:4.*:*) # i860-SVR4 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then + GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4 + else # Add other i860-SVR4 vendors below as they are discovered. + GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4 + fi + ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + GUESS=m68010-convergent-sysv + ;; + mc68k:UNIX:SYSTEM5:3.51m) + GUESS=m68k-convergent-sysv + ;; + M680?0:D-NIX:5.3:*) + GUESS=m68k-diab-dnix + ;; + M68*:*:R3V[5678]*:*) + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) + OS_REL='' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4; exit; } ;; + NCR*:*:4.2:* | MPRAS*:*:4.2:*) + OS_REL='.3' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ + && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) + GUESS=m68k-unknown-lynxos$UNAME_RELEASE + ;; + mc68030:UNIX_System_V:4.*:*) + GUESS=m68k-atari-sysv4 + ;; + TSUNAMI:LynxOS:2.*:*) + GUESS=sparc-unknown-lynxos$UNAME_RELEASE + ;; + rs6000:LynxOS:2.*:*) + GUESS=rs6000-unknown-lynxos$UNAME_RELEASE + ;; + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) + GUESS=powerpc-unknown-lynxos$UNAME_RELEASE + ;; + SM[BE]S:UNIX_SV:*:*) + GUESS=mips-dde-sysv$UNAME_RELEASE + ;; + RM*:ReliantUNIX-*:*:*) + GUESS=mips-sni-sysv4 + ;; + RM*:SINIX-*:*:*) + GUESS=mips-sni-sysv4 + ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=`(uname -p) 2>/dev/null` + GUESS=$UNAME_MACHINE-sni-sysv4 + else + GUESS=ns32k-sni-sysv + fi + ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + GUESS=i586-unisys-sysv4 + ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes . + # How about differentiating between stratus architectures? -djm + GUESS=hppa1.1-stratus-sysv4 + ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + GUESS=i860-stratus-sysv4 + ;; + i*86:VOS:*:*) + # From Paul.Green@stratus.com. + GUESS=$UNAME_MACHINE-stratus-vos + ;; + *:VOS:*:*) + # From Paul.Green@stratus.com. + GUESS=hppa1.1-stratus-vos + ;; + mc68*:A/UX:*:*) + GUESS=m68k-apple-aux$UNAME_RELEASE + ;; + news*:NEWS-OS:6*:*) + GUESS=mips-sony-newsos6 + ;; + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) + if test -d /usr/nec; then + GUESS=mips-nec-sysv$UNAME_RELEASE + else + GUESS=mips-unknown-sysv$UNAME_RELEASE + fi + ;; + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. + GUESS=powerpc-be-beos + ;; + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. + GUESS=powerpc-apple-beos + ;; + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + GUESS=i586-pc-beos + ;; + BePC:Haiku:*:*) # Haiku running on Intel PC compatible. + GUESS=i586-pc-haiku + ;; + x86_64:Haiku:*:*) + GUESS=x86_64-unknown-haiku + ;; + SX-4:SUPER-UX:*:*) + GUESS=sx4-nec-superux$UNAME_RELEASE + ;; + SX-5:SUPER-UX:*:*) + GUESS=sx5-nec-superux$UNAME_RELEASE + ;; + SX-6:SUPER-UX:*:*) + GUESS=sx6-nec-superux$UNAME_RELEASE + ;; + SX-7:SUPER-UX:*:*) + GUESS=sx7-nec-superux$UNAME_RELEASE + ;; + SX-8:SUPER-UX:*:*) + GUESS=sx8-nec-superux$UNAME_RELEASE + ;; + SX-8R:SUPER-UX:*:*) + GUESS=sx8r-nec-superux$UNAME_RELEASE + ;; + SX-ACE:SUPER-UX:*:*) + GUESS=sxace-nec-superux$UNAME_RELEASE + ;; + Power*:Rhapsody:*:*) + GUESS=powerpc-apple-rhapsody$UNAME_RELEASE + ;; + *:Rhapsody:*:*) + GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE + ;; + arm64:Darwin:*:*) + GUESS=aarch64-apple-darwin$UNAME_RELEASE + ;; + *:Darwin:*:*) + UNAME_PROCESSOR=`uname -p` + case $UNAME_PROCESSOR in + unknown) UNAME_PROCESSOR=powerpc ;; + esac + if command -v xcode-select > /dev/null 2> /dev/null && \ + ! xcode-select --print-path > /dev/null 2> /dev/null ; then + # Avoid executing cc if there is no toolchain installed as + # cc will be a stub that puts up a graphical alert + # prompting the user to install developer tools. + CC_FOR_BUILD=no_compiler_found + else + set_cc_for_build + fi + if test "$CC_FOR_BUILD" != no_compiler_found; then + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + case $UNAME_PROCESSOR in + i386) UNAME_PROCESSOR=x86_64 ;; + powerpc) UNAME_PROCESSOR=powerpc64 ;; + esac + fi + # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc + if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_PPC >/dev/null + then + UNAME_PROCESSOR=powerpc + fi + elif test "$UNAME_PROCESSOR" = i386 ; then + # uname -m returns i386 or x86_64 + UNAME_PROCESSOR=$UNAME_MACHINE + fi + GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE + ;; + *:procnto*:*:* | *:QNX:[0123456789]*:*) + UNAME_PROCESSOR=`uname -p` + if test "$UNAME_PROCESSOR" = x86; then + UNAME_PROCESSOR=i386 + UNAME_MACHINE=pc + fi + GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE + ;; + *:QNX:*:4*) + GUESS=i386-pc-qnx + ;; + NEO-*:NONSTOP_KERNEL:*:*) + GUESS=neo-tandem-nsk$UNAME_RELEASE + ;; + NSE-*:NONSTOP_KERNEL:*:*) + GUESS=nse-tandem-nsk$UNAME_RELEASE + ;; + NSR-*:NONSTOP_KERNEL:*:*) + GUESS=nsr-tandem-nsk$UNAME_RELEASE + ;; + NSV-*:NONSTOP_KERNEL:*:*) + GUESS=nsv-tandem-nsk$UNAME_RELEASE + ;; + NSX-*:NONSTOP_KERNEL:*:*) + GUESS=nsx-tandem-nsk$UNAME_RELEASE + ;; + *:NonStop-UX:*:*) + GUESS=mips-compaq-nonstopux + ;; + BS2000:POSIX*:*:*) + GUESS=bs2000-siemens-sysv + ;; + DS/*:UNIX_System_V:*:*) + GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE + ;; + *:Plan9:*:*) + # "uname -m" is not consistent, so use $cputype instead. 386 + # is converted to i386 for consistency with other x86 + # operating systems. + if test "${cputype-}" = 386; then + UNAME_MACHINE=i386 + elif test "x${cputype-}" != x; then + UNAME_MACHINE=$cputype + fi + GUESS=$UNAME_MACHINE-unknown-plan9 + ;; + *:TOPS-10:*:*) + GUESS=pdp10-unknown-tops10 + ;; + *:TENEX:*:*) + GUESS=pdp10-unknown-tenex + ;; + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) + GUESS=pdp10-dec-tops20 + ;; + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) + GUESS=pdp10-xkl-tops20 + ;; + *:TOPS-20:*:*) + GUESS=pdp10-unknown-tops20 + ;; + *:ITS:*:*) + GUESS=pdp10-unknown-its + ;; + SEI:*:*:SEIUX) + GUESS=mips-sei-seiux$UNAME_RELEASE + ;; + *:DragonFly:*:*) + DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` + GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL + ;; + *:*VMS:*:*) + UNAME_MACHINE=`(uname -p) 2>/dev/null` + case $UNAME_MACHINE in + A*) GUESS=alpha-dec-vms ;; + I*) GUESS=ia64-dec-vms ;; + V*) GUESS=vax-dec-vms ;; + esac ;; + *:XENIX:*:SysV) + GUESS=i386-pc-xenix + ;; + i*86:skyos:*:*) + SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'` + GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL + ;; + i*86:rdos:*:*) + GUESS=$UNAME_MACHINE-pc-rdos + ;; + *:AROS:*:*) + GUESS=$UNAME_MACHINE-unknown-aros + ;; + x86_64:VMkernel:*:*) + GUESS=$UNAME_MACHINE-unknown-esx + ;; + amd64:Isilon\ OneFS:*:*) + GUESS=x86_64-unknown-onefs + ;; + *:Unleashed:*:*) + GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE + ;; +esac + +# Do we have a guess based on uname results? +if test "x$GUESS" != x; then + echo "$GUESS" + exit +fi + +# No uname command or uname output not recognized. +set_cc_for_build +cat > "$dummy.c" < +#include +#endif +#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) +#if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) +#include +#if defined(_SIZE_T_) || defined(SIGLOST) +#include +#endif +#endif +#endif +main () +{ +#if defined (sony) +#if defined (MIPSEB) + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, + I don't know.... */ + printf ("mips-sony-bsd\n"); exit (0); +#else +#include + printf ("m68k-sony-newsos%s\n", +#ifdef NEWSOS4 + "4" +#else + "" +#endif + ); exit (0); +#endif +#endif + +#if defined (NeXT) +#if !defined (__ARCHITECTURE__) +#define __ARCHITECTURE__ "m68k" +#endif + int version; + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; + if (version < 4) + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); + else + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); + exit (0); +#endif + +#if defined (MULTIMAX) || defined (n16) +#if defined (UMAXV) + printf ("ns32k-encore-sysv\n"); exit (0); +#else +#if defined (CMU) + printf ("ns32k-encore-mach\n"); exit (0); +#else + printf ("ns32k-encore-bsd\n"); exit (0); +#endif +#endif +#endif + +#if defined (__386BSD__) + printf ("i386-pc-bsd\n"); exit (0); +#endif + +#if defined (sequent) +#if defined (i386) + printf ("i386-sequent-dynix\n"); exit (0); +#endif +#if defined (ns32000) + printf ("ns32k-sequent-dynix\n"); exit (0); +#endif +#endif + +#if defined (_SEQUENT_) + struct utsname un; + + uname(&un); + if (strncmp(un.version, "V2", 2) == 0) { + printf ("i386-sequent-ptx2\n"); exit (0); + } + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ + printf ("i386-sequent-ptx1\n"); exit (0); + } + printf ("i386-sequent-ptx\n"); exit (0); +#endif + +#if defined (vax) +#if !defined (ultrix) +#include +#if defined (BSD) +#if BSD == 43 + printf ("vax-dec-bsd4.3\n"); exit (0); +#else +#if BSD == 199006 + printf ("vax-dec-bsd4.3reno\n"); exit (0); +#else + printf ("vax-dec-bsd\n"); exit (0); +#endif +#endif +#else + printf ("vax-dec-bsd\n"); exit (0); +#endif +#else +#if defined(_SIZE_T_) || defined(SIGLOST) + struct utsname un; + uname (&un); + printf ("vax-dec-ultrix%s\n", un.release); exit (0); +#else + printf ("vax-dec-ultrix\n"); exit (0); +#endif +#endif +#endif +#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) +#if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) +#if defined(_SIZE_T_) || defined(SIGLOST) + struct utsname *un; + uname (&un); + printf ("mips-dec-ultrix%s\n", un.release); exit (0); +#else + printf ("mips-dec-ultrix\n"); exit (0); +#endif +#endif +#endif + +#if defined (alliant) && defined (i860) + printf ("i860-alliant-bsd\n"); exit (0); +#endif + + exit (1); +} +EOF + +$CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` && + { echo "$SYSTEM_NAME"; exit; } + +# Apollos put the system type in the environment. +test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; } + +echo "$0: unable to guess system type" >&2 + +case $UNAME_MACHINE:$UNAME_SYSTEM in + mips:Linux | mips64:Linux) + # If we got here on MIPS GNU/Linux, output extra information. + cat >&2 <&2 <&2 </dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null` + +hostinfo = `(hostinfo) 2>/dev/null` +/bin/universe = `(/bin/universe) 2>/dev/null` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` +/bin/arch = `(/bin/arch) 2>/dev/null` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` + +UNAME_MACHINE = "$UNAME_MACHINE" +UNAME_RELEASE = "$UNAME_RELEASE" +UNAME_SYSTEM = "$UNAME_SYSTEM" +UNAME_VERSION = "$UNAME_VERSION" +EOF +fi + +exit 1 + +# Local variables: +# eval: (add-hook 'before-save-hook 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/Sources/Cfyaml/build-aux/config.sub b/Sources/Cfyaml/build-aux/config.sub index d74fb6dea..defe52c0c 100755 --- a/Sources/Cfyaml/build-aux/config.sub +++ b/Sources/Cfyaml/build-aux/config.sub @@ -1,14 +1,14 @@ #! /bin/sh # Configuration validation subroutine script. -# Copyright 1992-2021 Free Software Foundation, Inc. +# Copyright 1992-2023 Free Software Foundation, Inc. # shellcheck disable=SC2006,SC2268 # see below for rationale -timestamp='2021-08-14' +timestamp='2023-09-19' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3 of the License, or +# the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but @@ -76,13 +76,13 @@ Report bugs and patches to ." version="\ GNU config.sub ($timestamp) -Copyright 1992-2021 Free Software Foundation, Inc. +Copyright 1992-2023 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" -Try \`$me --help' for more information." +Try '$me --help' for more information." # Parse command line while test $# -gt 0 ; do @@ -130,7 +130,7 @@ IFS=$saved_IFS # Separate into logical components for further validation case $1 in *-*-*-*-*) - echo Invalid configuration \`"$1"\': more than four components >&2 + echo "Invalid configuration '$1': more than four components" >&2 exit 1 ;; *-*-*-*) @@ -145,7 +145,8 @@ case $1 in nto-qnx* | linux-* | uclinux-uclibc* \ | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ - | storm-chaos* | os2-emx* | rtmk-nova*) + | storm-chaos* | os2-emx* | rtmk-nova* | managarm-* \ + | windows-* ) basic_machine=$field1 basic_os=$maybe_os ;; @@ -943,7 +944,7 @@ $basic_machine EOF IFS=$saved_IFS ;; - # We use `pc' rather than `unknown' + # We use 'pc' rather than 'unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) @@ -1020,6 +1021,11 @@ case $cpu-$vendor in ;; # Here we normalize CPU types with a missing or matching vendor + armh-unknown | armh-alt) + cpu=armv7l + vendor=alt + basic_os=${basic_os:-linux-gnueabihf} + ;; dpx20-unknown | dpx20-bull) cpu=rs6000 vendor=bull @@ -1070,7 +1076,7 @@ case $cpu-$vendor in pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) cpu=i586 ;; - pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*) + pentiumpro-* | p6-* | 6x86-* | athlon-* | athlon_*-*) cpu=i686 ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) @@ -1121,7 +1127,7 @@ case $cpu-$vendor in xscale-* | xscalee[bl]-*) cpu=`echo "$cpu" | sed 's/^xscale/arm/'` ;; - arm64-*) + arm64-* | aarch64le-*) cpu=aarch64 ;; @@ -1175,7 +1181,7 @@ case $cpu-$vendor in case $cpu in 1750a | 580 \ | a29k \ - | aarch64 | aarch64_be \ + | aarch64 | aarch64_be | aarch64c | arm64ec \ | abacus \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \ @@ -1194,45 +1200,23 @@ case $cpu-$vendor in | d10v | d30v | dlx | dsp16xx \ | e2k | elxsi | epiphany \ | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \ + | javascript \ | h8300 | h8500 \ | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | hexagon \ | i370 | i*86 | i860 | i960 | ia16 | ia64 \ | ip2k | iq2000 \ | k1om \ + | kvx \ | le32 | le64 \ | lm32 \ - | loongarch32 | loongarch64 | loongarchx32 \ + | loongarch32 | loongarch64 \ | m32c | m32r | m32rle \ | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \ | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \ | m88110 | m88k | maxq | mb | mcore | mep | metag \ | microblaze | microblazeel \ - | mips | mipsbe | mipseb | mipsel | mipsle \ - | mips16 \ - | mips64 | mips64eb | mips64el \ - | mips64octeon | mips64octeonel \ - | mips64orion | mips64orionel \ - | mips64r5900 | mips64r5900el \ - | mips64vr | mips64vrel \ - | mips64vr4100 | mips64vr4100el \ - | mips64vr4300 | mips64vr4300el \ - | mips64vr5000 | mips64vr5000el \ - | mips64vr5900 | mips64vr5900el \ - | mipsisa32 | mipsisa32el \ - | mipsisa32r2 | mipsisa32r2el \ - | mipsisa32r3 | mipsisa32r3el \ - | mipsisa32r5 | mipsisa32r5el \ - | mipsisa32r6 | mipsisa32r6el \ - | mipsisa64 | mipsisa64el \ - | mipsisa64r2 | mipsisa64r2el \ - | mipsisa64r3 | mipsisa64r3el \ - | mipsisa64r5 | mipsisa64r5el \ - | mipsisa64r6 | mipsisa64r6el \ - | mipsisa64sb1 | mipsisa64sb1el \ - | mipsisa64sr71k | mipsisa64sr71kel \ - | mipsr5900 | mipsr5900el \ - | mipstx39 | mipstx39el \ + | mips* \ | mmix \ | mn10200 | mn10300 \ | moxie \ @@ -1280,7 +1264,7 @@ case $cpu-$vendor in ;; *) - echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2 + echo "Invalid configuration '$1': machine '$cpu-$vendor' not recognized" 1>&2 exit 1 ;; esac @@ -1301,11 +1285,12 @@ esac # Decode manufacturer-specific aliases for certain operating systems. -if test x$basic_os != x +if test x"$basic_os" != x then -# First recognize some ad-hoc caes, or perhaps split kernel-os, or else just +# First recognize some ad-hoc cases, or perhaps split kernel-os, or else just # set os. +obj= case $basic_os in gnu/linux*) kernel=linux @@ -1336,6 +1321,10 @@ EOF kernel=linux os=`echo "$basic_os" | sed -e 's|linux|gnu|'` ;; + managarm*) + kernel=managarm + os=`echo "$basic_os" | sed -e 's|managarm|mlibc|'` + ;; *) kernel= os=$basic_os @@ -1501,10 +1490,16 @@ case $os in os=eabi ;; *) - os=elf + os= + obj=elf ;; esac ;; + aout* | coff* | elf* | pe*) + # These are machine code file formats, not OSes + obj=$os + os= + ;; *) # No normalization, but not necessarily accepted, that comes below. ;; @@ -1523,12 +1518,15 @@ else # system, and we'll never get to this point. kernel= +obj= case $cpu-$vendor in score-*) - os=elf + os= + obj=elf ;; spu-*) - os=elf + os= + obj=elf ;; *-acorn) os=riscix1.2 @@ -1538,28 +1536,35 @@ case $cpu-$vendor in os=gnu ;; arm*-semi) - os=aout + os= + obj=aout ;; c4x-* | tic4x-*) - os=coff + os= + obj=coff ;; c8051-*) - os=elf + os= + obj=elf ;; clipper-intergraph) os=clix ;; hexagon-*) - os=elf + os= + obj=elf ;; tic54x-*) - os=coff + os= + obj=coff ;; tic55x-*) - os=coff + os= + obj=coff ;; tic6x-*) - os=coff + os= + obj=coff ;; # This must come before the *-dec entry. pdp10-*) @@ -1581,19 +1586,24 @@ case $cpu-$vendor in os=sunos3 ;; m68*-cisco) - os=aout + os= + obj=aout ;; mep-*) - os=elf + os= + obj=elf ;; mips*-cisco) - os=elf + os= + obj=elf ;; mips*-*) - os=elf + os= + obj=elf ;; or32-*) - os=coff + os= + obj=coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=sysv3 @@ -1602,7 +1612,8 @@ case $cpu-$vendor in os=sunos4.1.1 ;; pru-*) - os=elf + os= + obj=elf ;; *-be) os=beos @@ -1683,10 +1694,12 @@ case $cpu-$vendor in os=uxpv ;; *-rom68k) - os=coff + os= + obj=coff ;; *-*bug) - os=coff + os= + obj=coff ;; *-apple) os=macos @@ -1704,7 +1717,8 @@ esac fi -# Now, validate our (potentially fixed-up) OS. +# Now, validate our (potentially fixed-up) individual pieces (OS, OBJ). + case $os in # Sometimes we do "kernel-libc", so those need to count as OSes. musl* | newlib* | relibc* | uclibc*) @@ -1715,6 +1729,9 @@ case $os in # VxWorks passes extra cpu info in the 4th filed. simlinux | simwindows | spe) ;; + # See `case $cpu-$os` validation below + ghcjs) + ;; # Now accept the basic system types. # The portable systems comes first. # Each alternative MUST end in a * to match a version number. @@ -1723,7 +1740,7 @@ case $os in | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \ | hiux* | abug | nacl* | netware* | windows* \ - | os9* | macos* | osx* | ios* \ + | os9* | macos* | osx* | ios* | tvos* | watchos* \ | mpw* | magic* | mmixware* | mon960* | lnews* \ | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \ | aos* | aros* | cloudabi* | sortix* | twizzler* \ @@ -1732,11 +1749,11 @@ case $os in | mirbsd* | netbsd* | dicos* | openedition* | ose* \ | bitrig* | openbsd* | secbsd* | solidbsd* | libertybsd* | os108* \ | ekkobsd* | freebsd* | riscix* | lynxos* | os400* \ - | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \ - | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \ + | bosx* | nextstep* | cxux* | oabi* \ + | ptx* | ecoff* | winnt* | domain* | vsta* \ | udi* | lites* | ieee* | go32* | aux* | hcos* \ | chorusrdb* | cegcc* | glidix* | serenity* \ - | cygwin* | msys* | pe* | moss* | proelf* | rtems* \ + | cygwin* | msys* | moss* | proelf* | rtems* \ | midipix* | mingw32* | mingw64* | mint* \ | uxpv* | beos* | mpeix* | udk* | moxiebox* \ | interix* | uwin* | mks* | rhapsody* | darwin* \ @@ -1748,7 +1765,8 @@ case $os in | skyos* | haiku* | rdos* | toppers* | drops* | es* \ | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ - | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr*) + | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \ + | fiwix* | mlibc* | cos* | mbr* ) ;; # This one is extra strict with allowed versions sco3.2v2 | sco3.2v[4-9]* | sco5v6*) @@ -1756,41 +1774,99 @@ case $os in ;; none) ;; + kernel* | msvc* ) + # Restricted further below + ;; + '') + if test x"$obj" = x + then + echo "Invalid configuration '$1': Blank OS only allowed with explicit machine code file format" 1>&2 + fi + ;; + *) + echo "Invalid configuration '$1': OS '$os' not recognized" 1>&2 + exit 1 + ;; +esac + +case $obj in + aout* | coff* | elf* | pe*) + ;; + '') + # empty is fine + ;; *) - echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2 + echo "Invalid configuration '$1': Machine code format '$obj' not recognized" 1>&2 + exit 1 + ;; +esac + +# Here we handle the constraint that a (synthetic) cpu and os are +# valid only in combination with each other and nowhere else. +case $cpu-$os in + # The "javascript-unknown-ghcjs" triple is used by GHC; we + # accept it here in order to tolerate that, but reject any + # variations. + javascript-ghcjs) + ;; + javascript-* | *-ghcjs) + echo "Invalid configuration '$1': cpu '$cpu' is not valid with os '$os$obj'" 1>&2 exit 1 ;; esac # As a final step for OS-related things, validate the OS-kernel combination # (given a valid OS), if there is a kernel. -case $kernel-$os in - linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \ - | linux-musl* | linux-relibc* | linux-uclibc* ) +case $kernel-$os-$obj in + linux-gnu*- | linux-dietlibc*- | linux-android*- | linux-newlib*- \ + | linux-musl*- | linux-relibc*- | linux-uclibc*- | linux-mlibc*- ) + ;; + uclinux-uclibc*- ) + ;; + managarm-mlibc*- | managarm-kernel*- ) ;; - uclinux-uclibc* ) + windows*-msvc*-) ;; - -dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* ) + -dietlibc*- | -newlib*- | -musl*- | -relibc*- | -uclibc*- | -mlibc*- ) # These are just libc implementations, not actual OSes, and thus # require a kernel. - echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2 + echo "Invalid configuration '$1': libc '$os' needs explicit kernel." 1>&2 exit 1 ;; - kfreebsd*-gnu* | kopensolaris*-gnu*) + -kernel*- ) + echo "Invalid configuration '$1': '$os' needs explicit kernel." 1>&2 + exit 1 ;; - vxworks-simlinux | vxworks-simwindows | vxworks-spe) + *-kernel*- ) + echo "Invalid configuration '$1': '$kernel' does not support '$os'." 1>&2 + exit 1 ;; - nto-qnx*) + *-msvc*- ) + echo "Invalid configuration '$1': '$os' needs 'windows'." 1>&2 + exit 1 ;; - os2-emx) + kfreebsd*-gnu*- | kopensolaris*-gnu*-) + ;; + vxworks-simlinux- | vxworks-simwindows- | vxworks-spe-) + ;; + nto-qnx*-) + ;; + os2-emx-) ;; - *-eabi* | *-gnueabi*) + *-eabi*- | *-gnueabi*-) ;; - -*) + none--*) + # None (no kernel, i.e. freestanding / bare metal), + # can be paired with an machine code file format + ;; + -*-) # Blank kernel with real OS is always fine. ;; - *-*) - echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2 + --*) + # Blank kernel and OS with real machine code file format is always fine. + ;; + *-*-*) + echo "Invalid configuration '$1': Kernel '$kernel' not known to work with OS '$os'." 1>&2 exit 1 ;; esac @@ -1873,7 +1949,7 @@ case $vendor in ;; esac -echo "$cpu-$vendor-${kernel:+$kernel-}$os" +echo "$cpu-$vendor${kernel:+-$kernel}${os:+-$os}${obj:+-$obj}" exit # Local variables: diff --git a/Sources/Cfyaml/build-aux/config.sub~ b/Sources/Cfyaml/build-aux/config.sub~ new file mode 100755 index 000000000..d74fb6dea --- /dev/null +++ b/Sources/Cfyaml/build-aux/config.sub~ @@ -0,0 +1,1884 @@ +#! /bin/sh +# Configuration validation subroutine script. +# Copyright 1992-2021 Free Software Foundation, Inc. + +# shellcheck disable=SC2006,SC2268 # see below for rationale + +timestamp='2021-08-14' + +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program 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 +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, see . +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that +# program. This Exception is an additional permission under section 7 +# of the GNU General Public License, version 3 ("GPLv3"). + + +# Please send patches to . +# +# Configuration subroutine to validate and canonicalize a configuration type. +# Supply the specified configuration type as an argument. +# If it is invalid, we print an error message on stderr and exit with code 1. +# Otherwise, we print the canonical config type on stdout and succeed. + +# You can get the latest version of this script from: +# https://git.savannah.gnu.org/cgit/config.git/plain/config.sub + +# This file is supposed to be the same for all GNU packages +# and recognize all the CPU types, system types and aliases +# that are meaningful with *any* GNU software. +# Each package is responsible for reporting which valid configurations +# it does not support. The user should be able to distinguish +# a failure to support a valid configuration from a meaningless +# configuration. + +# The goal of this file is to map all the various variations of a given +# machine specification into a single specification in the form: +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or in some cases, the newer four-part form: +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# It is wrong to echo any other type of specification. + +# The "shellcheck disable" line above the timestamp inhibits complaints +# about features and limitations of the classic Bourne shell that were +# superseded or lifted in POSIX. However, this script identifies a wide +# variety of pre-POSIX systems that do not have POSIX shells at all, and +# even some reasonably current systems (Solaris 10 as case-in-point) still +# have a pre-POSIX /bin/sh. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS + +Canonicalize a configuration name. + +Options: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.sub ($timestamp) + +Copyright 1992-2021 Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" >&2 + exit 1 ;; + + *local*) + # First pass through any local machine types. + echo "$1" + exit ;; + + * ) + break ;; + esac +done + +case $# in + 0) echo "$me: missing argument$help" >&2 + exit 1;; + 1) ;; + *) echo "$me: too many arguments$help" >&2 + exit 1;; +esac + +# Split fields of configuration type +# shellcheck disable=SC2162 +saved_IFS=$IFS +IFS="-" read field1 field2 field3 field4 <&2 + exit 1 + ;; + *-*-*-*) + basic_machine=$field1-$field2 + basic_os=$field3-$field4 + ;; + *-*-*) + # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two + # parts + maybe_os=$field2-$field3 + case $maybe_os in + nto-qnx* | linux-* | uclinux-uclibc* \ + | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ + | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ + | storm-chaos* | os2-emx* | rtmk-nova*) + basic_machine=$field1 + basic_os=$maybe_os + ;; + android-linux) + basic_machine=$field1-unknown + basic_os=linux-android + ;; + *) + basic_machine=$field1-$field2 + basic_os=$field3 + ;; + esac + ;; + *-*) + # A lone config we happen to match not fitting any pattern + case $field1-$field2 in + decstation-3100) + basic_machine=mips-dec + basic_os= + ;; + *-*) + # Second component is usually, but not always the OS + case $field2 in + # Prevent following clause from handling this valid os + sun*os*) + basic_machine=$field1 + basic_os=$field2 + ;; + zephyr*) + basic_machine=$field1-unknown + basic_os=$field2 + ;; + # Manufacturers + dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \ + | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \ + | unicom* | ibm* | next | hp | isi* | apollo | altos* \ + | convergent* | ncr* | news | 32* | 3600* | 3100* \ + | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \ + | ultra | tti* | harris | dolphin | highlevel | gould \ + | cbm | ns | masscomp | apple | axis | knuth | cray \ + | microblaze* | sim | cisco \ + | oki | wec | wrs | winbond) + basic_machine=$field1-$field2 + basic_os= + ;; + *) + basic_machine=$field1 + basic_os=$field2 + ;; + esac + ;; + esac + ;; + *) + # Convert single-component short-hands not valid as part of + # multi-component configurations. + case $field1 in + 386bsd) + basic_machine=i386-pc + basic_os=bsd + ;; + a29khif) + basic_machine=a29k-amd + basic_os=udi + ;; + adobe68k) + basic_machine=m68010-adobe + basic_os=scout + ;; + alliant) + basic_machine=fx80-alliant + basic_os= + ;; + altos | altos3068) + basic_machine=m68k-altos + basic_os= + ;; + am29k) + basic_machine=a29k-none + basic_os=bsd + ;; + amdahl) + basic_machine=580-amdahl + basic_os=sysv + ;; + amiga) + basic_machine=m68k-unknown + basic_os= + ;; + amigaos | amigados) + basic_machine=m68k-unknown + basic_os=amigaos + ;; + amigaunix | amix) + basic_machine=m68k-unknown + basic_os=sysv4 + ;; + apollo68) + basic_machine=m68k-apollo + basic_os=sysv + ;; + apollo68bsd) + basic_machine=m68k-apollo + basic_os=bsd + ;; + aros) + basic_machine=i386-pc + basic_os=aros + ;; + aux) + basic_machine=m68k-apple + basic_os=aux + ;; + balance) + basic_machine=ns32k-sequent + basic_os=dynix + ;; + blackfin) + basic_machine=bfin-unknown + basic_os=linux + ;; + cegcc) + basic_machine=arm-unknown + basic_os=cegcc + ;; + convex-c1) + basic_machine=c1-convex + basic_os=bsd + ;; + convex-c2) + basic_machine=c2-convex + basic_os=bsd + ;; + convex-c32) + basic_machine=c32-convex + basic_os=bsd + ;; + convex-c34) + basic_machine=c34-convex + basic_os=bsd + ;; + convex-c38) + basic_machine=c38-convex + basic_os=bsd + ;; + cray) + basic_machine=j90-cray + basic_os=unicos + ;; + crds | unos) + basic_machine=m68k-crds + basic_os= + ;; + da30) + basic_machine=m68k-da30 + basic_os= + ;; + decstation | pmax | pmin | dec3100 | decstatn) + basic_machine=mips-dec + basic_os= + ;; + delta88) + basic_machine=m88k-motorola + basic_os=sysv3 + ;; + dicos) + basic_machine=i686-pc + basic_os=dicos + ;; + djgpp) + basic_machine=i586-pc + basic_os=msdosdjgpp + ;; + ebmon29k) + basic_machine=a29k-amd + basic_os=ebmon + ;; + es1800 | OSE68k | ose68k | ose | OSE) + basic_machine=m68k-ericsson + basic_os=ose + ;; + gmicro) + basic_machine=tron-gmicro + basic_os=sysv + ;; + go32) + basic_machine=i386-pc + basic_os=go32 + ;; + h8300hms) + basic_machine=h8300-hitachi + basic_os=hms + ;; + h8300xray) + basic_machine=h8300-hitachi + basic_os=xray + ;; + h8500hms) + basic_machine=h8500-hitachi + basic_os=hms + ;; + harris) + basic_machine=m88k-harris + basic_os=sysv3 + ;; + hp300 | hp300hpux) + basic_machine=m68k-hp + basic_os=hpux + ;; + hp300bsd) + basic_machine=m68k-hp + basic_os=bsd + ;; + hppaosf) + basic_machine=hppa1.1-hp + basic_os=osf + ;; + hppro) + basic_machine=hppa1.1-hp + basic_os=proelf + ;; + i386mach) + basic_machine=i386-mach + basic_os=mach + ;; + isi68 | isi) + basic_machine=m68k-isi + basic_os=sysv + ;; + m68knommu) + basic_machine=m68k-unknown + basic_os=linux + ;; + magnum | m3230) + basic_machine=mips-mips + basic_os=sysv + ;; + merlin) + basic_machine=ns32k-utek + basic_os=sysv + ;; + mingw64) + basic_machine=x86_64-pc + basic_os=mingw64 + ;; + mingw32) + basic_machine=i686-pc + basic_os=mingw32 + ;; + mingw32ce) + basic_machine=arm-unknown + basic_os=mingw32ce + ;; + monitor) + basic_machine=m68k-rom68k + basic_os=coff + ;; + morphos) + basic_machine=powerpc-unknown + basic_os=morphos + ;; + moxiebox) + basic_machine=moxie-unknown + basic_os=moxiebox + ;; + msdos) + basic_machine=i386-pc + basic_os=msdos + ;; + msys) + basic_machine=i686-pc + basic_os=msys + ;; + mvs) + basic_machine=i370-ibm + basic_os=mvs + ;; + nacl) + basic_machine=le32-unknown + basic_os=nacl + ;; + ncr3000) + basic_machine=i486-ncr + basic_os=sysv4 + ;; + netbsd386) + basic_machine=i386-pc + basic_os=netbsd + ;; + netwinder) + basic_machine=armv4l-rebel + basic_os=linux + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + basic_os=newsos + ;; + news1000) + basic_machine=m68030-sony + basic_os=newsos + ;; + necv70) + basic_machine=v70-nec + basic_os=sysv + ;; + nh3000) + basic_machine=m68k-harris + basic_os=cxux + ;; + nh[45]000) + basic_machine=m88k-harris + basic_os=cxux + ;; + nindy960) + basic_machine=i960-intel + basic_os=nindy + ;; + mon960) + basic_machine=i960-intel + basic_os=mon960 + ;; + nonstopux) + basic_machine=mips-compaq + basic_os=nonstopux + ;; + os400) + basic_machine=powerpc-ibm + basic_os=os400 + ;; + OSE68000 | ose68000) + basic_machine=m68000-ericsson + basic_os=ose + ;; + os68k) + basic_machine=m68k-none + basic_os=os68k + ;; + paragon) + basic_machine=i860-intel + basic_os=osf + ;; + parisc) + basic_machine=hppa-unknown + basic_os=linux + ;; + psp) + basic_machine=mipsallegrexel-sony + basic_os=psp + ;; + pw32) + basic_machine=i586-unknown + basic_os=pw32 + ;; + rdos | rdos64) + basic_machine=x86_64-pc + basic_os=rdos + ;; + rdos32) + basic_machine=i386-pc + basic_os=rdos + ;; + rom68k) + basic_machine=m68k-rom68k + basic_os=coff + ;; + sa29200) + basic_machine=a29k-amd + basic_os=udi + ;; + sei) + basic_machine=mips-sei + basic_os=seiux + ;; + sequent) + basic_machine=i386-sequent + basic_os= + ;; + sps7) + basic_machine=m68k-bull + basic_os=sysv2 + ;; + st2000) + basic_machine=m68k-tandem + basic_os= + ;; + stratus) + basic_machine=i860-stratus + basic_os=sysv4 + ;; + sun2) + basic_machine=m68000-sun + basic_os= + ;; + sun2os3) + basic_machine=m68000-sun + basic_os=sunos3 + ;; + sun2os4) + basic_machine=m68000-sun + basic_os=sunos4 + ;; + sun3) + basic_machine=m68k-sun + basic_os= + ;; + sun3os3) + basic_machine=m68k-sun + basic_os=sunos3 + ;; + sun3os4) + basic_machine=m68k-sun + basic_os=sunos4 + ;; + sun4) + basic_machine=sparc-sun + basic_os= + ;; + sun4os3) + basic_machine=sparc-sun + basic_os=sunos3 + ;; + sun4os4) + basic_machine=sparc-sun + basic_os=sunos4 + ;; + sun4sol2) + basic_machine=sparc-sun + basic_os=solaris2 + ;; + sun386 | sun386i | roadrunner) + basic_machine=i386-sun + basic_os= + ;; + sv1) + basic_machine=sv1-cray + basic_os=unicos + ;; + symmetry) + basic_machine=i386-sequent + basic_os=dynix + ;; + t3e) + basic_machine=alphaev5-cray + basic_os=unicos + ;; + t90) + basic_machine=t90-cray + basic_os=unicos + ;; + toad1) + basic_machine=pdp10-xkl + basic_os=tops20 + ;; + tpf) + basic_machine=s390x-ibm + basic_os=tpf + ;; + udi29k) + basic_machine=a29k-amd + basic_os=udi + ;; + ultra3) + basic_machine=a29k-nyu + basic_os=sym1 + ;; + v810 | necv810) + basic_machine=v810-nec + basic_os=none + ;; + vaxv) + basic_machine=vax-dec + basic_os=sysv + ;; + vms) + basic_machine=vax-dec + basic_os=vms + ;; + vsta) + basic_machine=i386-pc + basic_os=vsta + ;; + vxworks960) + basic_machine=i960-wrs + basic_os=vxworks + ;; + vxworks68) + basic_machine=m68k-wrs + basic_os=vxworks + ;; + vxworks29k) + basic_machine=a29k-wrs + basic_os=vxworks + ;; + xbox) + basic_machine=i686-pc + basic_os=mingw32 + ;; + ymp) + basic_machine=ymp-cray + basic_os=unicos + ;; + *) + basic_machine=$1 + basic_os= + ;; + esac + ;; +esac + +# Decode 1-component or ad-hoc basic machines +case $basic_machine in + # Here we handle the default manufacturer of certain CPU types. It is in + # some cases the only manufacturer, in others, it is the most popular. + w89k) + cpu=hppa1.1 + vendor=winbond + ;; + op50n) + cpu=hppa1.1 + vendor=oki + ;; + op60c) + cpu=hppa1.1 + vendor=oki + ;; + ibm*) + cpu=i370 + vendor=ibm + ;; + orion105) + cpu=clipper + vendor=highlevel + ;; + mac | mpw | mac-mpw) + cpu=m68k + vendor=apple + ;; + pmac | pmac-mpw) + cpu=powerpc + vendor=apple + ;; + + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) + cpu=m68000 + vendor=att + ;; + 3b*) + cpu=we32k + vendor=att + ;; + bluegene*) + cpu=powerpc + vendor=ibm + basic_os=cnk + ;; + decsystem10* | dec10*) + cpu=pdp10 + vendor=dec + basic_os=tops10 + ;; + decsystem20* | dec20*) + cpu=pdp10 + vendor=dec + basic_os=tops20 + ;; + delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + cpu=m68k + vendor=motorola + ;; + dpx2*) + cpu=m68k + vendor=bull + basic_os=sysv3 + ;; + encore | umax | mmax) + cpu=ns32k + vendor=encore + ;; + elxsi) + cpu=elxsi + vendor=elxsi + basic_os=${basic_os:-bsd} + ;; + fx2800) + cpu=i860 + vendor=alliant + ;; + genix) + cpu=ns32k + vendor=ns + ;; + h3050r* | hiux*) + cpu=hppa1.1 + vendor=hitachi + basic_os=hiuxwe2 + ;; + hp3k9[0-9][0-9] | hp9[0-9][0-9]) + cpu=hppa1.0 + vendor=hp + ;; + hp9k2[0-9][0-9] | hp9k31[0-9]) + cpu=m68000 + vendor=hp + ;; + hp9k3[2-9][0-9]) + cpu=m68k + vendor=hp + ;; + hp9k6[0-9][0-9] | hp6[0-9][0-9]) + cpu=hppa1.0 + vendor=hp + ;; + hp9k7[0-79][0-9] | hp7[0-79][0-9]) + cpu=hppa1.1 + vendor=hp + ;; + hp9k78[0-9] | hp78[0-9]) + # FIXME: really hppa2.0-hp + cpu=hppa1.1 + vendor=hp + ;; + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) + # FIXME: really hppa2.0-hp + cpu=hppa1.1 + vendor=hp + ;; + hp9k8[0-9][13679] | hp8[0-9][13679]) + cpu=hppa1.1 + vendor=hp + ;; + hp9k8[0-9][0-9] | hp8[0-9][0-9]) + cpu=hppa1.0 + vendor=hp + ;; + i*86v32) + cpu=`echo "$1" | sed -e 's/86.*/86/'` + vendor=pc + basic_os=sysv32 + ;; + i*86v4*) + cpu=`echo "$1" | sed -e 's/86.*/86/'` + vendor=pc + basic_os=sysv4 + ;; + i*86v) + cpu=`echo "$1" | sed -e 's/86.*/86/'` + vendor=pc + basic_os=sysv + ;; + i*86sol2) + cpu=`echo "$1" | sed -e 's/86.*/86/'` + vendor=pc + basic_os=solaris2 + ;; + j90 | j90-cray) + cpu=j90 + vendor=cray + basic_os=${basic_os:-unicos} + ;; + iris | iris4d) + cpu=mips + vendor=sgi + case $basic_os in + irix*) + ;; + *) + basic_os=irix4 + ;; + esac + ;; + miniframe) + cpu=m68000 + vendor=convergent + ;; + *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*) + cpu=m68k + vendor=atari + basic_os=mint + ;; + news-3600 | risc-news) + cpu=mips + vendor=sony + basic_os=newsos + ;; + next | m*-next) + cpu=m68k + vendor=next + case $basic_os in + openstep*) + ;; + nextstep*) + ;; + ns2*) + basic_os=nextstep2 + ;; + *) + basic_os=nextstep3 + ;; + esac + ;; + np1) + cpu=np1 + vendor=gould + ;; + op50n-* | op60c-*) + cpu=hppa1.1 + vendor=oki + basic_os=proelf + ;; + pa-hitachi) + cpu=hppa1.1 + vendor=hitachi + basic_os=hiuxwe2 + ;; + pbd) + cpu=sparc + vendor=tti + ;; + pbb) + cpu=m68k + vendor=tti + ;; + pc532) + cpu=ns32k + vendor=pc532 + ;; + pn) + cpu=pn + vendor=gould + ;; + power) + cpu=power + vendor=ibm + ;; + ps2) + cpu=i386 + vendor=ibm + ;; + rm[46]00) + cpu=mips + vendor=siemens + ;; + rtpc | rtpc-*) + cpu=romp + vendor=ibm + ;; + sde) + cpu=mipsisa32 + vendor=sde + basic_os=${basic_os:-elf} + ;; + simso-wrs) + cpu=sparclite + vendor=wrs + basic_os=vxworks + ;; + tower | tower-32) + cpu=m68k + vendor=ncr + ;; + vpp*|vx|vx-*) + cpu=f301 + vendor=fujitsu + ;; + w65) + cpu=w65 + vendor=wdc + ;; + w89k-*) + cpu=hppa1.1 + vendor=winbond + basic_os=proelf + ;; + none) + cpu=none + vendor=none + ;; + leon|leon[3-9]) + cpu=sparc + vendor=$basic_machine + ;; + leon-*|leon[3-9]-*) + cpu=sparc + vendor=`echo "$basic_machine" | sed 's/-.*//'` + ;; + + *-*) + # shellcheck disable=SC2162 + saved_IFS=$IFS + IFS="-" read cpu vendor <&2 + exit 1 + ;; + esac + ;; +esac + +# Here we canonicalize certain aliases for manufacturers. +case $vendor in + digital*) + vendor=dec + ;; + commodore*) + vendor=cbm + ;; + *) + ;; +esac + +# Decode manufacturer-specific aliases for certain operating systems. + +if test x$basic_os != x +then + +# First recognize some ad-hoc caes, or perhaps split kernel-os, or else just +# set os. +case $basic_os in + gnu/linux*) + kernel=linux + os=`echo "$basic_os" | sed -e 's|gnu/linux|gnu|'` + ;; + os2-emx) + kernel=os2 + os=`echo "$basic_os" | sed -e 's|os2-emx|emx|'` + ;; + nto-qnx*) + kernel=nto + os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'` + ;; + *-*) + # shellcheck disable=SC2162 + saved_IFS=$IFS + IFS="-" read kernel os <&2 + exit 1 + ;; +esac + +# As a final step for OS-related things, validate the OS-kernel combination +# (given a valid OS), if there is a kernel. +case $kernel-$os in + linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \ + | linux-musl* | linux-relibc* | linux-uclibc* ) + ;; + uclinux-uclibc* ) + ;; + -dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* ) + # These are just libc implementations, not actual OSes, and thus + # require a kernel. + echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2 + exit 1 + ;; + kfreebsd*-gnu* | kopensolaris*-gnu*) + ;; + vxworks-simlinux | vxworks-simwindows | vxworks-spe) + ;; + nto-qnx*) + ;; + os2-emx) + ;; + *-eabi* | *-gnueabi*) + ;; + -*) + # Blank kernel with real OS is always fine. + ;; + *-*) + echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2 + exit 1 + ;; +esac + +# Here we handle the case where we know the os, and the CPU type, but not the +# manufacturer. We pick the logical manufacturer. +case $vendor in + unknown) + case $cpu-$os in + *-riscix*) + vendor=acorn + ;; + *-sunos*) + vendor=sun + ;; + *-cnk* | *-aix*) + vendor=ibm + ;; + *-beos*) + vendor=be + ;; + *-hpux*) + vendor=hp + ;; + *-mpeix*) + vendor=hp + ;; + *-hiux*) + vendor=hitachi + ;; + *-unos*) + vendor=crds + ;; + *-dgux*) + vendor=dg + ;; + *-luna*) + vendor=omron + ;; + *-genix*) + vendor=ns + ;; + *-clix*) + vendor=intergraph + ;; + *-mvs* | *-opened*) + vendor=ibm + ;; + *-os400*) + vendor=ibm + ;; + s390-* | s390x-*) + vendor=ibm + ;; + *-ptx*) + vendor=sequent + ;; + *-tpf*) + vendor=ibm + ;; + *-vxsim* | *-vxworks* | *-windiss*) + vendor=wrs + ;; + *-aux*) + vendor=apple + ;; + *-hms*) + vendor=hitachi + ;; + *-mpw* | *-macos*) + vendor=apple + ;; + *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*) + vendor=atari + ;; + *-vos*) + vendor=stratus + ;; + esac + ;; +esac + +echo "$cpu-$vendor-${kernel:+$kernel-}$os" +exit + +# Local variables: +# eval: (add-hook 'before-save-hook 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/Sources/Cfyaml/build-aux/install-sh b/Sources/Cfyaml/build-aux/install-sh index ec298b537..7c56c9c01 100755 --- a/Sources/Cfyaml/build-aux/install-sh +++ b/Sources/Cfyaml/build-aux/install-sh @@ -1,7 +1,7 @@ #!/bin/sh # install - install a program, script, or datafile -scriptversion=2020-11-14.01; # UTC +scriptversion=2023-11-23.18; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the @@ -124,9 +124,9 @@ it's up to you to specify -f if you want it. If -S is not specified, no backups are attempted. -Email bug reports to bug-automake@gnu.org. -Automake home page: https://www.gnu.org/software/automake/ -" +Report bugs to . +GNU Automake home page: . +General help using GNU software: ." while test $# -ne 0; do case $1 in diff --git a/Sources/Cfyaml/build-aux/install-sh~ b/Sources/Cfyaml/build-aux/install-sh~ new file mode 100755 index 000000000..ec298b537 --- /dev/null +++ b/Sources/Cfyaml/build-aux/install-sh~ @@ -0,0 +1,541 @@ +#!/bin/sh +# install - install a program, script, or datafile + +scriptversion=2020-11-14.01; # UTC + +# This originates from X11R5 (mit/util/scripts/install.sh), which was +# later released in X11R6 (xc/config/util/install.sh) with the +# following copyright and license. +# +# Copyright (C) 1994 X Consortium +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# +# Except as contained in this notice, the name of the X Consortium shall not +# be used in advertising or otherwise to promote the sale, use or other deal- +# ings in this Software without prior written authorization from the X Consor- +# tium. +# +# +# FSF changes to this file are in the public domain. +# +# Calling this script install-sh is preferred over install.sh, to prevent +# 'make' implicit rules from creating a file called install from it +# when there is no Makefile. +# +# This script is compatible with the BSD install script, but was written +# from scratch. + +tab=' ' +nl=' +' +IFS=" $tab$nl" + +# Set DOITPROG to "echo" to test this script. + +doit=${DOITPROG-} +doit_exec=${doit:-exec} + +# Put in absolute file names if you don't have them in your path; +# or use environment vars. + +chgrpprog=${CHGRPPROG-chgrp} +chmodprog=${CHMODPROG-chmod} +chownprog=${CHOWNPROG-chown} +cmpprog=${CMPPROG-cmp} +cpprog=${CPPROG-cp} +mkdirprog=${MKDIRPROG-mkdir} +mvprog=${MVPROG-mv} +rmprog=${RMPROG-rm} +stripprog=${STRIPPROG-strip} + +posix_mkdir= + +# Desired mode of installed file. +mode=0755 + +# Create dirs (including intermediate dirs) using mode 755. +# This is like GNU 'install' as of coreutils 8.32 (2020). +mkdir_umask=22 + +backupsuffix= +chgrpcmd= +chmodcmd=$chmodprog +chowncmd= +mvcmd=$mvprog +rmcmd="$rmprog -f" +stripcmd= + +src= +dst= +dir_arg= +dst_arg= + +copy_on_change=false +is_target_a_directory=possibly + +usage="\ +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE + or: $0 [OPTION]... SRCFILES... DIRECTORY + or: $0 [OPTION]... -t DIRECTORY SRCFILES... + or: $0 [OPTION]... -d DIRECTORIES... + +In the 1st form, copy SRCFILE to DSTFILE. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. +In the 4th, create DIRECTORIES. + +Options: + --help display this help and exit. + --version display version info and exit. + + -c (ignored) + -C install only if different (preserve data modification time) + -d create directories instead of installing files. + -g GROUP $chgrpprog installed files to GROUP. + -m MODE $chmodprog installed files to MODE. + -o USER $chownprog installed files to USER. + -p pass -p to $cpprog. + -s $stripprog installed files. + -S SUFFIX attempt to back up existing files, with suffix SUFFIX. + -t DIRECTORY install into DIRECTORY. + -T report an error if DSTFILE is a directory. + +Environment variables override the default commands: + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG + RMPROG STRIPPROG + +By default, rm is invoked with -f; when overridden with RMPROG, +it's up to you to specify -f if you want it. + +If -S is not specified, no backups are attempted. + +Email bug reports to bug-automake@gnu.org. +Automake home page: https://www.gnu.org/software/automake/ +" + +while test $# -ne 0; do + case $1 in + -c) ;; + + -C) copy_on_change=true;; + + -d) dir_arg=true;; + + -g) chgrpcmd="$chgrpprog $2" + shift;; + + --help) echo "$usage"; exit $?;; + + -m) mode=$2 + case $mode in + *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) + echo "$0: invalid mode: $mode" >&2 + exit 1;; + esac + shift;; + + -o) chowncmd="$chownprog $2" + shift;; + + -p) cpprog="$cpprog -p";; + + -s) stripcmd=$stripprog;; + + -S) backupsuffix="$2" + shift;; + + -t) + is_target_a_directory=always + dst_arg=$2 + # Protect names problematic for 'test' and other utilities. + case $dst_arg in + -* | [=\(\)!]) dst_arg=./$dst_arg;; + esac + shift;; + + -T) is_target_a_directory=never;; + + --version) echo "$0 $scriptversion"; exit $?;; + + --) shift + break;; + + -*) echo "$0: invalid option: $1" >&2 + exit 1;; + + *) break;; + esac + shift +done + +# We allow the use of options -d and -T together, by making -d +# take the precedence; this is for compatibility with GNU install. + +if test -n "$dir_arg"; then + if test -n "$dst_arg"; then + echo "$0: target directory not allowed when installing a directory." >&2 + exit 1 + fi +fi + +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then + # When -d is used, all remaining arguments are directories to create. + # When -t is used, the destination is already specified. + # Otherwise, the last argument is the destination. Remove it from $@. + for arg + do + if test -n "$dst_arg"; then + # $@ is not empty: it contains at least $arg. + set fnord "$@" "$dst_arg" + shift # fnord + fi + shift # arg + dst_arg=$arg + # Protect names problematic for 'test' and other utilities. + case $dst_arg in + -* | [=\(\)!]) dst_arg=./$dst_arg;; + esac + done +fi + +if test $# -eq 0; then + if test -z "$dir_arg"; then + echo "$0: no input file specified." >&2 + exit 1 + fi + # It's OK to call 'install-sh -d' without argument. + # This can happen when creating conditional directories. + exit 0 +fi + +if test -z "$dir_arg"; then + if test $# -gt 1 || test "$is_target_a_directory" = always; then + if test ! -d "$dst_arg"; then + echo "$0: $dst_arg: Is not a directory." >&2 + exit 1 + fi + fi +fi + +if test -z "$dir_arg"; then + do_exit='(exit $ret); exit $ret' + trap "ret=129; $do_exit" 1 + trap "ret=130; $do_exit" 2 + trap "ret=141; $do_exit" 13 + trap "ret=143; $do_exit" 15 + + # Set umask so as not to create temps with too-generous modes. + # However, 'strip' requires both read and write access to temps. + case $mode in + # Optimize common cases. + *644) cp_umask=133;; + *755) cp_umask=22;; + + *[0-7]) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw='% 200' + fi + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; + *) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw=,u+rw + fi + cp_umask=$mode$u_plus_rw;; + esac +fi + +for src +do + # Protect names problematic for 'test' and other utilities. + case $src in + -* | [=\(\)!]) src=./$src;; + esac + + if test -n "$dir_arg"; then + dst=$src + dstdir=$dst + test -d "$dstdir" + dstdir_status=$? + # Don't chown directories that already exist. + if test $dstdir_status = 0; then + chowncmd="" + fi + else + + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command + # might cause directories to be created, which would be especially bad + # if $src (and thus $dsttmp) contains '*'. + if test ! -f "$src" && test ! -d "$src"; then + echo "$0: $src does not exist." >&2 + exit 1 + fi + + if test -z "$dst_arg"; then + echo "$0: no destination specified." >&2 + exit 1 + fi + dst=$dst_arg + + # If destination is a directory, append the input filename. + if test -d "$dst"; then + if test "$is_target_a_directory" = never; then + echo "$0: $dst_arg: Is a directory" >&2 + exit 1 + fi + dstdir=$dst + dstbase=`basename "$src"` + case $dst in + */) dst=$dst$dstbase;; + *) dst=$dst/$dstbase;; + esac + dstdir_status=0 + else + dstdir=`dirname "$dst"` + test -d "$dstdir" + dstdir_status=$? + fi + fi + + case $dstdir in + */) dstdirslash=$dstdir;; + *) dstdirslash=$dstdir/;; + esac + + obsolete_mkdir_used=false + + if test $dstdir_status != 0; then + case $posix_mkdir in + '') + # With -d, create the new directory with the user-specified mode. + # Otherwise, rely on $mkdir_umask. + if test -n "$dir_arg"; then + mkdir_mode=-m$mode + else + mkdir_mode= + fi + + posix_mkdir=false + # The $RANDOM variable is not portable (e.g., dash). Use it + # here however when possible just to lower collision chance. + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ + + trap ' + ret=$? + rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null + exit $ret + ' 0 + + # Because "mkdir -p" follows existing symlinks and we likely work + # directly in world-writeable /tmp, make sure that the '$tmpdir' + # directory is successfully created first before we actually test + # 'mkdir -p'. + if (umask $mkdir_umask && + $mkdirprog $mkdir_mode "$tmpdir" && + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 + then + if test -z "$dir_arg" || { + # Check for POSIX incompatibilities with -m. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or + # other-writable bit of parent directory when it shouldn't. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. + test_tmpdir="$tmpdir/a" + ls_ld_tmpdir=`ls -ld "$test_tmpdir"` + case $ls_ld_tmpdir in + d????-?r-*) different_mode=700;; + d????-?--*) different_mode=755;; + *) false;; + esac && + $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { + ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" + } + } + then posix_mkdir=: + fi + rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" + else + # Remove any dirs left behind by ancient mkdir implementations. + rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null + fi + trap '' 0;; + esac + + if + $posix_mkdir && ( + umask $mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" + ) + then : + else + + # mkdir does not conform to POSIX, + # or it failed possibly due to a race condition. Create the + # directory the slow way, step by step, checking for races as we go. + + case $dstdir in + /*) prefix='/';; + [-=\(\)!]*) prefix='./';; + *) prefix='';; + esac + + oIFS=$IFS + IFS=/ + set -f + set fnord $dstdir + shift + set +f + IFS=$oIFS + + prefixes= + + for d + do + test X"$d" = X && continue + + prefix=$prefix$d + if test -d "$prefix"; then + prefixes= + else + if $posix_mkdir; then + (umask $mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break + # Don't fail if two instances are running concurrently. + test -d "$prefix" || exit 1 + else + case $prefix in + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; + *) qprefix=$prefix;; + esac + prefixes="$prefixes '$qprefix'" + fi + fi + prefix=$prefix/ + done + + if test -n "$prefixes"; then + # Don't fail if two instances are running concurrently. + (umask $mkdir_umask && + eval "\$doit_exec \$mkdirprog $prefixes") || + test -d "$dstdir" || exit 1 + obsolete_mkdir_used=true + fi + fi + fi + + if test -n "$dir_arg"; then + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 + else + + # Make a couple of temp file names in the proper directory. + dsttmp=${dstdirslash}_inst.$$_ + rmtmp=${dstdirslash}_rm.$$_ + + # Trap to clean up those temp files at exit. + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 + + # Copy the file name to the temp name. + (umask $cp_umask && + { test -z "$stripcmd" || { + # Create $dsttmp read-write so that cp doesn't create it read-only, + # which would cause strip to fail. + if test -z "$doit"; then + : >"$dsttmp" # No need to fork-exec 'touch'. + else + $doit touch "$dsttmp" + fi + } + } && + $doit_exec $cpprog "$src" "$dsttmp") && + + # and set any options; do chmod last to preserve setuid bits. + # + # If any of these fail, we abort the whole thing. If we want to + # ignore errors from any of these, just make sure not to ignore + # errors from the above "$doit $cpprog $src $dsttmp" command. + # + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && + + # If -C, don't bother to copy if it wouldn't change the file. + if $copy_on_change && + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && + set -f && + set X $old && old=:$2:$4:$5:$6 && + set X $new && new=:$2:$4:$5:$6 && + set +f && + test "$old" = "$new" && + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 + then + rm -f "$dsttmp" + else + # If $backupsuffix is set, and the file being installed + # already exists, attempt a backup. Don't worry if it fails, + # e.g., if mv doesn't support -f. + if test -n "$backupsuffix" && test -f "$dst"; then + $doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null + fi + + # Rename the file to the real destination. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || + + # The rename failed, perhaps because mv can't rename something else + # to itself, or perhaps because mv is so ancient that it does not + # support -f. + { + # Now remove or move aside any old file at destination location. + # We try this two ways since rm can't unlink itself on some + # systems and the destination file might be busy for other + # reasons. In this case, the final cleanup might fail but the new + # file should still install successfully. + { + test ! -f "$dst" || + $doit $rmcmd "$dst" 2>/dev/null || + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && + { $doit $rmcmd "$rmtmp" 2>/dev/null; :; } + } || + { echo "$0: cannot unlink or rename $dst" >&2 + (exit 1); exit 1 + } + } && + + # Now rename the file to the real destination. + $doit $mvcmd "$dsttmp" "$dst" + } + fi || exit 1 + + trap '' 0 + fi +done + +# Local variables: +# eval: (add-hook 'before-save-hook 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC0" +# time-stamp-end: "; # UTC" +# End: diff --git a/Sources/Cfyaml/config.h b/Sources/Cfyaml/config.h index e9c4c6601..5123bb7c3 100644 --- a/Sources/Cfyaml/config.h +++ b/Sources/Cfyaml/config.h @@ -4,13 +4,19 @@ /* Define if building universal (internal helper macro) */ /* #undef AC_APPLE_UNIVERSAL_BUILD */ +/* Define to 1 if ASAN is enabled */ +#define HAVE_ASAN 0 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_BYTESWAP_H */ + /* Define to 1 if you have check available */ #define HAVE_CHECK 0 /* Define to 1 if you have a compatible version of check available */ #define HAVE_COMPATIBLE_CHECK 0 -/* Define to 1 if you have the declaration of `environ', and to 0 if you +/* Define to 1 if you have the declaration of 'environ', and to 0 if you don't. */ #define HAVE_DECL_ENVIRON 0 @@ -29,12 +35,18 @@ /* Define to 1 if you have jq available */ #define HAVE_JQ 1 +/* Define to 1 if libclang is available */ +#define HAVE_LIBCLANG 0 + /* Define to 1 if you have libyaml available */ #define HAVE_LIBYAML 0 /* Define to 1 if you have the header file. */ /* #undef HAVE_MINIX_CONFIG_H */ +/* Define to 1 if PORTABLE_TARGET is enabled */ +#define HAVE_PORTABLE_TARGET 0 + /* Define if you have POSIX threads libraries and header files. */ #define HAVE_PTHREAD 1 @@ -47,9 +59,12 @@ /* Define to 1 if you have sphinx (and all required packages) available */ #define HAVE_SPHINX 0 -/* Define to 1 if the system has the type `ssize_t'. */ +/* Define to 1 if the system has the type 'ssize_t'. */ #define HAVE_SSIZE_T 1 +/* Define to 1 if static linking is available */ +#define HAVE_STATIC 1 + /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 @@ -77,6 +92,18 @@ /* Define to 1 if you have the header file. */ #define HAVE_WCHAR_H 1 +/* Define to 1 if -Wstringop-overread is supported */ +#define HAVE_WSTRINGOP_OVERREAD 0 + +/* Define to 1 if you have the '__builtin_bswap16' function. */ +/* #undef HAVE___BUILTIN_BSWAP16 */ + +/* Define to 1 if you have the '__builtin_bswap32' function. */ +/* #undef HAVE___BUILTIN_BSWAP32 */ + +/* Define to 1 if you have the '__builtin_bswap64' function. */ +/* #undef HAVE___BUILTIN_BSWAP64 */ + /* Define to the sub-directory where libtool stores uninstalled libraries. */ #define LT_OBJDIR ".libs/" @@ -93,7 +120,7 @@ #define PACKAGE_NAME "libfyaml" /* Define to the full name and version of this package. */ -#define PACKAGE_STRING "libfyaml 0.7.12" +#define PACKAGE_STRING "libfyaml 0.9" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "libfyaml" @@ -102,21 +129,33 @@ #define PACKAGE_URL "" /* Define to the version of this package. */ -#define PACKAGE_VERSION "0.7.12" +#define PACKAGE_VERSION "0.9" /* Define to necessary symbol if this constant uses a non-standard name on your system. */ /* #undef PTHREAD_CREATE_JOINABLE */ -/* Define as the return type of signal handlers (`int' or `void'). */ -#define RETSIGTYPE void - -/* Define to 1 if all of the C90 standard headers exist (not just the ones +/* Define to 1 if all of the C89 standard headers exist (not just the ones required in a freestanding environment). This macro is provided for backward compatibility; new code need not use it. */ #define STDC_HEADERS 1 -/* Enable extensions on AIX 3, Interix. */ +/* AVX2 target support */ +/* #undef TARGET_HAS_AVX2 */ + +/* AVX512 target support */ +/* #undef TARGET_HAS_AVX512 */ + +/* NEON target support */ +#define TARGET_HAS_NEON 1 + +/* SSE2 target support */ +/* #undef TARGET_HAS_SSE2 */ + +/* SSE41 target support */ +/* #undef TARGET_HAS_SSE41 */ + +/* Enable extensions on AIX, Interix, z/OS. */ #ifndef _ALL_SOURCE # define _ALL_SOURCE 1 #endif @@ -177,11 +216,15 @@ #ifndef __STDC_WANT_IEC_60559_DFP_EXT__ # define __STDC_WANT_IEC_60559_DFP_EXT__ 1 #endif +/* Enable extensions specified by C23 Annex F. */ +#ifndef __STDC_WANT_IEC_60559_EXT__ +# define __STDC_WANT_IEC_60559_EXT__ 1 +#endif /* Enable extensions specified by ISO/IEC TS 18661-4:2015. */ #ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__ # define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 #endif -/* Enable extensions specified by ISO/IEC TS 18661-3:2015. */ +/* Enable extensions specified by C23 Annex H and ISO/IEC TS 18661-3:2015. */ #ifndef __STDC_WANT_IEC_60559_TYPES_EXT__ # define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 #endif @@ -205,7 +248,7 @@ /* Version number of package */ -#define VERSION "0.7.12" +#define VERSION "0.9" /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel). */ @@ -219,25 +262,25 @@ # endif #endif -/* Define to empty if `const' does not conform to ANSI C. */ +/* Define to empty if 'const' does not conform to ANSI C. */ /* #undef const */ -/* Define to `int' if doesn't define. */ +/* Define as 'int' if doesn't define. */ /* #undef gid_t */ -/* Define to `long int' if does not define. */ +/* Define to 'long int' if does not define. */ /* #undef off_t */ /* Define as a signed integer type capable of holding a process identifier. */ /* #undef pid_t */ -/* Define to `unsigned int' if does not define. */ +/* Define as 'unsigned int' if doesn't define. */ /* #undef size_t */ /* Define ssize_t if it is not done by the standard libs. */ /* #undef ssize_t */ -/* Define to `int' if doesn't define. */ +/* Define as 'int' if doesn't define. */ /* #undef uid_t */ #pragma clang diagnostic ignored "-Wconversion" diff --git a/Sources/Cfyaml/config.h.in b/Sources/Cfyaml/config.h.in index e0af4eba4..ae6528e61 100644 --- a/Sources/Cfyaml/config.h.in +++ b/Sources/Cfyaml/config.h.in @@ -3,13 +3,19 @@ /* Define if building universal (internal helper macro) */ #undef AC_APPLE_UNIVERSAL_BUILD +/* Define to 1 if ASAN is enabled */ +#undef HAVE_ASAN + +/* Define to 1 if you have the header file. */ +#undef HAVE_BYTESWAP_H + /* Define to 1 if you have check available */ #undef HAVE_CHECK /* Define to 1 if you have a compatible version of check available */ #undef HAVE_COMPATIBLE_CHECK -/* Define to 1 if you have the declaration of `environ', and to 0 if you +/* Define to 1 if you have the declaration of 'environ', and to 0 if you don't. */ #undef HAVE_DECL_ENVIRON @@ -28,12 +34,18 @@ /* Define to 1 if you have jq available */ #undef HAVE_JQ +/* Define to 1 if libclang is available */ +#undef HAVE_LIBCLANG + /* Define to 1 if you have libyaml available */ #undef HAVE_LIBYAML /* Define to 1 if you have the header file. */ #undef HAVE_MINIX_CONFIG_H +/* Define to 1 if PORTABLE_TARGET is enabled */ +#undef HAVE_PORTABLE_TARGET + /* Define if you have POSIX threads libraries and header files. */ #undef HAVE_PTHREAD @@ -46,9 +58,12 @@ /* Define to 1 if you have sphinx (and all required packages) available */ #undef HAVE_SPHINX -/* Define to 1 if the system has the type `ssize_t'. */ +/* Define to 1 if the system has the type 'ssize_t'. */ #undef HAVE_SSIZE_T +/* Define to 1 if static linking is available */ +#undef HAVE_STATIC + /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H @@ -76,6 +91,18 @@ /* Define to 1 if you have the header file. */ #undef HAVE_WCHAR_H +/* Define to 1 if -Wstringop-overread is supported */ +#undef HAVE_WSTRINGOP_OVERREAD + +/* Define to 1 if you have the '__builtin_bswap16' function. */ +#undef HAVE___BUILTIN_BSWAP16 + +/* Define to 1 if you have the '__builtin_bswap32' function. */ +#undef HAVE___BUILTIN_BSWAP32 + +/* Define to 1 if you have the '__builtin_bswap64' function. */ +#undef HAVE___BUILTIN_BSWAP64 + /* Define to the sub-directory where libtool stores uninstalled libraries. */ #undef LT_OBJDIR @@ -107,15 +134,27 @@ your system. */ #undef PTHREAD_CREATE_JOINABLE -/* Define as the return type of signal handlers (`int' or `void'). */ -#undef RETSIGTYPE - -/* Define to 1 if all of the C90 standard headers exist (not just the ones +/* Define to 1 if all of the C89 standard headers exist (not just the ones required in a freestanding environment). This macro is provided for backward compatibility; new code need not use it. */ #undef STDC_HEADERS -/* Enable extensions on AIX 3, Interix. */ +/* AVX2 target support */ +#undef TARGET_HAS_AVX2 + +/* AVX512 target support */ +#undef TARGET_HAS_AVX512 + +/* NEON target support */ +#undef TARGET_HAS_NEON + +/* SSE2 target support */ +#undef TARGET_HAS_SSE2 + +/* SSE41 target support */ +#undef TARGET_HAS_SSE41 + +/* Enable extensions on AIX, Interix, z/OS. */ #ifndef _ALL_SOURCE # undef _ALL_SOURCE #endif @@ -176,11 +215,15 @@ #ifndef __STDC_WANT_IEC_60559_DFP_EXT__ # undef __STDC_WANT_IEC_60559_DFP_EXT__ #endif +/* Enable extensions specified by C23 Annex F. */ +#ifndef __STDC_WANT_IEC_60559_EXT__ +# undef __STDC_WANT_IEC_60559_EXT__ +#endif /* Enable extensions specified by ISO/IEC TS 18661-4:2015. */ #ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__ # undef __STDC_WANT_IEC_60559_FUNCS_EXT__ #endif -/* Enable extensions specified by ISO/IEC TS 18661-3:2015. */ +/* Enable extensions specified by C23 Annex H and ISO/IEC TS 18661-3:2015. */ #ifndef __STDC_WANT_IEC_60559_TYPES_EXT__ # undef __STDC_WANT_IEC_60559_TYPES_EXT__ #endif @@ -218,23 +261,23 @@ # endif #endif -/* Define to empty if `const' does not conform to ANSI C. */ +/* Define to empty if 'const' does not conform to ANSI C. */ #undef const -/* Define to `int' if doesn't define. */ +/* Define as 'int' if doesn't define. */ #undef gid_t -/* Define to `long int' if does not define. */ +/* Define to 'long int' if does not define. */ #undef off_t /* Define as a signed integer type capable of holding a process identifier. */ #undef pid_t -/* Define to `unsigned int' if does not define. */ +/* Define as 'unsigned int' if doesn't define. */ #undef size_t /* Define ssize_t if it is not done by the standard libs. */ #undef ssize_t -/* Define to `int' if doesn't define. */ +/* Define as 'int' if doesn't define. */ #undef uid_t diff --git a/Sources/Cfyaml/config.h.in~ b/Sources/Cfyaml/config.h.in~ index 688a7080e..538f5f4c0 100644 --- a/Sources/Cfyaml/config.h.in~ +++ b/Sources/Cfyaml/config.h.in~ @@ -3,6 +3,12 @@ /* Define if building universal (internal helper macro) */ #undef AC_APPLE_UNIVERSAL_BUILD +/* Define to 1 if ASAN is enabled */ +#undef HAVE_ASAN + +/* Define to 1 if you have the header file. */ +#undef HAVE_BYTESWAP_H + /* Define to 1 if you have check available */ #undef HAVE_CHECK @@ -28,11 +34,17 @@ /* Define to 1 if you have jq available */ #undef HAVE_JQ +/* Define to 1 if libclang is available */ +#undef HAVE_LIBCLANG + /* Define to 1 if you have libyaml available */ #undef HAVE_LIBYAML -/* Define to 1 if you have the header file. */ -#undef HAVE_MEMORY_H +/* Define to 1 if you have the header file. */ +#undef HAVE_MINIX_CONFIG_H + +/* Define to 1 if PORTABLE_TARGET is enabled */ +#undef HAVE_PORTABLE_TARGET /* Define if you have POSIX threads libraries and header files. */ #undef HAVE_PTHREAD @@ -49,9 +61,15 @@ /* Define to 1 if the system has the type `ssize_t'. */ #undef HAVE_SSIZE_T +/* Define to 1 if static linking is available */ +#undef HAVE_STATIC + /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H +/* Define to 1 if you have the header file. */ +#undef HAVE_STDIO_H + /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H @@ -70,6 +88,21 @@ /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H +/* Define to 1 if you have the header file. */ +#undef HAVE_WCHAR_H + +/* Define to 1 if -Wstringop-overread is supported */ +#undef HAVE_WSTRINGOP_OVERREAD + +/* Define to 1 if you have the `__builtin_bswap16' function. */ +#undef HAVE___BUILTIN_BSWAP16 + +/* Define to 1 if you have the `__builtin_bswap32' function. */ +#undef HAVE___BUILTIN_BSWAP32 + +/* Define to 1 if you have the `__builtin_bswap64' function. */ +#undef HAVE___BUILTIN_BSWAP64 + /* Define to the sub-directory where libtool stores uninstalled libraries. */ #undef LT_OBJDIR @@ -101,31 +134,111 @@ your system. */ #undef PTHREAD_CREATE_JOINABLE -/* Define as the return type of signal handlers (`int' or `void'). */ -#undef RETSIGTYPE - -/* Define to 1 if you have the ANSI C header files. */ +/* Define to 1 if all of the C90 standard headers exist (not just the ones + required in a freestanding environment). This macro is provided for + backward compatibility; new code need not use it. */ #undef STDC_HEADERS +/* AVX2 target support */ +#undef TARGET_HAS_AVX2 + +/* AVX512 target support */ +#undef TARGET_HAS_AVX512 + +/* NEON target support */ +#undef TARGET_HAS_NEON + +/* SSE2 target support */ +#undef TARGET_HAS_SSE2 + +/* SSE41 target support */ +#undef TARGET_HAS_SSE41 + /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # undef _ALL_SOURCE #endif +/* Enable general extensions on macOS. */ +#ifndef _DARWIN_C_SOURCE +# undef _DARWIN_C_SOURCE +#endif +/* Enable general extensions on Solaris. */ +#ifndef __EXTENSIONS__ +# undef __EXTENSIONS__ +#endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # undef _GNU_SOURCE #endif -/* Enable threading extensions on Solaris. */ +/* Enable X/Open compliant socket functions that do not require linking + with -lxnet on HP-UX 11.11. */ +#ifndef _HPUX_ALT_XOPEN_SOCKET_API +# undef _HPUX_ALT_XOPEN_SOCKET_API +#endif +/* Identify the host operating system as Minix. + This macro does not affect the system headers' behavior. + A future release of Autoconf may stop defining this macro. */ +#ifndef _MINIX +# undef _MINIX +#endif +/* Enable general extensions on NetBSD. + Enable NetBSD compatibility extensions on Minix. */ +#ifndef _NETBSD_SOURCE +# undef _NETBSD_SOURCE +#endif +/* Enable OpenBSD compatibility extensions on NetBSD. + Oddly enough, this does nothing on OpenBSD. */ +#ifndef _OPENBSD_SOURCE +# undef _OPENBSD_SOURCE +#endif +/* Define to 1 if needed for POSIX-compatible behavior. */ +#ifndef _POSIX_SOURCE +# undef _POSIX_SOURCE +#endif +/* Define to 2 if needed for POSIX-compatible behavior. */ +#ifndef _POSIX_1_SOURCE +# undef _POSIX_1_SOURCE +#endif +/* Enable POSIX-compatible threading on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # undef _POSIX_PTHREAD_SEMANTICS #endif +/* Enable extensions specified by ISO/IEC TS 18661-5:2014. */ +#ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__ +# undef __STDC_WANT_IEC_60559_ATTRIBS_EXT__ +#endif +/* Enable extensions specified by ISO/IEC TS 18661-1:2014. */ +#ifndef __STDC_WANT_IEC_60559_BFP_EXT__ +# undef __STDC_WANT_IEC_60559_BFP_EXT__ +#endif +/* Enable extensions specified by ISO/IEC TS 18661-2:2015. */ +#ifndef __STDC_WANT_IEC_60559_DFP_EXT__ +# undef __STDC_WANT_IEC_60559_DFP_EXT__ +#endif +/* Enable extensions specified by ISO/IEC TS 18661-4:2015. */ +#ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__ +# undef __STDC_WANT_IEC_60559_FUNCS_EXT__ +#endif +/* Enable extensions specified by ISO/IEC TS 18661-3:2015. */ +#ifndef __STDC_WANT_IEC_60559_TYPES_EXT__ +# undef __STDC_WANT_IEC_60559_TYPES_EXT__ +#endif +/* Enable extensions specified by ISO/IEC TR 24731-2:2010. */ +#ifndef __STDC_WANT_LIB_EXT2__ +# undef __STDC_WANT_LIB_EXT2__ +#endif +/* Enable extensions specified by ISO/IEC 24747:2009. */ +#ifndef __STDC_WANT_MATH_SPEC_FUNCS__ +# undef __STDC_WANT_MATH_SPEC_FUNCS__ +#endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # undef _TANDEM_SOURCE #endif -/* Enable general extensions on Solaris. */ -#ifndef __EXTENSIONS__ -# undef __EXTENSIONS__ +/* Enable X/Open extensions. Define to 500 only if necessary + to make mbstate_t available. */ +#ifndef _XOPEN_SOURCE +# undef _XOPEN_SOURCE #endif @@ -144,16 +257,6 @@ # endif #endif -/* Define to 1 if on MINIX. */ -#undef _MINIX - -/* Define to 2 if the system does not provide POSIX.1 features except with - this defined. */ -#undef _POSIX_1_SOURCE - -/* Define to 1 if you need to in order for `stat' and other things to work. */ -#undef _POSIX_SOURCE - /* Define to empty if `const' does not conform to ANSI C. */ #undef const @@ -163,7 +266,7 @@ /* Define to `long int' if does not define. */ #undef off_t -/* Define to `int' if does not define. */ +/* Define as a signed integer type capable of holding a process identifier. */ #undef pid_t /* Define to `unsigned int' if does not define. */ diff --git a/Sources/Cfyaml/config.log b/Sources/Cfyaml/config.log index 00a53cb7e..25a2d1834 100644 --- a/Sources/Cfyaml/config.log +++ b/Sources/Cfyaml/config.log @@ -1,8 +1,8 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libfyaml configure 0.7.12, which was -generated by GNU Autoconf 2.71. Invocation command line was +It was created by libfyaml configure 0.9, which was +generated by GNU Autoconf 2.72. Invocation command line was $ ./configure @@ -12,9 +12,9 @@ generated by GNU Autoconf 2.71. Invocation command line was hostname = Kevins-Mac-Studio.local uname -m = arm64 -uname -r = 22.2.0 +uname -r = 23.4.0 uname -s = Darwin -uname -v = Darwin Kernel Version 22.2.0: Fri Nov 11 02:03:51 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T6000 +uname -v = Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 /usr/bin/uname -p = arm /bin/uname -X = unknown @@ -23,22 +23,25 @@ uname -v = Darwin Kernel Version 22.2.0: Fri Nov 11 02:03:51 PST 2022; root:xnu- /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = Mach kernel version: - Darwin Kernel Version 22.2.0: Fri Nov 11 02:03:51 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T6000 + Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 Kernel configured for up to 20 processors. 20 processors are physically available. 20 processors are logically available. Processor type: arm64e (ARM64E) Processors active: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 Primary memory available: 64.00 gigabytes -Default processor set: 880 tasks, 4545 threads, 20 processors -Load average: 6.39, Mach factor: 13.61 +Default processor set: 957 tasks, 5201 threads, 20 processors +Load average: 6.48, Mach factor: 13.52 /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown -PATH: /Users/kdubb/.pyenv/shims/ +PATH: /Users/kdubb/Tools/miniconda3/bin/ +PATH: /Users/kdubb/Tools/miniconda3/condabin/ +PATH: /Users/kdubb/.sdkman/candidates/java/current/bin/ +PATH: /Users/kdubb/.rd/bin/ PATH: /Users/kdubb/.krew/bin/ -PATH: /Users/kdubb/.jbang/bin/ +PATH: /Users/kdubb/.pyenv/shims/ PATH: /Applications/Sublime Text.app/Contents/SharedSupport/bin/ PATH: /opt/homebrew/bin/ PATH: /opt/homebrew/sbin/ @@ -48,230 +51,194 @@ PATH: /usr/bin/ PATH: /bin/ PATH: /usr/sbin/ PATH: /sbin/ -PATH: /usr/local/MacGPG2/bin/ +PATH: /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin/ +PATH: /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin/ +PATH: /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin/ +PATH: //Applications/Topaz Photo AI.app/Contents/Resources/bin/ PATH: /Library/Apple/usr/bin/ +PATH: /usr/local/MacGPG2/bin/ +PATH: /Applications/VMware Fusion.app/Contents/Public/ +PATH: /Users/kdubb/.cargo/bin/ PATH: /Users/kdubb/Library/Application Support/JetBrains/Toolbox/scripts/ +PATH: /Users/kdubb/.orbstack/bin/ ## ----------- ## ## Core tests. ## ## ----------- ## -configure:3023: looking for aux files: tap-driver.sh ltmain.sh config.guess config.sub ar-lib compile missing install-sh -configure:3036: trying ./build-aux/ -configure:3065: ./build-aux/tap-driver.sh found -configure:3065: ./build-aux/ltmain.sh found -configure:3065: ./build-aux/config.guess found -configure:3065: ./build-aux/config.sub found -configure:3065: ./build-aux/ar-lib found -configure:3065: ./build-aux/compile found -configure:3065: ./build-aux/missing found -configure:3047: ./build-aux/install-sh found -configure:3200: checking for a BSD-compatible install -configure:3273: result: /usr/bin/install -c -configure:3284: checking whether build environment is sane -configure:3339: result: yes -configure:3498: checking for a race-free mkdir -p -configure:3542: result: ./build-aux/install-sh -c -d -configure:3549: checking for gawk -configure:3584: result: no -configure:3549: checking for mawk -configure:3584: result: no -configure:3549: checking for nawk -configure:3584: result: no -configure:3549: checking for awk -configure:3570: found /usr/bin/awk -configure:3581: result: awk -configure:3592: checking whether make sets $(MAKE) -configure:3615: result: yes -configure:3645: checking whether make supports nested variables -configure:3663: result: yes -configure:3861: checking whether to enable debugging -configure:3926: result: no -configure:4025: checking for gcc -configure:4046: found /usr/bin/gcc -configure:4057: result: gcc -configure:4410: checking for C compiler version -configure:4419: gcc --version >&5 -Apple clang version 14.0.0 (clang-1400.0.29.202) -Target: arm64-apple-darwin22.2.0 +configure:3072: looking for aux files: tap-driver.sh ltmain.sh ar-lib compile missing install-sh config.guess config.sub +configure:3085: trying ./build-aux/ +configure:3114: ./build-aux/tap-driver.sh found +configure:3114: ./build-aux/ltmain.sh found +configure:3114: ./build-aux/ar-lib found +configure:3114: ./build-aux/compile found +configure:3114: ./build-aux/missing found +configure:3096: ./build-aux/install-sh found +configure:3114: ./build-aux/config.guess found +configure:3114: ./build-aux/config.sub found +configure:3231: checking for m4 +configure:3254: found /usr/bin/m4 +configure:3268: result: /usr/bin/m4 +configure:3290: checking build system type +configure:3306: result: aarch64-apple-darwin23.4.0 +configure:3326: checking host system type +configure:3341: result: aarch64-apple-darwin23.4.0 +configure:3361: checking target system type +configure:3376: result: aarch64-apple-darwin23.4.0 +configure:3424: checking for a BSD-compatible install +configure:3498: result: /opt/homebrew/bin/ginstall -c +configure:3509: checking whether build environment is sane +configure:3564: result: yes +configure:3725: checking for a race-free mkdir -p +configure:3768: result: /opt/homebrew/bin/gmkdir -p +configure:3775: checking for gawk +configure:3811: result: no +configure:3775: checking for mawk +configure:3811: result: no +configure:3775: checking for nawk +configure:3811: result: no +configure:3775: checking for awk +configure:3796: found /usr/bin/awk +configure:3808: result: awk +configure:3819: checking whether make sets $(MAKE) +configure:3843: result: yes +configure:3873: checking whether make supports nested variables +configure:3892: result: yes +configure:4090: checking whether to enable debugging +configure:4156: result: no +configure:4257: checking for gcc +configure:4278: found /usr/bin/gcc +configure:4290: result: gcc +configure:4649: checking for C compiler version +configure:4658: gcc --version >&5 +Apple clang version 15.0.0 (clang-1500.3.9.4) +Target: arm64-apple-darwin23.4.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin -configure:4430: $? = 0 -configure:4419: gcc -v >&5 -Apple clang version 14.0.0 (clang-1400.0.29.202) -Target: arm64-apple-darwin22.2.0 +configure:4669: $? = 0 +configure:4658: gcc -v >&5 +Apple clang version 15.0.0 (clang-1500.3.9.4) +Target: arm64-apple-darwin23.4.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin -configure:4430: $? = 0 -configure:4419: gcc -V >&5 +configure:4669: $? = 0 +configure:4658: gcc -V >&5 clang: error: argument to '-V' is missing (expected 1 value) clang: error: no input files -configure:4430: $? = 1 -configure:4419: gcc -qversion >&5 +configure:4669: $? = 1 +configure:4658: gcc -qversion >&5 clang: error: unknown argument '-qversion'; did you mean '--version'? clang: error: no input files -configure:4430: $? = 1 -configure:4419: gcc -version >&5 +configure:4669: $? = 1 +configure:4658: gcc -version >&5 clang: error: unknown argument '-version'; did you mean '--version'? clang: error: no input files -configure:4430: $? = 1 -configure:4450: checking whether the C compiler works -configure:4472: gcc conftest.c >&5 -configure:4476: $? = 0 -configure:4526: result: yes -configure:4529: checking for C compiler default output file name -configure:4531: result: a.out -configure:4537: checking for suffix of executables -configure:4544: gcc -o conftest conftest.c >&5 -configure:4548: $? = 0 -configure:4571: result: -configure:4593: checking whether we are cross compiling -configure:4601: gcc -o conftest conftest.c >&5 -configure:4605: $? = 0 -configure:4612: ./conftest -configure:4616: $? = 0 -configure:4631: result: no -configure:4636: checking for suffix of object files -configure:4659: gcc -c conftest.c >&5 -configure:4663: $? = 0 -configure:4685: result: o -configure:4689: checking whether the compiler supports GNU C -configure:4709: gcc -c conftest.c >&5 -configure:4709: $? = 0 -configure:4719: result: yes -configure:4730: checking whether gcc accepts -g -configure:4751: gcc -c -g conftest.c >&5 -configure:4751: $? = 0 -configure:4795: result: yes -configure:4815: checking for gcc option to enable C11 features -configure:4830: gcc -c conftest.c >&5 -configure:4830: $? = 0 -configure:4848: result: none needed -configure:4964: checking whether gcc understands -c and -o together -configure:4987: gcc -c conftest.c -o conftest2.o -configure:4990: $? = 0 -configure:4987: gcc -c conftest.c -o conftest2.o -configure:4990: $? = 0 -configure:5002: result: yes -configure:5022: checking whether make supports the include directive -configure:5037: make -f confmf.GNU && cat confinc.out +configure:4669: $? = 1 +configure:4689: checking whether the C compiler works +configure:4711: gcc conftest.c >&5 +configure:4715: $? = 0 +configure:4766: result: yes +configure:4770: checking for C compiler default output file name +configure:4772: result: a.out +configure:4778: checking for suffix of executables +configure:4785: gcc -o conftest conftest.c >&5 +configure:4789: $? = 0 +configure:4813: result: +configure:4837: checking whether we are cross compiling +configure:4845: gcc -o conftest conftest.c >&5 +configure:4849: $? = 0 +configure:4856: ./conftest +configure:4860: $? = 0 +configure:4875: result: no +configure:4881: checking for suffix of object files +configure:4904: gcc -c conftest.c >&5 +configure:4908: $? = 0 +configure:4932: result: o +configure:4936: checking whether the compiler supports GNU C +configure:4956: gcc -c conftest.c >&5 +configure:4956: $? = 0 +configure:4968: result: yes +configure:4979: checking whether gcc accepts -g +configure:5000: gcc -c -g conftest.c >&5 +configure:5000: $? = 0 +configure:5047: result: yes +configure:5067: checking for gcc option to enable C11 features +configure:5082: gcc -c conftest.c >&5 +configure:5082: $? = 0 +configure:5101: result: none needed +configure:5225: checking whether gcc understands -c and -o together +configure:5248: gcc -c conftest.c -o conftest2.o +configure:5251: $? = 0 +configure:5248: gcc -c conftest.c -o conftest2.o +configure:5251: $? = 0 +configure:5264: result: yes +configure:5284: checking whether make supports the include directive +configure:5299: make -f confmf.GNU && cat confinc.out this is the am__doit target -configure:5040: $? = 0 -configure:5059: result: yes (GNU style) -configure:5085: checking dependency style of gcc -configure:5197: result: gcc3 -configure:5221: checking how to run the C preprocessor -configure:5247: gcc -E conftest.c -configure:5247: $? = 0 -configure:5262: gcc -E conftest.c -conftest.c:12:10: fatal error: 'ac_nonexistent.h' file not found -#include - ^~~~~~~~~~~~~~~~~~ -1 error generated. -configure:5262: $? = 1 -configure: failed program was: -| /* confdefs.h */ -| #define PACKAGE_NAME "libfyaml" -| #define PACKAGE_TARNAME "libfyaml" -| #define PACKAGE_VERSION "0.7.12" -| #define PACKAGE_STRING "libfyaml 0.7.12" -| #define PACKAGE_BUGREPORT "pantelis.antoniou@konsulko.com" -| #define PACKAGE_URL "" -| #define PACKAGE "libfyaml" -| #define VERSION "0.7.12" -| #define NDEBUG 1 -| /* end confdefs.h. */ -| #include -configure:5289: result: gcc -E -configure:5303: gcc -E conftest.c -configure:5303: $? = 0 -configure:5318: gcc -E conftest.c -conftest.c:12:10: fatal error: 'ac_nonexistent.h' file not found -#include - ^~~~~~~~~~~~~~~~~~ -1 error generated. -configure:5318: $? = 1 -configure: failed program was: -| /* confdefs.h */ -| #define PACKAGE_NAME "libfyaml" -| #define PACKAGE_TARNAME "libfyaml" -| #define PACKAGE_VERSION "0.7.12" -| #define PACKAGE_STRING "libfyaml 0.7.12" -| #define PACKAGE_BUGREPORT "pantelis.antoniou@konsulko.com" -| #define PACKAGE_URL "" -| #define PACKAGE "libfyaml" -| #define VERSION "0.7.12" -| #define NDEBUG 1 -| /* end confdefs.h. */ -| #include -configure:5349: checking for grep that handles long lines and -e -configure:5413: result: /usr/bin/grep -configure:5418: checking for egrep -configure:5486: result: /usr/bin/grep -E -configure:5492: checking whether gcc needs -traditional -conftest.c:12:10: fatal error: 'termio.h' file not found -#include - ^~~~~~~~~~ -1 error generated. -configure:5529: result: no -configure:5540: checking for stdio.h -configure:5540: gcc -c conftest.c >&5 -configure:5540: $? = 0 -configure:5540: result: yes -configure:5540: checking for stdlib.h -configure:5540: gcc -c conftest.c >&5 -configure:5540: $? = 0 -configure:5540: result: yes -configure:5540: checking for string.h -configure:5540: gcc -c conftest.c >&5 -configure:5540: $? = 0 -configure:5540: result: yes -configure:5540: checking for inttypes.h -configure:5540: gcc -c conftest.c >&5 -configure:5540: $? = 0 -configure:5540: result: yes -configure:5540: checking for stdint.h -configure:5540: gcc -c conftest.c >&5 -configure:5540: $? = 0 -configure:5540: result: yes -configure:5540: checking for strings.h -configure:5540: gcc -c conftest.c >&5 -configure:5540: $? = 0 -configure:5540: result: yes -configure:5540: checking for sys/stat.h -configure:5540: gcc -c conftest.c >&5 -configure:5540: $? = 0 -configure:5540: result: yes -configure:5540: checking for sys/types.h -configure:5540: gcc -c conftest.c >&5 -configure:5540: $? = 0 -configure:5540: result: yes -configure:5540: checking for unistd.h -configure:5540: gcc -c conftest.c >&5 -configure:5540: $? = 0 -configure:5540: result: yes -configure:5540: checking for wchar.h -configure:5540: gcc -c conftest.c >&5 -configure:5540: $? = 0 -configure:5540: result: yes -configure:5540: checking for minix/config.h -configure:5540: gcc -c conftest.c >&5 +configure:5302: $? = 0 +configure:5321: result: yes (GNU style) +configure:5347: checking dependency style of gcc +configure:5460: result: gcc3 +configure:5485: checking dependency style of gcc +configure:5596: result: gcc3 +configure:5618: checking for stdio.h +configure:5618: gcc -c conftest.c >&5 +configure:5618: $? = 0 +configure:5618: result: yes +configure:5618: checking for stdlib.h +configure:5618: gcc -c conftest.c >&5 +configure:5618: $? = 0 +configure:5618: result: yes +configure:5618: checking for string.h +configure:5618: gcc -c conftest.c >&5 +configure:5618: $? = 0 +configure:5618: result: yes +configure:5618: checking for inttypes.h +configure:5618: gcc -c conftest.c >&5 +configure:5618: $? = 0 +configure:5618: result: yes +configure:5618: checking for stdint.h +configure:5618: gcc -c conftest.c >&5 +configure:5618: $? = 0 +configure:5618: result: yes +configure:5618: checking for strings.h +configure:5618: gcc -c conftest.c >&5 +configure:5618: $? = 0 +configure:5618: result: yes +configure:5618: checking for sys/stat.h +configure:5618: gcc -c conftest.c >&5 +configure:5618: $? = 0 +configure:5618: result: yes +configure:5618: checking for sys/types.h +configure:5618: gcc -c conftest.c >&5 +configure:5618: $? = 0 +configure:5618: result: yes +configure:5618: checking for unistd.h +configure:5618: gcc -c conftest.c >&5 +configure:5618: $? = 0 +configure:5618: result: yes +configure:5618: checking for wchar.h +configure:5618: gcc -c conftest.c >&5 +configure:5618: $? = 0 +configure:5618: result: yes +configure:5618: checking for minix/config.h +configure:5618: gcc -c conftest.c >&5 conftest.c:50:10: fatal error: 'minix/config.h' file not found #include ^~~~~~~~~~~~~~~~ 1 error generated. -configure:5540: $? = 1 +configure:5618: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libfyaml" | #define PACKAGE_TARNAME "libfyaml" -| #define PACKAGE_VERSION "0.7.12" -| #define PACKAGE_STRING "libfyaml 0.7.12" +| #define PACKAGE_VERSION "0.9" +| #define PACKAGE_STRING "libfyaml 0.9" | #define PACKAGE_BUGREPORT "pantelis.antoniou@konsulko.com" | #define PACKAGE_URL "" | #define PACKAGE "libfyaml" -| #define VERSION "0.7.12" +| #define VERSION "0.9" | #define NDEBUG 1 | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 @@ -313,190 +280,190 @@ configure: failed program was: | # include | #endif | #include -configure:5540: result: no -configure:5571: checking whether it is safe to define __EXTENSIONS__ -configure:5590: gcc -c conftest.c >&5 -configure:5590: $? = 0 -configure:5598: result: yes -configure:5601: checking whether _XOPEN_SOURCE should be defined -configure:5623: gcc -c conftest.c >&5 -configure:5623: $? = 0 -configure:5650: result: no -configure:5761: checking for ar -configure:5782: found /usr/bin/ar -configure:5793: result: ar -configure:5819: checking the archiver (ar) interface -configure:5836: gcc -c conftest.c >&5 -configure:5836: $? = 0 -configure:5839: ar cru libconftest.a conftest.o >&5 -configure:5842: $? = 0 -configure:5870: result: ar -configure:5960: checking for g++ -configure:5981: found /usr/bin/g++ -configure:5992: result: g++ -configure:6019: checking for C++ compiler version -configure:6028: g++ --version >&5 -Apple clang version 14.0.0 (clang-1400.0.29.202) -Target: arm64-apple-darwin22.2.0 +configure:5618: result: no +configure:5649: checking whether it is safe to define __EXTENSIONS__ +configure:5668: gcc -c conftest.c >&5 +configure:5668: $? = 0 +configure:5678: result: yes +configure:5681: checking whether _XOPEN_SOURCE should be defined +configure:5703: gcc -c conftest.c >&5 +configure:5703: $? = 0 +configure:5732: result: no +configure:5847: checking for ar +configure:5868: found /usr/bin/ar +configure:5880: result: ar +configure:5906: checking the archiver (ar) interface +configure:5923: gcc -c conftest.c >&5 +configure:5923: $? = 0 +configure:5926: ar cru libconftest.a conftest.o >&5 +configure:5929: $? = 0 +configure:5958: result: ar +configure:6049: checking for g++ +configure:6070: found /usr/bin/g++ +configure:6082: result: g++ +configure:6109: checking for C++ compiler version +configure:6118: g++ --version >&5 +Apple clang version 15.0.0 (clang-1500.3.9.4) +Target: arm64-apple-darwin23.4.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin -configure:6039: $? = 0 -configure:6028: g++ -v >&5 -Apple clang version 14.0.0 (clang-1400.0.29.202) -Target: arm64-apple-darwin22.2.0 +configure:6129: $? = 0 +configure:6118: g++ -v >&5 +Apple clang version 15.0.0 (clang-1500.3.9.4) +Target: arm64-apple-darwin23.4.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin -configure:6039: $? = 0 -configure:6028: g++ -V >&5 +configure:6129: $? = 0 +configure:6118: g++ -V >&5 clang: error: argument to '-V' is missing (expected 1 value) clang: error: no input files -configure:6039: $? = 1 -configure:6028: g++ -qversion >&5 +configure:6129: $? = 1 +configure:6118: g++ -qversion >&5 clang: error: unknown argument '-qversion'; did you mean '--version'? clang: error: no input files -configure:6039: $? = 1 -configure:6043: checking whether the compiler supports GNU C++ -configure:6063: g++ -c conftest.cpp >&5 -configure:6063: $? = 0 -configure:6073: result: yes -configure:6084: checking whether g++ accepts -g -configure:6105: g++ -c -g conftest.cpp >&5 -configure:6105: $? = 0 -configure:6149: result: yes -configure:6169: checking for g++ option to enable C++11 features -configure:6184: g++ -c conftest.cpp >&5 -conftest.cpp:85:3: error: "Compiler does not advertise C++11 conformance" +configure:6129: $? = 1 +configure:6133: checking whether the compiler supports GNU C++ +configure:6153: g++ -c conftest.cpp >&5 +configure:6153: $? = 0 +configure:6165: result: yes +configure:6176: checking whether g++ accepts -g +configure:6197: g++ -c -g conftest.cpp >&5 +configure:6197: $? = 0 +configure:6244: result: yes +configure:6264: checking for g++ option to enable C++11 features +configure:6279: g++ -c conftest.cpp >&5 +conftest.cpp:86:3: error: "Compiler does not advertise C++11 conformance" # error "Compiler does not advertise C++11 conformance" ^ -conftest.cpp:90:3: error: unknown type name 'constexpr' +conftest.cpp:91:3: error: unknown type name 'constexpr' constexpr int get_val() { return 20; } ^ -conftest.cpp:102:17: error: delegating constructors are permitted only in C++11 +conftest.cpp:103:17: error: delegating constructors are permitted only in C++11 delegate(): delegate(2354) {} ^~~~~~~~ -conftest.cpp:113:26: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions] +conftest.cpp:114:26: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions] virtual int getval() override final { return this->n * 2; } ^ -conftest.cpp:113:35: warning: 'final' keyword is a C++11 extension [-Wc++11-extensions] +conftest.cpp:114:35: warning: 'final' keyword is a C++11 extension [-Wc++11-extensions] virtual int getval() override final { return this->n * 2; } ^ -conftest.cpp:120:16: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions] +conftest.cpp:121:16: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions] nocopy() = default; ^ -conftest.cpp:121:29: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions] +conftest.cpp:122:29: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions] nocopy(const nocopy&) = delete; ^ -conftest.cpp:122:41: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions] +conftest.cpp:123:41: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions] nocopy & operator=(const nocopy&) = delete; ^ -conftest.cpp:134:25: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] +conftest.cpp:135:25: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] template auto sum(V first) -> V ^ -conftest.cpp:134:25: error: 'auto' not allowed in function return type +conftest.cpp:135:25: error: 'auto' not allowed in function return type template auto sum(V first) -> V ^~~~ -conftest.cpp:134:42: error: expected ';' at end of declaration +conftest.cpp:135:42: error: expected ';' at end of declaration template auto sum(V first) -> V ^ ; -conftest.cpp:134:43: error: cannot use arrow operator on a type +conftest.cpp:135:43: error: cannot use arrow operator on a type template auto sum(V first) -> V ^ -conftest.cpp:138:33: warning: variadic templates are a C++11 extension [-Wc++11-extensions] +conftest.cpp:139:33: warning: variadic templates are a C++11 extension [-Wc++11-extensions] template auto sum(V first, Args... rest) -> V ^ -conftest.cpp:138:43: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] +conftest.cpp:139:43: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] template auto sum(V first, Args... rest) -> V ^ -conftest.cpp:138:43: error: 'auto' not allowed in function return type +conftest.cpp:139:43: error: 'auto' not allowed in function return type template auto sum(V first, Args... rest) -> V ^~~~ -conftest.cpp:138:74: error: expected ';' at end of declaration +conftest.cpp:139:74: error: expected ';' at end of declaration template auto sum(V first, Args... rest) -> V ^ ; -conftest.cpp:138:75: error: cannot use arrow operator on a type +conftest.cpp:139:75: error: cannot use arrow operator on a type template auto sum(V first, Args... rest) -> V ^ -conftest.cpp:162:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] +conftest.cpp:163:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto a1 = 6538; ^ -conftest.cpp:163:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] +conftest.cpp:164:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto a2 = 48573953.4; ^ -conftest.cpp:164:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] +conftest.cpp:165:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto a3 = "String literal"; ^ -conftest.cpp:167:8: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] +conftest.cpp:168:8: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] for (auto i = a3; *i; ++i) { total += *i; } ^ -conftest.cpp:183:8: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] +conftest.cpp:184:8: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] for (auto &x : array) { x += 23; } ^ -conftest.cpp:183:16: warning: range-based for loop is a C++11 extension [-Wc++11-extensions] +conftest.cpp:184:16: warning: range-based for loop is a C++11 extension [-Wc++11-extensions] for (auto &x : array) { x += 23; } ^ -conftest.cpp:188:17: error: expected expression +conftest.cpp:189:17: error: expected expression assert (eval ([](int x) { return x*2; }, 21) == 42); ^ -conftest.cpp:190:17: error: expected expression +conftest.cpp:191:17: error: expected expression assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); ^ -conftest.cpp:192:17: error: expected expression +conftest.cpp:193:17: error: expected expression assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); ^ -conftest.cpp:198:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] +conftest.cpp:199:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto a = sum(1); ^ -conftest.cpp:198:12: error: no matching function for call to 'sum' +conftest.cpp:199:12: error: no matching function for call to 'sum' auto a = sum(1); ^~~ -conftest.cpp:199:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] +conftest.cpp:200:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto b = sum(1, 2); ^ -conftest.cpp:199:12: error: no matching function for call to 'sum' +conftest.cpp:200:12: error: no matching function for call to 'sum' auto b = sum(1, 2); ^~~ -conftest.cpp:200:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] +conftest.cpp:201:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto c = sum(1.0, 2.0, 3.0); ^ -conftest.cpp:200:12: error: no matching function for call to 'sum' +conftest.cpp:201:12: error: no matching function for call to 'sum' auto c = sum(1.0, 2.0, 3.0); ^~~ -conftest.cpp:205:25: warning: empty parentheses interpreted as a function declaration [-Wvexing-parse] +conftest.cpp:206:25: warning: empty parentheses interpreted as a function declaration [-Wvexing-parse] cxx11test::delegate d2(); ^~ -conftest.cpp:205:25: note: remove parentheses to declare a variable +conftest.cpp:206:25: note: remove parentheses to declare a variable cxx11test::delegate d2(); ^~ -conftest.cpp:218:16: error: found '<::' after a template name which forms the digraph '<:' (aka '[') and a ':', did you mean '< ::'? +conftest.cpp:219:16: error: found '<::' after a template name which forms the digraph '<:' (aka '[') and a ':', did you mean '< ::'? test_template<::test_template> v(test_template(12)); ^~~ < :: -conftest.cpp:218:36: error: a space is required between consecutive right angle brackets (use '> >') +conftest.cpp:219:36: error: a space is required between consecutive right angle brackets (use '> >') test_template<::test_template> v(test_template(12)); ^~ > > -conftest.cpp:222:22: error: use of undeclared identifier 'u8' +conftest.cpp:223:22: error: use of undeclared identifier 'u8' char const *utf8 = u8"UTF-8 string \u2500"; ^ -conftest.cpp:222:24: error: expected ';' at end of declaration +conftest.cpp:223:24: error: expected ';' at end of declaration char const *utf8 = u8"UTF-8 string \u2500"; ^ ; fatal error: too many errors emitted, stopping now [-ferror-limit=] 18 warnings and 20 errors generated. -configure:6184: $? = 1 +configure:6279: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libfyaml" | #define PACKAGE_TARNAME "libfyaml" -| #define PACKAGE_VERSION "0.7.12" -| #define PACKAGE_STRING "libfyaml 0.7.12" +| #define PACKAGE_VERSION "0.9" +| #define PACKAGE_STRING "libfyaml 0.9" | #define PACKAGE_BUGREPORT "pantelis.antoniou@konsulko.com" | #define PACKAGE_URL "" | #define PACKAGE "libfyaml" -| #define VERSION "0.7.12" +| #define VERSION "0.9" | #define NDEBUG 1 | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 @@ -519,6 +486,7 @@ configure: failed program was: | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 +| #define __STDC_WANT_IEC_60559_EXT__ 1 | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 | #define __STDC_WANT_LIB_EXT2__ 1 @@ -717,211 +685,219 @@ configure: failed program was: | return ok; | } | -configure:6202: result: none needed -configure:6268: checking dependency style of g++ -configure:6380: result: gcc3 -configure:6399: checking for gawk -configure:6431: result: awk -configure:6442: checking whether ln -s works -configure:6446: result: yes -configure:6460: checking build system type -configure:6475: result: aarch64-apple-darwin22.2.0 -configure:6495: checking host system type -configure:6509: result: aarch64-apple-darwin22.2.0 -configure:6645: checking whether pthreads work with -pthread -configure:6738: gcc -o conftest -pthread conftest.c >&5 -configure:6738: $? = 0 -configure:6748: result: yes -configure:6767: checking for joinable pthread attribute -configure:6782: gcc -o conftest -pthread conftest.c >&5 -configure:6782: $? = 0 -configure:6789: result: PTHREAD_CREATE_JOINABLE -configure:6797: checking if more special flags are required for pthreads -configure:6811: result: -D_THREAD_SAFE -configure:6817: checking for PTHREAD_PRIO_INHERIT -configure:6836: gcc -o conftest -pthread conftest.c >&5 -configure:6836: $? = 0 -configure:6846: result: yes -configure:6955: checking for m4 -configure:6978: found /usr/bin/m4 -configure:6991: result: /usr/bin/m4 -configure:7066: checking for pkg-config -configure:7089: found /opt/homebrew/bin/pkg-config -configure:7101: result: /opt/homebrew/bin/pkg-config -configure:7126: checking pkg-config is at least version 0.9.0 -configure:7129: result: yes -configure:7609: checking how to print strings -configure:7636: result: printf -configure:7657: checking for a sed that does not truncate output -configure:7727: result: /usr/bin/sed -configure:7745: checking for fgrep -configure:7813: result: /usr/bin/grep -F -configure:7849: checking for ld used by gcc -configure:7917: result: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -configure:7924: checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld -configure:7940: result: no -configure:7952: checking for BSD- or MS-compatible name lister (nm) -configure:8007: result: /usr/bin/nm -B -configure:8147: checking the name lister (/usr/bin/nm -B) interface -configure:8155: gcc -c conftest.c >&5 -configure:8158: /usr/bin/nm -B "conftest.o" -configure:8161: output +configure:6279: g++ -std=gnu++11 -c conftest.cpp >&5 +conftest.cpp:206:25: warning: empty parentheses interpreted as a function declaration [-Wvexing-parse] + cxx11test::delegate d2(); + ^~ +conftest.cpp:206:25: note: remove parentheses to declare a variable + cxx11test::delegate d2(); + ^~ +1 warning generated. +configure:6279: $? = 0 +configure:6301: result: -std=gnu++11 +configure:6369: checking dependency style of g++ -std=gnu++11 +configure:6482: result: gcc3 +configure:6501: checking for gawk +configure:6534: result: awk +configure:6545: checking whether ln -s works +configure:6549: result: yes +configure:6679: checking whether pthreads work with -pthread +configure:6773: gcc -o conftest -pthread conftest.c >&5 +configure:6773: $? = 0 +configure:6783: result: yes +configure:6802: checking for joinable pthread attribute +configure:6817: gcc -o conftest -pthread conftest.c >&5 +configure:6817: $? = 0 +configure:6824: result: PTHREAD_CREATE_JOINABLE +configure:6832: checking if more special flags are required for pthreads +configure:6846: result: -D_THREAD_SAFE +configure:6852: checking for PTHREAD_PRIO_INHERIT +configure:6871: gcc -o conftest -pthread conftest.c >&5 +configure:6871: $? = 0 +configure:6883: result: yes +configure:7060: checking for pkg-config +configure:7083: found /opt/homebrew/bin/pkg-config +configure:7096: result: /opt/homebrew/bin/pkg-config +configure:7121: checking pkg-config is at least version 0.9.0 +configure:7124: result: yes +configure:7181: checking how to print strings +configure:7208: result: printf +configure:7229: checking for a sed that does not truncate output +configure:7301: result: /usr/bin/sed +configure:7319: checking for grep that handles long lines and -e +configure:7385: result: /usr/bin/grep +configure:7390: checking for egrep +configure:7460: result: /usr/bin/grep -E +configure:7467: checking for fgrep +configure:7537: result: /usr/bin/grep -F +configure:7574: checking for ld used by gcc +configure:7643: result: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld +configure:7650: checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld +configure:7667: result: no +configure:7679: checking for BSD- or MS-compatible name lister (nm) +configure:7735: result: /usr/bin/nm -B +configure:7877: checking the name lister (/usr/bin/nm -B) interface +configure:7885: gcc -c -D_THREAD_SAFE -pthread conftest.c >&5 +configure:7888: /usr/bin/nm -B "conftest.o" +configure:7891: output 0000000000000000 S _some_variable 0000000000000000 t ltmp0 0000000000000000 s ltmp1 -configure:8168: result: BSD nm -configure:8172: checking the maximum length of command line arguments -configure:8304: result: 786432 -configure:8352: checking how to convert aarch64-apple-darwin22.2.0 file names to aarch64-apple-darwin22.2.0 format -configure:8393: result: func_convert_file_noop -configure:8400: checking how to convert aarch64-apple-darwin22.2.0 file names to toolchain format -configure:8421: result: func_convert_file_noop -configure:8428: checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files -configure:8436: result: -r -configure:8515: checking for file -configure:8536: found /usr/bin/file -configure:8547: result: file -configure:8623: checking for objdump -configure:8655: result: objdump -configure:8684: checking how to recognize dependent libraries -configure:8885: result: pass_all -configure:8975: checking for dlltool -configure:9007: result: dlltool -configure:9037: checking how to associate runtime and link libraries -configure:9065: result: printf %s\n -configure:9215: checking for archiver @FILE support -configure:9233: gcc -c conftest.c >&5 -configure:9233: $? = 0 -configure:9237: ar cr libconftest.a @conftest.lst >&5 +configure:7899: result: BSD nm +configure:7903: checking the maximum length of command line arguments +configure:8036: result: 786432 +configure:8084: checking how to convert aarch64-apple-darwin23.4.0 file names to aarch64-apple-darwin23.4.0 format +configure:8126: result: func_convert_file_noop +configure:8133: checking how to convert aarch64-apple-darwin23.4.0 file names to toolchain format +configure:8155: result: func_convert_file_noop +configure:8162: checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files +configure:8171: result: -r +configure:8251: checking for file +configure:8272: found /usr/bin/file +configure:8284: result: file +configure:8361: checking for objdump +configure:8382: found /usr/bin/objdump +configure:8394: result: objdump +configure:8423: checking how to recognize dependent libraries +configure:8625: result: pass_all +configure:8716: checking for dlltool +configure:8752: result: no +configure:8779: checking how to associate runtime and link libraries +configure:8808: result: printf %s\n +configure:8960: checking for archiver @FILE support +configure:8978: gcc -c -D_THREAD_SAFE -pthread conftest.c >&5 +configure:8978: $? = 0 +configure:8982: ar cr libconftest.a @conftest.lst >&5 ar: @conftest.lst: No such file or directory -configure:9240: $? = 1 -configure:9260: result: no -configure:9323: checking for strip -configure:9344: found /usr/bin/strip -configure:9355: result: strip -configure:9432: checking for ranlib -configure:9453: found /usr/bin/ranlib -configure:9464: result: ranlib -configure:9566: checking command to parse /usr/bin/nm -B output from gcc object -configure:9720: gcc -c conftest.c >&5 -configure:9723: $? = 0 -configure:9727: /usr/bin/nm -B conftest.o \| /usr/bin/sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | /usr/bin/sed '/ __gnu_lto/d' \> conftest.nm -configure:9730: $? = 0 +configure:8985: $? = 1 +configure:9006: result: no +configure:9070: checking for strip +configure:9091: found /usr/bin/strip +configure:9103: result: strip +configure:9181: checking for ranlib +configure:9202: found /usr/bin/ranlib +configure:9214: result: ranlib +configure:9316: checking command to parse /usr/bin/nm -B output from gcc object +configure:9470: gcc -c -D_THREAD_SAFE -pthread conftest.c >&5 +configure:9473: $? = 0 +configure:9477: /usr/bin/nm -B conftest.o \| /usr/bin/sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | /usr/bin/sed '/ __gnu_lto/d' \> conftest.nm +configure:9480: $? = 0 cannot find nm_test_var in conftest.nm -configure:9720: gcc -c conftest.c >&5 -configure:9723: $? = 0 -configure:9727: /usr/bin/nm -B conftest.o \| /usr/bin/sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' | /usr/bin/sed '/ __gnu_lto/d' \> conftest.nm -configure:9730: $? = 0 -configure:9796: gcc -o conftest conftest.c conftstm.o >&5 -configure:9799: $? = 0 -configure:9837: result: ok -configure:9884: checking for sysroot -configure:9915: result: no -configure:9922: checking for a working dd -configure:9966: result: /bin/dd -configure:9970: checking how to truncate binary pipes -configure:9986: result: /bin/dd bs=4096 count=1 -configure:10323: checking for mt -configure:10358: result: no -configure:10378: checking if : is a manifest tool -configure:10385: : '-?' -configure:10393: result: no -configure:10454: checking for dsymutil -configure:10475: found /usr/bin/dsymutil -configure:10486: result: dsymutil -configure:10556: checking for nmedit -configure:10577: found /usr/bin/nmedit -configure:10588: result: nmedit -configure:10658: checking for lipo -configure:10679: found /usr/bin/lipo -configure:10690: result: lipo -configure:10760: checking for otool -configure:10781: found /usr/bin/otool -configure:10792: result: otool -configure:10862: checking for otool64 -configure:10897: result: no -configure:10942: checking for -single_module linker flag -gcc -o libconftest.dylib -dynamiclib -Wl,-single_module conftest.c -configure:10976: result: yes -configure:10979: checking for -exported_symbols_list linker flag -configure:11000: gcc -o conftest -Wl,-exported_symbols_list,conftest.sym conftest.c >&5 -configure:11000: $? = 0 -configure:11011: result: yes -configure:11014: checking for -force_load linker flag -gcc -c -o conftest.o conftest.c +configure:9470: gcc -c -D_THREAD_SAFE -pthread conftest.c >&5 +configure:9473: $? = 0 +configure:9477: /usr/bin/nm -B conftest.o \| /usr/bin/sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' | /usr/bin/sed '/ __gnu_lto/d' \> conftest.nm +configure:9480: $? = 0 +configure:9546: gcc -o conftest -D_THREAD_SAFE -pthread conftest.c conftstm.o >&5 +configure:9549: $? = 0 +configure:9588: result: ok +configure:9635: checking for sysroot +configure:9667: result: no +configure:9674: checking for a working dd +configure:9719: result: /bin/dd +configure:9723: checking how to truncate binary pipes +configure:9740: result: /bin/dd bs=4096 count=1 +configure:10080: checking for mt +configure:10116: result: no +configure:10136: checking if : is a manifest tool +configure:10143: : '-?' +configure:10152: result: no +configure:10214: checking for dsymutil +configure:10235: found /usr/bin/dsymutil +configure:10247: result: dsymutil +configure:10318: checking for nmedit +configure:10339: found /usr/bin/nmedit +configure:10351: result: nmedit +configure:10422: checking for lipo +configure:10443: found /usr/bin/lipo +configure:10455: result: lipo +configure:10526: checking for otool +configure:10547: found /usr/bin/otool +configure:10559: result: otool +configure:10630: checking for otool64 +configure:10666: result: no +configure:10711: checking for -single_module linker flag +gcc -D_THREAD_SAFE -pthread -o libconftest.dylib -dynamiclib -Wl,-single_module conftest.c +ld: warning: -single_module is obsolete +configure:10746: result: no +configure:10749: checking for -exported_symbols_list linker flag +configure:10770: gcc -o conftest -D_THREAD_SAFE -pthread -Wl,-exported_symbols_list,conftest.sym conftest.c -lpthread >&5 +configure:10770: $? = 0 +configure:10783: result: yes +configure:10786: checking for -force_load linker flag +gcc -D_THREAD_SAFE -pthread -c -o conftest.o conftest.c ar cr libconftest.a conftest.o ranlib libconftest.a -gcc -o conftest conftest.c -Wl,-force_load,./libconftest.a -configure:11047: result: yes -configure:11114: checking for dlfcn.h -configure:11114: gcc -c conftest.c >&5 -configure:11114: $? = 0 -configure:11114: result: yes -configure:11380: checking for objdir -configure:11396: result: .libs -configure:11660: checking if gcc supports -fno-rtti -fno-exceptions -configure:11679: gcc -c -fno-rtti -fno-exceptions conftest.c >&5 -configure:11683: $? = 0 -configure:11696: result: yes -configure:12054: checking for gcc option to produce PIC -configure:12062: result: -fno-common -DPIC -configure:12070: checking if gcc PIC flag -fno-common -DPIC works -configure:12089: gcc -c -fno-common -DPIC -DPIC conftest.c >&5 -configure:12093: $? = 0 -configure:12106: result: yes -configure:12135: checking if gcc static flag -static works -configure:12164: result: no -configure:12179: checking if gcc supports -c -o file.o -configure:12201: gcc -c -o out/conftest2.o conftest.c >&5 -configure:12205: $? = 0 -configure:12227: result: yes -configure:12235: checking if gcc supports -c -o file.o -configure:12283: result: yes -configure:12316: checking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries -configure:13584: result: yes -configure:13825: checking dynamic linker characteristics -configure:14646: result: darwin22.2.0 dyld -configure:14768: checking how to hardcode library paths into programs -configure:14793: result: immediate -configure:14838: checking for dlopen in -ldl -configure:14861: gcc -o conftest conftest.c -ldl >&5 -configure:14861: $? = 0 -configure:14871: result: yes -configure:15097: checking whether a program can dlopen itself -configure:15178: gcc -o conftest -DHAVE_DLFCN_H conftest.c -ldl >&5 -configure:15181: $? = 0 -configure:15199: result: yes -configure:15204: checking whether a statically linked program can dlopen itself -configure:15285: gcc -o conftest -DHAVE_DLFCN_H conftest.c -ldl >&5 -configure:15288: $? = 0 -configure:15306: result: yes -configure:15345: checking whether stripping libraries is possible -configure:15362: result: yes -configure:15396: checking if libtool supports shared libraries -configure:15398: result: yes -configure:15401: checking whether to build shared libraries -configure:15426: result: yes -configure:15429: checking whether to build static libraries -configure:15433: result: yes -configure:15456: checking how to run the C++ preprocessor -configure:15478: g++ -E conftest.cpp -configure:15478: $? = 0 -configure:15493: g++ -E conftest.cpp -conftest.cpp:43:10: fatal error: 'ac_nonexistent.h' file not found +gcc -D_THREAD_SAFE -pthread -o conftest conftest.c -Wl,-force_load,./libconftest.a +configure:10820: result: yes +configure:10887: checking for dlfcn.h +configure:10887: gcc -c -D_THREAD_SAFE -pthread conftest.c >&5 +configure:10887: $? = 0 +configure:10887: result: yes +configure:11496: checking for objdir +configure:11513: result: .libs +configure:11779: checking if gcc supports -fno-rtti -fno-exceptions +configure:11798: gcc -c -D_THREAD_SAFE -pthread -fno-rtti -fno-exceptions conftest.c >&5 +configure:11802: $? = 0 +configure:11816: result: yes +configure:12174: checking for gcc option to produce PIC +configure:12183: result: -fno-common -DPIC +configure:12191: checking if gcc PIC flag -fno-common -DPIC works +configure:12210: gcc -c -D_THREAD_SAFE -pthread -fno-common -DPIC -DPIC conftest.c >&5 +configure:12214: $? = 0 +configure:12228: result: yes +configure:12257: checking if gcc static flag -static works +configure:12287: result: no +configure:12302: checking if gcc supports -c -o file.o +configure:12324: gcc -c -D_THREAD_SAFE -pthread -o out/conftest2.o conftest.c >&5 +configure:12328: $? = 0 +configure:12351: result: yes +configure:12359: checking if gcc supports -c -o file.o +configure:12408: result: yes +configure:12441: checking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries +configure:13714: result: yes +configure:13956: checking dynamic linker characteristics +configure:14778: result: darwin23.4.0 dyld +configure:14900: checking how to hardcode library paths into programs +configure:14925: result: immediate +configure:14970: checking for dlopen in -ldl +configure:14999: gcc -o conftest -D_THREAD_SAFE -pthread conftest.c -ldl -lpthread >&5 +configure:14999: $? = 0 +configure:15011: result: yes +configure:15275: checking whether a program can dlopen itself +configure:15356: gcc -o conftest -D_THREAD_SAFE -pthread -DHAVE_DLFCN_H conftest.c -ldl -lpthread >&5 +configure:15359: $? = 0 +configure:15378: result: yes +configure:15383: checking whether a statically linked program can dlopen itself +configure:15464: gcc -o conftest -D_THREAD_SAFE -pthread -DHAVE_DLFCN_H conftest.c -ldl -lpthread >&5 +configure:15467: $? = 0 +configure:15486: result: yes +configure:15525: checking whether stripping libraries is possible +configure:15542: result: yes +configure:15576: checking if libtool supports shared libraries +configure:15578: result: yes +configure:15581: checking whether to build shared libraries +configure:15606: result: yes +configure:15609: checking whether to build static libraries +configure:15613: result: yes +configure:15636: checking how to run the C++ preprocessor +configure:15658: g++ -std=gnu++11 -E conftest.cpp +configure:15658: $? = 0 +configure:15674: g++ -std=gnu++11 -E conftest.cpp +conftest.cpp:44:10: fatal error: 'ac_nonexistent.h' file not found #include ^~~~~~~~~~~~~~~~~~ 1 error generated. -configure:15493: $? = 1 +configure:15674: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libfyaml" | #define PACKAGE_TARNAME "libfyaml" -| #define PACKAGE_VERSION "0.7.12" -| #define PACKAGE_STRING "libfyaml 0.7.12" +| #define PACKAGE_VERSION "0.9" +| #define PACKAGE_STRING "libfyaml 0.9" | #define PACKAGE_BUGREPORT "pantelis.antoniou@konsulko.com" | #define PACKAGE_URL "" | #define PACKAGE "libfyaml" -| #define VERSION "0.7.12" +| #define VERSION "0.9" | #define NDEBUG 1 | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 @@ -944,6 +920,7 @@ configure: failed program was: | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 +| #define __STDC_WANT_IEC_60559_EXT__ 1 | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 | #define __STDC_WANT_LIB_EXT2__ 1 @@ -956,25 +933,25 @@ configure: failed program was: | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | #include -configure:15520: result: g++ -E -configure:15534: g++ -E conftest.cpp -configure:15534: $? = 0 -configure:15549: g++ -E conftest.cpp -conftest.cpp:43:10: fatal error: 'ac_nonexistent.h' file not found +configure:15703: result: g++ -std=gnu++11 -E +configure:15717: g++ -std=gnu++11 -E conftest.cpp +configure:15717: $? = 0 +configure:15733: g++ -std=gnu++11 -E conftest.cpp +conftest.cpp:44:10: fatal error: 'ac_nonexistent.h' file not found #include ^~~~~~~~~~~~~~~~~~ 1 error generated. -configure:15549: $? = 1 +configure:15733: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libfyaml" | #define PACKAGE_TARNAME "libfyaml" -| #define PACKAGE_VERSION "0.7.12" -| #define PACKAGE_STRING "libfyaml 0.7.12" +| #define PACKAGE_VERSION "0.9" +| #define PACKAGE_STRING "libfyaml 0.9" | #define PACKAGE_BUGREPORT "pantelis.antoniou@konsulko.com" | #define PACKAGE_URL "" | #define PACKAGE "libfyaml" -| #define VERSION "0.7.12" +| #define VERSION "0.9" | #define NDEBUG 1 | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 @@ -997,6 +974,7 @@ configure: failed program was: | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 +| #define __STDC_WANT_IEC_60559_EXT__ 1 | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 | #define __STDC_WANT_LIB_EXT2__ 1 @@ -1009,61 +987,59 @@ configure: failed program was: | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | #include -configure:15714: checking for ld used by g++ -configure:15782: result: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -configure:15789: checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld -configure:15805: result: no -configure:15860: checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries -configure:16938: result: yes -configure:16974: g++ -c conftest.cpp >&5 -configure:16977: $? = 0 -configure:17458: checking for g++ option to produce PIC -configure:17466: result: -fno-common -DPIC -configure:17474: checking if g++ PIC flag -fno-common -DPIC works -configure:17493: g++ -c -fno-common -DPIC -DPIC conftest.cpp >&5 -configure:17497: $? = 0 -configure:17510: result: yes -configure:17533: checking if g++ static flag -static works -configure:17562: result: no -configure:17574: checking if g++ supports -c -o file.o -configure:17596: g++ -c -o out/conftest2.o conftest.cpp >&5 -configure:17600: $? = 0 -configure:17622: result: yes -configure:17627: checking if g++ supports -c -o file.o -configure:17675: result: yes -configure:17705: checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries -configure:17745: result: yes -configure:17887: checking dynamic linker characteristics -configure:18635: result: darwin22.2.0 dyld -configure:18700: checking how to hardcode library paths into programs -configure:18725: result: immediate -configure:18796: checking for egrep -configure:18864: result: /usr/bin/grep -E -configure:18870: checking for an ANSI C-conforming const -configure:18937: gcc -c conftest.c >&5 -configure:18937: $? = 0 -configure:18945: result: yes -configure:18953: checking whether byte ordering is bigendian -configure:18969: gcc -c conftest.c >&5 -configure:18969: $? = 0 -configure:19015: gcc -c conftest.c >&5 -configure:19015: $? = 0 -configure:19034: gcc -c conftest.c >&5 -conftest.c:50:4: error: use of undeclared identifier 'not' +configure:15901: checking for ld used by g++ -std=gnu++11 +configure:15970: result: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld +configure:15977: checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld +configure:15994: result: no +configure:16049: checking whether the g++ -std=gnu++11 linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries +configure:17129: result: yes +configure:17165: g++ -std=gnu++11 -c conftest.cpp >&5 +configure:17168: $? = 0 +configure:17649: checking for g++ -std=gnu++11 option to produce PIC +configure:17658: result: -fno-common -DPIC +configure:17666: checking if g++ -std=gnu++11 PIC flag -fno-common -DPIC works +configure:17685: g++ -std=gnu++11 -c -fno-common -DPIC -DPIC conftest.cpp >&5 +configure:17689: $? = 0 +configure:17703: result: yes +configure:17726: checking if g++ -std=gnu++11 static flag -static works +configure:17756: result: no +configure:17768: checking if g++ -std=gnu++11 supports -c -o file.o +configure:17790: g++ -std=gnu++11 -c -o out/conftest2.o conftest.cpp >&5 +configure:17794: $? = 0 +configure:17817: result: yes +configure:17822: checking if g++ -std=gnu++11 supports -c -o file.o +configure:17871: result: yes +configure:17901: checking whether the g++ -std=gnu++11 linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries +configure:17941: result: yes +configure:18084: checking dynamic linker characteristics +configure:18833: result: darwin23.4.0 dyld +configure:18898: checking how to hardcode library paths into programs +configure:18923: result: immediate +configure:18991: checking for an ANSI C-conforming const +configure:19058: gcc -c -D_THREAD_SAFE -pthread conftest.c >&5 +configure:19058: $? = 0 +configure:19068: result: yes +configure:19076: checking whether byte ordering is bigendian +configure:19092: gcc -c -D_THREAD_SAFE -pthread conftest.c >&5 +configure:19092: $? = 0 +configure:19138: gcc -c -D_THREAD_SAFE -pthread conftest.c >&5 +configure:19138: $? = 0 +configure:19157: gcc -c -D_THREAD_SAFE -pthread conftest.c >&5 +conftest.c:51:4: error: use of undeclared identifier 'not' not big endian ^ 1 error generated. -configure:19034: $? = 1 +configure:19157: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libfyaml" | #define PACKAGE_TARNAME "libfyaml" -| #define PACKAGE_VERSION "0.7.12" -| #define PACKAGE_STRING "libfyaml 0.7.12" +| #define PACKAGE_VERSION "0.9" +| #define PACKAGE_STRING "libfyaml 0.9" | #define PACKAGE_BUGREPORT "pantelis.antoniou@konsulko.com" | #define PACKAGE_URL "" | #define PACKAGE "libfyaml" -| #define VERSION "0.7.12" +| #define VERSION "0.9" | #define NDEBUG 1 | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 @@ -1086,6 +1062,7 @@ configure: failed program was: | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 +| #define __STDC_WANT_IEC_60559_EXT__ 1 | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 | #define __STDC_WANT_LIB_EXT2__ 1 @@ -1110,26 +1087,26 @@ configure: failed program was: | ; | return 0; | } -configure:19168: result: no -configure:19187: checking for pid_t -configure:19187: gcc -c conftest.c >&5 -configure:19187: $? = 0 -configure:19187: gcc -c conftest.c >&5 -conftest.c:75:20: error: expected expression +configure:19298: result: no +configure:19317: checking for pid_t +configure:19317: gcc -c -D_THREAD_SAFE -pthread conftest.c >&5 +configure:19317: $? = 0 +configure:19317: gcc -c -D_THREAD_SAFE -pthread conftest.c >&5 +conftest.c:76:20: error: expected expression if (sizeof ((pid_t))) ^ 1 error generated. -configure:19187: $? = 1 +configure:19317: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libfyaml" | #define PACKAGE_TARNAME "libfyaml" -| #define PACKAGE_VERSION "0.7.12" -| #define PACKAGE_STRING "libfyaml 0.7.12" +| #define PACKAGE_VERSION "0.9" +| #define PACKAGE_STRING "libfyaml 0.9" | #define PACKAGE_BUGREPORT "pantelis.antoniou@konsulko.com" | #define PACKAGE_URL "" | #define PACKAGE "libfyaml" -| #define VERSION "0.7.12" +| #define VERSION "0.9" | #define NDEBUG 1 | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 @@ -1152,6 +1129,7 @@ configure: failed program was: | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 +| #define __STDC_WANT_IEC_60559_EXT__ 1 | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 | #define __STDC_WANT_LIB_EXT2__ 1 @@ -1200,26 +1178,26 @@ configure: failed program was: | ; | return 0; | } -configure:19187: result: yes -configure:19223: checking for size_t -configure:19223: gcc -c conftest.c >&5 -configure:19223: $? = 0 -configure:19223: gcc -c conftest.c >&5 -conftest.c:74:21: error: expected expression +configure:19317: result: yes +configure:19355: checking for size_t +configure:19355: gcc -c -D_THREAD_SAFE -pthread conftest.c >&5 +configure:19355: $? = 0 +configure:19355: gcc -c -D_THREAD_SAFE -pthread conftest.c >&5 +conftest.c:75:21: error: expected expression if (sizeof ((size_t))) ^ 1 error generated. -configure:19223: $? = 1 +configure:19355: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libfyaml" | #define PACKAGE_TARNAME "libfyaml" -| #define PACKAGE_VERSION "0.7.12" -| #define PACKAGE_STRING "libfyaml 0.7.12" +| #define PACKAGE_VERSION "0.9" +| #define PACKAGE_STRING "libfyaml 0.9" | #define PACKAGE_BUGREPORT "pantelis.antoniou@konsulko.com" | #define PACKAGE_URL "" | #define PACKAGE "libfyaml" -| #define VERSION "0.7.12" +| #define VERSION "0.9" | #define NDEBUG 1 | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 @@ -1242,6 +1220,7 @@ configure: failed program was: | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 +| #define __STDC_WANT_IEC_60559_EXT__ 1 | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 | #define __STDC_WANT_LIB_EXT2__ 1 @@ -1289,26 +1268,26 @@ configure: failed program was: | ; | return 0; | } -configure:19223: result: yes -configure:19233: checking for ssize_t -configure:19233: gcc -c conftest.c >&5 -configure:19233: $? = 0 -configure:19233: gcc -c conftest.c >&5 -conftest.c:74:22: error: expected expression +configure:19355: result: yes +configure:19366: checking for ssize_t +configure:19366: gcc -c -D_THREAD_SAFE -pthread conftest.c >&5 +configure:19366: $? = 0 +configure:19366: gcc -c -D_THREAD_SAFE -pthread conftest.c >&5 +conftest.c:75:22: error: expected expression if (sizeof ((ssize_t))) ^ 1 error generated. -configure:19233: $? = 1 +configure:19366: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libfyaml" | #define PACKAGE_TARNAME "libfyaml" -| #define PACKAGE_VERSION "0.7.12" -| #define PACKAGE_STRING "libfyaml 0.7.12" +| #define PACKAGE_VERSION "0.9" +| #define PACKAGE_STRING "libfyaml 0.9" | #define PACKAGE_BUGREPORT "pantelis.antoniou@konsulko.com" | #define PACKAGE_URL "" | #define PACKAGE "libfyaml" -| #define VERSION "0.7.12" +| #define VERSION "0.9" | #define NDEBUG 1 | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 @@ -1331,6 +1310,7 @@ configure: failed program was: | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 +| #define __STDC_WANT_IEC_60559_EXT__ 1 | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 | #define __STDC_WANT_LIB_EXT2__ 1 @@ -1378,26 +1358,26 @@ configure: failed program was: | ; | return 0; | } -configure:19233: result: yes -configure:19246: checking for off_t -configure:19246: gcc -c conftest.c >&5 -configure:19246: $? = 0 -configure:19246: gcc -c conftest.c >&5 -conftest.c:75:20: error: expected expression +configure:19366: result: yes +configure:19380: checking for off_t +configure:19380: gcc -c -D_THREAD_SAFE -pthread conftest.c >&5 +configure:19380: $? = 0 +configure:19380: gcc -c -D_THREAD_SAFE -pthread conftest.c >&5 +conftest.c:76:20: error: expected expression if (sizeof ((off_t))) ^ 1 error generated. -configure:19246: $? = 1 +configure:19380: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libfyaml" | #define PACKAGE_TARNAME "libfyaml" -| #define PACKAGE_VERSION "0.7.12" -| #define PACKAGE_STRING "libfyaml 0.7.12" +| #define PACKAGE_VERSION "0.9" +| #define PACKAGE_STRING "libfyaml 0.9" | #define PACKAGE_BUGREPORT "pantelis.antoniou@konsulko.com" | #define PACKAGE_URL "" | #define PACKAGE "libfyaml" -| #define VERSION "0.7.12" +| #define VERSION "0.9" | #define NDEBUG 1 | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 @@ -1420,6 +1400,7 @@ configure: failed program was: | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 +| #define __STDC_WANT_IEC_60559_EXT__ 1 | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 | #define __STDC_WANT_LIB_EXT2__ 1 @@ -1468,24 +1449,26 @@ configure: failed program was: | ; | return 0; | } -configure:19246: result: yes -configure:19256: checking return type of signal handlers -configure:19275: gcc -c conftest.c >&5 -conftest.c:50:8: error: indirection requires pointer operand ('void' invalid) -return *(signal (0, 0)) (0) == 1; - ^~~~~~~~~~~~~~~~~~~~ +configure:19380: result: yes +configure:19391: checking for uid_t +configure:19391: gcc -c -D_THREAD_SAFE -pthread conftest.c >&5 +configure:19391: $? = 0 +configure:19391: gcc -c -D_THREAD_SAFE -pthread conftest.c >&5 +conftest.c:76:20: error: expected expression +if (sizeof ((uid_t))) + ^ 1 error generated. -configure:19275: $? = 1 +configure:19391: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libfyaml" | #define PACKAGE_TARNAME "libfyaml" -| #define PACKAGE_VERSION "0.7.12" -| #define PACKAGE_STRING "libfyaml 0.7.12" +| #define PACKAGE_VERSION "0.9" +| #define PACKAGE_STRING "libfyaml 0.9" | #define PACKAGE_BUGREPORT "pantelis.antoniou@konsulko.com" | #define PACKAGE_URL "" | #define PACKAGE "libfyaml" -| #define VERSION "0.7.12" +| #define VERSION "0.9" | #define NDEBUG 1 | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 @@ -1508,6 +1491,7 @@ configure: failed program was: | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 +| #define __STDC_WANT_IEC_60559_EXT__ 1 | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 | #define __STDC_WANT_LIB_EXT2__ 1 @@ -1520,37 +1504,152 @@ configure: failed program was: | #define LT_OBJDIR ".libs/" | #define HAVE_SSIZE_T 1 | /* end confdefs.h. */ -| #include -| #include -| +| #include +| #ifdef HAVE_STDIO_H +| # include +| #endif +| #ifdef HAVE_STDLIB_H +| # include +| #endif +| #ifdef HAVE_STRING_H +| # include +| #endif +| #ifdef HAVE_INTTYPES_H +| # include +| #endif +| #ifdef HAVE_STDINT_H +| # include +| #endif +| #ifdef HAVE_STRINGS_H +| # include +| #endif +| #ifdef HAVE_SYS_TYPES_H +| # include +| #endif +| #ifdef HAVE_SYS_STAT_H +| # include +| #endif +| #ifdef HAVE_UNISTD_H +| # include +| #endif +| int +| main (void) +| { +| if (sizeof ((uid_t))) +| return 0; +| ; +| return 0; +| } +configure:19391: result: yes +configure:19402: checking for gid_t +configure:19402: gcc -c -D_THREAD_SAFE -pthread conftest.c >&5 +configure:19402: $? = 0 +configure:19402: gcc -c -D_THREAD_SAFE -pthread conftest.c >&5 +conftest.c:76:20: error: expected expression +if (sizeof ((gid_t))) + ^ +1 error generated. +configure:19402: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "libfyaml" +| #define PACKAGE_TARNAME "libfyaml" +| #define PACKAGE_VERSION "0.9" +| #define PACKAGE_STRING "libfyaml 0.9" +| #define PACKAGE_BUGREPORT "pantelis.antoniou@konsulko.com" +| #define PACKAGE_URL "" +| #define PACKAGE "libfyaml" +| #define VERSION "0.9" +| #define NDEBUG 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_WCHAR_H 1 +| #define STDC_HEADERS 1 +| #define _ALL_SOURCE 1 +| #define _DARWIN_C_SOURCE 1 +| #define _GNU_SOURCE 1 +| #define _HPUX_ALT_XOPEN_SOCKET_API 1 +| #define _NETBSD_SOURCE 1 +| #define _OPENBSD_SOURCE 1 +| #define _POSIX_PTHREAD_SEMANTICS 1 +| #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 +| #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 +| #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 +| #define __STDC_WANT_IEC_60559_EXT__ 1 +| #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 +| #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 +| #define __STDC_WANT_LIB_EXT2__ 1 +| #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 +| #define _TANDEM_SOURCE 1 +| #define __EXTENSIONS__ 1 +| #define HAVE_PTHREAD_PRIO_INHERIT 1 +| #define HAVE_PTHREAD 1 +| #define HAVE_DLFCN_H 1 +| #define LT_OBJDIR ".libs/" +| #define HAVE_SSIZE_T 1 +| /* end confdefs.h. */ +| #include +| #ifdef HAVE_STDIO_H +| # include +| #endif +| #ifdef HAVE_STDLIB_H +| # include +| #endif +| #ifdef HAVE_STRING_H +| # include +| #endif +| #ifdef HAVE_INTTYPES_H +| # include +| #endif +| #ifdef HAVE_STDINT_H +| # include +| #endif +| #ifdef HAVE_STRINGS_H +| # include +| #endif +| #ifdef HAVE_SYS_TYPES_H +| # include +| #endif +| #ifdef HAVE_SYS_STAT_H +| # include +| #endif +| #ifdef HAVE_UNISTD_H +| # include +| #endif | int | main (void) | { -| return *(signal (0, 0)) (0) == 1; +| if (sizeof ((gid_t))) +| return 0; | ; | return 0; | } -configure:19283: result: void -configure:19289: checking for uid_t in sys/types.h -configure:19310: result: yes -configure:19321: checking for gcc options needed to detect all undeclared functions -configure:19343: gcc -c conftest.c >&5 -conftest.c:49:8: error: implicitly declaring library function 'strchr' with type 'char *(const char *, int)' [-Werror,-Wimplicit-function-declaration] +configure:19402: result: yes +configure:19413: checking for gcc options needed to detect all undeclared functions +configure:19435: gcc -c -D_THREAD_SAFE -pthread conftest.c >&5 +conftest.c:49:8: error: call to undeclared library function 'strchr' with type 'char *(const char *, int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void) strchr; ^ conftest.c:49:8: note: include the header or explicitly provide a declaration for 'strchr' 1 error generated. -configure:19343: $? = 1 +configure:19435: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libfyaml" | #define PACKAGE_TARNAME "libfyaml" -| #define PACKAGE_VERSION "0.7.12" -| #define PACKAGE_STRING "libfyaml 0.7.12" +| #define PACKAGE_VERSION "0.9" +| #define PACKAGE_STRING "libfyaml 0.9" | #define PACKAGE_BUGREPORT "pantelis.antoniou@konsulko.com" | #define PACKAGE_URL "" | #define PACKAGE "libfyaml" -| #define VERSION "0.7.12" +| #define VERSION "0.9" | #define NDEBUG 1 | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 @@ -1573,6 +1672,7 @@ configure: failed program was: | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 +| #define __STDC_WANT_IEC_60559_EXT__ 1 | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 | #define __STDC_WANT_LIB_EXT2__ 1 @@ -1584,7 +1684,6 @@ configure: failed program was: | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SSIZE_T 1 -| #define RETSIGTYPE void | /* end confdefs.h. */ | | int @@ -1594,28 +1693,28 @@ configure: failed program was: | ; | return 0; | } -configure:19370: gcc -c conftest.c >&5 -configure:19370: $? = 0 -configure:19387: result: none needed -configure:19401: checking whether environ is declared -configure:19401: gcc -c conftest.c >&5 +configure:19462: gcc -c -D_THREAD_SAFE -pthread conftest.c >&5 +configure:19462: $? = 0 +configure:19482: result: none needed +configure:19496: checking whether environ is declared +configure:19496: gcc -c -D_THREAD_SAFE -pthread conftest.c >&5 conftest.c:80:10: error: use of undeclared identifier 'environ'; did you mean 'union'? (void) environ; ^~~~~~~ union conftest.c:80:10: error: expected expression 2 errors generated. -configure:19401: $? = 1 +configure:19496: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libfyaml" | #define PACKAGE_TARNAME "libfyaml" -| #define PACKAGE_VERSION "0.7.12" -| #define PACKAGE_STRING "libfyaml 0.7.12" +| #define PACKAGE_VERSION "0.9" +| #define PACKAGE_STRING "libfyaml 0.9" | #define PACKAGE_BUGREPORT "pantelis.antoniou@konsulko.com" | #define PACKAGE_URL "" | #define PACKAGE "libfyaml" -| #define VERSION "0.7.12" +| #define VERSION "0.9" | #define NDEBUG 1 | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 @@ -1638,6 +1737,7 @@ configure: failed program was: | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 +| #define __STDC_WANT_IEC_60559_EXT__ 1 | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 | #define __STDC_WANT_LIB_EXT2__ 1 @@ -1649,7 +1749,6 @@ configure: failed program was: | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SSIZE_T 1 -| #define RETSIGTYPE void | /* end confdefs.h. */ | #include | #ifdef HAVE_STDIO_H @@ -1693,33 +1792,111 @@ configure: failed program was: | ; | return 0; | } -configure:19401: result: no -configure:19413: checking whether C compiler accepts -Wall -configure:19433: gcc -c -pedantic -Werror -Wall conftest.c >&5 -configure:19433: $? = 0 -configure:19443: result: yes -configure:19458: : CFLAGS="$CFLAGS $flag" -configure:19461: $? = 0 -configure:19413: checking whether C compiler accepts -Wsign-compare -configure:19433: gcc -c -Wall -pedantic -Werror -Wsign-compare conftest.c >&5 -configure:19433: $? = 0 -configure:19443: result: yes -configure:19458: : CFLAGS="$CFLAGS $flag" -configure:19461: $? = 0 -configure:19413: checking whether C compiler accepts -Wno-stringop-overflow -configure:19433: gcc -c -Wall -Wsign-compare -pedantic -Werror -Wno-stringop-overflow conftest.c >&5 -error: unknown warning option '-Wno-stringop-overflow'; did you mean '-Wno-shift-overflow'? [-Werror,-Wunknown-warning-option] -configure:19433: $? = 1 +configure:19496: result: no +configure:19507: checking for byteswap.h +configure:19507: gcc -c -D_THREAD_SAFE -pthread conftest.c >&5 +conftest.c:74:10: fatal error: 'byteswap.h' file not found +#include + ^~~~~~~~~~~~ +1 error generated. +configure:19507: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "libfyaml" +| #define PACKAGE_TARNAME "libfyaml" +| #define PACKAGE_VERSION "0.9" +| #define PACKAGE_STRING "libfyaml 0.9" +| #define PACKAGE_BUGREPORT "pantelis.antoniou@konsulko.com" +| #define PACKAGE_URL "" +| #define PACKAGE "libfyaml" +| #define VERSION "0.9" +| #define NDEBUG 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_WCHAR_H 1 +| #define STDC_HEADERS 1 +| #define _ALL_SOURCE 1 +| #define _DARWIN_C_SOURCE 1 +| #define _GNU_SOURCE 1 +| #define _HPUX_ALT_XOPEN_SOCKET_API 1 +| #define _NETBSD_SOURCE 1 +| #define _OPENBSD_SOURCE 1 +| #define _POSIX_PTHREAD_SEMANTICS 1 +| #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 +| #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 +| #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 +| #define __STDC_WANT_IEC_60559_EXT__ 1 +| #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 +| #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 +| #define __STDC_WANT_LIB_EXT2__ 1 +| #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 +| #define _TANDEM_SOURCE 1 +| #define __EXTENSIONS__ 1 +| #define HAVE_PTHREAD_PRIO_INHERIT 1 +| #define HAVE_PTHREAD 1 +| #define HAVE_DLFCN_H 1 +| #define LT_OBJDIR ".libs/" +| #define HAVE_SSIZE_T 1 +| #define HAVE_DECL_ENVIRON 0 +| /* end confdefs.h. */ +| #include +| #ifdef HAVE_STDIO_H +| # include +| #endif +| #ifdef HAVE_STDLIB_H +| # include +| #endif +| #ifdef HAVE_STRING_H +| # include +| #endif +| #ifdef HAVE_INTTYPES_H +| # include +| #endif +| #ifdef HAVE_STDINT_H +| # include +| #endif +| #ifdef HAVE_STRINGS_H +| # include +| #endif +| #ifdef HAVE_SYS_TYPES_H +| # include +| #endif +| #ifdef HAVE_SYS_STAT_H +| # include +| #endif +| #ifdef HAVE_UNISTD_H +| # include +| #endif +| #include +configure:19507: result: no +configure:19514: checking for __builtin_bswap16 +configure:19514: gcc -o conftest -D_THREAD_SAFE -pthread conftest.c -lpthread >&5 +conftest.c:62:6: error: conflicting types for '__builtin_bswap16' +char __builtin_bswap16 (void); + ^ +conftest.c:62:6: note: '__builtin_bswap16' is a builtin with type 'unsigned short (unsigned short)' +conftest.c:73:27: error: too few arguments to function call, expected 1, have 0 +return __builtin_bswap16 (); + ~~~~~~~~~~~~~~~~~ ^ +2 errors generated. +configure:19514: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libfyaml" | #define PACKAGE_TARNAME "libfyaml" -| #define PACKAGE_VERSION "0.7.12" -| #define PACKAGE_STRING "libfyaml 0.7.12" +| #define PACKAGE_VERSION "0.9" +| #define PACKAGE_STRING "libfyaml 0.9" | #define PACKAGE_BUGREPORT "pantelis.antoniou@konsulko.com" | #define PACKAGE_URL "" | #define PACKAGE "libfyaml" -| #define VERSION "0.7.12" +| #define VERSION "0.9" | #define NDEBUG 1 | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 @@ -1742,6 +1919,7 @@ configure: failed program was: | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 +| #define __STDC_WANT_IEC_60559_EXT__ 1 | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 | #define __STDC_WANT_LIB_EXT2__ 1 @@ -1753,75 +1931,417 @@ configure: failed program was: | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_SSIZE_T 1 -| #define RETSIGTYPE void | #define HAVE_DECL_ENVIRON 0 | /* end confdefs.h. */ +| /* Define __builtin_bswap16 to an innocuous variant, in case declares __builtin_bswap16. +| For example, HP-UX 11i declares gettimeofday. */ +| #define __builtin_bswap16 innocuous___builtin_bswap16 +| +| /* System header to define __stub macros and hopefully few prototypes, +| which can conflict with char __builtin_bswap16 (void); below. */ +| +| #include +| #undef __builtin_bswap16 +| +| /* 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 __builtin_bswap16 (void); +| /* The GNU C library defines this for functions which it implements +| to always fail with ENOSYS. Some functions are actually named +| something starting with __ and the normal name is an alias. */ +| #if defined __stub___builtin_bswap16 || defined __stub_____builtin_bswap16 +| choke me +| #endif | | int | main (void) | { +| return __builtin_bswap16 (); +| ; +| return 0; +| } +configure:19514: result: no +configure:19520: checking for __builtin_bswap32 +configure:19520: gcc -o conftest -D_THREAD_SAFE -pthread conftest.c -lpthread >&5 +conftest.c:62:6: error: conflicting types for '__builtin_bswap32' +char __builtin_bswap32 (void); + ^ +conftest.c:62:6: note: '__builtin_bswap32' is a builtin with type 'unsigned int (unsigned int)' +conftest.c:73:27: error: too few arguments to function call, expected 1, have 0 +return __builtin_bswap32 (); + ~~~~~~~~~~~~~~~~~ ^ +2 errors generated. +configure:19520: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "libfyaml" +| #define PACKAGE_TARNAME "libfyaml" +| #define PACKAGE_VERSION "0.9" +| #define PACKAGE_STRING "libfyaml 0.9" +| #define PACKAGE_BUGREPORT "pantelis.antoniou@konsulko.com" +| #define PACKAGE_URL "" +| #define PACKAGE "libfyaml" +| #define VERSION "0.9" +| #define NDEBUG 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_WCHAR_H 1 +| #define STDC_HEADERS 1 +| #define _ALL_SOURCE 1 +| #define _DARWIN_C_SOURCE 1 +| #define _GNU_SOURCE 1 +| #define _HPUX_ALT_XOPEN_SOCKET_API 1 +| #define _NETBSD_SOURCE 1 +| #define _OPENBSD_SOURCE 1 +| #define _POSIX_PTHREAD_SEMANTICS 1 +| #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 +| #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 +| #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 +| #define __STDC_WANT_IEC_60559_EXT__ 1 +| #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 +| #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 +| #define __STDC_WANT_LIB_EXT2__ 1 +| #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 +| #define _TANDEM_SOURCE 1 +| #define __EXTENSIONS__ 1 +| #define HAVE_PTHREAD_PRIO_INHERIT 1 +| #define HAVE_PTHREAD 1 +| #define HAVE_DLFCN_H 1 +| #define LT_OBJDIR ".libs/" +| #define HAVE_SSIZE_T 1 +| #define HAVE_DECL_ENVIRON 0 +| /* end confdefs.h. */ +| /* Define __builtin_bswap32 to an innocuous variant, in case declares __builtin_bswap32. +| For example, HP-UX 11i declares gettimeofday. */ +| #define __builtin_bswap32 innocuous___builtin_bswap32 +| +| /* System header to define __stub macros and hopefully few prototypes, +| which can conflict with char __builtin_bswap32 (void); below. */ +| +| #include +| #undef __builtin_bswap32 +| +| /* 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 __builtin_bswap32 (void); +| /* The GNU C library defines this for functions which it implements +| to always fail with ENOSYS. Some functions are actually named +| something starting with __ and the normal name is an alias. */ +| #if defined __stub___builtin_bswap32 || defined __stub_____builtin_bswap32 +| choke me +| #endif | +| int +| main (void) +| { +| return __builtin_bswap32 (); | ; | return 0; | } -configure:19443: result: no -configure:19481: checking for library containing llrintf -configure:19511: gcc -o conftest -Wall -Wsign-compare -O2 conftest.c >&5 -conftest.c:50:6: warning: incompatible redeclaration of library function 'llrintf' [-Wincompatible-library-redeclaration] -char llrintf (); +configure:19520: result: no +configure:19526: checking for __builtin_bswap64 +configure:19526: gcc -o conftest -D_THREAD_SAFE -pthread conftest.c -lpthread >&5 +conftest.c:62:6: error: conflicting types for '__builtin_bswap64' +char __builtin_bswap64 (void); ^ -conftest.c:50:6: note: 'llrintf' is a builtin with type 'long long (float)' -1 warning generated. -configure:19511: $? = 0 -configure:19531: result: none required -configure:19544: checking for qsort_r -configure:19544: gcc -o conftest -Wall -Wsign-compare -O2 conftest.c >&5 -configure:19544: $? = 0 -configure:19544: result: yes -configure:19567: checking for yaml-0.1 -configure:19574: $PKG_CONFIG --exists --print-errors " yaml-0.1 " -configure:19577: $? = 0 -configure:19591: $PKG_CONFIG --exists --print-errors " yaml-0.1 " -configure:19594: $? = 0 -configure:19632: result: yes -configure:19660: checking for check -configure:19667: $PKG_CONFIG --exists --print-errors " check " +conftest.c:62:6: note: '__builtin_bswap64' is a builtin with type 'unsigned long long (unsigned long long)' +conftest.c:73:27: error: too few arguments to function call, expected 1, have 0 +return __builtin_bswap64 (); + ~~~~~~~~~~~~~~~~~ ^ +2 errors generated. +configure:19526: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "libfyaml" +| #define PACKAGE_TARNAME "libfyaml" +| #define PACKAGE_VERSION "0.9" +| #define PACKAGE_STRING "libfyaml 0.9" +| #define PACKAGE_BUGREPORT "pantelis.antoniou@konsulko.com" +| #define PACKAGE_URL "" +| #define PACKAGE "libfyaml" +| #define VERSION "0.9" +| #define NDEBUG 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_WCHAR_H 1 +| #define STDC_HEADERS 1 +| #define _ALL_SOURCE 1 +| #define _DARWIN_C_SOURCE 1 +| #define _GNU_SOURCE 1 +| #define _HPUX_ALT_XOPEN_SOCKET_API 1 +| #define _NETBSD_SOURCE 1 +| #define _OPENBSD_SOURCE 1 +| #define _POSIX_PTHREAD_SEMANTICS 1 +| #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 +| #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 +| #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 +| #define __STDC_WANT_IEC_60559_EXT__ 1 +| #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 +| #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 +| #define __STDC_WANT_LIB_EXT2__ 1 +| #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 +| #define _TANDEM_SOURCE 1 +| #define __EXTENSIONS__ 1 +| #define HAVE_PTHREAD_PRIO_INHERIT 1 +| #define HAVE_PTHREAD 1 +| #define HAVE_DLFCN_H 1 +| #define LT_OBJDIR ".libs/" +| #define HAVE_SSIZE_T 1 +| #define HAVE_DECL_ENVIRON 0 +| /* end confdefs.h. */ +| /* Define __builtin_bswap64 to an innocuous variant, in case declares __builtin_bswap64. +| For example, HP-UX 11i declares gettimeofday. */ +| #define __builtin_bswap64 innocuous___builtin_bswap64 +| +| /* System header to define __stub macros and hopefully few prototypes, +| which can conflict with char __builtin_bswap64 (void); below. */ +| +| #include +| #undef __builtin_bswap64 +| +| /* 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 __builtin_bswap64 (void); +| /* The GNU C library defines this for functions which it implements +| to always fail with ENOSYS. Some functions are actually named +| something starting with __ and the normal name is an alias. */ +| #if defined __stub___builtin_bswap64 || defined __stub_____builtin_bswap64 +| choke me +| #endif +| +| int +| main (void) +| { +| return __builtin_bswap64 (); +| ; +| return 0; +| } +configure:19526: result: no +configure:19536: checking whether C compiler accepts -Wall +configure:19556: gcc -c -D_THREAD_SAFE -pthread -pedantic -Werror -Wall conftest.c >&5 +configure:19556: $? = 0 +configure:19568: result: yes +configure:19583: : CFLAGS="$CFLAGS $flag" +configure:19586: $? = 0 +configure:19536: checking whether C compiler accepts -Wsign-compare +configure:19556: gcc -c -D_THREAD_SAFE -pthread -Wall -pedantic -Werror -Wsign-compare conftest.c >&5 +configure:19556: $? = 0 +configure:19568: result: yes +configure:19583: : CFLAGS="$CFLAGS $flag" +configure:19586: $? = 0 +configure:19536: checking whether C compiler accepts -Wno-stringop-overflow +configure:19556: gcc -c -D_THREAD_SAFE -pthread -Wall -Wsign-compare -pedantic -Werror -Wno-stringop-overflow conftest.c >&5 +error: unknown warning option '-Wno-stringop-overflow'; did you mean '-Wno-shift-overflow'? [-Werror,-Wunknown-warning-option] +configure:19556: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "libfyaml" +| #define PACKAGE_TARNAME "libfyaml" +| #define PACKAGE_VERSION "0.9" +| #define PACKAGE_STRING "libfyaml 0.9" +| #define PACKAGE_BUGREPORT "pantelis.antoniou@konsulko.com" +| #define PACKAGE_URL "" +| #define PACKAGE "libfyaml" +| #define VERSION "0.9" +| #define NDEBUG 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_WCHAR_H 1 +| #define STDC_HEADERS 1 +| #define _ALL_SOURCE 1 +| #define _DARWIN_C_SOURCE 1 +| #define _GNU_SOURCE 1 +| #define _HPUX_ALT_XOPEN_SOCKET_API 1 +| #define _NETBSD_SOURCE 1 +| #define _OPENBSD_SOURCE 1 +| #define _POSIX_PTHREAD_SEMANTICS 1 +| #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 +| #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 +| #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 +| #define __STDC_WANT_IEC_60559_EXT__ 1 +| #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 +| #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 +| #define __STDC_WANT_LIB_EXT2__ 1 +| #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 +| #define _TANDEM_SOURCE 1 +| #define __EXTENSIONS__ 1 +| #define HAVE_PTHREAD_PRIO_INHERIT 1 +| #define HAVE_PTHREAD 1 +| #define HAVE_DLFCN_H 1 +| #define LT_OBJDIR ".libs/" +| #define HAVE_SSIZE_T 1 +| #define HAVE_DECL_ENVIRON 0 +| /* end confdefs.h. */ +| +| int +| main (void) +| { +| +| ; +| return 0; +| } +configure:19568: result: no +configure:19536: checking whether C compiler accepts -fvisibility=hidden +configure:19556: gcc -c -D_THREAD_SAFE -pthread -Wall -Wsign-compare -pedantic -Werror -fvisibility=hidden conftest.c >&5 +configure:19556: $? = 0 +configure:19568: result: yes +configure:19583: : CFLAGS="$CFLAGS $flag" +configure:19586: $? = 0 +configure:19628: checking whether C compiler accepts -Wstringop-overread +configure:19648: gcc -c -D_THREAD_SAFE -pthread -Wall -Wsign-compare -fvisibility=hidden -O2 -Werror -Wstringop-overread conftest.c >&5 +error: unknown warning option '-Wstringop-overread' [-Werror,-Wunknown-warning-option] +configure:19648: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "libfyaml" +| #define PACKAGE_TARNAME "libfyaml" +| #define PACKAGE_VERSION "0.9" +| #define PACKAGE_STRING "libfyaml 0.9" +| #define PACKAGE_BUGREPORT "pantelis.antoniou@konsulko.com" +| #define PACKAGE_URL "" +| #define PACKAGE "libfyaml" +| #define VERSION "0.9" +| #define NDEBUG 1 +| #define HAVE_STDIO_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_WCHAR_H 1 +| #define STDC_HEADERS 1 +| #define _ALL_SOURCE 1 +| #define _DARWIN_C_SOURCE 1 +| #define _GNU_SOURCE 1 +| #define _HPUX_ALT_XOPEN_SOCKET_API 1 +| #define _NETBSD_SOURCE 1 +| #define _OPENBSD_SOURCE 1 +| #define _POSIX_PTHREAD_SEMANTICS 1 +| #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 +| #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 +| #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 +| #define __STDC_WANT_IEC_60559_EXT__ 1 +| #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 +| #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 +| #define __STDC_WANT_LIB_EXT2__ 1 +| #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 +| #define _TANDEM_SOURCE 1 +| #define __EXTENSIONS__ 1 +| #define HAVE_PTHREAD_PRIO_INHERIT 1 +| #define HAVE_PTHREAD 1 +| #define HAVE_DLFCN_H 1 +| #define LT_OBJDIR ".libs/" +| #define HAVE_SSIZE_T 1 +| #define HAVE_DECL_ENVIRON 0 +| #define HAVE_STATIC 1 +| /* end confdefs.h. */ +| +| int +| main (void) +| { +| +| ; +| return 0; +| } +configure:19659: result: no +configure:20149: checking for qsort_r +configure:20149: gcc -o conftest -D_THREAD_SAFE -pthread -Wall -Wsign-compare -fvisibility=hidden -O2 conftest.c -lpthread >&5 +configure:20149: $? = 0 +configure:20149: result: yes +configure:20173: checking for yaml-0.1 +configure:20180: $PKG_CONFIG --exists --print-errors " yaml-0.1 " +configure:20183: $? = 0 +configure:20197: $PKG_CONFIG --exists --print-errors " yaml-0.1 " +configure:20200: $? = 0 +configure:20238: result: yes +configure:20266: checking for check +configure:20273: $PKG_CONFIG --exists --print-errors " check " Package check was not found in the pkg-config search path. Perhaps you should add the directory containing `check.pc' to the PKG_CONFIG_PATH environment variable No package 'check' found -configure:19670: $? = 1 -configure:19684: $PKG_CONFIG --exists --print-errors " check " +configure:20276: $? = 1 +configure:20290: $PKG_CONFIG --exists --print-errors " check " Package check was not found in the pkg-config search path. Perhaps you should add the directory containing `check.pc' to the PKG_CONFIG_PATH environment variable No package 'check' found -configure:19687: $? = 1 -configure:19701: result: no +configure:20293: $? = 1 +configure:20307: result: no No package 'check' found -configure:19830: checking for sphinx-build -configure:19868: result: no -configure:19999: checking for git -configure:20022: found /opt/homebrew/bin/git -configure:20034: result: /opt/homebrew/bin/git -configure:20086: checking for docker -configure:20109: found /usr/local/bin/docker -configure:20121: result: /usr/local/bin/docker -configure:20146: checking for jq -configure:20169: found /opt/homebrew/bin/jq -configure:20181: result: /opt/homebrew/bin/jq -configure:20233: checking for sed -configure:20266: result: /usr/bin/sed -configure:20431: checking that generated files are newer than configure -configure:20437: result: done -configure:20505: creating ./config.status +configure:20437: checking for sphinx-build +configure:20476: result: no +configure:20608: checking for git +configure:20631: found /usr/bin/git +configure:20644: result: /usr/bin/git +configure:20696: checking for docker +configure:20719: found /Users/kdubb/.rd/bin/docker +configure:20732: result: /Users/kdubb/.rd/bin/docker +configure:20757: checking for jq +configure:20780: found /opt/homebrew/bin/jq +configure:20793: result: /opt/homebrew/bin/jq +configure:20856: checking for llvm-config +configure:20895: result: no +configure:20856: checking for llvm-config-15 +configure:20895: result: no +configure:20856: checking for llvm-config-14 +configure:20895: result: no +configure:20856: checking for llvm-config-13 +configure:20895: result: no +configure:20856: checking for llvm-config-12 +configure:20895: result: no +configure:20856: checking for llvm-config-11 +configure:20895: result: no +configure:20856: checking for llvm-config-10 +configure:20895: result: no +configure:21040: checking for sed +configure:21074: result: /usr/bin/sed +configure:21239: checking that generated files are newer than configure +configure:21245: result: done +configure:21377: creating ./config.status ## ---------------------- ## ## Running config.status. ## ## ---------------------- ## -This file was extended by libfyaml config.status 0.7.12, which was -generated by GNU Autoconf 2.71. Invocation command line was +This file was extended by libfyaml config.status 0.9, which was +generated by GNU Autoconf 2.72. Invocation command line was CONFIG_FILES = CONFIG_HEADERS = @@ -1831,31 +2351,35 @@ generated by GNU Autoconf 2.71. Invocation command line was on Kevins-Mac-Studio.local -config.status:1253: creating build-aux/shave -config.status:1253: creating build-aux/shave-libtool -config.status:1253: creating Makefile -config.status:1253: creating src/Makefile -config.status:1253: creating test/Makefile -config.status:1253: creating doc/Makefile -config.status:1253: creating libfyaml.pc -config.status:1253: creating config.h -config.status:1482: executing depfiles commands -config.status:1559: cd src && sed -e '/# am--include-marker/d' Makefile | make -f - am--depfiles -config.status:1564: $? = 0 -config.status:1559: cd test && sed -e '/# am--include-marker/d' Makefile | make -f - am--depfiles -config.status:1564: $? = 0 -config.status:1482: executing libtool commands +config.status:1308: creating build-aux/shave +config.status:1308: creating build-aux/shave-libtool +config.status:1308: creating Makefile +config.status:1308: creating src/Makefile +config.status:1308: creating test/Makefile +config.status:1308: creating doc/Makefile +config.status:1308: creating libfyaml.pc +config.status:1308: creating config.h +config.status:1537: executing depfiles commands +config.status:1614: cd src && sed -e '/# am--include-marker/d' Makefile | make -f - am--depfiles +config.status:1619: $? = 0 +config.status:1614: cd test && sed -e '/# am--include-marker/d' Makefile | make -f - am--depfiles +config.status:1619: $? = 0 +config.status:1537: executing libtool commands ## ---------------- ## ## Cache variables. ## ## ---------------- ## -ac_cv_build=aarch64-apple-darwin22.2.0 +ac_cv_build=aarch64-apple-darwin23.4.0 ac_cv_c_bigendian=no ac_cv_c_compiler_gnu=yes ac_cv_c_const=yes ac_cv_c_undeclared_builtin_options='none needed' ac_cv_cxx_compiler_gnu=yes +ac_cv_env_CCASFLAGS_set= +ac_cv_env_CCASFLAGS_value= +ac_cv_env_CCAS_set= +ac_cv_env_CCAS_value= ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_set= @@ -1868,8 +2392,6 @@ ac_cv_env_CHECK_LIBS_set= ac_cv_env_CHECK_LIBS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= -ac_cv_env_CPP_set= -ac_cv_env_CPP_value= ac_cv_env_CXXCPP_set= ac_cv_env_CXXCPP_value= ac_cv_env_CXXFLAGS_set= @@ -1906,8 +2428,12 @@ ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= +ac_cv_func___builtin_bswap16=no +ac_cv_func___builtin_bswap32=no +ac_cv_func___builtin_bswap64=no ac_cv_func_qsort_r=yes ac_cv_have_decl_environ=no +ac_cv_header_byteswap_h=no ac_cv_header_dlfcn_h=yes ac_cv_header_inttypes_h=yes ac_cv_header_minix_config_h=no @@ -1920,28 +2446,28 @@ ac_cv_header_sys_stat_h=yes ac_cv_header_sys_types_h=yes ac_cv_header_unistd_h=yes ac_cv_header_wchar_h=yes -ac_cv_host=aarch64-apple-darwin22.2.0 +ac_cv_host=aarch64-apple-darwin23.4.0 ac_cv_lib_dl_dlopen=yes ac_cv_objext=o -ac_cv_path_DOCKER=/usr/local/bin/docker +ac_cv_path_DOCKER=/Users/kdubb/.rd/bin/docker ac_cv_path_EGREP='/usr/bin/grep -E' +ac_cv_path_EGREP_TRADITIONAL='/usr/bin/grep -E' ac_cv_path_FGREP='/usr/bin/grep -F' -ac_cv_path_GIT=/opt/homebrew/bin/git +ac_cv_path_GIT=/usr/bin/git ac_cv_path_GREP=/usr/bin/grep ac_cv_path_JQ=/opt/homebrew/bin/jq ac_cv_path_M4=/usr/bin/m4 ac_cv_path_SED=/usr/bin/sed ac_cv_path_ac_pt_PKG_CONFIG=/opt/homebrew/bin/pkg-config -ac_cv_path_install='/usr/bin/install -c' +ac_cv_path_install='/opt/homebrew/bin/ginstall -c' ac_cv_path_lt_DD=/bin/dd +ac_cv_path_mkdir=/opt/homebrew/bin/gmkdir ac_cv_prog_AWK=awk -ac_cv_prog_CPP='gcc -E' -ac_cv_prog_CXXCPP='g++ -E' +ac_cv_prog_CXXCPP='g++ -std=gnu++11 -E' ac_cv_prog_SED=/usr/bin/sed ac_cv_prog_ac_ct_AR=ar ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_ac_ct_CXX=g++ -ac_cv_prog_ac_ct_DLLTOOL=dlltool ac_cv_prog_ac_ct_DSYMUTIL=dsymutil ac_cv_prog_ac_ct_FILECMD=file ac_cv_prog_ac_ct_LIPO=lipo @@ -1953,30 +2479,32 @@ ac_cv_prog_ac_ct_STRIP=strip ac_cv_prog_cc_c11= ac_cv_prog_cc_g=yes ac_cv_prog_cc_stdc= -ac_cv_prog_cxx_11=no +ac_cv_prog_cxx_cxx11=-std=gnu++11 ac_cv_prog_cxx_g=yes -ac_cv_prog_cxx_stdcxx= -ac_cv_prog_gcc_traditional=no +ac_cv_prog_cxx_stdcxx=-std=gnu++11 ac_cv_prog_make_make_set=yes ac_cv_safe_to_define___extensions__=yes -ac_cv_search_llrintf='none required' ac_cv_should_define__xopen_source=no +ac_cv_target=aarch64-apple-darwin23.4.0 +ac_cv_type_gid_t=yes ac_cv_type_off_t=yes ac_cv_type_pid_t=yes -ac_cv_type_signal=void ac_cv_type_size_t=yes ac_cv_type_ssize_t=yes ac_cv_type_uid_t=yes +am_cv_CCAS_dependencies_compiler_type=gcc3 am_cv_CC_dependencies_compiler_type=gcc3 am_cv_CXX_dependencies_compiler_type=gcc3 am_cv_ar_interface=ar am_cv_make_support_nested_variables=yes am_cv_prog_cc_c_o=yes ax_cv_PTHREAD_PRIO_INHERIT=yes +ax_cv_check_cflags__Werror__Wstringop_overread=no ax_cv_check_cflags__pedantic__Werror__Wall=yes ax_cv_check_cflags__pedantic__Werror__Wno_stringop_overflow=no ax_cv_check_cflags__pedantic__Werror__Wsign_compare=yes -lt_cv_apple_cc_single_mod=yes +ax_cv_check_cflags__pedantic__Werror__fvisibility_hidden=yes +lt_cv_apple_cc_single_mod=no lt_cv_ar_at_file=no lt_cv_deplibs_check_method=pass_all lt_cv_dlopen=dlopen @@ -2035,30 +2563,33 @@ AM_MAKEFLAGS='`test -z $V && echo -s`' AM_V='$(V)' AR='ar' AS='as' +ASAN_CFLAGS='' +ASAN_LIBS='' AUTOCONF='${SHELL} '\''/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/missing'\'' autoconf' AUTOHEADER='${SHELL} '\''/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/missing'\'' autoheader' AUTOMAKE='${SHELL} '\''/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/missing'\'' automake-1.16' AWK='awk' CC='/bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave cc gcc' -CCAS='/bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave ccas ' +CCAS='/bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave ccas gcc' +CCASDEPMODE='depmode=gcc3' +CCASFLAGS='' CCDEPMODE='depmode=gcc3' -CFLAGS=' -Wall -Wsign-compare -O2' +CFLAGS='-D_THREAD_SAFE -pthread -Wall -Wsign-compare -fvisibility=hidden -O2' CHECK_CFLAGS='' CHECK_LDFLAGS='' CHECK_LIBS='' -CPP='gcc -E' CPPFLAGS='' CSCOPE='cscope' CTAGS='ctags' -CXX='/bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave cxx g++' -CXXCPP='g++ -E' +CXX='/bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave cxx g++ -std=gnu++11' +CXXCPP='g++ -std=gnu++11 -E' CXXDEPMODE='depmode=gcc3' CXXFLAGS='' CYGPATH_W='echo' DEFS='-DHAVE_CONFIG_H' DEPDIR='.deps' -DLLTOOL='dlltool' -DOCKER='/usr/local/bin/docker' +DLLTOOL='false' +DOCKER='/Users/kdubb/.rd/bin/docker' DSYMUTIL='dsymutil' DUMPBIN='' ECHO_C='\c' @@ -2072,8 +2603,11 @@ F77='/bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-a FC='/bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave fc ' FGREP='/usr/bin/grep -F' FILECMD='file' -GIT='/opt/homebrew/bin/git' +GIT='/usr/bin/git' GREP='/usr/bin/grep' +HAVE_ASAN='0' +HAVE_ASAN_FALSE='' +HAVE_ASAN_TRUE='#' HAVE_CHECK='0' HAVE_CHECK_FALSE='' HAVE_CHECK_TRUE='#' @@ -2089,18 +2623,26 @@ HAVE_GIT_FALSE='#' HAVE_GIT_TRUE='' HAVE_JQ_FALSE='#' HAVE_JQ_TRUE='' +HAVE_LIBCLANG='0' +HAVE_LIBCLANG_FALSE='' +HAVE_LIBCLANG_TRUE='#' HAVE_LIBYAML='1' HAVE_LIBYAML_FALSE='#' HAVE_LIBYAML_TRUE='' HAVE_NETWORK='1' HAVE_NETWORK_FALSE='#' HAVE_NETWORK_TRUE='' +HAVE_PORTABLE_TARGET='0' +HAVE_PORTABLE_TARGET_FALSE='' +HAVE_PORTABLE_TARGET_TRUE='#' HAVE_QSORT_R='1' HAVE_QSORT_R_FALSE='#' HAVE_QSORT_R_TRUE='' HAVE_SPHINX_FALSE='' HAVE_SPHINX_TRUE='#' -INCLTDL='-I$(top_srcdir)/libltdl' +HAVE_STATIC='1' +HAVE_STATIC_FALSE='#' +HAVE_STATIC_TRUE='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' @@ -2111,17 +2653,21 @@ JSONTESTSUITEURL='https://github.com/nst/JSONTestSuite' LD='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld' LDFLAGS='' LEX='/bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave lex ' -LIBLTDL='$(top_build_prefix)libltdl/libltdl.la' +LIBCLANG_CFLAGS='' +LIBCLANG_CPPFLAGS='' +LIBCLANG_LDFLAGS='' +LIBCLANG_LIBS='' +LIBLTDL='' LIBOBJS='' -LIBS='' +LIBS=' -lpthread' LIBTOOL='/bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave-libtool '\''$(SHELL) $(top_builddir)/libtool'\''' -LIBTOOL_VERSION='1:2:0' +LIBTOOL_VERSION='1:4:2' LIBYAML_CFLAGS='-I/opt/homebrew/Cellar/libyaml/0.2.5/include' LIBYAML_LIBS='-L/opt/homebrew/Cellar/libyaml/0.2.5/lib -lyaml' LIPO='lipo' +LLVM_CONFIG='' LN_S='ln -s' -LTDLDEPS='$(top_build_prefix)libltdl/libltdl.la' -LTDLINCL='-I$(top_srcdir)/libltdl' +LTDLINCL='' LTLIBOBJS='' LT_SYS_LIBRARY_PATH='' M4='/usr/bin/m4' @@ -2130,8 +2676,8 @@ MAKEFLAGS='-s' MAKEINFO='${SHELL} '\''/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/missing'\'' makeinfo' MANIFEST_TOOL=':' MCS='/bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave mcs ' -MINOR='7' -MKDIR_P='./build-aux/install-sh -c -d' +MINOR='9' +MKDIR_P='/opt/homebrew/bin/gmkdir -p' NM='/usr/bin/nm -B' NMEDIT='nmedit' OBJC='/bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave objc ' @@ -2142,11 +2688,11 @@ OTOOL='otool' PACKAGE='libfyaml' PACKAGE_BUGREPORT='pantelis.antoniou@konsulko.com' PACKAGE_NAME='libfyaml' -PACKAGE_STRING='libfyaml 0.7.12' +PACKAGE_STRING='libfyaml 0.9' PACKAGE_TARNAME='libfyaml' PACKAGE_URL='' -PACKAGE_VERSION='0.7.12' -PATCH='12' +PACKAGE_VERSION='0.9' +PATCH='' PATH_SEPARATOR=':' PIP3='' PKG_CONFIG='/opt/homebrew/bin/pkg-config' @@ -2154,7 +2700,7 @@ PKG_CONFIG_LIBDIR='' PKG_CONFIG_PATH='' PTHREAD_CC='gcc' PTHREAD_CFLAGS='-D_THREAD_SAFE -pthread' -PTHREAD_LIBS='' +PTHREAD_LIBS='-lpthread' Q='$(V:1=)' RANLIB='ranlib' SED='/usr/bin/sed' @@ -2162,10 +2708,32 @@ SET_MAKE='' SHELL='/bin/sh' SPHINX='' STRIP='strip' +TARGET_CPU_ANY_ARM_FALSE='#' +TARGET_CPU_ANY_ARM_TRUE='' +TARGET_CPU_ANY_X86_FALSE='' +TARGET_CPU_ANY_X86_TRUE='#' +TARGET_CPU_ARM64_FALSE='#' +TARGET_CPU_ARM64_TRUE='' +TARGET_CPU_ARM_FALSE='' +TARGET_CPU_ARM_TRUE='#' +TARGET_CPU_X86_64_FALSE='' +TARGET_CPU_X86_64_TRUE='#' +TARGET_CPU_X86_FALSE='' +TARGET_CPU_X86_TRUE='#' +TARGET_HAS_AVX2_FALSE='' +TARGET_HAS_AVX2_TRUE='#' +TARGET_HAS_AVX512_FALSE='' +TARGET_HAS_AVX512_TRUE='#' +TARGET_HAS_NEON_FALSE='#' +TARGET_HAS_NEON_TRUE='' +TARGET_HAS_SSE2_FALSE='' +TARGET_HAS_SSE2_TRUE='#' +TARGET_HAS_SSE41_FALSE='' +TARGET_HAS_SSE41_TRUE='#' TESTSUITECHECKOUT='6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f' TESTSUITEURL='https://github.com/yaml/yaml-test-suite' V='@' -VERSION='0.7.12' +VERSION='0.9' YACC='/bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave yacc ' ac_ct_AR='ar' ac_ct_CC='gcc' @@ -2173,6 +2741,8 @@ ac_ct_CXX='g++' ac_ct_DUMPBIN='' am__EXEEXT_FALSE='' am__EXEEXT_TRUE='#' +am__fastdepCCAS_FALSE='#' +am__fastdepCCAS_TRUE='' am__fastdepCC_FALSE='#' am__fastdepCC_TRUE='' am__fastdepCXX_FALSE='#' @@ -2186,20 +2756,20 @@ am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' ax_pthread_config='' bindir='${exec_prefix}/bin' -build='aarch64-apple-darwin22.2.0' +build='aarch64-apple-darwin23.4.0' build_alias='' build_cpu='aarch64' -build_os='darwin22.2.0' +build_os='darwin23.4.0' build_vendor='apple' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='${prefix}' -host='aarch64-apple-darwin22.2.0' +host='aarch64-apple-darwin23.4.0' host_alias='' host_cpu='aarch64' -host_os='darwin22.2.0' +host_os='darwin23.4.0' host_vendor='apple' htmldir='${docdir}' includedir='${prefix}/include' @@ -2222,7 +2792,11 @@ sharedstatedir='${prefix}/com' shavedir='/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux' subdirs=' libltdl' sysconfdir='${prefix}/etc' +target='aarch64-apple-darwin23.4.0' target_alias='' +target_cpu='aarch64' +target_os='darwin23.4.0' +target_vendor='apple' ## ----------- ## ## confdefs.h. ## @@ -2231,12 +2805,12 @@ target_alias='' /* confdefs.h */ #define PACKAGE_NAME "libfyaml" #define PACKAGE_TARNAME "libfyaml" -#define PACKAGE_VERSION "0.7.12" -#define PACKAGE_STRING "libfyaml 0.7.12" +#define PACKAGE_VERSION "0.9" +#define PACKAGE_STRING "libfyaml 0.9" #define PACKAGE_BUGREPORT "pantelis.antoniou@konsulko.com" #define PACKAGE_URL "" #define PACKAGE "libfyaml" -#define VERSION "0.7.12" +#define VERSION "0.9" #define NDEBUG 1 #define HAVE_STDIO_H 1 #define HAVE_STDLIB_H 1 @@ -2259,6 +2833,7 @@ target_alias='' #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 +#define __STDC_WANT_IEC_60559_EXT__ 1 #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 #define __STDC_WANT_LIB_EXT2__ 1 @@ -2270,8 +2845,12 @@ target_alias='' #define HAVE_DLFCN_H 1 #define LT_OBJDIR ".libs/" #define HAVE_SSIZE_T 1 -#define RETSIGTYPE void #define HAVE_DECL_ENVIRON 0 +#define HAVE_STATIC 1 +#define HAVE_WSTRINGOP_OVERREAD 0 +#define HAVE_PORTABLE_TARGET 0 +#define TARGET_HAS_NEON 1 +#define HAVE_ASAN 0 #define HAVE_QSORT_R 1 #define HAVE_LIBYAML 1 #define HAVE_CHECK 0 @@ -2280,5 +2859,6 @@ target_alias='' #define HAVE_SPHINX 0 #define HAVE_GIT 1 #define HAVE_JQ 1 +#define HAVE_LIBCLANG 0 configure: exit 0 diff --git a/Sources/Cfyaml/config.status b/Sources/Cfyaml/config.status index d4e1919fb..9e0d0ebb0 100755 --- a/Sources/Cfyaml/config.status +++ b/Sources/Cfyaml/config.status @@ -16,7 +16,6 @@ export SHELL # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh @@ -25,12 +24,13 @@ then : # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else $as_nop - case `(set -o) 2>/dev/null` in #( +else case e in #( + e) case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; +esac ;; esac fi @@ -102,7 +102,7 @@ IFS=$as_save_IFS ;; esac -# We did not find ourselves, most probably we were run as `sh COMMAND' +# We did not find ourselves, most probably we were run as 'sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 @@ -131,7 +131,6 @@ as_fn_error () } # as_fn_error - # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -171,11 +170,12 @@ then : { eval $1+=\$2 }' -else $as_nop - as_fn_append () +else case e in #( + e) as_fn_append () { eval $1=\$$1\$2 - } + } ;; +esac fi # as_fn_append # as_fn_arith ARG... @@ -189,11 +189,12 @@ then : { as_val=$(( $* )) }' -else $as_nop - as_fn_arith () +else case e in #( + e) as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` - } + } ;; +esac fi # as_fn_arith @@ -276,9 +277,9 @@ if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. + # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. + # In both cases, we have to default to 'cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then @@ -359,10 +360,12 @@ as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" +as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated # Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" +as_tr_sh="eval sed '$as_sed_sh'" # deprecated exec 6>&1 @@ -373,8 +376,8 @@ exec 6>&1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by libfyaml $as_me 0.7.12, which was -generated by GNU Autoconf 2.71. Invocation command line was +This file was extended by libfyaml $as_me 0.9, which was +generated by GNU Autoconf 2.72. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -391,7 +394,7 @@ config_headers=" config.h" config_commands=" depfiles libtool" ac_cs_usage="\ -\`$as_me' instantiates files and other configuration actions +'$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. @@ -420,20 +423,20 @@ $config_commands Report bugs to ." -ac_cs_config='--enable-ltdl-install' +ac_cs_config='' ac_cs_version="\ -libfyaml config.status 0.7.12 -configured by ./configure, generated by GNU Autoconf 2.71, +libfyaml config.status 0.9 +configured by ./configure, generated by GNU Autoconf 2.72, with options \"$ac_cs_config\" -Copyright (C) 2021 Free Software Foundation, Inc. +Copyright (C) 2023 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml' srcdir='.' -INSTALL='/usr/bin/install -c' -MKDIR_P='./build-aux/install-sh -c -d' +INSTALL='/opt/homebrew/bin/ginstall -c' +MKDIR_P='/opt/homebrew/bin/gmkdir -p' AWK='awk' test -n "$AWK" || AWK=awk # The default lists apply if the user does not specify any file. @@ -485,8 +488,8 @@ do ac_need_defaults=false;; --he | --h) # Conflict between --help and --header - as_fn_error $? "ambiguous option: \`$1' -Try \`$0 --help' for more information.";; + as_fn_error $? "ambiguous option: '$1' +Try '$0 --help' for more information.";; --help | --hel | -h ) printf "%s\n" "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ @@ -494,8 +497,8 @@ Try \`$0 --help' for more information.";; ac_cs_silent=: ;; # This is an error. - -*) as_fn_error $? "unrecognized option: \`$1' -Try \`$0 --help' for more information." ;; + -*) as_fn_error $? "unrecognized option: '$1' +Try '$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; @@ -512,7 +515,7 @@ if $ac_cs_silent; then fi if $ac_cs_recheck; then - set X /bin/sh './configure' --enable-ltdl-install $ac_configure_extra_args --no-create --no-recursion + set X /bin/sh './configure' $ac_configure_extra_args --no-create --no-recursion shift \printf "%s\n" "running CONFIG_SHELL=/bin/sh $*" >&6 CONFIG_SHELL='/bin/sh' @@ -542,11 +545,11 @@ AMDEP_TRUE="" MAKE="make" sed_quote_subst='s/\(["`$\\]\)/\\\1/g' double_quote_subst='s/\(["`\\]\)/\\\1/g' delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' -AS='as' -DLLTOOL='dlltool' -OBJDUMP='objdump' macro_version='2.4.7' macro_revision='2.4.7' +AS='as' +DLLTOOL='false' +OBJDUMP='objdump' enable_shared='yes' enable_static='yes' pic_mode='default' @@ -556,11 +559,11 @@ SHELL='/bin/sh' ECHO='printf %s\n' PATH_SEPARATOR=':' host_alias='' -host='aarch64-apple-darwin22.2.0' -host_os='darwin22.2.0' +host='aarch64-apple-darwin23.4.0' +host_os='darwin23.4.0' build_alias='' -build='aarch64-apple-darwin22.2.0' -build_os='darwin22.2.0' +build='aarch64-apple-darwin23.4.0' +build_os='darwin23.4.0' SED='/usr/bin/sed' Xsed='/usr/bin/sed -e 1s/^X//' GREP='/usr/bin/grep' @@ -596,8 +599,8 @@ old_postuninstall_cmds='' old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs~$RANLIB $tool_oldlib' lock_old_archive_extraction='yes' CC='/bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave cc gcc' -CFLAGS=' -Wall -Wsign-compare -O2' -compiler='g++' +CFLAGS='-D_THREAD_SAFE -pthread -Wall -Wsign-compare -fvisibility=hidden -O2' +compiler='g++ -std=gnu++11' GCC='yes' lt_cv_sys_global_symbol_pipe='/usr/bin/sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p'\'' | /usr/bin/sed '\''/ __gnu_lto/d'\''' lt_cv_sys_global_symbol_to_cdecl='/usr/bin/sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p'\''' @@ -632,8 +635,8 @@ whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && compiler_needs_object='no' old_archive_from_new_cmds='' old_archive_from_expsyms_cmds='' -archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring $single_module' -archive_expsym_cmds='/usr/bin/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 $single_module $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' +archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring ' +archive_expsym_cmds='/usr/bin/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 $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs $compiler_flags' module_expsym_cmds='/usr/bin/sed -e '\''s|^|_|'\'' < $export_symbols > $output_objdir/$libname-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs $compiler_flags $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' with_gnu_ld='no' @@ -671,7 +674,7 @@ postuninstall_cmds='' finish_cmds='' finish_eval='' hardcode_into_libs='no' -sys_lib_search_path_spec='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.0 /usr/local/lib' +sys_lib_search_path_spec='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0 /usr/local/lib' configure_time_dlsearch_path='/usr/local/lib /lib /usr/lib' configure_time_lt_sys_library_path='' hardcode_action='immediate' @@ -690,7 +693,7 @@ LD_CXX='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoo reload_flag_CXX=' -r' reload_cmds_CXX='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' old_archive_cmds_CXX='$AR $AR_FLAGS $oldlib$oldobjs~$RANLIB $tool_oldlib' -compiler_CXX='g++' +compiler_CXX='g++ -std=gnu++11' GCC_CXX='yes' lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' lt_prog_compiler_pic_CXX=' -fno-common -DPIC' @@ -704,8 +707,8 @@ whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\ compiler_needs_object_CXX='no' old_archive_from_new_cmds_CXX='' old_archive_from_expsyms_cmds_CXX='' -archive_cmds_CXX='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring $single_module' -archive_expsym_cmds_CXX='/usr/bin/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 $single_module $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' +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' +archive_expsym_cmds_CXX='/usr/bin/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 $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs $compiler_flags' module_expsym_cmds_CXX='/usr/bin/sed -e '\''s|^|_|'\'' < $export_symbols > $output_objdir/$libname-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs $compiler_flags $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' with_gnu_ld_CXX='no' @@ -736,7 +739,7 @@ postdeps_CXX='' compiler_lib_search_path_CXX='' LTCC='gcc' -LTCFLAGS='' +LTCFLAGS=' -D_THREAD_SAFE -pthread' compiler='gcc' # A function that is used when there is no print builtin or printf. @@ -781,7 +784,7 @@ fi PACKAGE='libfyaml' - VERSION='0.7.12' + VERSION='0.9' RM='rm -f' ofile='libtool' @@ -806,7 +809,7 @@ do "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; "libfyaml.pc") CONFIG_FILES="$CONFIG_FILES libfyaml.pc" ;; - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; esac done @@ -826,7 +829,7 @@ fi # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. +# after its creation but before its name has been assigned to '$tmp'. $debug || { tmp= ac_tmp= @@ -850,7 +853,7 @@ ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. -# This happens for instance with `./config.status config.h'. +# This happens for instance with './config.status config.h'. if test -n "$CONFIG_FILES"; then @@ -882,23 +885,30 @@ S["MCS"]="/bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/bu S["OBJC"]="/bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave objc " S["F77"]="/bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave f77 " S["FC"]="/bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave fc " -S["CCAS"]="/bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave ccas " S["AM_MAKEFLAGS"]="`test -z $V && echo -s`" S["MAKEFLAGS"]="-s" S["shavedir"]="/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux" +S["HAVE_LIBCLANG_FALSE"]="" +S["HAVE_LIBCLANG_TRUE"]="#" +S["LIBCLANG_LIBS"]="" +S["LIBCLANG_LDFLAGS"]="" +S["LIBCLANG_CPPFLAGS"]="" +S["LIBCLANG_CFLAGS"]="" +S["HAVE_LIBCLANG"]="0" +S["LLVM_CONFIG"]="" S["HAVE_JQ_FALSE"]="#" S["HAVE_JQ_TRUE"]="" S["JQ"]="/opt/homebrew/bin/jq" S["HAVE_DOCKER_FALSE"]="#" S["HAVE_DOCKER_TRUE"]="" -S["DOCKER"]="/usr/local/bin/docker" +S["DOCKER"]="/Users/kdubb/.rd/bin/docker" S["JSONTESTSUITECHECKOUT"]="d64aefb55228d9584d3e5b2433f720ea8fd00c82" S["JSONTESTSUITEURL"]="https://github.com/nst/JSONTestSuite" S["TESTSUITECHECKOUT"]="6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f" S["TESTSUITEURL"]="https://github.com/yaml/yaml-test-suite" S["HAVE_GIT_FALSE"]="#" S["HAVE_GIT_TRUE"]="" -S["GIT"]="/opt/homebrew/bin/git" +S["GIT"]="/usr/bin/git" S["HAVE_SPHINX_FALSE"]="" S["HAVE_SPHINX_TRUE"]="#" S["PIP3"]="" @@ -926,8 +936,43 @@ S["LIBYAML_CFLAGS"]="-I/opt/homebrew/Cellar/libyaml/0.2.5/include" S["HAVE_QSORT_R_FALSE"]="#" S["HAVE_QSORT_R_TRUE"]="" S["HAVE_QSORT_R"]="1" +S["HAVE_ASAN_FALSE"]="" +S["HAVE_ASAN_TRUE"]="#" +S["ASAN_LIBS"]="" +S["ASAN_CFLAGS"]="" +S["HAVE_ASAN"]="0" +S["TARGET_HAS_NEON_FALSE"]="#" +S["TARGET_HAS_NEON_TRUE"]="" +S["TARGET_HAS_AVX512_FALSE"]="" +S["TARGET_HAS_AVX512_TRUE"]="#" +S["TARGET_HAS_AVX2_FALSE"]="" +S["TARGET_HAS_AVX2_TRUE"]="#" +S["TARGET_HAS_SSE41_FALSE"]="" +S["TARGET_HAS_SSE41_TRUE"]="#" +S["TARGET_HAS_SSE2_FALSE"]="" +S["TARGET_HAS_SSE2_TRUE"]="#" +S["TARGET_CPU_ANY_ARM_FALSE"]="#" +S["TARGET_CPU_ANY_ARM_TRUE"]="" +S["TARGET_CPU_ARM64_FALSE"]="#" +S["TARGET_CPU_ARM64_TRUE"]="" +S["TARGET_CPU_ARM_FALSE"]="" +S["TARGET_CPU_ARM_TRUE"]="#" +S["TARGET_CPU_ANY_X86_FALSE"]="" +S["TARGET_CPU_ANY_X86_TRUE"]="#" +S["TARGET_CPU_X86_64_FALSE"]="" +S["TARGET_CPU_X86_64_TRUE"]="#" +S["TARGET_CPU_X86_FALSE"]="" +S["TARGET_CPU_X86_TRUE"]="#" +S["HAVE_PORTABLE_TARGET_FALSE"]="" +S["HAVE_PORTABLE_TARGET_TRUE"]="#" +S["HAVE_PORTABLE_TARGET"]="0" +S["HAVE_STATIC_FALSE"]="#" +S["HAVE_STATIC_TRUE"]="" +S["HAVE_STATIC"]="1" S["subdirs"]=" libltdl" -S["CXXCPP"]="g++ -E" +S["LIBLTDL"]="" +S["LTDLINCL"]="" +S["CXXCPP"]="g++ -std=gnu++11 -E" S["LT_SYS_LIBRARY_PATH"]="" S["OTOOL64"]=":" S["OTOOL"]="otool" @@ -942,44 +987,34 @@ S["ac_ct_DUMPBIN"]="" S["DUMPBIN"]="" S["LD"]="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" S["FGREP"]="/usr/bin/grep -F" +S["EGREP"]="/usr/bin/grep -E" +S["GREP"]="/usr/bin/grep" S["SED"]="/usr/bin/sed" S["LIBTOOL"]="/bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave-libtool '$(SHELL) $(top_builddir)/libtool'" S["OBJDUMP"]="objdump" -S["DLLTOOL"]="dlltool" +S["DLLTOOL"]="false" S["AS"]="as" -S["INCLTDL"]="-I$(top_srcdir)/libltdl" -S["LTDLINCL"]="-I$(top_srcdir)/libltdl" -S["LTDLDEPS"]="$(top_build_prefix)libltdl/libltdl.la" -S["LIBLTDL"]="$(top_build_prefix)libltdl/libltdl.la" S["PKG_CONFIG_LIBDIR"]="" S["PKG_CONFIG_PATH"]="" S["PKG_CONFIG"]="/opt/homebrew/bin/pkg-config" -S["ACLOCAL_AMFLAGS"]="-I m4" -S["M4"]="/usr/bin/m4" S["PTHREAD_CFLAGS"]="-D_THREAD_SAFE -pthread" -S["PTHREAD_LIBS"]="" +S["PTHREAD_LIBS"]="-lpthread" S["PTHREAD_CC"]="gcc" S["ax_pthread_config"]="" -S["host_os"]="darwin22.2.0" -S["host_vendor"]="apple" -S["host_cpu"]="aarch64" -S["host"]="aarch64-apple-darwin22.2.0" -S["build_os"]="darwin22.2.0" -S["build_vendor"]="apple" -S["build_cpu"]="aarch64" -S["build"]="aarch64-apple-darwin22.2.0" S["LN_S"]="ln -s" S["am__fastdepCXX_FALSE"]="#" S["am__fastdepCXX_TRUE"]="" S["CXXDEPMODE"]="depmode=gcc3" S["ac_ct_CXX"]="g++" S["CXXFLAGS"]="" -S["CXX"]="/bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave cxx g++" +S["CXX"]="/bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave cxx g++ -std=gnu++11" S["ac_ct_AR"]="ar" S["AR"]="ar" -S["EGREP"]="/usr/bin/grep -E" -S["GREP"]="/usr/bin/grep" -S["CPP"]="gcc -E" +S["am__fastdepCCAS_FALSE"]="#" +S["am__fastdepCCAS_TRUE"]="" +S["CCASDEPMODE"]="depmode=gcc3" +S["CCASFLAGS"]="" +S["CCAS"]="/bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave ccas gcc" S["am__fastdepCC_FALSE"]="#" S["am__fastdepCC_TRUE"]="" S["CCDEPMODE"]="depmode=gcc3" @@ -994,12 +1029,12 @@ S["EXEEXT"]="" S["ac_ct_CC"]="gcc" S["CPPFLAGS"]="" S["LDFLAGS"]="" -S["CFLAGS"]=" -Wall -Wsign-compare -O2" +S["CFLAGS"]="-D_THREAD_SAFE -pthread -Wall -Wsign-compare -fvisibility=hidden -O2" S["CC"]="/bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave cc gcc" -S["LIBTOOL_VERSION"]="1:2:0" +S["LIBTOOL_VERSION"]="1:4:2" S["EXTRA"]="" -S["PATCH"]="12" -S["MINOR"]="7" +S["PATCH"]="" +S["MINOR"]="9" S["MAJOR"]="0" S["AM_BACKSLASH"]="\\" S["AM_DEFAULT_VERBOSITY"]="1" @@ -1015,7 +1050,7 @@ S["am__leading_dot"]="." S["SET_MAKE"]="" S["AWK"]="awk" S["mkdir_p"]="$(MKDIR_P)" -S["MKDIR_P"]="./build-aux/install-sh -c -d" +S["MKDIR_P"]="/opt/homebrew/bin/gmkdir -p" S["INSTALL_STRIP_PROGRAM"]="$(install_sh) -c -s" S["STRIP"]="strip" S["install_sh"]="${SHELL} /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/install-sh" @@ -1024,17 +1059,31 @@ S["AUTOHEADER"]="${SHELL} '/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/ S["AUTOMAKE"]="${SHELL} '/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/missing' automake-1.16" S["AUTOCONF"]="${SHELL} '/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/missing' autoconf" S["ACLOCAL"]="${SHELL} '/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/missing' aclocal-1.16" -S["VERSION"]="0.7.12" +S["VERSION"]="0.9" S["PACKAGE"]="libfyaml" S["CYGPATH_W"]="echo" S["am__isrc"]="" S["INSTALL_DATA"]="${INSTALL} -m 644" S["INSTALL_SCRIPT"]="${INSTALL}" S["INSTALL_PROGRAM"]="${INSTALL}" +S["target_os"]="darwin23.4.0" +S["target_vendor"]="apple" +S["target_cpu"]="aarch64" +S["target"]="aarch64-apple-darwin23.4.0" +S["host_os"]="darwin23.4.0" +S["host_vendor"]="apple" +S["host_cpu"]="aarch64" +S["host"]="aarch64-apple-darwin23.4.0" +S["build_os"]="darwin23.4.0" +S["build_vendor"]="apple" +S["build_cpu"]="aarch64" +S["build"]="aarch64-apple-darwin23.4.0" +S["ACLOCAL_AMFLAGS"]="-I m4" +S["M4"]="/usr/bin/m4" S["target_alias"]="" S["host_alias"]="" S["build_alias"]="" -S["LIBS"]="" +S["LIBS"]=" -lpthread" S["ECHO_T"]="" S["ECHO_N"]="" S["ECHO_C"]="\\c" @@ -1064,8 +1113,8 @@ S["prefix"]="/usr/local" S["exec_prefix"]="${prefix}" S["PACKAGE_URL"]="" S["PACKAGE_BUGREPORT"]="pantelis.antoniou@konsulko.com" -S["PACKAGE_STRING"]="libfyaml 0.7.12" -S["PACKAGE_VERSION"]="0.7.12" +S["PACKAGE_STRING"]="libfyaml 0.9" +S["PACKAGE_VERSION"]="0.9" S["PACKAGE_TARNAME"]="libfyaml" S["PACKAGE_NAME"]="libfyaml" S["PATH_SEPARATOR"]=":" @@ -1108,18 +1157,18 @@ fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. -# This happens for instance with `./config.status Makefile'. +# This happens for instance with './config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { D["PACKAGE_NAME"]=" \"libfyaml\"" D["PACKAGE_TARNAME"]=" \"libfyaml\"" -D["PACKAGE_VERSION"]=" \"0.7.12\"" -D["PACKAGE_STRING"]=" \"libfyaml 0.7.12\"" +D["PACKAGE_VERSION"]=" \"0.9\"" +D["PACKAGE_STRING"]=" \"libfyaml 0.9\"" D["PACKAGE_BUGREPORT"]=" \"pantelis.antoniou@konsulko.com\"" D["PACKAGE_URL"]=" \"\"" D["PACKAGE"]=" \"libfyaml\"" -D["VERSION"]=" \"0.7.12\"" +D["VERSION"]=" \"0.9\"" D["NDEBUG"]=" 1" D["HAVE_STDIO_H"]=" 1" D["HAVE_STDLIB_H"]=" 1" @@ -1142,6 +1191,7 @@ D["_POSIX_PTHREAD_SEMANTICS"]=" 1" D["__STDC_WANT_IEC_60559_ATTRIBS_EXT__"]=" 1" D["__STDC_WANT_IEC_60559_BFP_EXT__"]=" 1" D["__STDC_WANT_IEC_60559_DFP_EXT__"]=" 1" +D["__STDC_WANT_IEC_60559_EXT__"]=" 1" D["__STDC_WANT_IEC_60559_FUNCS_EXT__"]=" 1" D["__STDC_WANT_IEC_60559_TYPES_EXT__"]=" 1" D["__STDC_WANT_LIB_EXT2__"]=" 1" @@ -1153,8 +1203,12 @@ D["HAVE_PTHREAD"]=" 1" D["HAVE_DLFCN_H"]=" 1" D["LT_OBJDIR"]=" \".libs/\"" D["HAVE_SSIZE_T"]=" 1" -D["RETSIGTYPE"]=" void" D["HAVE_DECL_ENVIRON"]=" 0" +D["HAVE_STATIC"]=" 1" +D["HAVE_WSTRINGOP_OVERREAD"]=" 0" +D["HAVE_PORTABLE_TARGET"]=" 0" +D["TARGET_HAS_NEON"]=" 1" +D["HAVE_ASAN"]=" 0" D["HAVE_QSORT_R"]=" 1" D["HAVE_LIBYAML"]=" 1" D["HAVE_CHECK"]=" 0" @@ -1163,6 +1217,7 @@ D["HAVE_DEVMODE"]=" 1" D["HAVE_SPHINX"]=" 0" D["HAVE_GIT"]=" 1" D["HAVE_JQ"]=" 1" +D["HAVE_LIBCLANG"]=" 0" for (key in D) D_is_set[key] = 1 FS = "" } @@ -1208,7 +1263,7 @@ do esac case $ac_mode$ac_tag in :[FHL]*:*);; - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac @@ -1230,19 +1285,19 @@ do -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. + # because $ac_f cannot contain ':'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || - as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done - # Let's still pretend it is `configure' which instantiates (i.e., don't + # Let's still pretend it is 'configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` @@ -1408,9 +1463,9 @@ test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' which seems to be undefined. Please make sure it is defined" >&5 -printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" @@ -1565,15 +1620,15 @@ printf "%s\n" X/"$am_mf" | (exit $ac_status); } || am_rc=$? done if test $am_rc -ne 0; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE=\"gmake\" (or whatever is necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking). -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } fi { am_dirpart=; unset am_dirpart;} { am_filepart=; unset am_filepart;} @@ -1634,6 +1689,10 @@ available_tags='CXX ' # ### BEGIN LIBTOOL CONFIG +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision + # Assembler program. AS=$lt_AS @@ -1643,10 +1702,6 @@ DLLTOOL=$lt_DLLTOOL # Object dumper program. OBJDUMP=$lt_OBJDUMP -# Which release of libtool.m4 was used? -macro_version=$macro_version -macro_revision=$macro_revision - # Whether or not to build shared libraries. build_libtool_libs=$enable_shared diff --git a/Sources/Cfyaml/configure b/Sources/Cfyaml/configure index 63da3f72b..5ef9379ac 100755 --- a/Sources/Cfyaml/configure +++ b/Sources/Cfyaml/configure @@ -1,11 +1,11 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for libfyaml 0.7.12. +# Generated by GNU Autoconf 2.72 for libfyaml 0.9. # # Report bugs to . # # -# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, +# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, # Inc. # # @@ -17,7 +17,6 @@ # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh @@ -26,12 +25,13 @@ then : # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else $as_nop - case `(set -o) 2>/dev/null` in #( +else case e in #( + e) case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; +esac ;; esac fi @@ -103,7 +103,7 @@ IFS=$as_save_IFS ;; esac -# We did not find ourselves, most probably we were run as `sh COMMAND' +# We did not find ourselves, most probably we were run as 'sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 @@ -133,15 +133,14 @@ case $- in # (((( esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. +# out after a failed 'exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then - as_bourne_compatible="as_nop=: -if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 + as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: @@ -149,12 +148,13 @@ then : # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST -else \$as_nop - case \`(set -o) 2>/dev/null\` in #( +else case e in #( + e) case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; +esac ;; esac fi " @@ -172,8 +172,9 @@ as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ) then : -else \$as_nop - exitcode=1; echo positional parameters were not saved. +else case e in #( + e) exitcode=1; echo positional parameters were not saved. ;; +esac fi test x\$exitcode = x0 || exit 1 blah=\$(echo \$(echo blah)) @@ -183,7 +184,6 @@ test -x / || exit 1" as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 -test \$(( 1 + 1 )) = 2 || exit 1 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' @@ -191,18 +191,20 @@ test \$(( 1 + 1 )) = 2 || exit 1 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ - || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null then : as_have_required=yes -else $as_nop - as_have_required=no +else case e in #( + e) as_have_required=no ;; +esac fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null then : -else $as_nop - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in #( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do @@ -235,12 +237,13 @@ IFS=$as_save_IFS if $as_found then : -else $as_nop - if { test -f "$SHELL" || test -f "$SHELL.exe"; } && +else case e in #( + e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$SHELL as_have_required=yes -fi +fi ;; +esac fi @@ -262,7 +265,7 @@ case $- in # (((( esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. +# out after a failed 'exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi @@ -282,7 +285,8 @@ $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 -fi +fi ;; +esac fi fi SHELL=${CONFIG_SHELL-/bin/sh} @@ -321,14 +325,6 @@ as_fn_exit () as_fn_set_status $1 exit $1 } # as_fn_exit -# as_fn_nop -# --------- -# Do nothing but, unlike ":", preserve the value of $?. -as_fn_nop () -{ - return $? -} -as_nop=as_fn_nop # as_fn_mkdir_p # ------------- @@ -397,11 +393,12 @@ then : { eval $1+=\$2 }' -else $as_nop - as_fn_append () +else case e in #( + e) as_fn_append () { eval $1=\$$1\$2 - } + } ;; +esac fi # as_fn_append # as_fn_arith ARG... @@ -415,21 +412,14 @@ then : { as_val=$(( $* )) }' -else $as_nop - as_fn_arith () +else case e in #( + e) as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` - } + } ;; +esac fi # as_fn_arith -# as_fn_nop -# --------- -# Do nothing but, unlike ":", preserve the value of $?. -as_fn_nop () -{ - return $? -} -as_nop=as_fn_nop # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- @@ -503,6 +493,8 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits /[$]LINENO/= ' <$as_myself | sed ' + t clear + :clear s/[$]LINENO.*/&-/ t lineno b @@ -551,7 +543,6 @@ esac as_echo='printf %s\n' as_echo_n='printf %s' - rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file @@ -563,9 +554,9 @@ if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. + # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. + # In both cases, we have to default to 'cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then @@ -590,12 +581,12 @@ as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" +as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated # Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - -lt_ltdl_dir='libltdl' +as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" +as_tr_sh="eval sed '$as_sed_sh'" # deprecated SHELL=${CONFIG_SHELL-/bin/sh} @@ -623,8 +614,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='libfyaml' PACKAGE_TARNAME='libfyaml' -PACKAGE_VERSION='0.7.12' -PACKAGE_STRING='libfyaml 0.7.12' +PACKAGE_VERSION='0.9' +PACKAGE_STRING='libfyaml 0.9' PACKAGE_BUGREPORT='pantelis.antoniou@konsulko.com' PACKAGE_URL='' @@ -674,10 +665,17 @@ MCS OBJC F77 FC -CCAS AM_MAKEFLAGS MAKEFLAGS shavedir +HAVE_LIBCLANG_FALSE +HAVE_LIBCLANG_TRUE +LIBCLANG_LIBS +LIBCLANG_LDFLAGS +LIBCLANG_CPPFLAGS +LIBCLANG_CFLAGS +HAVE_LIBCLANG +LLVM_CONFIG HAVE_JQ_FALSE HAVE_JQ_TRUE JQ @@ -718,7 +716,42 @@ LIBYAML_CFLAGS HAVE_QSORT_R_FALSE HAVE_QSORT_R_TRUE HAVE_QSORT_R +HAVE_ASAN_FALSE +HAVE_ASAN_TRUE +ASAN_LIBS +ASAN_CFLAGS +HAVE_ASAN +TARGET_HAS_NEON_FALSE +TARGET_HAS_NEON_TRUE +TARGET_HAS_AVX512_FALSE +TARGET_HAS_AVX512_TRUE +TARGET_HAS_AVX2_FALSE +TARGET_HAS_AVX2_TRUE +TARGET_HAS_SSE41_FALSE +TARGET_HAS_SSE41_TRUE +TARGET_HAS_SSE2_FALSE +TARGET_HAS_SSE2_TRUE +TARGET_CPU_ANY_ARM_FALSE +TARGET_CPU_ANY_ARM_TRUE +TARGET_CPU_ARM64_FALSE +TARGET_CPU_ARM64_TRUE +TARGET_CPU_ARM_FALSE +TARGET_CPU_ARM_TRUE +TARGET_CPU_ANY_X86_FALSE +TARGET_CPU_ANY_X86_TRUE +TARGET_CPU_X86_64_FALSE +TARGET_CPU_X86_64_TRUE +TARGET_CPU_X86_FALSE +TARGET_CPU_X86_TRUE +HAVE_PORTABLE_TARGET_FALSE +HAVE_PORTABLE_TARGET_TRUE +HAVE_PORTABLE_TARGET +HAVE_STATIC_FALSE +HAVE_STATIC_TRUE +HAVE_STATIC subdirs +LIBLTDL +LTDLINCL CXXCPP LT_SYS_LIBRARY_PATH OTOOL64 @@ -734,32 +767,20 @@ ac_ct_DUMPBIN DUMPBIN LD FGREP +EGREP +GREP SED LIBTOOL OBJDUMP DLLTOOL AS -INCLTDL -LTDLINCL -LTDLDEPS -LIBLTDL PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG -ACLOCAL_AMFLAGS -M4 PTHREAD_CFLAGS PTHREAD_LIBS PTHREAD_CC ax_pthread_config -host_os -host_vendor -host_cpu -host -build_os -build_vendor -build_cpu -build LN_S am__fastdepCXX_FALSE am__fastdepCXX_TRUE @@ -769,9 +790,11 @@ CXXFLAGS CXX ac_ct_AR AR -EGREP -GREP -CPP +am__fastdepCCAS_FALSE +am__fastdepCCAS_TRUE +CCASDEPMODE +CCASFLAGS +CCAS am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE @@ -823,6 +846,20 @@ am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM +target_os +target_vendor +target_cpu +target +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +ACLOCAL_AMFLAGS +M4 target_alias host_alias build_alias @@ -877,8 +914,11 @@ with_aix_soname with_gnu_ld with_sysroot enable_libtool_lock +enable_portable_target +enable_asan enable_network enable_devmode +with_libclang enable_shave ' ac_precious_vars='build_alias @@ -889,7 +929,8 @@ CFLAGS LDFLAGS LIBS CPPFLAGS -CPP +CCAS +CCASFLAGS CXX CXXFLAGS CCC @@ -1014,7 +1055,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: \`$ac_useropt'" + as_fn_error $? "invalid feature name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1040,7 +1081,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: \`$ac_useropt'" + as_fn_error $? "invalid feature name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1253,7 +1294,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: \`$ac_useropt'" + as_fn_error $? "invalid package name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1269,7 +1310,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: \`$ac_useropt'" + as_fn_error $? "invalid package name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1299,8 +1340,8 @@ do | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; - -*) as_fn_error $? "unrecognized option: \`$ac_option' -Try \`$0 --help' for more information" + -*) as_fn_error $? "unrecognized option: '$ac_option' +Try '$0 --help' for more information" ;; *=*) @@ -1308,7 +1349,7 @@ Try \`$0 --help' for more information" # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) - as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + as_fn_error $? "invalid variable name: '$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; @@ -1358,7 +1399,7 @@ do as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done -# There might be people who depend on the old broken behavior: `$host' +# There might be people who depend on the old broken behavior: '$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias @@ -1426,7 +1467,7 @@ if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` @@ -1454,7 +1495,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures libfyaml 0.7.12 to adapt to many kinds of systems. +'configure' configures libfyaml 0.9 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1468,11 +1509,11 @@ Configuration: --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking ...' messages + -q, --quiet, --silent do not print 'checking ...' messages --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' + -C, --config-cache alias for '--cache-file=config.cache' -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] + --srcdir=DIR find the sources in DIR [configure dir or '..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX @@ -1480,10 +1521,10 @@ Installation directories: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. +By default, 'make install' will install all the files in +'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify +an installation prefix other than '$ac_default_prefix' using '--prefix', +for instance '--prefix=\$HOME'. For better control, use the options below. @@ -1520,12 +1561,13 @@ Program names: System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] + --target=TARGET configure for building compilers for TARGET [HOST] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libfyaml 0.7.12:";; + short | recursive ) echo "Configuration of libfyaml 0.9:";; esac cat <<\_ACEOF @@ -1546,6 +1588,10 @@ Optional Features: --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) + --enable-portable-target + Enable portable mode (disable per-target + optimizations) + --enable-asan Enable ASAN support --disable-network Disable tests requiring network access --enable-devmode Enable development mode only debugging --enable-shave use shave to make the build pretty [[default=yes]] @@ -1561,6 +1607,15 @@ Optional Packages: --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-sysroot[=DIR] Search for dependent libraries within DIR (or the compiler's sysroot if not specified). +# Check whether --enable-network was given. +if test ${enable_network+y} +then : + enableval=$enable_network; +fi + + + --with-libclang= + Enable support for libclang [default=auto] Some influential environment variables: CC C compiler command @@ -1570,7 +1625,8 @@ 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 - CPP C preprocessor + CCAS assembler compiler command (defaults to CC) + CCASFLAGS assembler compiler flags (defaults to CFLAGS) CXX C++ compiler command CXXFLAGS C++ compiler flags PKG_CONFIG path to pkg-config utility @@ -1601,7 +1657,7 @@ Some influential environment variables: JSON Testsuite checkout (default: d64aefb55228d9584d3e5b2433f720ea8fd00c82) -Use these variables to override the choices made by `configure' or to help +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 . @@ -1668,10 +1724,10 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libfyaml configure 0.7.12 -generated by GNU Autoconf 2.71 +libfyaml configure 0.9 +generated by GNU Autoconf 2.72 -Copyright (C) 2021 Free Software Foundation, Inc. +Copyright (C) 2023 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF @@ -1710,54 +1766,17 @@ printf "%s\n" "$ac_try_echo"; } >&5 } && test -s conftest.$ac_objext then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$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_c_try_compile - -# ac_fn_c_try_cpp LINENO -# ---------------------- -# Try to preprocess conftest.$ac_ext, and return whether this succeeded. -ac_fn_c_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;; + ac_retval=1 ;; esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -printf "%s\n" "$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 - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } > conftest.i && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - } -then : - ac_retval=0 -else $as_nop - printf "%s\n" "$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_c_try_cpp +} # ac_fn_c_try_compile # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- @@ -1771,8 +1790,8 @@ printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> @@ -1780,10 +1799,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$3=yes" -else $as_nop - eval "$3=no" +else case e in #( + e) eval "$3=no" ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -1820,11 +1841,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } && test -s conftest.$ac_objext then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -1862,11 +1884,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would @@ -1889,15 +1912,15 @@ printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $2 (); below. */ + which can conflict with char $2 (void); below. */ #include #undef $2 @@ -1908,7 +1931,7 @@ else $as_nop #ifdef __cplusplus extern "C" #endif -char $2 (); +char $2 (void); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ @@ -1927,11 +1950,13 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : eval "$3=yes" -else $as_nop - eval "$3=no" +else case e in #( + e) eval "$3=no" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext + conftest$ac_exeext conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -1967,11 +1992,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -2009,11 +2035,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would @@ -2055,12 +2082,13 @@ printf "%s\n" "$ac_try_echo"; } >&5 test $ac_status = 0; }; } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: program exited with status $ac_status" >&5 +else case e in #( + e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=$ac_status + ac_retval=$ac_status ;; +esac fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno @@ -2080,8 +2108,8 @@ printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - eval "$3=no" +else case e in #( + e) eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 @@ -2111,12 +2139,14 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : -else $as_nop - eval "$3=yes" +else case e in #( + e) eval "$3=yes" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -2138,8 +2168,8 @@ printf %s "checking whether $as_decl_name is declared... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` +else case e in #( + e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` eval ac_save_FLAGS=\$$6 as_fn_append $6 " $5" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -2163,12 +2193,14 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$3=yes" -else $as_nop - eval "$3=no" +else case e in #( + e) eval "$3=no" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext eval $6=\$ac_save_FLAGS - + ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -2200,8 +2232,8 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libfyaml $as_me 0.7.12, which was -generated by GNU Autoconf 2.71. Invocation command line was +It was created by libfyaml $as_me 0.9, which was +generated by GNU Autoconf 2.72. Invocation command line was $ $0$ac_configure_args_raw @@ -2447,10 +2479,10 @@ esac printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ - || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } fi done @@ -2486,9 +2518,7 @@ struct stat; /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ struct buf { int x; }; struct buf * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; +static char *e (char **p, int i) { return p[i]; } @@ -2502,6 +2532,21 @@ static char *f (char * (*g) (char **, int), char **p, ...) return s; } +/* C89 style stringification. */ +#define noexpand_stringify(a) #a +const char *stringified = noexpand_stringify(arbitrary+token=sequence); + +/* C89 style token pasting. Exercises some of the corner cases that + e.g. old MSVC gets wrong, but not very hard. */ +#define noexpand_concat(a,b) a##b +#define expand_concat(a,b) noexpand_concat(a,b) +extern int vA; +extern int vbee; +#define aye A +#define bee B +int *pvA = &expand_concat(v,aye); +int *pvbee = &noexpand_concat(v,bee); + /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not \xHH hex character constants. These do not provoke an error unfortunately, instead are silently treated @@ -2529,16 +2574,19 @@ ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); # Test code for whether the C compiler supports C99 (global declarations) ac_c_conftest_c99_globals=' -// Does the compiler advertise C99 conformance? +/* Does the compiler advertise C99 conformance? */ #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L # error "Compiler does not advertise C99 conformance" #endif +// See if C++-style comments work. + #include extern int puts (const char *); extern int printf (const char *, ...); extern int dprintf (int, const char *, ...); extern void *malloc (size_t); +extern void free (void *); // Check varargs macros. These examples are taken from C99 6.10.3.5. // dprintf is used instead of fprintf to avoid needing to declare @@ -2588,7 +2636,6 @@ typedef const char *ccp; static inline int test_restrict (ccp restrict text) { - // See if C++-style comments work. // Iterate through items via the restricted pointer. // Also check for declarations in for loops. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) @@ -2654,6 +2701,8 @@ ac_c_conftest_c99_main=' ia->datasize = 10; for (int i = 0; i < ia->datasize; ++i) ia->data[i] = i * 1.234; + // Work around memory leak warnings. + free (ia); // Check named initializers. struct named_init ni = { @@ -2675,7 +2724,7 @@ ac_c_conftest_c99_main=' # Test code for whether the C compiler supports C11 (global declarations) ac_c_conftest_c11_globals=' -// Does the compiler advertise C11 conformance? +/* Does the compiler advertise C11 conformance? */ #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L # error "Compiler does not advertise C11 conformance" #endif @@ -3008,7 +3057,7 @@ main (int argc, char **argv) # Auxiliary files required by this configure script. -ac_aux_files="tap-driver.sh ltmain.sh config.guess config.sub ar-lib compile missing install-sh" +ac_aux_files="tap-driver.sh ltmain.sh ar-lib compile missing install-sh config.guess config.sub" # Locations in which to look for auxiliary files. ac_aux_dir_candidates="${srcdir}/build-aux" @@ -3085,8 +3134,9 @@ IFS=$as_save_IFS if $as_found then : -else $as_nop - as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 +else case e in #( + e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; +esac fi @@ -3114,12 +3164,12 @@ for ac_var in $ac_precious_vars; do eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 +printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 +printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) @@ -3128,18 +3178,18 @@ printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 +printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 -printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 +printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 -printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 -printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 +printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 +printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. @@ -3155,11 +3205,11 @@ printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} fi done if $ac_cache_corrupted; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} - as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' + as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## @@ -3175,35 +3225,20 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -ac_config_headers="$ac_config_headers config.h" - - - -am__api_version='1.16' - - - # Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -# Reject install programs that cannot install multiple files. -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 -printf %s "checking for a BSD-compatible install... " >&6; } -if test -z "$INSTALL"; then -if test ${ac_cv_path_install+y} +# Extract the first word of "m4 gm4", so it can be a program name with args. +set dummy m4 gm4; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_M4+y} then : printf %s "(cached) " >&6 -else $as_nop +else case e in #( + e) case $M4 in + [\\/]* | ?:[\\/]*) + ac_cv_path_M4="$M4" # Let the user override the test with a path. + ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do @@ -3213,107 +3248,297 @@ do */) ;; *) as_dir=$as_dir/ ;; esac - # Account for fact that we put trailing slashes in our PATH walk. -case $as_dir in #(( - ./ | /[cC]/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then - if test $ac_prog = install && - grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - rm -rf conftest.one conftest.two conftest.dir - echo one > conftest.one - echo two > conftest.two - mkdir conftest.dir - if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && - test -s conftest.one && test -s conftest.two && - test -s conftest.dir/conftest.one && - test -s conftest.dir/conftest.two - then - ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - fi - done - done - ;; -esac - + 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_M4="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done done IFS=$as_save_IFS -rm -rf conftest.one conftest.two conftest.dir - + test -z "$ac_cv_path_M4" && ac_cv_path_M4="no" + ;; +esac ;; +esac fi - if test ${ac_cv_path_install+y}; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi +M4=$ac_cv_path_M4 +if test -n "$M4"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 +printf "%s\n" "$M4" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 -printf "%s\n" "$INSTALL" >&6; } -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' +if test "x$M4" = xno ; then + as_fn_error $? "m4 missing" "$LINENO" 5 +fi -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' +ACLOCAL_AMFLAGS="-I m4" -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 -printf %s "checking whether build environment is sane... " >&6; } -# Reject unsafe characters in $srcdir or the absolute working directory -# name. Accept space and tab only in the latter. -am_lf=' -' -case `pwd` in - *[\\\"\#\$\&\'\`$am_lf]*) - as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; -esac -case $srcdir in - *[\\\"\#\$\&\'\`$am_lf\ \ ]*) - as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; -esac -# Do 'set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - am_has_slept=no - for am_try in 1 2; do - echo "timestamp, slept: $am_has_slept" > conftest.file - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t "$srcdir/configure" conftest.file` - fi - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - # If neither matched, then we have a broken ls. This can happen + + + # Make sure we can run config.sub. +$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +printf %s "checking build system type... " >&6; } +if test ${ac_cv_build+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 + ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +printf "%s\n" "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +printf %s "checking host system type... " >&6; } +if test ${ac_cv_host+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 +fi + ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +printf "%s\n" "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 +printf %s "checking target system type... " >&6; } +if test ${ac_cv_target+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test "x$target_alias" = x; then + ac_cv_target=$ac_cv_host +else + ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5 +fi + ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 +printf "%s\n" "$ac_cv_target" >&6; } +case $ac_cv_target in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; +esac +target=$ac_cv_target +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_target +shift +target_cpu=$1 +target_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +target_os=$* +IFS=$ac_save_IFS +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac + + +# The aliases save the names the user supplied, while $host etc. +# will get canonicalized. +test -n "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" = \ + NONENONEs,x,x, && + program_prefix=${target_alias}- + + +ac_config_headers="$ac_config_headers config.h" + + +am__api_version='1.16' + + + # Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +printf %s "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if test ${ac_cv_path_install+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + # Account for fact that we put trailing slashes in our PATH walk. +case $as_dir in #(( + ./ | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + ;; +esac +fi + if test ${ac_cv_path_install+y}; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +printf "%s\n" "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +printf %s "checking whether build environment is sane... " >&6; } +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; +esac + +# Do 'set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + am_has_slept=no + for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". @@ -3354,7 +3579,7 @@ test "$program_prefix" != NONE && test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. -# By default was `s,x,x', remove it if useless. +# By default was 's,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` @@ -3397,8 +3622,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$STRIP"; then +else case e in #( + e) if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3420,7 +3645,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then @@ -3442,8 +3668,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_STRIP"; then +else case e in #( + e) if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3465,7 +3691,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then @@ -3501,8 +3728,8 @@ if test -z "$MKDIR_P"; then if test ${ac_cv_path_mkdir+y} then : printf %s "(cached) " >&6 -else $as_nop - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in #( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS @@ -3516,7 +3743,7 @@ do as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir ('*'coreutils) '* | \ - 'BusyBox '* | \ + *'BusyBox '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext break 3;; @@ -3525,18 +3752,17 @@ do done done IFS=$as_save_IFS - + ;; +esac fi test -d ./--version && rmdir ./--version if test ${ac_cv_path_mkdir+y}; then MKDIR_P="$ac_cv_path_mkdir -p" else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - MKDIR_P="$ac_install_sh -d" + # As a last resort, use plain mkdir -p, + # in the hope it doesn't have the bugs of ancient mkdir. + MKDIR_P='mkdir -p' fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 @@ -3551,8 +3777,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AWK+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AWK"; then +else case e in #( + e) if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3574,7 +3800,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then @@ -3596,8 +3823,8 @@ ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval test \${ac_cv_prog_make_${ac_make}_set+y} then : printf %s "(cached) " >&6 -else $as_nop - cat >conftest.make <<\_ACEOF +else case e in #( + e) cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' @@ -3609,7 +3836,8 @@ case `${MAKE-make} -f conftest.make 2>/dev/null` in *) eval ac_cv_prog_make_${ac_make}_set=no;; esac -rm -f conftest.make +rm -f conftest.make ;; +esac fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 @@ -3647,8 +3875,8 @@ printf %s "checking whether $am_make supports nested variables... " >&6; } if test ${am_cv_make_support_nested_variables+y} then : printf %s "(cached) " >&6 -else $as_nop - if printf "%s\n" 'TRUE=$(BAR$(V)) +else case e in #( + e) if printf "%s\n" 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 @@ -3658,7 +3886,8 @@ am__doit: am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no -fi +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } @@ -3693,7 +3922,7 @@ fi # Define the identity of the package. PACKAGE='libfyaml' - VERSION='0.7.12' + VERSION='0.9' printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h @@ -3853,7 +4082,7 @@ EXTRA=`echo $VERSION | cut -d- -f2- -s` # increase current, set revision and age to 0 -LIBTOOL_VERSION=1:2:0 +LIBTOOL_VERSION=1:4:2 @@ -3877,8 +4106,9 @@ fi if test ${enable_debug+y} then : enableval=$enable_debug; -else $as_nop - enable_debug=$ax_enable_debug_default +else case e in #( + e) enable_debug=$ax_enable_debug_default ;; +esac fi @@ -3951,10 +4181,11 @@ esac if test "x$enable_debug" = "xyes" then : -else $as_nop - +else case e in #( + e) printf "%s\n" "#define NDEBUG 1" >>confdefs.h - + ;; +esac fi ax_enable_debug=$enable_debug @@ -3982,8 +4213,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4005,7 +4236,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4027,8 +4259,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in #( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4050,7 +4282,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -4085,8 +4318,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4108,7 +4341,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4130,8 +4364,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no @@ -4170,7 +4404,8 @@ if test $ac_prog_rejected = yes; then ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" fi fi -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4194,8 +4429,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4217,7 +4452,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4243,8 +4479,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in #( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4266,7 +4502,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -4304,8 +4541,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4327,7 +4564,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -4349,8 +4587,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in #( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4372,7 +4610,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -4401,10 +4640,10 @@ fi fi -test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 @@ -4476,8 +4715,8 @@ printf "%s\n" "$ac_try_echo"; } >&5 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' + # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. +# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. @@ -4497,7 +4736,7 @@ do ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' + # safe: cross compilers may not add the suffix if given an '-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. @@ -4508,8 +4747,9 @@ do done test "$ac_cv_exeext" = no && ac_cv_exeext= -else $as_nop - ac_file='' +else case e in #( + e) ac_file='' ;; +esac fi if test -z "$ac_file" then : @@ -4518,13 +4758,14 @@ printf "%s\n" "no" >&6; } printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables -See \`config.log' for more details" "$LINENO" 5; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } +See 'config.log' for more details" "$LINENO" 5; } +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 printf %s "checking for C compiler default output file name... " >&6; } @@ -4548,10 +4789,10 @@ printf "%s\n" "$ac_try_echo"; } >&5 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then : - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. + # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) +# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will +# work properly (i.e., refer to 'conftest.exe'), while it won't with +# 'rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in @@ -4561,11 +4802,12 @@ for ac_file in conftest.exe conftest conftest.*; do * ) break;; esac done -else $as_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi rm -f conftest conftest$ac_cv_exeext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 @@ -4581,6 +4823,8 @@ int main (void) { FILE *f = fopen ("conftest.out", "w"); + if (!f) + return 1; return ferror (f) || fclose (f) != 0; ; @@ -4620,26 +4864,27 @@ printf "%s\n" "$ac_try_echo"; } >&5 if test "$cross_compiling" = maybe; then cross_compiling=yes else - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error 77 "cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details" "$LINENO" 5; } +If you meant to cross compile, use '--host'. +See 'config.log' for more details" "$LINENO" 5; } fi fi fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 printf "%s\n" "$cross_compiling" >&6; } -rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +rm -f conftest.$ac_ext conftest$ac_cv_exeext \ + conftest.o conftest.obj conftest.out ac_clean_files=$ac_clean_files_save { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 printf %s "checking for suffix of object files... " >&6; } if test ${ac_cv_objext+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -4671,16 +4916,18 @@ then : break;; esac done -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi -rm -f conftest.$ac_cv_objext conftest.$ac_ext +rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 printf "%s\n" "$ac_cv_objext" >&6; } @@ -4691,8 +4938,8 @@ printf %s "checking whether the compiler supports GNU C... " >&6; } if test ${ac_cv_c_compiler_gnu+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -4709,12 +4956,14 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_compiler_gnu=yes -else $as_nop - ac_compiler_gnu=no +else case e in #( + e) ac_compiler_gnu=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } @@ -4732,8 +4981,8 @@ printf %s "checking whether $CC accepts -g... " >&6; } if test ${ac_cv_prog_cc_g+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_save_c_werror_flag=$ac_c_werror_flag +else case e in #( + e) ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" @@ -4751,8 +5000,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes -else $as_nop - CFLAGS="" +else case e in #( + e) CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4767,8 +5016,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : -else $as_nop - ac_c_werror_flag=$ac_save_c_werror_flag +else case e in #( + e) ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4785,12 +5034,15 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag + ac_c_werror_flag=$ac_save_c_werror_flag ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } @@ -4817,8 +5069,8 @@ printf %s "checking for $CC option to enable C11 features... " >&6; } if test ${ac_cv_prog_cc_c11+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c11=no +else case e in #( + e) ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4835,25 +5087,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c11" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c11" = x +else case e in #( + e) if test "x$ac_cv_prog_cc_c11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } - CC="$CC $ac_cv_prog_cc_c11" + CC="$CC $ac_cv_prog_cc_c11" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 - ac_prog_cc_stdc=c11 + ac_prog_cc_stdc=c11 ;; +esac fi fi if test x$ac_prog_cc_stdc = xno @@ -4863,8 +5118,8 @@ printf %s "checking for $CC option to enable C99 features... " >&6; } if test ${ac_cv_prog_cc_c99+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c99=no +else case e in #( + e) ac_cv_prog_cc_c99=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4881,25 +5136,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c99" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c99" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c99" = x +else case e in #( + e) if test "x$ac_cv_prog_cc_c99" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } - CC="$CC $ac_cv_prog_cc_c99" + CC="$CC $ac_cv_prog_cc_c99" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 - ac_prog_cc_stdc=c99 + ac_prog_cc_stdc=c99 ;; +esac fi fi if test x$ac_prog_cc_stdc = xno @@ -4909,8 +5167,8 @@ printf %s "checking for $CC option to enable C89 features... " >&6; } if test ${ac_cv_prog_cc_c89+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c89=no +else case e in #( + e) ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4927,25 +5185,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c89" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c89" = x +else case e in #( + e) if test "x$ac_cv_prog_cc_c89" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } - CC="$CC $ac_cv_prog_cc_c89" + CC="$CC $ac_cv_prog_cc_c89" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 - ac_prog_cc_stdc=c89 + ac_prog_cc_stdc=c89 ;; +esac fi fi @@ -4966,8 +5227,8 @@ printf %s "checking whether $CC understands -c and -o together... " >&6; } if test ${am_cv_prog_cc_c_o+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -4997,7 +5258,8 @@ _ACEOF fi done rm -f core conftest* - unset am_i + unset am_i ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } @@ -5087,8 +5349,8 @@ printf %s "checking dependency style of $depcc... " >&6; } if test ${am_cv_CC_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then +else case e in #( + e) 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 @@ -5192,7 +5454,8 @@ else $as_nop else am_cv_CC_dependencies_compiler_type=none fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } @@ -5210,371 +5473,186 @@ fi +# By default we simply use the C compiler to build assembly code. +test "${CCAS+set}" = set || CCAS=$CC +test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS -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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 -printf %s "checking how to run the C preprocessor... " >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if test ${ac_cv_prog_CPP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - # Double quotes because $CC needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # 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. */ -#include - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : -else $as_nop - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.i conftest.$ac_ext +depcc="$CCAS" am_compiler_list= - # 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_c_try_cpp "$LINENO" +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +printf %s "checking dependency style of $depcc... " >&6; } +if test ${am_cv_CCAS_dependencies_compiler_type+y} then : - # Broken: success on invalid input. -continue -else $as_nop - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.i conftest.$ac_ext + printf %s "(cached) " >&6 +else case e in #( + e) 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 -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 + am_cv_CCAS_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 + + 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 - ac_cv_prog_CPP=$CPP + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf -fi - CPP=$ac_cv_prog_CPP + # 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_CCAS_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir else - ac_cv_prog_CPP=$CPP + am_cv_CCAS_dependencies_compiler_type=none fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 -printf "%s\n" "$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # 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. */ -#include - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : - -else $as_nop - # Broken: fails on valid input. -continue + ;; +esac fi -rm -f conftest.err conftest.i conftest.$ac_ext +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 +printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; } +CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type - # 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_c_try_cpp "$LINENO" -then : - # Broken: success on invalid input. -continue -else $as_nop - # Passes both tests. -ac_preproc_ok=: -break + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then + am__fastdepCCAS_TRUE= + am__fastdepCCAS_FALSE='#' +else + am__fastdepCCAS_TRUE='#' + am__fastdepCCAS_FALSE= fi -rm -f conftest.err conftest.i conftest.$ac_ext + + + + +ac_header= ac_cache= +for ac_item in $ac_header_c_list +do + if test $ac_cache; then + ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" + if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then + printf "%s\n" "#define $ac_item 1" >> confdefs.h + fi + ac_header= ac_cache= + elif test $ac_header; then + ac_cache=$ac_item + else + ac_header=$ac_item + fi 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 + + + + + + + + +if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes then : -else $as_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } +printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h + 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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} + + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 +printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } +if test ${ac_cv_safe_to_define___extensions__+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in grep ggrep - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in -*GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_GREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_GREP=$GREP -fi - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in egrep - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_EGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_EGREP=$EGREP -fi - - fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - -if test $ac_cv_c_compiler_gnu = yes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 -printf %s "checking whether $CC needs -traditional... " >&6; } -if test ${ac_cv_prog_gcc_traditional+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_pattern="Autoconf.*'x'" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -Autoconf TIOCGETP -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "$ac_pattern" >/dev/null 2>&1 -then : - ac_cv_prog_gcc_traditional=yes -else $as_nop - ac_cv_prog_gcc_traditional=no -fi -rm -rf conftest* - - - if test $ac_cv_prog_gcc_traditional = no; then - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -Autoconf TCGETA -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "$ac_pattern" >/dev/null 2>&1 -then : - ac_cv_prog_gcc_traditional=yes -fi -rm -rf conftest* - - fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 -printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; } - if test $ac_cv_prog_gcc_traditional = yes; then - CC="$CC -traditional" - fi -fi - -ac_header= ac_cache= -for ac_item in $ac_header_c_list -do - if test $ac_cache; then - ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" - if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then - printf "%s\n" "#define $ac_item 1" >> confdefs.h - fi - ac_header= ac_cache= - elif test $ac_header; then - ac_cache=$ac_item - else - ac_header=$ac_item - fi -done - - - - - - - - -if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes -then : - -printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h - -fi - - - - - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 -printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } -if test ${ac_cv_safe_to_define___extensions__+y} -then : - printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ # define __EXTENSIONS__ 1 @@ -5590,10 +5668,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_safe_to_define___extensions__=yes -else $as_nop - ac_cv_safe_to_define___extensions__=no +else case e in #( + e) ac_cv_safe_to_define___extensions__=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } @@ -5603,8 +5683,8 @@ printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } if test ${ac_cv_should_define__xopen_source+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_should_define__xopen_source=no +else case e in #( + e) ac_cv_should_define__xopen_source=no if test $ac_cv_header_wchar_h = yes then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -5623,8 +5703,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _XOPEN_SOURCE 500 @@ -5642,10 +5722,12 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_should_define__xopen_source=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -fi +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } @@ -5670,6 +5752,8 @@ printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h + printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h + printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h @@ -5689,8 +5773,9 @@ then : printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h -else $as_nop - MINIX= +else case e in #( + e) MINIX= ;; +esac fi if test $ac_cv_safe_to_define___extensions__ = yes then : @@ -5714,8 +5799,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AR"; then +else case e in #( + e) if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5737,7 +5822,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi AR=$ac_cv_prog_AR if test -n "$AR"; then @@ -5763,8 +5849,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_AR"; then +else case e in #( + e) if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5786,7 +5872,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then @@ -5821,8 +5908,8 @@ printf %s "checking the archiver ($AR) interface... " >&6; } if test ${am_cv_ar_interface+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_ext=c +else case e in #( + e) 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' @@ -5865,7 +5952,8 @@ 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 - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 printf "%s\n" "$am_cv_ar_interface" >&6; } @@ -5913,8 +6001,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CXX"; then +else case e in #( + e) if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5936,7 +6024,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then @@ -5962,8 +6051,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CXX"; then +else case e in #( + e) 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 @@ -5985,7 +6074,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then @@ -6045,8 +6135,8 @@ printf %s "checking whether the compiler supports GNU C++... " >&6; } if test ${ac_cv_cxx_compiler_gnu+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -6063,12 +6153,14 @@ _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_compiler_gnu=yes -else $as_nop - ac_compiler_gnu=no +else case e in #( + e) ac_compiler_gnu=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } @@ -6086,8 +6178,8 @@ printf %s "checking whether $CXX accepts -g... " >&6; } if test ${ac_cv_prog_cxx_g+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_save_cxx_werror_flag=$ac_cxx_werror_flag +else case e in #( + e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" @@ -6105,8 +6197,8 @@ _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_g=yes -else $as_nop - CXXFLAGS="" +else case e in #( + e) CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6121,8 +6213,8 @@ _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : -else $as_nop - ac_cxx_werror_flag=$ac_save_cxx_werror_flag +else case e in #( + e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6139,12 +6231,15 @@ if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ac_cxx_werror_flag=$ac_save_cxx_werror_flag + ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } @@ -6168,11 +6263,11 @@ if test x$ac_prog_cxx_stdcxx = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 printf %s "checking for $CXX option to enable C++11 features... " >&6; } -if test ${ac_cv_prog_cxx_11+y} +if test ${ac_cv_prog_cxx_cxx11+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cxx_11=no +else case e in #( + e) ac_cv_prog_cxx_cxx11=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6189,36 +6284,39 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx11" != "xno" && break done rm -f conftest.$ac_ext -CXX=$ac_save_CXX +CXX=$ac_save_CXX ;; +esac fi if test "x$ac_cv_prog_cxx_cxx11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cxx_cxx11" = x +else case e in #( + e) if test "x$ac_cv_prog_cxx_cxx11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } - CXX="$CXX $ac_cv_prog_cxx_cxx11" + CXX="$CXX $ac_cv_prog_cxx_cxx11" ;; +esac fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 - ac_prog_cxx_stdcxx=cxx11 + ac_prog_cxx_stdcxx=cxx11 ;; +esac fi fi if test x$ac_prog_cxx_stdcxx = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 printf %s "checking for $CXX option to enable C++98 features... " >&6; } -if test ${ac_cv_prog_cxx_98+y} +if test ${ac_cv_prog_cxx_cxx98+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cxx_98=no +else case e in #( + e) ac_cv_prog_cxx_cxx98=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6235,25 +6333,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx98" != "xno" && break done rm -f conftest.$ac_ext -CXX=$ac_save_CXX +CXX=$ac_save_CXX ;; +esac fi if test "x$ac_cv_prog_cxx_cxx98" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cxx_cxx98" = x +else case e in #( + e) if test "x$ac_cv_prog_cxx_cxx98" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } - CXX="$CXX $ac_cv_prog_cxx_cxx98" + CXX="$CXX $ac_cv_prog_cxx_cxx98" ;; +esac fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 - ac_prog_cxx_stdcxx=cxx98 + ac_prog_cxx_stdcxx=cxx98 ;; +esac fi fi @@ -6270,8 +6371,8 @@ printf %s "checking dependency style of $depcc... " >&6; } if test ${am_cv_CXX_dependencies_compiler_type+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then +else case e in #( + e) 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 @@ -6375,7 +6476,8 @@ else $as_nop else am_cv_CXX_dependencies_compiler_type=none fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } @@ -6401,8 +6503,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AWK+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AWK"; then +else case e in #( + e) if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -6424,7 +6526,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then @@ -6453,88 +6556,13 @@ fi - # Make sure we can run config.sub. -$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || - as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 +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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 -printf %s "checking build system type... " >&6; } -if test ${ac_cv_build+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` -test "x$ac_build_alias" = x && - as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 -ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || - as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 -printf "%s\n" "$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 -printf %s "checking host system type... " >&6; } -if test ${ac_cv_host+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || - as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 -fi - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 -printf "%s\n" "$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - - - -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 +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). @@ -6555,8 +6583,14 @@ printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_ /* 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. */ -char pthread_join (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_join (void); int main (void) { @@ -6655,8 +6689,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ax_pthread_config+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ax_pthread_config"; then +else case e in #( + e) 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 @@ -6679,7 +6713,8 @@ done IFS=$as_save_IFS test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" -fi +fi ;; +esac fi ax_pthread_config=$ac_cv_prog_ax_pthread_config if test -n "$ax_pthread_config"; then @@ -6819,8 +6854,8 @@ printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -6836,12 +6871,14 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ax_cv_PTHREAD_PRIO_INHERIT=yes -else $as_nop - ax_cv_PTHREAD_PRIO_INHERIT=no +else case e in #( + e) ax_cv_PTHREAD_PRIO_INHERIT=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } @@ -6878,8 +6915,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_PTHREAD_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$PTHREAD_CC"; then +else case e in #( + e) 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 @@ -6901,7 +6938,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi PTHREAD_CC=$ac_cv_prog_PTHREAD_CC if test -n "$PTHREAD_CC"; then @@ -6940,7 +6978,7 @@ printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h : else ax_pthread_ok=no - + as_fn_error $? "\"Missing required pthread support\"" "$LINENO" 5 fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -6950,58 +6988,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -# Extract the first word of "m4 gm4", so it can be a program name with args. -set dummy m4 gm4; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_M4+y} -then : - printf %s "(cached) " >&6 -else $as_nop - case $M4 in - [\\/]* | ?:[\\/]*) - ac_cv_path_M4="$M4" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_M4="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$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_path_M4" && ac_cv_path_M4="no" - ;; -esac -fi -M4=$ac_cv_path_M4 -if test -n "$M4"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 -printf "%s\n" "$M4" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -if test "x$M4" = xno ; then - as_fn_error $? "m4 missing" "$LINENO" 5 +# in some cases PTHREAD_LIBS is empty - force -lpthread */ +if test "x$PTHREAD_LIBS" = "x"; then + PTHREAD_LIBS="-lpthread" fi -ACLOCAL_AMFLAGS="-I m4" - +CFLAGS="$CFLAGS $PTHREAD_CFLAGS" +LIBS="$LIBS $PTHREAD_LIBS" # pkg-config @@ -7020,8 +7013,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PKG_CONFIG+y} then : printf %s "(cached) " >&6 -else $as_nop - case $PKG_CONFIG in +else case e in #( + e) case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; @@ -7046,6 +7039,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG @@ -7068,8 +7062,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} then : printf %s "(cached) " >&6 -else $as_nop - case $ac_pt_PKG_CONFIG in +else case e in #( + e) case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; @@ -7094,6 +7088,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG @@ -7136,113 +7131,117 @@ printf "%s\n" "no" >&6; } fi +case `pwd` in + *\ * | *\ *) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; +esac + + +macro_version='2.4.7' +macro_revision='2.4.7' -if test -f "$prefix/lib/libltdl.la"; then - lt_save_LDFLAGS=$LDFLAGS - LDFLAGS="-L$prefix/lib $LDFLAGS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5 -printf %s "checking for lt_dlinit in -lltdl... " >&6; } -if test ${ac_cv_lib_ltdl_lt_dlinit+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS -LIBS="-lltdl $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. */ -char lt_dlinit (); -int -main (void) -{ -return lt_dlinit (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_ltdl_lt_dlinit=yes -else $as_nop - ac_cv_lib_ltdl_lt_dlinit=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5 -printf "%s\n" "$ac_cv_lib_ltdl_lt_dlinit" >&6; } -if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes -then : - lt_lib_ltdl=yes -fi - LDFLAGS=$lt_save_LDFLAGS - if test yes = "${lt_lib_ltdl-no}"; then - if test yes != "$enable_ltdl_install"; then - # Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: not overwriting libltdl at $prefix, force with '--enable-ltdl-install'" >&5 -printf "%s\n" "$as_me: WARNING: not overwriting libltdl at $prefix, force with '--enable-ltdl-install'" >&2;} - enable_ltdl_install=no - fi - elif test no = "$enable_ltdl_install"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libltdl not installed, but installation disabled" >&5 -printf "%s\n" "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;} - fi + + + + + + + + +ltmain=$ac_aux_dir/ltmain.sh + +# Backslashify metacharacters that are still active within +# double-quoted strings. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 +printf %s "checking how to print strings... " >&6; } +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' +else + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' fi -# If configure.ac declared an installable ltdl, and the user didn't override -# with --disable-ltdl-install, we will install the shipped libltdl. -case $enable_ltdl_install in - no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no" - LIBLTDL=-lltdl - LTDLDEPS= - LTDLINCL= - ;; - *) enable_ltdl_install=yes - ac_configure_args="$ac_configure_args --enable-ltdl-install" - LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la" - LTDLDEPS=$LIBLTDL - LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}" - ;; +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "" +} + +case $ECHO in + printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 +printf "%s\n" "printf" >&6; } ;; + print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 +printf "%s\n" "print -r" >&6; } ;; + *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 +printf "%s\n" "cat" >&6; } ;; esac -# For backwards non-gettext consistent compatibility... -INCLTDL=$LTDLINCL -enable_dlopen=yes -enable_win32_dll=yes -case $host in -*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. -set dummy ${ac_tool_prefix}as; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_AS+y} + + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +printf %s "checking for a sed that does not truncate output... " >&6; } +if test ${ac_cv_path_SED+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AS"; then - ac_cv_prog_AS="$AS" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in #( + e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS @@ -7251,44 +7250,83 @@ do */) ;; *) as_dir=$as_dir/ ;; esac + for ac_prog in sed gsed + do 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_AS="${ac_tool_prefix}as" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done + ac_path_SED="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_SED" || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in #( +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +#( +*) + ac_count=0 + printf %s 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + printf "%s\n" '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break done -IFS=$as_save_IFS + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac -fi -fi -AS=$ac_cv_prog_AS -if test -n "$AS"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 -printf "%s\n" "$AS" >&6; } + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + ac_cv_path_SED=$SED +fi + ;; +esac fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +printf "%s\n" "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" -fi -if test -z "$ac_cv_prog_AS"; then - ac_ct_AS=$AS - # Extract the first word of "as", so it can be a program name with args. -set dummy as; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_AS+y} + + + + + + + + + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +printf %s "checking for grep that handles long lines and -e... " >&6; } +if test ${ac_cv_path_GREP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_AS"; then - ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH +else case e in #( + e) if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS case $as_dir in #((( @@ -7296,56 +7334,73 @@ do */) ;; *) as_dir=$as_dir/ ;; esac + for ac_prog in grep ggrep + do 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_AS="as" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done + ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_GREP" || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in #( +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +#( +*) + ac_count=0 + printf %s 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + printf "%s\n" 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break done -IFS=$as_save_IFS + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac -fi -fi -ac_ct_AS=$ac_cv_prog_ac_ct_AS -if test -n "$ac_ct_AS"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 -printf "%s\n" "$ac_ct_AS" >&6; } + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + ac_cv_path_GREP=$GREP fi - - if test "x$ac_ct_AS" = x; then - AS="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; + ;; esac - AS=$ac_ct_AS - fi -else - AS="$ac_cv_prog_AS" fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +printf "%s\n" "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. -set dummy ${ac_tool_prefix}dlltool; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_DLLTOOL+y} + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +printf %s "checking for egrep... " >&6; } +if test ${ac_cv_path_EGREP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DLLTOOL"; then - ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH +else case e in #( + e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS case $as_dir in #((( @@ -7353,44 +7408,76 @@ do */) ;; *) as_dir=$as_dir/ ;; esac + for ac_prog in egrep + do 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_DLLTOOL="${ac_tool_prefix}dlltool" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done + ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP" || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in #( +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +#( +*) + ac_count=0 + printf %s 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + printf "%s\n" 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break done -IFS=$as_save_IFS + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac -fi -fi -DLLTOOL=$ac_cv_prog_DLLTOOL -if test -n "$DLLTOOL"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 -printf "%s\n" "$DLLTOOL" >&6; } + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } + ac_cv_path_EGREP=$EGREP fi - + fi ;; +esac fi -if test -z "$ac_cv_prog_DLLTOOL"; then - ac_ct_DLLTOOL=$DLLTOOL - # Extract the first word of "dlltool", so it can be a program name with args. -set dummy dlltool; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_DLLTOOL+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +printf "%s\n" "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + EGREP_TRADITIONAL=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 +printf %s "checking for fgrep... " >&6; } +if test ${ac_cv_path_FGREP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_DLLTOOL"; then - ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH +else case e in #( + e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 + then ac_cv_path_FGREP="$GREP -F" + else + if test -z "$FGREP"; then + ac_path_FGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS case $as_dir in #((( @@ -7398,181 +7485,61 @@ do */) ;; *) as_dir=$as_dir/ ;; esac - 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_DLLTOOL="dlltool" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done + for ac_prog in fgrep + do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_FGREP" || continue +# Check for GNU ac_path_FGREP and select it if it is found. + # Check for GNU $ac_path_FGREP +case `"$ac_path_FGREP" --version 2>&1` in #( +*GNU*) + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; +#( +*) + ac_count=0 + printf %s 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + printf "%s\n" 'FGREP' >> "conftest.nl" + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_FGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_FGREP="$ac_path_FGREP" + ac_path_FGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break done -IFS=$as_save_IFS - -fi -fi -ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL -if test -n "$ac_ct_DLLTOOL"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 -printf "%s\n" "$ac_ct_DLLTOOL" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_DLLTOOL" = x; then - DLLTOOL="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - DLLTOOL=$ac_ct_DLLTOOL - fi -else - DLLTOOL="$ac_cv_prog_DLLTOOL" -fi - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. -set dummy ${ac_tool_prefix}objdump; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_OBJDUMP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test -n "$OBJDUMP"; then - ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_OBJDUMP="${ac_tool_prefix}objdump" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done + $ac_path_FGREP_found && break 3 + done done -IFS=$as_save_IFS - -fi -fi -OBJDUMP=$ac_cv_prog_OBJDUMP -if test -n "$OBJDUMP"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 -printf "%s\n" "$OBJDUMP" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_OBJDUMP"; then - ac_ct_OBJDUMP=$OBJDUMP - # Extract the first word of "objdump", so it can be a program name with args. -set dummy objdump; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_OBJDUMP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_OBJDUMP"; then - ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_OBJDUMP="objdump" - printf "%s\n" "$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_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP -if test -n "$ac_ct_OBJDUMP"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 -printf "%s\n" "$ac_ct_OBJDUMP" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_OBJDUMP" = x; then - OBJDUMP="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - OBJDUMP=$ac_ct_OBJDUMP + if test -z "$ac_cv_path_FGREP"; then + as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - OBJDUMP="$ac_cv_prog_OBJDUMP" + ac_cv_path_FGREP=$FGREP fi - ;; -esac - -test -z "$AS" && AS=as - - - - - -test -z "$DLLTOOL" && DLLTOOL=dlltool - - - - - -test -z "$OBJDUMP" && OBJDUMP=objdump - - - - - - - -case `pwd` in - *\ * | *\ *) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 -printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; + fi ;; esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 +printf "%s\n" "$ac_cv_path_FGREP" >&6; } + FGREP="$ac_cv_path_FGREP" - -macro_version='2.4.7' -macro_revision='2.4.7' - - - - +test -z "$GREP" && GREP=grep @@ -7583,265 +7550,23 @@ macro_revision='2.4.7' -ltmain=$ac_aux_dir/ltmain.sh -# Backslashify metacharacters that are still active within -# double-quoted strings. -sed_quote_subst='s/\(["`$\\]\)/\\\1/g' -# Same as above, but do not quote variable references. -double_quote_subst='s/\(["`\\]\)/\\\1/g' -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' -# Sed substitution to delay expansion of an escaped single quote. -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' -ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 -printf %s "checking how to print strings... " >&6; } -# Test print first, because it will be a builtin if present. -if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ - test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then - ECHO='print -r --' -elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then - ECHO='printf %s\n' -else - # Use this function as a fallback that always works. - func_fallback_echo () - { - eval 'cat <<_LTECHO_EOF -$1 -_LTECHO_EOF' - } - ECHO='func_fallback_echo' -fi -# func_echo_all arg... -# Invoke $ECHO with all args, space-separated. -func_echo_all () -{ - $ECHO "" -} -case $ECHO in - printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 -printf "%s\n" "printf" >&6; } ;; - print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 -printf "%s\n" "print -r" >&6; } ;; - *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 -printf "%s\n" "cat" >&6; } ;; +# Check whether --with-gnu-ld was given. +if test ${with_gnu_ld+y} +then : + withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes +else case e in #( + e) with_gnu_ld=no ;; esac - - - - - - - - - - - - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 -printf %s "checking for a sed that does not truncate output... " >&6; } -if test ${ac_cv_path_SED+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ - for ac_i in 1 2 3 4 5 6 7; do - ac_script="$ac_script$as_nl$ac_script" - done - echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed - { ac_script=; unset ac_script;} - if test -z "$SED"; then - ac_path_SED_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in sed gsed - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_SED="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_SED" || continue -# Check for GNU ac_path_SED and select it if it is found. - # Check for GNU $ac_path_SED -case `"$ac_path_SED" --version 2>&1` in -*GNU*) - ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" '' >> "conftest.nl" - "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_SED_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_SED="$ac_path_SED" - ac_path_SED_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_SED_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_SED"; then - as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 - fi -else - ac_cv_path_SED=$SED -fi - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 -printf "%s\n" "$ac_cv_path_SED" >&6; } - SED="$ac_cv_path_SED" - rm -f conftest.sed - -test -z "$SED" && SED=sed -Xsed="$SED -e 1s/^X//" - - - - - - - - - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 -printf %s "checking for fgrep... " >&6; } -if test ${ac_cv_path_FGREP+y} -then : - printf %s "(cached) " >&6 -else $as_nop - if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 - then ac_cv_path_FGREP="$GREP -F" - else - if test -z "$FGREP"; then - ac_path_FGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in fgrep - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_FGREP" || continue -# Check for GNU ac_path_FGREP and select it if it is found. - # Check for GNU $ac_path_FGREP -case `"$ac_path_FGREP" --version 2>&1` in -*GNU*) - ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" 'FGREP' >> "conftest.nl" - "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_FGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_FGREP="$ac_path_FGREP" - ac_path_FGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_FGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_FGREP"; then - as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_FGREP=$FGREP -fi - - fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 -printf "%s\n" "$ac_cv_path_FGREP" >&6; } - FGREP="$ac_cv_path_FGREP" - - -test -z "$GREP" && GREP=grep - - - - - - - - - - - - - - - - - - - -# Check whether --with-gnu-ld was given. -if test ${with_gnu_ld+y} -then : - withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes -else $as_nop - with_gnu_ld=no -fi +fi ac_prog=ld if test yes = "$GCC"; then @@ -7885,8 +7610,8 @@ fi if test ${lt_cv_path_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$LD"; then +else case e in #( + e) if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs @@ -7909,7 +7634,8 @@ else $as_nop IFS=$lt_save_ifs else lt_cv_path_LD=$LD # Let the user override the test with a path. -fi +fi ;; +esac fi LD=$lt_cv_path_LD @@ -7926,8 +7652,8 @@ printf %s "checking if the linker ($LD) is GNU ld... " >&6; } if test ${lt_cv_prog_gnu_ld+y} then : printf %s "(cached) " >&6 -else $as_nop - # I'd rather use --version here, but apparently some GNU lds only accept -v. +else case e in #( + e) # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &1 &5 @@ -7954,8 +7681,8 @@ printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if test ${lt_cv_path_NM+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$NM"; then +else case e in #( + e) if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM=$NM else @@ -8002,7 +7729,8 @@ else IFS=$lt_save_ifs done : ${lt_cv_path_NM=no} -fi +fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 printf "%s\n" "$lt_cv_path_NM" >&6; } @@ -8023,8 +7751,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DUMPBIN+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DUMPBIN"; then +else case e in #( + e) if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -8046,7 +7774,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then @@ -8072,8 +7801,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DUMPBIN+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_DUMPBIN"; then +else case e in #( + e) if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -8095,7 +7824,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then @@ -8149,8 +7879,8 @@ printf %s "checking the name lister ($NM) interface... " >&6; } if test ${lt_cv_nm_interface+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_nm_interface="BSD nm" +else case e in #( + e) lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) @@ -8163,7 +7893,8 @@ else $as_nop if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi - rm -f conftest* + rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 printf "%s\n" "$lt_cv_nm_interface" >&6; } @@ -8174,8 +7905,8 @@ printf %s "checking the maximum length of command line arguments... " >&6; } if test ${lt_cv_sys_max_cmd_len+y} then : printf %s "(cached) " >&6 -else $as_nop - i=0 +else case e in #( + e) i=0 teststring=ABCD case $build_os in @@ -8297,7 +8028,8 @@ else $as_nop fi ;; esac - + ;; +esac fi if test -n "$lt_cv_sys_max_cmd_len"; then @@ -8354,8 +8086,8 @@ printf %s "checking how to convert $build file names to $host format... " >&6; } if test ${lt_cv_to_host_file_cmd+y} then : printf %s "(cached) " >&6 -else $as_nop - case $host in +else case e in #( + e) case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys @@ -8386,7 +8118,8 @@ else $as_nop lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac - + ;; +esac fi to_host_file_cmd=$lt_cv_to_host_file_cmd @@ -8402,8 +8135,8 @@ printf %s "checking how to convert $build file names to toolchain format... " >& if test ${lt_cv_to_tool_file_cmd+y} then : printf %s "(cached) " >&6 -else $as_nop - #assume ordinary cross tools, or native build. +else case e in #( + e) #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) @@ -8414,7 +8147,8 @@ case $host in esac ;; esac - + ;; +esac fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd @@ -8430,8 +8164,9 @@ printf %s "checking for $LD option to reload object files... " >&6; } if test ${lt_cv_ld_reload_flag+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_ld_reload_flag='-r' +else case e in #( + e) lt_cv_ld_reload_flag='-r' ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } @@ -8472,8 +8207,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_FILECMD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$FILECMD"; then +else case e in #( + e) if test -n "$FILECMD"; then ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -8495,7 +8230,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi FILECMD=$ac_cv_prog_FILECMD if test -n "$FILECMD"; then @@ -8517,8 +8253,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_FILECMD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_FILECMD"; then +else case e in #( + e) if test -n "$ac_ct_FILECMD"; then ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -8540,7 +8276,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD if test -n "$ac_ct_FILECMD"; then @@ -8580,8 +8317,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OBJDUMP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$OBJDUMP"; then +else case e in #( + e) if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -8603,7 +8340,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then @@ -8625,8 +8363,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OBJDUMP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_OBJDUMP"; then +else case e in #( + e) if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -8648,7 +8386,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then @@ -8686,8 +8425,8 @@ printf %s "checking how to recognize dependent libraries... " >&6; } if test ${lt_cv_deplibs_check_method+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_file_magic_cmd='$MAGIC_CMD' +else case e in #( + e) lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support @@ -8880,7 +8619,8 @@ os2*) lt_cv_deplibs_check_method=pass_all ;; esac - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } @@ -8932,8 +8672,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DLLTOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DLLTOOL"; then +else case e in #( + e) if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -8955,7 +8695,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then @@ -8977,8 +8718,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DLLTOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_DLLTOOL"; then +else case e in #( + e) if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -9000,7 +8741,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then @@ -9039,8 +8781,8 @@ printf %s "checking how to associate runtime and link libraries... " >&6; } if test ${lt_cv_sharedlib_from_linklib_cmd+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_sharedlib_from_linklib_cmd='unknown' +else case e in #( + e) lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) @@ -9060,7 +8802,8 @@ cygwin* | mingw* | pw32* | cegcc*) lt_cv_sharedlib_from_linklib_cmd=$ECHO ;; esac - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } @@ -9083,8 +8826,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AR"; then +else case e in #( + e) if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -9106,7 +8849,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi AR=$ac_cv_prog_AR if test -n "$AR"; then @@ -9132,8 +8876,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_AR+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_AR"; then +else case e in #( + e) if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -9155,7 +8899,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then @@ -9217,8 +8962,8 @@ printf %s "checking for archiver @FILE support... " >&6; } if test ${lt_cv_ar_at_file+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_ar_at_file=no +else case e in #( + e) lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -9255,7 +9000,8 @@ then : fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 printf "%s\n" "$lt_cv_ar_at_file" >&6; } @@ -9280,8 +9026,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$STRIP"; then +else case e in #( + e) if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -9303,7 +9049,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then @@ -9325,8 +9072,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_STRIP+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_STRIP"; then +else case e in #( + e) if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -9348,7 +9095,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then @@ -9389,8 +9137,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_RANLIB+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$RANLIB"; then +else case e in #( + e) if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -9412,7 +9160,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then @@ -9434,8 +9183,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_RANLIB+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_RANLIB"; then +else case e in #( + e) if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -9457,7 +9206,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then @@ -9568,8 +9318,8 @@ printf %s "checking command to parse $NM output from $compiler object... " >&6; if test ${lt_cv_sys_global_symbol_pipe+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] @@ -9824,7 +9574,8 @@ _LT_EOF lt_cv_sys_global_symbol_pipe= fi done - + ;; +esac fi if test -z "$lt_cv_sys_global_symbol_pipe"; then @@ -9888,8 +9639,9 @@ printf %s "checking for sysroot... " >&6; } if test ${with_sysroot+y} then : withval=$with_sysroot; -else $as_nop - with_sysroot=no +else case e in #( + e) with_sysroot=no ;; +esac fi @@ -9924,8 +9676,8 @@ printf %s "checking for a working dd... " >&6; } if test ${ac_cv_path_lt_DD+y} then : printf %s "(cached) " >&6 -else $as_nop - printf 0123456789abcdef0123456789abcdef >conftest.i +else case e in #( + e) printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} if test -z "$lt_DD"; then @@ -9961,7 +9713,8 @@ else ac_cv_path_lt_DD=$lt_DD fi -rm -f conftest.i conftest2.i conftest.out +rm -f conftest.i conftest2.i conftest.out ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } @@ -9972,8 +9725,8 @@ printf %s "checking how to truncate binary pipes... " >&6; } if test ${lt_cv_truncate_bin+y} then : printf %s "(cached) " >&6 -else $as_nop - printf 0123456789abcdef0123456789abcdef >conftest.i +else case e in #( + e) printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then @@ -9981,7 +9734,8 @@ if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; the && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" fi rm -f conftest.i conftest2.i conftest.out -test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" +test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 printf "%s\n" "$lt_cv_truncate_bin" >&6; } @@ -10191,8 +9945,8 @@ printf %s "checking whether the C compiler needs -belf... " >&6; } if test ${lt_cv_cc_needs_belf+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_ext=c +else case e in #( + e) 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' @@ -10212,8 +9966,9 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_cc_needs_belf=yes -else $as_nop - lt_cv_cc_needs_belf=no +else case e in #( + e) lt_cv_cc_needs_belf=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -10222,7 +9977,8 @@ 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 - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } @@ -10280,8 +10036,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_MANIFEST_TOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$MANIFEST_TOOL"; then +else case e in #( + e) if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -10303,7 +10059,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then @@ -10325,8 +10082,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_MANIFEST_TOOL"; then +else case e in #( + e) if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -10348,7 +10105,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then @@ -10380,15 +10138,16 @@ printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } if test ${lt_cv_path_mainfest_tool+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_path_mainfest_tool=no +else case e in #( + e) lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&5 if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi - rm -f conftest* + rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } @@ -10411,8 +10170,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_DSYMUTIL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$DSYMUTIL"; then +else case e in #( + e) if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -10434,7 +10193,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then @@ -10456,8 +10216,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_DSYMUTIL"; then +else case e in #( + e) if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -10479,7 +10239,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then @@ -10513,8 +10274,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_NMEDIT+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$NMEDIT"; then +else case e in #( + e) if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -10536,7 +10297,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then @@ -10558,8 +10320,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_NMEDIT+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_NMEDIT"; then +else case e in #( + e) if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -10581,7 +10343,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then @@ -10615,8 +10378,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_LIPO+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$LIPO"; then +else case e in #( + e) if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -10638,7 +10401,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then @@ -10660,8 +10424,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_LIPO+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_LIPO"; then +else case e in #( + e) if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -10683,7 +10447,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then @@ -10717,8 +10482,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OTOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$OTOOL"; then +else case e in #( + e) if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -10740,7 +10505,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then @@ -10762,8 +10528,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OTOOL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_OTOOL"; then +else case e in #( + e) if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -10785,7 +10551,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then @@ -10819,8 +10586,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OTOOL64+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$OTOOL64"; then +else case e in #( + e) if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -10842,7 +10609,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then @@ -10864,8 +10632,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_OTOOL64+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_OTOOL64"; then +else case e in #( + e) if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -10887,7 +10655,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then @@ -10944,8 +10713,8 @@ printf %s "checking for -single_module linker flag... " >&6; } if test ${lt_cv_apple_cc_single_mod+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_apple_cc_single_mod=no +else case e in #( + e) lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE @@ -10971,7 +10740,8 @@ else $as_nop fi rm -rf libconftest.dylib* rm -f conftest.* - fi + fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } @@ -10981,8 +10751,8 @@ printf %s "checking for -exported_symbols_list linker flag... " >&6; } if test ${lt_cv_ld_exported_symbols_list+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_ld_exported_symbols_list=no +else case e in #( + e) lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" @@ -11000,13 +10770,15 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_ld_exported_symbols_list=yes -else $as_nop - lt_cv_ld_exported_symbols_list=no +else case e in #( + e) lt_cv_ld_exported_symbols_list=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } @@ -11016,8 +10788,8 @@ printf %s "checking for -force_load linker flag... " >&6; } if test ${lt_cv_ld_force_load+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_ld_force_load=no +else case e in #( + e) lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF @@ -11042,7 +10814,8 @@ _LT_EOF fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 printf "%s\n" "$lt_cv_ld_force_load" >&6; } @@ -11135,54 +10908,392 @@ func_stripname_cnf () # Set options +enable_dlopen=yes +enable_win32_dll=yes +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. +set dummy ${ac_tool_prefix}as; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_AS+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$AS"; then + ac_cv_prog_AS="$AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_AS="${ac_tool_prefix}as" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS +fi ;; +esac +fi +AS=$ac_cv_prog_AS +if test -n "$AS"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 +printf "%s\n" "$AS" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi - - # Check whether --enable-shared was given. -if test ${enable_shared+y} -then : - enableval=$enable_shared; p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS=$lt_save_ifs - ;; - esac -else $as_nop - enable_shared=yes fi +if test -z "$ac_cv_prog_AS"; then + ac_ct_AS=$AS + # Extract the first word of "as", so it can be a program name with args. +set dummy as; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_AS+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$ac_ct_AS"; then + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_AS="as" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS +fi ;; +esac +fi +ac_ct_AS=$ac_cv_prog_ac_ct_AS +if test -n "$ac_ct_AS"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 +printf "%s\n" "$ac_ct_AS" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + if test "x$ac_ct_AS" = x; then + AS="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AS=$ac_ct_AS + fi +else + AS="$ac_cv_prog_AS" +fi + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_DLLTOOL+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_DLLTOOL="${ac_tool_prefix}dlltool" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS +fi ;; +esac +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +printf "%s\n" "$DLLTOOL" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_DLLTOOL+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_DLLTOOL="dlltool" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS +fi ;; +esac +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +printf "%s\n" "$ac_ct_DLLTOOL" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi - # Check whether --enable-static was given. -if test ${enable_static+y} + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_OBJDUMP+y} then : - enableval=$enable_static; p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_OBJDUMP="${ac_tool_prefix}objdump" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi ;; +esac +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +printf "%s\n" "$OBJDUMP" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_OBJDUMP+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_OBJDUMP="objdump" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi ;; +esac +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +printf "%s\n" "$ac_ct_OBJDUMP" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + + ;; +esac + +test -z "$AS" && AS=as + + + + + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + + + + + # Check whether --enable-shared was given. +if test ${enable_shared+y} +then : + enableval=$enable_shared; p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, + for pkg in $enableval; do + IFS=$lt_save_ifs + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS=$lt_save_ifs + ;; + esac +else case e in #( + e) enable_shared=yes ;; +esac +fi + + + + + + + + + + # Check whether --enable-static was given. +if test ${enable_static+y} +then : + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then @@ -11192,8 +11303,9 @@ then : IFS=$lt_save_ifs ;; esac -else $as_nop - enable_static=yes +else case e in #( + e) enable_static=yes ;; +esac fi @@ -11224,8 +11336,9 @@ then : IFS=$lt_save_ifs ;; esac -else $as_nop - pic_mode=default +else case e in #( + e) pic_mode=default ;; +esac fi @@ -11255,8 +11368,9 @@ then : IFS=$lt_save_ifs ;; esac -else $as_nop - enable_fast_install=yes +else case e in #( + e) enable_fast_install=yes ;; +esac fi @@ -11283,15 +11397,17 @@ then : ;; esac lt_cv_with_aix_soname=$with_aix_soname -else $as_nop - if test ${lt_cv_with_aix_soname+y} +else case e in #( + e) if test ${lt_cv_with_aix_soname+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_with_aix_soname=aix +else case e in #( + e) lt_cv_with_aix_soname=aix ;; +esac fi - with_aix_soname=$lt_cv_with_aix_soname + with_aix_soname=$lt_cv_with_aix_soname ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 @@ -11382,8 +11498,8 @@ printf %s "checking for objdir... " >&6; } if test ${lt_cv_objdir+y} then : printf %s "(cached) " >&6 -else $as_nop - rm -f .libs 2>/dev/null +else case e in #( + e) rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs @@ -11391,7 +11507,8 @@ else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi -rmdir .libs 2>/dev/null +rmdir .libs 2>/dev/null ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 printf "%s\n" "$lt_cv_objdir" >&6; } @@ -11452,8 +11569,8 @@ printf %s "checking for ${ac_tool_prefix}file... " >&6; } if test ${lt_cv_path_MAGIC_CMD+y} then : printf %s "(cached) " >&6 -else $as_nop - case $MAGIC_CMD in +else case e in #( + e) case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; @@ -11496,6 +11613,7 @@ _LT_EOF IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; +esac ;; esac fi @@ -11519,8 +11637,8 @@ printf %s "checking for file... " >&6; } if test ${lt_cv_path_MAGIC_CMD+y} then : printf %s "(cached) " >&6 -else $as_nop - case $MAGIC_CMD in +else case e in #( + e) case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; @@ -11563,6 +11681,7 @@ _LT_EOF IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; +esac ;; esac fi @@ -11662,8 +11781,8 @@ printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if test ${lt_cv_prog_compiler_rtti_exceptions+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_rtti_exceptions=no +else case e in #( + e) lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment @@ -11691,7 +11810,8 @@ else $as_nop fi fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } @@ -12056,8 +12176,9 @@ printf %s "checking for $compiler option to produce PIC... " >&6; } if test ${lt_cv_prog_compiler_pic+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_pic=$lt_prog_compiler_pic +else case e in #( + e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } @@ -12072,8 +12193,8 @@ printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; if test ${lt_cv_prog_compiler_pic_works+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_pic_works=no +else case e in #( + e) lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment @@ -12101,7 +12222,8 @@ else $as_nop fi fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } @@ -12137,8 +12259,8 @@ printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; if test ${lt_cv_prog_compiler_static_works+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_static_works=no +else case e in #( + e) lt_cv_prog_compiler_static_works=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext @@ -12159,7 +12281,8 @@ else $as_nop fi $RM -r conftest* LDFLAGS=$save_LDFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } @@ -12181,8 +12304,8 @@ printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_c_o=no +else case e in #( + e) lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest @@ -12222,7 +12345,8 @@ else $as_nop cd .. $RM -r conftest $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } @@ -12237,8 +12361,8 @@ printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_c_o=no +else case e in #( + e) lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest @@ -12278,7 +12402,8 @@ else $as_nop cd .. $RM -r conftest $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } @@ -12873,8 +12998,8 @@ else if test ${lt_cv_aix_libpath_+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -12906,7 +13031,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi - + ;; +esac fi aix_libpath=$lt_cv_aix_libpath_ @@ -12928,8 +13054,8 @@ else if test ${lt_cv_aix_libpath_+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -12961,7 +13087,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi - + ;; +esac fi aix_libpath=$lt_cv_aix_libpath_ @@ -13212,8 +13339,8 @@ printf %s "checking if $CC understands -b... " >&6; } if test ${lt_cv_prog_compiler__b+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler__b=no +else case e in #( + e) lt_cv_prog_compiler__b=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -b" echo "$lt_simple_link_test_code" > conftest.$ac_ext @@ -13234,7 +13361,8 @@ else $as_nop fi $RM -r conftest* LDFLAGS=$save_LDFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } @@ -13282,8 +13410,8 @@ printf %s "checking whether the $host_os linker accepts -exported_symbol... " >& if test ${lt_cv_irix_exported_symbol+y} then : printf %s "(cached) " >&6 -else $as_nop - save_LDFLAGS=$LDFLAGS +else case e in #( + e) save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -13292,12 +13420,14 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : lt_cv_irix_exported_symbol=yes -else $as_nop - lt_cv_irix_exported_symbol=no +else case e in #( + e) lt_cv_irix_exported_symbol=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - LDFLAGS=$save_LDFLAGS + LDFLAGS=$save_LDFLAGS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } @@ -13623,8 +13753,8 @@ printf %s "checking whether -lc should be explicitly linked in... " >&6; } if test ${lt_cv_archive_cmds_need_lc+y} then : printf %s "(cached) " >&6 -else $as_nop - $RM conftest* +else case e in #( + e) $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 @@ -13660,7 +13790,8 @@ else $as_nop cat conftest.err 1>&5 fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } @@ -14387,8 +14518,8 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) if test ${lt_cv_shlibpath_overrides_runpath+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_shlibpath_overrides_runpath=no +else case e in #( + e) lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ @@ -14415,7 +14546,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir - + ;; +esac fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath @@ -14840,16 +14972,22 @@ printf %s "checking for dlopen in -ldl... " >&6; } if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $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. */ -char dlopen (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (void); int main (void) { @@ -14861,24 +14999,27 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes -else $as_nop - ac_cv_lib_dl_dlopen=no +else case e in #( + e) ac_cv_lib_dl_dlopen=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl -else $as_nop - +else case e in #( + e) lt_cv_dlopen=dyld lt_cv_dlopen_libs= lt_cv_dlopen_self=yes - + ;; +esac fi ;; @@ -14896,22 +15037,28 @@ fi if test "x$ac_cv_func_shl_load" = xyes then : lt_cv_dlopen=shl_load -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 printf %s "checking for shl_load in -ldld... " >&6; } if test ${ac_cv_lib_dld_shl_load+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $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. */ -char shl_load (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (void); int main (void) { @@ -14923,39 +15070,47 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dld_shl_load=yes -else $as_nop - ac_cv_lib_dld_shl_load=no +else case e in #( + e) ac_cv_lib_dld_shl_load=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = xyes then : lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld -else $as_nop - ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +else case e in #( + e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes then : lt_cv_dlopen=dlopen -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 printf %s "checking for dlopen in -ldl... " >&6; } if test ${ac_cv_lib_dl_dlopen+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $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. */ -char dlopen (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (void); int main (void) { @@ -14967,34 +15122,42 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dl_dlopen=yes -else $as_nop - ac_cv_lib_dl_dlopen=no +else case e in #( + e) ac_cv_lib_dl_dlopen=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 printf %s "checking for dlopen in -lsvld... " >&6; } if test ${ac_cv_lib_svld_dlopen+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $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. */ -char dlopen (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (void); int main (void) { @@ -15006,34 +15169,42 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_svld_dlopen=yes -else $as_nop - ac_cv_lib_svld_dlopen=no +else case e in #( + e) ac_cv_lib_svld_dlopen=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = xyes then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 printf %s "checking for dld_link in -ldld... " >&6; } if test ${ac_cv_lib_dld_dld_link+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $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. */ -char dld_link (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (void); int main (void) { @@ -15045,12 +15216,14 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dld_dld_link=yes -else $as_nop - ac_cv_lib_dld_dld_link=no +else case e in #( + e) ac_cv_lib_dld_dld_link=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } @@ -15059,19 +15232,24 @@ then : lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld fi - + ;; +esac fi - + ;; +esac fi - + ;; +esac fi - + ;; +esac fi - + ;; +esac fi ;; @@ -15099,8 +15277,8 @@ printf %s "checking whether a program can dlopen itself... " >&6; } if test ${lt_cv_dlopen_self+y} then : printf %s "(cached) " >&6 -else $as_nop - if test yes = "$cross_compiling"; then : +else case e in #( + e) if test yes = "$cross_compiling"; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 @@ -15194,7 +15372,8 @@ _LT_EOF fi rm -fr conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 printf "%s\n" "$lt_cv_dlopen_self" >&6; } @@ -15206,8 +15385,8 @@ printf %s "checking whether a statically linked program can dlopen itself... " > if test ${lt_cv_dlopen_self_static+y} then : printf %s "(cached) " >&6 -else $as_nop - if test yes = "$cross_compiling"; then : +else case e in #( + e) if test yes = "$cross_compiling"; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 @@ -15301,7 +15480,8 @@ _LT_EOF fi rm -fr conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } @@ -15459,8 +15639,8 @@ if test -z "$CXXCPP"; then if test ${ac_cv_prog_CXXCPP+y} then : printf %s "(cached) " >&6 -else $as_nop - # Double quotes because $CXX needs to be expanded +else case e in #( + e) # Double quotes because $CXX needs to be expanded for CXXCPP in "$CXX -E" cpp /lib/cpp do ac_preproc_ok=false @@ -15478,9 +15658,10 @@ _ACEOF if ac_fn_cxx_try_cpp "$LINENO" then : -else $as_nop - # Broken: fails on valid input. -continue +else case e in #( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -15494,15 +15675,16 @@ if ac_fn_cxx_try_cpp "$LINENO" then : # Broken: success on invalid input. continue -else $as_nop - # Passes both tests. +else case e in #( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# 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 : @@ -15511,7 +15693,8 @@ fi done ac_cv_prog_CXXCPP=$CXXCPP - + ;; +esac fi CXXCPP=$ac_cv_prog_CXXCPP else @@ -15534,9 +15717,10 @@ _ACEOF if ac_fn_cxx_try_cpp "$LINENO" then : -else $as_nop - # Broken: fails on valid input. -continue +else case e in #( + e) # Broken: fails on valid input. +continue ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -15550,24 +15734,26 @@ if ac_fn_cxx_try_cpp "$LINENO" then : # Broken: success on invalid input. continue -else $as_nop - # Passes both tests. +else case e in #( + e) # Passes both tests. ac_preproc_ok=: -break +break ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +# 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_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +else case e in #( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi ac_ext=c @@ -15704,8 +15890,9 @@ cc_basename=$func_cc_basename_result if test ${with_gnu_ld+y} then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes -else $as_nop - with_gnu_ld=no +else case e in #( + e) with_gnu_ld=no ;; +esac fi ac_prog=ld @@ -15750,8 +15937,8 @@ fi if test ${lt_cv_path_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$LD"; then +else case e in #( + e) if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs @@ -15774,7 +15961,8 @@ else $as_nop IFS=$lt_save_ifs else lt_cv_path_LD=$LD # Let the user override the test with a path. -fi +fi ;; +esac fi LD=$lt_cv_path_LD @@ -15791,8 +15979,8 @@ printf %s "checking if the linker ($LD) is GNU ld... " >&6; } if test ${lt_cv_prog_gnu_ld+y} then : printf %s "(cached) " >&6 -else $as_nop - # I'd rather use --version here, but apparently some GNU lds only accept -v. +else case e in #( + e) # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &1 &5 @@ -15999,8 +16188,8 @@ else if test ${lt_cv_aix_libpath__CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -16032,7 +16221,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib fi - + ;; +esac fi aix_libpath=$lt_cv_aix_libpath__CXX @@ -16055,8 +16245,8 @@ else if test ${lt_cv_aix_libpath__CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -16088,7 +16278,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib fi - + ;; +esac fi aix_libpath=$lt_cv_aix_libpath__CXX @@ -17460,8 +17651,9 @@ printf %s "checking for $compiler option to produce PIC... " >&6; } if test ${lt_cv_prog_compiler_pic_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX +else case e in #( + e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; } @@ -17476,8 +17668,8 @@ printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " > if test ${lt_cv_prog_compiler_pic_works_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_pic_works_CXX=no +else case e in #( + e) 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 @@ -17505,7 +17697,8 @@ else $as_nop fi fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } @@ -17535,8 +17728,8 @@ printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; if test ${lt_cv_prog_compiler_static_works_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_static_works_CXX=no +else case e in #( + e) 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 @@ -17557,7 +17750,8 @@ else $as_nop fi $RM -r conftest* LDFLAGS=$save_LDFLAGS - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } @@ -17576,8 +17770,8 @@ printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_c_o_CXX=no +else case e in #( + e) lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest @@ -17617,7 +17811,8 @@ else $as_nop cd .. $RM -r conftest $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } @@ -17629,8 +17824,8 @@ printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if test ${lt_cv_prog_compiler_c_o_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_prog_compiler_c_o_CXX=no +else case e in #( + e) lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest @@ -17670,7 +17865,8 @@ else $as_nop cd .. $RM -r conftest $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } @@ -17775,8 +17971,8 @@ printf %s "checking whether -lc should be explicitly linked in... " >&6; } if test ${lt_cv_archive_cmds_need_lc_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - $RM conftest* +else case e in #( + e) $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 @@ -17812,7 +18008,8 @@ else $as_nop cat conftest.err 1>&5 fi $RM conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } @@ -18376,8 +18573,8 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) if test ${lt_cv_shlibpath_overrides_runpath+y} then : printf %s "(cached) " >&6 -else $as_nop - lt_cv_shlibpath_overrides_runpath=no +else case e in #( + e) lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ @@ -18404,7 +18601,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir - + ;; +esac fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath @@ -18790,145 +18988,472 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu subdirs="$subdirs libltdl" -# Autoupdate added the next two lines to ensure that your configure -# script's behavior did not change. They are probably safe to remove. +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 +printf %s "checking for an ANSI C-conforming const... " >&6; } +if test ${ac_cv_c_const+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main (void) +{ -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} +#ifndef __cplusplus + /* Ultrix mips cc rejects this sort of thing. */ + typedef int charset[2]; + const charset cs = { 0, 0 }; + /* SunOS 4.1.1 cc rejects this. */ + char const *const *pcpcc; + char **ppc; + /* NEC SVR4.0.2 mips cc rejects this. */ + struct point {int x, y;}; + static struct point const zero = {0,0}; + /* IBM XL C 1.02.0.0 rejects this. + It does not let you subtract one const X* pointer from another in + an arm of an if-expression whose if-part is not a constant + expression */ + const char *g = "string"; + pcpcc = &g + (g ? g-g : 0); + /* HPUX 7.0 cc rejects these. */ + ++pcpcc; + ppc = (char**) pcpcc; + pcpcc = (char const *const *) ppc; + { /* SCO 3.2v4 cc rejects this sort of thing. */ + char tx; + char *t = &tx; + char const *s = 0 ? (char *) 0 : (char const *) 0; + + *t++ = 0; + if (s) return 0; + } + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ + int x[] = {25, 17}; + const int *foo = &x[0]; + ++foo; + } + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ + typedef const int *iptr; + iptr p = 0; + ++p; + } + { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ + struct s { int j; const int *ap[3]; } bx; + struct s *b = &bx; b->j = 5; + } + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ + const int foo = 10; + if (!foo) return 0; + } + return !cs[0] && !zero.x; +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_c_const=yes +else case e in #( + e) ac_cv_c_const=no ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +printf "%s\n" "$ac_cv_c_const" >&6; } +if test $ac_cv_c_const = no; then + +printf "%s\n" "#define const /**/" >>confdefs.h + +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +printf %s "checking whether byte ordering is bigendian... " >&6; } +if test ${ac_cv_c_bigendian+y} then : printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in egrep - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count +else case e in #( + e) ac_cv_c_bigendian=unknown + # See if we're dealing with a universal compiler. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __APPLE_CC__ + not a universal capable compiler + #endif + typedef int dummy; + +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + + # Check for potential -arch flags. It is not universal unless + # there are at least two -arch flags with different values. + ac_arch= + ac_prev= + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do + if test -n "$ac_prev"; then + case $ac_word in + i?86 | x86_64 | ppc | ppc64) + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then + ac_arch=$ac_word + else + ac_cv_c_bigendian=universal + break + fi + ;; + esac + ac_prev= + elif test "x$ac_word" = "x-arch"; then + ac_prev=arch + fi + done +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + if test $ac_cv_c_bigendian = unknown; then + # See if sys/param.h defines the BYTE_ORDER macro. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main (void) +{ +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\ + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\ + && LITTLE_ENDIAN) + bogus endian macros + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + # It does; now see whether it defined to BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main (void) +{ +#if BYTE_ORDER != BIG_ENDIAN + not big endian + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_c_bigendian=yes +else case e in #( + e) ac_cv_c_bigendian=no ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; + if test $ac_cv_c_bigendian = unknown; then + # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main (void) +{ +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) + bogus endian macros + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + # It does; now see whether it defined to _BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +int +main (void) +{ +#ifndef _BIG_ENDIAN + not big endian + #endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_c_bigendian=yes +else case e in #( + e) ac_cv_c_bigendian=no ;; esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # Compile a test program. + if test "$cross_compiling" = yes +then : + # Try to guess by grepping values from an object file. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +unsigned short int ascii_mm[] = + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; + unsigned short int ascii_ii[] = + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; + int use_ascii (int i) { + return ascii_mm[i] + ascii_ii[i]; + } + unsigned short int ebcdic_ii[] = + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; + unsigned short int ebcdic_mm[] = + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; + int use_ebcdic (int i) { + return ebcdic_mm[i] + ebcdic_ii[i]; + } + int + main (int argc, char **argv) + { + /* Intimidate the compiler so that it does not + optimize the arrays away. */ + char *p = argv[0]; + ascii_mm[1] = *p++; ebcdic_mm[1] = *p++; + ascii_ii[1] = *p++; ebcdic_ii[1] = *p++; + return use_ascii (argc) == use_ebcdic (*p); + } +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then + ac_cv_c_bigendian=yes + fi + if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then + if test "$ac_cv_c_bigendian" = unknown; then + ac_cv_c_bigendian=no + else + # finding both strings is unlikely to happen, but who knows? + ac_cv_c_bigendian=unknown + fi + fi +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main (void) +{ - $ac_path_EGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_EGREP=$EGREP + /* Are we little or big endian? From Harbison&Steele. */ + union + { + long int l; + char c[sizeof (long int)]; + } u; + u.l = 1; + return u.c[sizeof (long int) - 1] == 1; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO" +then : + ac_cv_c_bigendian=no +else case e in #( + e) ac_cv_c_bigendian=yes ;; +esac +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac +fi + + fi ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 +printf "%s\n" "$ac_cv_c_bigendian" >&6; } + case $ac_cv_c_bigendian in #( + yes) + printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h +;; #( + no) + ;; #( + universal) + +printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h + + ;; #( + *) + as_fn_error $? "unknown endianness + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; + esac + + + ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default +" +if test "x$ac_cv_type_pid_t" = xyes +then : + +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #if defined _WIN64 && !defined __CYGWIN__ + LLP64 + #endif + +int +main (void) +{ + + ; + return 0; +} + +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_pid_type='int' +else case e in #( + e) ac_pid_type='__int64' ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + +printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h + + ;; +esac +fi + + +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = xyes +then : + +else case e in #( + e) +printf "%s\n" "#define size_t unsigned int" >>confdefs.h + ;; +esac +fi + +ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" +if test "x$ac_cv_type_ssize_t" = xyes +then : + +printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h + + +else case e in #( + e) +printf "%s\n" "#define ssize_t signed long" >>confdefs.h + ;; +esac +fi + +ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" +if test "x$ac_cv_type_off_t" = xyes +then : + +else case e in #( + e) +printf "%s\n" "#define off_t long int" >>confdefs.h + ;; +esac fi - fi +ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default" +if test "x$ac_cv_type_uid_t" = xyes +then : + +else case e in #( + e) +printf "%s\n" "#define uid_t int" >>confdefs.h + ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" +ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default" +if test "x$ac_cv_type_gid_t" = xyes +then : +else case e in #( + e) +printf "%s\n" "#define gid_t int" >>confdefs.h + ;; +esac +fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 -printf %s "checking for an ANSI C-conforming const... " >&6; } -if test ${ac_cv_c_const+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 +printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } +if test ${ac_cv_c_undeclared_builtin_options+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) ac_save_CFLAGS=$CFLAGS + ac_cv_c_undeclared_builtin_options='cannot detect' + for ac_arg in '' -fno-builtin; do + CFLAGS="$ac_save_CFLAGS $ac_arg" + # This test program should *not* compile successfully. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { +(void) strchr; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : -#ifndef __cplusplus - /* Ultrix mips cc rejects this sort of thing. */ - typedef int charset[2]; - const charset cs = { 0, 0 }; - /* SunOS 4.1.1 cc rejects this. */ - char const *const *pcpcc; - char **ppc; - /* NEC SVR4.0.2 mips cc rejects this. */ - struct point {int x, y;}; - static struct point const zero = {0,0}; - /* IBM XL C 1.02.0.0 rejects this. - It does not let you subtract one const X* pointer from another in - an arm of an if-expression whose if-part is not a constant - expression */ - const char *g = "string"; - pcpcc = &g + (g ? g-g : 0); - /* HPUX 7.0 cc rejects these. */ - ++pcpcc; - ppc = (char**) pcpcc; - pcpcc = (char const *const *) ppc; - { /* SCO 3.2v4 cc rejects this sort of thing. */ - char tx; - char *t = &tx; - char const *s = 0 ? (char *) 0 : (char const *) 0; +else case e in #( + e) # This test program should compile successfully. + # No library function is consistently available on + # freestanding implementations, so test against a dummy + # declaration. Include always-available headers on the + # off chance that they somehow elicit warnings. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +#include +#include +extern void ac_decl (int, char *); - *t++ = 0; - if (s) return 0; - } - { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ - int x[] = {25, 17}; - const int *foo = &x[0]; - ++foo; - } - { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ - typedef const int *iptr; - iptr p = 0; - ++p; - } - { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ - struct s { int j; const int *ap[3]; } bx; - struct s *b = &bx; b->j = 5; - } - { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ - const int foo = 10; - if (!foo) return 0; - } - return !cs[0] && !zero.x; -#endif +int +main (void) +{ +(void) ac_decl (0, (char *) 0); + (void) ac_decl; ; return 0; @@ -18936,96 +19461,93 @@ main (void) _ACEOF if ac_fn_c_try_compile "$LINENO" then : - ac_cv_c_const=yes -else $as_nop - ac_cv_c_const=no + if test x"$ac_arg" = x +then : + ac_cv_c_undeclared_builtin_options='none needed' +else case e in #( + e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; +esac +fi + break +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + done + CFLAGS=$ac_save_CFLAGS + ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 -printf "%s\n" "$ac_cv_c_const" >&6; } -if test $ac_cv_c_const = no; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 +printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } + case $ac_cv_c_undeclared_builtin_options in #( + 'cannot detect') : + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} +as_fn_error $? "cannot make $CC report undeclared builtins +See 'config.log' for more details" "$LINENO" 5; } ;; #( + 'none needed') : + ac_c_undeclared_builtin_options='' ;; #( + *) : + ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; +esac -printf "%s\n" "#define const /**/" >>confdefs.h +ac_fn_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_environ" = xyes +then : + ac_have_decl=1 +else case e in #( + e) ac_have_decl=0 ;; +esac +fi +printf "%s\n" "#define HAVE_DECL_ENVIRON $ac_have_decl" >>confdefs.h + + +ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" +if test "x$ac_cv_header_byteswap_h" = xyes +then : + printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 -printf %s "checking whether byte ordering is bigendian... " >&6; } -if test ${ac_cv_c_bigendian+y} +ac_fn_c_check_func "$LINENO" "__builtin_bswap16" "ac_cv_func___builtin_bswap16" +if test "x$ac_cv_func___builtin_bswap16" = xyes then : - printf %s "(cached) " >&6 -else $as_nop - ac_cv_c_bigendian=unknown - # See if we're dealing with a universal compiler. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifndef __APPLE_CC__ - not a universal capable compiler - #endif - typedef int dummy; + printf "%s\n" "#define HAVE___BUILTIN_BSWAP16 1" >>confdefs.h -_ACEOF -if ac_fn_c_try_compile "$LINENO" +fi +ac_fn_c_check_func "$LINENO" "__builtin_bswap32" "ac_cv_func___builtin_bswap32" +if test "x$ac_cv_func___builtin_bswap32" = xyes then : + printf "%s\n" "#define HAVE___BUILTIN_BSWAP32 1" >>confdefs.h - # Check for potential -arch flags. It is not universal unless - # there are at least two -arch flags with different values. - ac_arch= - ac_prev= - for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do - if test -n "$ac_prev"; then - case $ac_word in - i?86 | x86_64 | ppc | ppc64) - if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then - ac_arch=$ac_word - else - ac_cv_c_bigendian=universal - break - fi - ;; - esac - ac_prev= - elif test "x$ac_word" = "x-arch"; then - ac_prev=arch - fi - done fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - if test $ac_cv_c_bigendian = unknown; then - # See if sys/param.h defines the BYTE_ORDER macro. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - #include +ac_fn_c_check_func "$LINENO" "__builtin_bswap64" "ac_cv_func___builtin_bswap64" +if test "x$ac_cv_func___builtin_bswap64" = xyes +then : + printf "%s\n" "#define HAVE___BUILTIN_BSWAP64 1" >>confdefs.h -int -main (void) -{ -#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ - && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ - && LITTLE_ENDIAN) - bogus endian macros - #endif +fi - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" + +for flag in -Wall -Wsign-compare -Wno-stringop-overflow -fvisibility=hidden; do + as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_-pedantic -Werror_$flag" | sed "$as_sed_sh"` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 +printf %s "checking whether C compiler accepts $flag... " >&6; } +if eval test \${$as_CACHEVAR+y} then : - # It does; now see whether it defined to BIG_ENDIAN or not. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + printf %s "(cached) " >&6 +else case e in #( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -pedantic -Werror $flag" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - #include int main (void) { -#if BYTE_ORDER != BIG_ENDIAN - not big endian - #endif ; return 0; @@ -19033,26 +19555,91 @@ main (void) _ACEOF if ac_fn_c_try_compile "$LINENO" then : - ac_cv_c_bigendian=yes -else $as_nop - ac_cv_c_bigendian=no + eval "$as_CACHEVAR=yes" +else case e in #( + e) eval "$as_CACHEVAR=no" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - fi - if test $ac_cv_c_bigendian = unknown; then - # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +eval ac_res=\$$as_CACHEVAR + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_CACHEVAR"\" = x"\"yes\"" +then : + +if test ${CFLAGS+y} +then : + if printf "%s\n" " $CFLAGS " | $GREP " $flag " 2>&1 >/dev/null +then : + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 + (: CFLAGS already contains $flag) 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +else case e in #( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 + (: CFLAGS="$CFLAGS $flag") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + as_fn_append CFLAGS " $flag" ;; +esac +fi +else case e in #( + e) CFLAGS=$flag ;; +esac +fi + +else case e in #( + e) : ;; +esac +fi + +done + + +if test "x$ax_enable_debug" != "xyes" ; then + CFLAGS="$CFLAGS -O2" +fi + +# need that as conditional because some internal tools compile as static +# to have access to internal libfyaml APIs +if test "x$enable_static" = "xyes" ; then +HAVE_STATIC=1 +else +HAVE_STATIC=0 +fi + + +printf "%s\n" "#define HAVE_STATIC $HAVE_STATIC" >>confdefs.h + + if test x$HAVE_STATIC = x1 ; then + HAVE_STATIC_TRUE= + HAVE_STATIC_FALSE='#' +else + HAVE_STATIC_TRUE='#' + HAVE_STATIC_FALSE= +fi + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstringop-overread" >&5 +printf %s "checking whether C compiler accepts -Wstringop-overread... " >&6; } +if test ${ax_cv_check_cflags__Werror__Wstringop_overread+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wstringop-overread" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include int main (void) { -#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) - bogus endian macros - #endif ; return 0; @@ -19060,17 +19647,125 @@ main (void) _ACEOF if ac_fn_c_try_compile "$LINENO" then : - # It does; now see whether it defined to _BIG_ENDIAN or not. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + ax_cv_check_cflags__Werror__Wstringop_overread=yes +else case e in #( + e) ax_cv_check_cflags__Werror__Wstringop_overread=no ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wstringop_overread" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__Wstringop_overread" >&6; } +if test "x$ax_cv_check_cflags__Werror__Wstringop_overread" = x"yes" +then : + : +else case e in #( + e) : ;; +esac +fi + +if test "x$ax_cv_check_cflags__Werror__wstringop_overread" = x"yes" +then : + HAVE_WSTRINGOP_OVERREAD=1 +else case e in #( + e) HAVE_WSTRINGOP_OVERREAD=0 ;; +esac +fi + +printf "%s\n" "#define HAVE_WSTRINGOP_OVERREAD $HAVE_WSTRINGOP_OVERREAD" >>confdefs.h + + +# Check whether --enable-portable-target was given. +if test ${enable_portable_target+y} +then : + enableval=$enable_portable_target; +fi + +HAVE_PORTABLE_TARGET=0 +if test "x$enable_portable_target" == "xyes"; then + HAVE_PORTABLE_TARGET=1 +fi + + +printf "%s\n" "#define HAVE_PORTABLE_TARGET $HAVE_PORTABLE_TARGET" >>confdefs.h + + if test x$HAVE_PORTABLE_TARGET == x1 ; then + HAVE_PORTABLE_TARGET_TRUE= + HAVE_PORTABLE_TARGET_FALSE='#' +else + HAVE_PORTABLE_TARGET_TRUE='#' + HAVE_PORTABLE_TARGET_FALSE= +fi + + + if test x$target_cpu = xx86 ; then + TARGET_CPU_X86_TRUE= + TARGET_CPU_X86_FALSE='#' +else + TARGET_CPU_X86_TRUE='#' + TARGET_CPU_X86_FALSE= +fi + + if test x$target_cpu = xx86_64 ; then + TARGET_CPU_X86_64_TRUE= + TARGET_CPU_X86_64_FALSE='#' +else + TARGET_CPU_X86_64_TRUE='#' + TARGET_CPU_X86_64_FALSE= +fi + + if test x$target_cpu = xx86 -o x$target_cpu = xx86_64 ; then + TARGET_CPU_ANY_X86_TRUE= + TARGET_CPU_ANY_X86_FALSE='#' +else + TARGET_CPU_ANY_X86_TRUE='#' + TARGET_CPU_ANY_X86_FALSE= +fi + + if test x$target_cpu = xarm ; then + TARGET_CPU_ARM_TRUE= + TARGET_CPU_ARM_FALSE='#' +else + TARGET_CPU_ARM_TRUE='#' + TARGET_CPU_ARM_FALSE= +fi + + if test x$target_cpu = xaarch64 ; then + TARGET_CPU_ARM64_TRUE= + TARGET_CPU_ARM64_FALSE='#' +else + TARGET_CPU_ARM64_TRUE='#' + TARGET_CPU_ARM64_FALSE= +fi + + if test x$target_cpu = xarm -o x$target_cpu = xaarch64 ; then + TARGET_CPU_ANY_ARM_TRUE= + TARGET_CPU_ANY_ARM_FALSE='#' +else + TARGET_CPU_ANY_ARM_TRUE='#' + TARGET_CPU_ANY_ARM_FALSE= +fi + + +if test -z "$TARGET_CPU_ANY_X86_TRUE"; then : + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse2" >&5 +printf %s "checking whether C compiler accepts -msse2... " >&6; } +if test ${ax_cv_check_cflags__Werror__msse2+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -msse2" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include int main (void) { -#ifndef _BIG_ENDIAN - not big endian - #endif ; return 0; @@ -19078,125 +19773,119 @@ main (void) _ACEOF if ac_fn_c_try_compile "$LINENO" then : - ac_cv_c_bigendian=yes -else $as_nop - ac_cv_c_bigendian=no + ax_cv_check_cflags__Werror__msse2=yes +else case e in #( + e) ax_cv_check_cflags__Werror__msse2=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - fi - if test $ac_cv_c_bigendian = unknown; then - # Compile a test program. - if test "$cross_compiling" = yes +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__msse2" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__msse2" >&6; } +if test "x$ax_cv_check_cflags__Werror__msse2" = x"yes" then : - # Try to guess by grepping values from an object file. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + : +else case e in #( + e) : ;; +esac +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.1" >&5 +printf %s "checking whether C compiler accepts -msse4.1... " >&6; } +if test ${ax_cv_check_cflags__Werror__msse4_1+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -msse4.1" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -unsigned short int ascii_mm[] = - { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; - unsigned short int ascii_ii[] = - { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; - int use_ascii (int i) { - return ascii_mm[i] + ascii_ii[i]; - } - unsigned short int ebcdic_ii[] = - { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; - unsigned short int ebcdic_mm[] = - { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; - int use_ebcdic (int i) { - return ebcdic_mm[i] + ebcdic_ii[i]; - } - extern int foo; int main (void) { -return use_ascii (foo) == use_ebcdic (foo); + ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : - if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then - ac_cv_c_bigendian=yes - fi - if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then - if test "$ac_cv_c_bigendian" = unknown; then - ac_cv_c_bigendian=no - else - # finding both strings is unlikely to happen, but who knows? - ac_cv_c_bigendian=unknown - fi - fi + ax_cv_check_cflags__Werror__msse4_1=yes +else case e in #( + e) ax_cv_check_cflags__Werror__msse4_1=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -else $as_nop + CFLAGS=$ax_check_save_flags ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__msse4_1" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__msse4_1" >&6; } +if test "x$ax_cv_check_cflags__Werror__msse4_1" = x"yes" +then : + : +else case e in #( + e) : ;; +esac +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5 +printf %s "checking whether C compiler accepts -mavx2... " >&6; } +if test ${ax_cv_check_cflags__Werror__mavx2+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -mavx2" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default + int main (void) { - /* Are we little or big endian? From Harbison&Steele. */ - union - { - long int l; - char c[sizeof (long int)]; - } u; - u.l = 1; - return u.c[sizeof (long int) - 1] == 1; - ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO" +if ac_fn_c_try_compile "$LINENO" then : - ac_cv_c_bigendian=no -else $as_nop - ac_cv_c_bigendian=yes + ax_cv_check_cflags__Werror__mavx2=yes +else case e in #( + e) ax_cv_check_cflags__Werror__mavx2=no ;; +esac fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi - - fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__mavx2" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__mavx2" >&6; } +if test "x$ax_cv_check_cflags__Werror__mavx2" = x"yes" +then : + : +else case e in #( + e) : ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 -printf "%s\n" "$ac_cv_c_bigendian" >&6; } - case $ac_cv_c_bigendian in #( - yes) - printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h -;; #( - no) - ;; #( - universal) - -printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h - - ;; #( - *) - as_fn_error $? "unknown endianness - presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; - esac - - ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default -" -if test "x$ac_cv_type_pid_t" = xyes + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx512f -mavx512vl" >&5 +printf %s "checking whether C compiler accepts -mavx512f -mavx512vl... " >&6; } +if test ${ax_cv_check_cflags__Werror__mavx512f__mavx512vl+y} then : - -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + printf %s "(cached) " >&6 +else case e in #( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -mavx512f -mavx512vl" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - #if defined _WIN64 && !defined __CYGWIN__ - LLP64 - #endif - int main (void) { @@ -19204,221 +19893,180 @@ main (void) ; return 0; } - _ACEOF if ac_fn_c_try_compile "$LINENO" then : - ac_pid_type='int' -else $as_nop - ac_pid_type='__int64' + ax_cv_check_cflags__Werror__mavx512f__mavx512vl=yes +else case e in #( + e) ax_cv_check_cflags__Werror__mavx512f__mavx512vl=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - -printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h - - + CFLAGS=$ax_check_save_flags ;; +esac fi - - -ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" -if test "x$ac_cv_type_size_t" = xyes +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__mavx512f__mavx512vl" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__mavx512f__mavx512vl" >&6; } +if test "x$ax_cv_check_cflags__Werror__mavx512f__mavx512vl" = x"yes" then : - -else $as_nop - -printf "%s\n" "#define size_t unsigned int" >>confdefs.h - + : +else case e in #( + e) : ;; +esac fi -ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" -if test "x$ac_cv_type_ssize_t" = xyes -then : - -printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h - - -else $as_nop -printf "%s\n" "#define ssize_t signed long" >>confdefs.h fi -ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" -if test "x$ac_cv_type_off_t" = xyes -then : - -else $as_nop - -printf "%s\n" "#define off_t long int" >>confdefs.h - -fi +if test -z "$TARGET_CPU_ARM_TRUE"; then : -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 -printf %s "checking return type of signal handlers... " >&6; } -if test ${ac_cv_type_signal+y} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfpu=neon" >&5 +printf %s "checking whether C compiler accepts -mfpu=neon... " >&6; } +if test ${ax_cv_check_cflags__Werror__mfpu_neon+y} then : printf %s "(cached) " >&6 -else $as_nop +else case e in #( + e) + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -mfpu=neon" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include int main (void) { -return *(signal (0, 0)) (0) == 1; + ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : - ac_cv_type_signal=int -else $as_nop - ac_cv_type_signal=void + ax_cv_check_cflags__Werror__mfpu_neon=yes +else case e in #( + e) ax_cv_check_cflags__Werror__mfpu_neon=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 -printf "%s\n" "$ac_cv_type_signal" >&6; } - -printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 -printf %s "checking for uid_t in sys/types.h... " >&6; } -if test ${ac_cv_type_uid_t+y} -then : - printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "uid_t" >/dev/null 2>&1 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__mfpu_neon" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__mfpu_neon" >&6; } +if test "x$ax_cv_check_cflags__Werror__mfpu_neon" = x"yes" then : - ac_cv_type_uid_t=yes -else $as_nop - ac_cv_type_uid_t=no + : +else case e in #( + e) : ;; +esac fi -rm -rf conftest* -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 -printf "%s\n" "$ac_cv_type_uid_t" >&6; } -if test $ac_cv_type_uid_t = no; then -printf "%s\n" "#define uid_t int" >>confdefs.h +fi -printf "%s\n" "#define gid_t int" >>confdefs.h + if test "x$ax_cv_check_cflags__Werror__msse2" = x"yes" -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_SSE2_TRUE= + TARGET_HAS_SSE2_FALSE='#' +else + TARGET_HAS_SSE2_TRUE='#' + TARGET_HAS_SSE2_FALSE= +fi + if test "x$ax_cv_check_cflags__Werror__msse4_1" = x"yes" -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_SSE41_TRUE= + TARGET_HAS_SSE41_FALSE='#' +else + TARGET_HAS_SSE41_TRUE='#' + TARGET_HAS_SSE41_FALSE= fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 -printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } -if test ${ac_cv_c_undeclared_builtin_options+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_save_CFLAGS=$CFLAGS - ac_cv_c_undeclared_builtin_options='cannot detect' - for ac_arg in '' -fno-builtin; do - CFLAGS="$ac_save_CFLAGS $ac_arg" - # This test program should *not* compile successfully. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ + if test "x$ax_cv_check_cflags__Werror__mavx2" = x"yes" -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_AVX2_TRUE= + TARGET_HAS_AVX2_FALSE='#' +else + TARGET_HAS_AVX2_TRUE='#' + TARGET_HAS_AVX2_FALSE= +fi -int -main (void) -{ -(void) strchr; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : + if test "x$ax_cv_check_cflags__Werror__mavx512f__mavx512vl" = x"yes" -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_AVX512_TRUE= + TARGET_HAS_AVX512_FALSE='#' +else + TARGET_HAS_AVX512_TRUE='#' + TARGET_HAS_AVX512_FALSE= +fi -else $as_nop - # This test program should compile successfully. - # No library function is consistently available on - # freestanding implementations, so test against a dummy - # declaration. Include always-available headers on the - # off chance that they somehow elicit warnings. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -#include -extern void ac_decl (int, char *); -int -main (void) -{ -(void) ac_decl (0, (char *) 0); - (void) ac_decl; + if test \( x$target_cpu = xaarch64 -o "x$ax_cv_check_cflags__Werror__mcpu_neon" = x"yes" \) -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_NEON_TRUE= + TARGET_HAS_NEON_FALSE='#' +else + TARGET_HAS_NEON_TRUE='#' + TARGET_HAS_NEON_FALSE= +fi + + +if test -z "$TARGET_HAS_SSE2_TRUE"; then : + +printf "%s\n" "#define TARGET_HAS_SSE2 1" >>confdefs.h - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - if test x"$ac_arg" = x -then : - ac_cv_c_undeclared_builtin_options='none needed' -else $as_nop - ac_cv_c_undeclared_builtin_options=$ac_arg fi - break +if test -z "$TARGET_HAS_SSE41_TRUE"; then : + +printf "%s\n" "#define TARGET_HAS_SSE41 1" >>confdefs.h + fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +if test -z "$TARGET_HAS_AVX2_TRUE"; then : + +printf "%s\n" "#define TARGET_HAS_AVX2 1" >>confdefs.h + fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - done - CFLAGS=$ac_save_CFLAGS +if test -z "$TARGET_HAS_AVX512_TRUE"; then : + +printf "%s\n" "#define TARGET_HAS_AVX512 1" >>confdefs.h fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 -printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } - case $ac_cv_c_undeclared_builtin_options in #( - 'cannot detect') : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot make $CC report undeclared builtins -See \`config.log' for more details" "$LINENO" 5; } ;; #( - 'none needed') : - ac_c_undeclared_builtin_options='' ;; #( - *) : - ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; -esac -ac_fn_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" -if test "x$ac_cv_have_decl_environ" = xyes +if test -z "$TARGET_HAS_NEON_TRUE"; then : + +printf "%s\n" "#define TARGET_HAS_NEON 1" >>confdefs.h + +fi + +# Check whether --enable-asan was given. +if test ${enable_asan+y} then : - ac_have_decl=1 -else $as_nop - ac_have_decl=0 + enableval=$enable_asan; fi -printf "%s\n" "#define HAVE_DECL_ENVIRON $ac_have_decl" >>confdefs.h -for flag in -Wall -Wsign-compare -Wno-stringop-overflow; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_-pedantic -Werror_$flag" | $as_tr_sh` +HAVE_ASAN=0 +ASAN_CFLAGS="" +ASAN_LIBS="" +if test "x$enable_asan" == "xyes" ; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking location of ASAN library" >&5 +printf %s "checking location of ASAN library... " >&6; } + ASANLIB1=`${CC} -print-file-name=libasan.so` + ASANLIB=`readlink -f "${ASANLIB1}"` + if test -f "$ASANLIB" ; then + HAVE_ASAN=1 + ASAN_CFLAGS="-fsanitize=address -fno-omit-frame-pointer" + ASAN_LIBS="-fsanitize=address" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ASANLIB" >&5 +printf "%s\n" "$ASANLIB" >&6; } + for flag in -fsanitize=address -fno-omit-frame-pointer; do + as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"` { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 printf %s "checking whether C compiler accepts $flag... " >&6; } if eval test \${$as_CACHEVAR+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) ax_check_save_flags=$CFLAGS - CFLAGS="$CFLAGS -pedantic -Werror $flag" + CFLAGS="$CFLAGS $flag" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -19433,11 +20081,13 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : eval "$as_CACHEVAR=yes" -else $as_nop - eval "$as_CACHEVAR=no" +else case e in #( + e) eval "$as_CACHEVAR=no" ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags + CFLAGS=$ax_check_save_flags ;; +esac fi eval ac_res=\$$as_CACHEVAR { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -19454,90 +20104,45 @@ then : ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } -else $as_nop - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 +else case e in #( + e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 (: CFLAGS="$CFLAGS $flag") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } - as_fn_append CFLAGS " $flag" + as_fn_append CFLAGS " $flag" ;; +esac fi -else $as_nop - CFLAGS=$flag +else case e in #( + e) CFLAGS=$flag ;; +esac fi -else $as_nop - : +else case e in #( + e) : ;; +esac fi done - -if test "x$ax_enable_debug" != "xyes" ; then - CFLAGS="$CFLAGS -O2" + else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not found; disabling ASAN" >&5 +printf "%s\n" "Not found; disabling ASAN" >&6; } + fi fi -# include -lm in the link -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing llrintf" >&5 -printf %s "checking for library containing llrintf... " >&6; } -if test ${ac_cv_search_llrintf+y} -then : - printf %s "(cached) " >&6 -else $as_nop - 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. */ -char llrintf (); -int -main (void) -{ -return llrintf (); - ; - return 0; -} -_ACEOF -for ac_lib in '' m -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_llrintf=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext - if test ${ac_cv_search_llrintf+y} -then : - break -fi -done -if test ${ac_cv_search_llrintf+y} -then : -else $as_nop - ac_cv_search_llrintf=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS + if test x$HAVE_ASAN = x1 ; then + HAVE_ASAN_TRUE= + HAVE_ASAN_FALSE='#' +else + HAVE_ASAN_TRUE='#' + HAVE_ASAN_FALSE= fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_llrintf" >&5 -printf "%s\n" "$ac_cv_search_llrintf" >&6; } -ac_res=$ac_cv_search_llrintf -if test "$ac_res" != no -then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" -else $as_nop - as_fn_error $? "unable to find the llrintf() function" "$LINENO" 5 -fi + +printf "%s\n" "#define HAVE_ASAN $HAVE_ASAN" >>confdefs.h # check if there's a qsort_r available (musl does not have it) @@ -19545,8 +20150,9 @@ ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r" if test "x$ac_cv_func_qsort_r" = xyes then : HAVE_QSORT_R=1 -else $as_nop - HAVE_QSORT_R=0 +else case e in #( + e) HAVE_QSORT_R=0 ;; +esac fi @@ -19744,7 +20350,7 @@ fi HAVE_COMPATIBLE_CHECK=0 -if test "x$HAVE_CHECK" == "x1" ; then +if test "x$HAVE_CHECK" = "x1" ; then save_LIBS="$LIBS" save_CFLAGS="$CFLAGS" LIBS="$LIBS $CHECK_LIBS" @@ -19755,8 +20361,9 @@ if test "x$HAVE_CHECK" == "x1" ; then if test "x$ac_cv_func_srunner_set_tap" = xyes then : HAVE_COMPATIBLE_CHECK=1 -else $as_nop - HAVE_COMPATIBLE_CHECK=0 +else case e in #( + e) HAVE_COMPATIBLE_CHECK=0 ;; +esac fi @@ -19832,8 +20439,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_SPHINX+y} then : printf %s "(cached) " >&6 -else $as_nop - case $SPHINX in +else case e in #( + e) case $SPHINX in [\\/]* | ?:[\\/]*) ac_cv_path_SPHINX="$SPHINX" # Let the user override the test with a path. ;; @@ -19858,6 +20465,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi SPHINX=$ac_cv_path_SPHINX @@ -19880,8 +20488,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PIP3+y} then : printf %s "(cached) " >&6 -else $as_nop - case $PIP3 in +else case e in #( + e) case $PIP3 in [\\/]* | ?:[\\/]*) ac_cv_path_PIP3="$PIP3" # Let the user override the test with a path. ;; @@ -19906,6 +20514,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi PIP3=$ac_cv_path_PIP3 @@ -19972,7 +20581,7 @@ printf "%s\n" "N/A" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sphinx installation works" >&5 printf %s "checking whether sphinx installation works... " >&6; } - if test "x$HAVE_SPHINX" == "x1" ; then + if test "x$HAVE_SPHINX" = "x1" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else @@ -20001,8 +20610,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_GIT+y} then : printf %s "(cached) " >&6 -else $as_nop - case $GIT in +else case e in #( + e) case $GIT in [\\/]* | ?:[\\/]*) ac_cv_path_GIT="$GIT" # Let the user override the test with a path. ;; @@ -20027,6 +20636,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi GIT=$ac_cv_path_GIT @@ -20058,25 +20668,25 @@ fi -if test "x$TESTSUITEURL" == "x" ; then +if test "x$TESTSUITEURL" = "x" ; then TESTSUITEURL="https://github.com/yaml/yaml-test-suite" fi -if test "x$TESTSUITECHECKOUT" == "x" ; then +if test "x$TESTSUITECHECKOUT" = "x" ; then TESTSUITECHECKOUT="6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f" fi -if test "x$JSONTESTSUITEURL" == "x" ; then +if test "x$JSONTESTSUITEURL" = "x" ; then JSONTESTSUITEURL="https://github.com/nst/JSONTestSuite" fi -if test "x$JSONTESTSUITECHECKOUT" == "x" ; then +if test "x$JSONTESTSUITECHECKOUT" = "x" ; then JSONTESTSUITECHECKOUT="d64aefb55228d9584d3e5b2433f720ea8fd00c82" fi @@ -20088,8 +20698,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_DOCKER+y} then : printf %s "(cached) " >&6 -else $as_nop - case $DOCKER in +else case e in #( + e) case $DOCKER in [\\/]* | ?:[\\/]*) ac_cv_path_DOCKER="$DOCKER" # Let the user override the test with a path. ;; @@ -20114,6 +20724,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi DOCKER=$ac_cv_path_DOCKER @@ -20148,8 +20759,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_JQ+y} then : printf %s "(cached) " >&6 -else $as_nop - case $JQ in +else case e in #( + e) case $JQ in [\\/]* | ?:[\\/]*) ac_cv_path_JQ="$JQ" # Let the user override the test with a path. ;; @@ -20174,6 +20785,7 @@ done IFS=$as_save_IFS ;; +esac ;; esac fi JQ=$ac_cv_path_JQ @@ -20205,6 +20817,200 @@ fi JQ="$JQ" +# check for libclang + +# Check whether --with-libclang was given. +if test ${with_libclang+y} +then : + withval=$with_libclang; with_libclang="$withval" +else case e in #( + e) with_libclang=auto ;; +esac +fi + + +HAVE_LIBCLANG=0 +LIBCLANG_CFLAGS="" +LIBCLANG_CPPFLAGS="" +LIBCLANG_LDFLAGS="" +LIBCLANG_LIBS="" +if test "x$with_libclang" != "xno"; then + if test "x$with_libclang" == "xauto"; then + # try to auto detect (llvm 15 down to 8) + check="llvm-config llvm-config-15 llvm-config-14 llvm-config-13 llvm-config-12 llvm-config-11 llvm-config-10" + else + if test "x$with_libclang" == "xlatest"; then + check="llvm-config" + else + check="llvm-config-$with_libclang" + fi + fi + orig_CFLAGS="$CFLAGS" + orig_CPPFLAGS="$CPPFLAGS" + orig_LDFLAGS="$LDFLAGS" + orig_LIBS="$LIBS" + for cfg in $check ; do + # no caching + # Extract the first word of "$cfg", so it can be a program name with args. +set dummy $cfg; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_LLVM_CONFIG+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) case $LLVM_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_LLVM_CONFIG="$LLVM_CONFIG" # 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 + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_LLVM_CONFIG="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + ;; +esac ;; +esac +fi +LLVM_CONFIG=$ac_cv_path_LLVM_CONFIG +if test -n "$LLVM_CONFIG"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 +printf "%s\n" "$LLVM_CONFIG" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + + if test "x$LLVM_CONFIG" != "x" ; then + LIBCLANG_CFLAGS=`$LLVM_CONFIG --cflags` + LIBCLANG_CPPFLAGS=`$LLVM_CONFIG --cppflags` + LIBCLANG_LDFLAGS=`$LLVM_CONFIG --ldflags` + LIBCLANG_LIBS="-lclang" + CPPFLAGS="$CPPFLAGS $LIBCLANG_CPPFLAGS" + CFLAGS="$CFLAGS $LIBCLANG_CFLAGS" + LDFLAGS="$LDFLAGS $LIBCLANG_LDFLAGS" + LIBS="$LIBS $LIBCLANG_LIBS" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang_createIndex in -lclang" >&5 +printf %s "checking for clang_createIndex in -lclang... " >&6; } +if test ${ac_cv_lib_clang_clang_createIndex+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS +LIBS="-lclang $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. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char clang_createIndex (void); +int +main (void) +{ +return clang_createIndex (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_clang_clang_createIndex=yes +else case e in #( + e) ac_cv_lib_clang_clang_createIndex=no ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clang_clang_createIndex" >&5 +printf "%s\n" "$ac_cv_lib_clang_clang_createIndex" >&6; } +if test "x$ac_cv_lib_clang_clang_createIndex" = xyes +then : + HAVE_LIBCLANG_LIB=1 +else case e in #( + e) HAVE_LIBCLANG_LIB=0 ;; +esac +fi + + ac_fn_c_check_header_compile "$LINENO" "clang-c/Index.h" "ac_cv_header_clang_c_Index_h" "$ac_includes_default" +if test "x$ac_cv_header_clang_c_Index_h" = xyes +then : + HAVE_LIBCLANG_HDR=1 +else case e in #( + e) HAVE_LIBCLANG_HDR=0 ;; +esac +fi + + # if we found it, break out + if test "x$HAVE_LIBCLANG_LIB" = "x1" -a "x$HAVE_LIBCLANG_HDR" = "x1" ; then + HAVE_LIBCLANG=1 + break + fi + $as_unset ac_cv_lib_clang_clang_createIndex $as_unset ac_cv_header_clang_c_Index_h \ + LIBCLANG_CFLAGS LIBCLANG_CPPFLAGS LIBCLANG_LIBS HAVE_LIBCLANG_LIB HAVE_LIBCLANG_HDR + fi + CFLAGS=$orig_CFLAGS + LDFLAGS=$orig_LDFLAGS + LIBS=$orig_LIBS + if test "x$HAVE_LIBCLANG" = "x1"; then + break + fi + $as_unset ac_cv_path_LLVM_CONFIG LLVM_CONFIG + done + CFLAGS=$orig_CFLAGS + CPPFLAGS=$orig_CPPFLAGS + LDFLAGS=$orig_LDFLAGS + LIBS=$orig_LIBS +fi + + + + + + + + +printf "%s\n" "#define HAVE_LIBCLANG $HAVE_LIBCLANG" >>confdefs.h + + if test x$HAVE_LIBCLANG = x1 ; then + HAVE_LIBCLANG_TRUE= + HAVE_LIBCLANG_FALSE='#' +else + HAVE_LIBCLANG_TRUE='#' + HAVE_LIBCLANG_FALSE= +fi + + + +CFLAGS=`echo $CFLAGS | sed -e 's/^ *//'` +CPPFLAGS=`echo $CPPFLAGS | sed -e 's/^ *//'` +LDFLAGS=`echo $LDFLAGS | sed -e 's/^ *//'` + # Shave by default on supported autoconf versions @@ -20212,9 +21018,10 @@ JQ="$JQ" if test ${enable_shave+y} then : enableval=$enable_shave; -else $as_nop - enable_shave=yes - +else case e in #( + e) enable_shave=yes + ;; +esac fi @@ -20235,8 +21042,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_SED+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$SED"; then +else case e in #( + e) if test -n "$SED"; then ac_cv_prog_SED="$SED" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -20259,7 +21066,8 @@ done IFS=$as_save_IFS test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="false" -fi +fi ;; +esac fi SED=$ac_cv_prog_SED if test -n "$SED"; then @@ -20329,8 +21137,8 @@ cat >confcache <<\_ACEOF # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the +# 'ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* 'ac_cv_foo' will be assigned the # following values. _ACEOF @@ -20360,14 +21168,14 @@ printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes: double-quote + # 'set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) - # `set' quotes correctly as required by POSIX, so do not add quotes. + # 'set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | @@ -20452,11 +21260,71 @@ 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__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCCAS\" 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 "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then + as_fn_error $? "conditional \"HAVE_STATIC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_PORTABLE_TARGET_TRUE}" && test -z "${HAVE_PORTABLE_TARGET_FALSE}"; then + as_fn_error $? "conditional \"HAVE_PORTABLE_TARGET\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_X86_TRUE}" && test -z "${TARGET_CPU_X86_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_X86\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_X86_64_TRUE}" && test -z "${TARGET_CPU_X86_64_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_X86_64\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_ANY_X86_TRUE}" && test -z "${TARGET_CPU_ANY_X86_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_ANY_X86\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_ARM_TRUE}" && test -z "${TARGET_CPU_ARM_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_ARM\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_ARM64_TRUE}" && test -z "${TARGET_CPU_ARM64_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_ARM64\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_ANY_ARM_TRUE}" && test -z "${TARGET_CPU_ANY_ARM_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_ANY_ARM\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_SSE2_TRUE}" && test -z "${TARGET_HAS_SSE2_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_SSE2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_SSE41_TRUE}" && test -z "${TARGET_HAS_SSE41_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_SSE41\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_AVX2_TRUE}" && test -z "${TARGET_HAS_AVX2_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_AVX2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_AVX512_TRUE}" && test -z "${TARGET_HAS_AVX512_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_AVX512\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_NEON_TRUE}" && test -z "${TARGET_HAS_NEON_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_NEON\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_ASAN_TRUE}" && test -z "${HAVE_ASAN_FALSE}"; then + as_fn_error $? "conditional \"HAVE_ASAN\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${HAVE_QSORT_R_TRUE}" && test -z "${HAVE_QSORT_R_FALSE}"; then as_fn_error $? "conditional \"HAVE_QSORT_R\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -20497,6 +21365,10 @@ if test -z "${HAVE_JQ_TRUE}" && test -z "${HAVE_JQ_FALSE}"; then as_fn_error $? "conditional \"HAVE_JQ\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${HAVE_LIBCLANG_TRUE}" && test -z "${HAVE_LIBCLANG_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIBCLANG\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 @@ -20526,7 +21398,6 @@ cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh @@ -20535,12 +21406,13 @@ then : # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else $as_nop - case `(set -o) 2>/dev/null` in #( +else case e in #( + e) case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; +esac ;; esac fi @@ -20612,7 +21484,7 @@ IFS=$as_save_IFS ;; esac -# We did not find ourselves, most probably we were run as `sh COMMAND' +# We did not find ourselves, most probably we were run as 'sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 @@ -20641,7 +21513,6 @@ as_fn_error () } # as_fn_error - # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -20681,11 +21552,12 @@ then : { eval $1+=\$2 }' -else $as_nop - as_fn_append () +else case e in #( + e) as_fn_append () { eval $1=\$$1\$2 - } + } ;; +esac fi # as_fn_append # as_fn_arith ARG... @@ -20699,11 +21571,12 @@ then : { as_val=$(( $* )) }' -else $as_nop - as_fn_arith () +else case e in #( + e) as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` - } + } ;; +esac fi # as_fn_arith @@ -20786,9 +21659,9 @@ if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. + # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. + # In both cases, we have to default to 'cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then @@ -20869,10 +21742,12 @@ as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" +as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated # Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" +as_tr_sh="eval sed '$as_sed_sh'" # deprecated exec 6>&1 @@ -20887,8 +21762,8 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by libfyaml $as_me 0.7.12, which was -generated by GNU Autoconf 2.71. Invocation command line was +This file was extended by libfyaml $as_me 0.9, which was +generated by GNU Autoconf 2.72. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -20920,7 +21795,7 @@ _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ -\`$as_me' instantiates files and other configuration actions +'$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. @@ -20955,11 +21830,11 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -libfyaml config.status 0.7.12 -configured by $0, generated by GNU Autoconf 2.71, +libfyaml config.status 0.9 +configured by $0, generated by GNU Autoconf 2.72, with options \\"\$ac_cs_config\\" -Copyright (C) 2021 Free Software Foundation, Inc. +Copyright (C) 2023 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -21021,8 +21896,8 @@ do ac_need_defaults=false;; --he | --h) # Conflict between --help and --header - as_fn_error $? "ambiguous option: \`$1' -Try \`$0 --help' for more information.";; + as_fn_error $? "ambiguous option: '$1' +Try '$0 --help' for more information.";; --help | --hel | -h ) printf "%s\n" "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ @@ -21030,8 +21905,8 @@ Try \`$0 --help' for more information.";; ac_cs_silent=: ;; # This is an error. - -*) as_fn_error $? "unrecognized option: \`$1' -Try \`$0 --help' for more information." ;; + -*) as_fn_error $? "unrecognized option: '$1' +Try '$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; @@ -21084,11 +21959,11 @@ AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' -macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' -macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' @@ -21480,7 +22355,7 @@ do "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; "libfyaml.pc") CONFIG_FILES="$CONFIG_FILES libfyaml.pc" ;; - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; esac done @@ -21500,7 +22375,7 @@ fi # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. +# after its creation but before its name has been assigned to '$tmp'. $debug || { tmp= ac_tmp= @@ -21524,7 +22399,7 @@ ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. -# This happens for instance with `./config.status config.h'. +# This happens for instance with './config.status config.h'. if test -n "$CONFIG_FILES"; then @@ -21682,13 +22557,13 @@ fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. -# This happens for instance with `./config.status Makefile'. +# This happens for instance with './config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF -# Transform confdefs.h into an awk script `defines.awk', embedded as +# Transform confdefs.h into an awk script 'defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. @@ -21798,7 +22673,7 @@ do esac case $ac_mode$ac_tag in :[FHL]*:*);; - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac @@ -21820,19 +22695,19 @@ do -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. + # because $ac_f cannot contain ':'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || - as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done - # Let's still pretend it is `configure' which instantiates (i.e., don't + # Let's still pretend it is 'configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` @@ -21965,7 +22840,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 esac _ACEOF -# Neutralize VPATH when `$srcdir' = `.'. +# Neutralize VPATH when '$srcdir' = '.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 @@ -21996,9 +22871,9 @@ test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' which seems to be undefined. Please make sure it is defined" >&5 -printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" @@ -22153,15 +23028,15 @@ printf "%s\n" X/"$am_mf" | (exit $ac_status); } || am_rc=$? done if test $am_rc -ne 0; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE=\"gmake\" (or whatever is necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking). -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } fi { am_dirpart=; unset am_dirpart;} { am_filepart=; unset am_filepart;} @@ -22222,6 +23097,10 @@ available_tags='CXX ' # ### BEGIN LIBTOOL CONFIG +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision + # Assembler program. AS=$lt_AS @@ -22231,10 +23110,6 @@ DLLTOOL=$lt_DLLTOOL # Object dumper program. OBJDUMP=$lt_OBJDUMP -# Which release of libtool.m4 was used? -macro_version=$macro_version -macro_revision=$macro_revision - # Whether or not to build shared libraries. build_libtool_libs=$enable_shared @@ -23082,17 +23957,20 @@ echo " LIBTOOL_VERSION: ${LIBTOOL_VERSION} prefix: ${prefix} C compiler: ${CC} - CFLAGS: ${CFLAGS} Linker: ${LD} + CFLAGS: ${CFLAGS} LDFLAGS: ${LDFLAGS} LIBS: ${LIBS} + HAVE_ASAN: ${HAVE_ASAN} HAVE_CHECK: ${HAVE_CHECK} HAVE_COMPATIBLE_CHECK: ${HAVE_COMPATIBLE_CHECK} HAVE_NETWORK: ${HAVE_NETWORK} HAVE_DEVMODE: ${HAVE_DEVMODE} HAVE_SPHINX: ${HAVE_SPHINX} - GIT: $GIT - DOCKER: $DOCKER + GIT: ${GIT} + DOCKER: ${DOCKER} + HAVE_LIBCLANG: ${HAVE_LIBCLANG} + LIBCLANG_LIBS: ${LIBCLANG_LIBS} TESTSUITEURL: $TESTSUITEURL TESTSUITECHECKOUT: $TESTSUITECHECKOUT JSONTESTSUITEURL: $JSONTESTSUITEURL diff --git a/Sources/Cfyaml/configure.ac b/Sources/Cfyaml/configure.ac index 8b366edf2..fd3d31895 100644 --- a/Sources/Cfyaml/configure.ac +++ b/Sources/Cfyaml/configure.ac @@ -1,14 +1,24 @@ -AC_PREREQ(2.61) +AC_PREREQ(2.69) AC_INIT([libfyaml], m4_esyscmd([build-aux/git-version-gen .tarball-version]), [pantelis.antoniou@konsulko.com]) +AC_CONFIG_AUX_DIR([build-aux]) + +AC_PATH_PROG([M4], [m4 gm4], [no]) +if test "x$M4" = xno ; then + AC_MSG_ERROR([m4 missing]) +fi + +AC_SUBST(ACLOCAL_AMFLAGS, "-I m4") + +AC_CANONICAL_TARGET + AC_CONFIG_SRCDIR([src/lib/fy-parse.c]) -AC_CONFIG_HEADER([config.h]) +AC_CONFIG_HEADERS([config.h]) AC_CONFIG_MACRO_DIR([m4]) -AC_CONFIG_AUX_DIR([build-aux]) -AM_INIT_AUTOMAKE([foreign 1.8.5 -Wall subdir-objects ]) +AM_INIT_AUTOMAKE([foreign 1.8.5 subdir-objects -Wno-portability]) m4_pattern_allow([^(AM_EXTRA_RECURSIVE_TARGETS|AM_PROG_AR)$])dnl @@ -72,8 +82,8 @@ m4_version_prereq(2.64, [AX_CHECK_ENABLE_DEBUG()], [true]) AC_PROG_MKDIR_P AC_PROG_CC -AC_PROG_CC_C99 AM_PROG_CC_C_O +AM_PROG_AS AC_PROG_GCC_TRADITIONAL AC_USE_SYSTEM_EXTENSIONS @@ -84,28 +94,25 @@ AC_PROG_CXX AC_PROG_AWK AC_PROG_LN_S -AX_PTHREAD +AX_PTHREAD([], [AC_MSG_ERROR("Missing required pthread support")]) -AC_PATH_PROG([M4], [m4 gm4], [no]) -if test "x$M4" = xno ; then - AC_MSG_ERROR([m4 missing]) +# in some cases PTHREAD_LIBS is empty - force -lpthread */ +if test "x$PTHREAD_LIBS" = "x"; then + PTHREAD_LIBS="-lpthread" fi -AC_SUBST(ACLOCAL_AMFLAGS, "-I m4") +CFLAGS="$CFLAGS $PTHREAD_CFLAGS" +LIBS="$LIBS $PTHREAD_LIBS" # pkg-config PKG_PROG_PKG_CONFIG AC_LTDL_ENABLE_INSTALL -AC_LIBLTDL_INSTALLABLE -AC_LIBTOOL_DLOPEN -AC_LIBTOOL_WIN32_DLL -AC_PROG_LIBTOOL +LT_INIT([dlopen win32-dll]) AC_SUBST(LTDLINCL) AC_SUBST(LIBLTDL) AC_CONFIG_SUBDIRS(libltdl) -AC_HEADER_STDC AC_C_CONST AC_C_BIGENDIAN AC_TYPE_PID_T @@ -113,13 +120,15 @@ AC_TYPE_SIZE_T AC_CHECK_TYPES(ssize_t, , [AC_DEFINE([ssize_t], [signed long], [Define ssize_t if it is not done by the standard libs.])]) AC_TYPE_OFF_T -AC_TYPE_SIGNAL AC_TYPE_UID_T AC_CHECK_DECLS(environ) +AC_CHECK_HEADERS([byteswap.h]) +AC_CHECK_FUNCS([__builtin_bswap16 __builtin_bswap32 __builtin_bswap64]) + dnl for old autoconf version AX_APPEND_COMPILE_FLAGS does not work m4_version_prereq(2.64, - [AX_APPEND_COMPILE_FLAGS([-Wall -Wsign-compare -Wno-stringop-overflow], + [AX_APPEND_COMPILE_FLAGS([-Wall -Wsign-compare -Wno-stringop-overflow -fvisibility=hidden], [CFLAGS], [-pedantic -Werror])], [CFLAGS="$CFLAGS -Wall -Wsign-compare"]) @@ -128,8 +137,99 @@ if test "x$ax_enable_debug" != "xyes" ; then CFLAGS="$CFLAGS -O2" fi -# include -lm in the link -AC_SEARCH_LIBS([llrintf], [m], [], [AC_MSG_ERROR([unable to find the llrintf() function])]) +# need that as conditional because some internal tools compile as static +# to have access to internal libfyaml APIs +if test "x$enable_static" = "xyes" ; then +HAVE_STATIC=1 +else +HAVE_STATIC=0 +fi +AC_SUBST(HAVE_STATIC) +AC_DEFINE_UNQUOTED([HAVE_STATIC], [$HAVE_STATIC], [Define to 1 if static linking is available]) +AM_CONDITIONAL([HAVE_STATIC], [ test x$HAVE_STATIC = x1 ]) + +dnl check whether warning flags are supported +AX_CHECK_COMPILE_FLAG([-Wstringop-overread], , , [-Werror]) +AS_IF([test "x$ax_cv_check_cflags__Werror__wstringop_overread" = x"yes"], + [HAVE_WSTRINGOP_OVERREAD=1], [HAVE_WSTRINGOP_OVERREAD=0]) +AC_DEFINE_UNQUOTED([HAVE_WSTRINGOP_OVERREAD], [$HAVE_WSTRINGOP_OVERREAD], [Define to 1 if -Wstringop-overread is supported]) + +dnl Per target optimizations +AC_ARG_ENABLE([portable-target], + AS_HELP_STRING([--enable-portable-target], + [Enable portable mode (disable per-target optimizations)])) +HAVE_PORTABLE_TARGET=0 +if test "x$enable_portable_target" == "xyes"; then + HAVE_PORTABLE_TARGET=1 +fi +AC_SUBST(HAVE_PORTABLE_TARGET) +AC_DEFINE_UNQUOTED([HAVE_PORTABLE_TARGET], [$HAVE_PORTABLE_TARGET], [Define to 1 if PORTABLE_TARGET is enabled]) +AM_CONDITIONAL([HAVE_PORTABLE_TARGET], [ test x$HAVE_PORTABLE_TARGET == x1 ]) + +AM_CONDITIONAL([TARGET_CPU_X86], [ test x$target_cpu = xx86 ]) +AM_CONDITIONAL([TARGET_CPU_X86_64], [ test x$target_cpu = xx86_64 ]) +AM_CONDITIONAL([TARGET_CPU_ANY_X86], [ test x$target_cpu = xx86 -o x$target_cpu = xx86_64 ]) +AM_CONDITIONAL([TARGET_CPU_ARM], [ test x$target_cpu = xarm ]) +AM_CONDITIONAL([TARGET_CPU_ARM64], [ test x$target_cpu = xaarch64 ]) +AM_CONDITIONAL([TARGET_CPU_ANY_ARM], [ test x$target_cpu = xarm -o x$target_cpu = xaarch64 ]) + +AM_COND_IF([TARGET_CPU_ANY_X86], [m4_version_prereq(2.64, [ + AX_CHECK_COMPILE_FLAG([-msse2], , , [-Werror]) + AX_CHECK_COMPILE_FLAG([-msse4.1], , , [-Werror]) + AX_CHECK_COMPILE_FLAG([-mavx2], , , [-Werror]) + AX_CHECK_COMPILE_FLAG([-mavx512f -mavx512vl], , , [-Werror]) + ], [true]) +]) + +AM_COND_IF([TARGET_CPU_ARM], [m4_version_prereq(2.64, [ + AX_CHECK_COMPILE_FLAG([-mfpu=neon], , , [-Werror]) + ], [true]) +]) + +AM_CONDITIONAL([TARGET_HAS_SSE2], [ test "x$ax_cv_check_cflags__Werror__msse2" = x"yes" -a "x$enable_portable_target" != "xyes" ]) +AM_CONDITIONAL([TARGET_HAS_SSE41], [ test "x$ax_cv_check_cflags__Werror__msse4_1" = x"yes" -a "x$enable_portable_target" != "xyes" ]) +AM_CONDITIONAL([TARGET_HAS_AVX2], [ test "x$ax_cv_check_cflags__Werror__mavx2" = x"yes" -a "x$enable_portable_target" != "xyes" ]) +AM_CONDITIONAL([TARGET_HAS_AVX512], [ test "x$ax_cv_check_cflags__Werror__mavx512f__mavx512vl" = x"yes" -a "x$enable_portable_target" != "xyes" ]) + +AM_CONDITIONAL([TARGET_HAS_NEON], [ test \( x$target_cpu = xaarch64 -o "x$ax_cv_check_cflags__Werror__mcpu_neon" = x"yes" \) -a "x$enable_portable_target" != "xyes" ]) + +AM_COND_IF([TARGET_HAS_SSE2], AC_DEFINE([TARGET_HAS_SSE2], [1], [SSE2 target support])) +AM_COND_IF([TARGET_HAS_SSE41], AC_DEFINE([TARGET_HAS_SSE41], [1], [SSE41 target support])) +AM_COND_IF([TARGET_HAS_AVX2], AC_DEFINE([TARGET_HAS_AVX2], [1], [AVX2 target support])) +AM_COND_IF([TARGET_HAS_AVX512], AC_DEFINE([TARGET_HAS_AVX512], [1], [AVX512 target support])) + +AM_COND_IF([TARGET_HAS_NEON], AC_DEFINE([TARGET_HAS_NEON], [1], [NEON target support])) + +dnl ASAN enable switch +AC_ARG_ENABLE([asan], + AS_HELP_STRING([--enable-asan], + [Enable ASAN support])) + +HAVE_ASAN=0 +ASAN_CFLAGS="" +ASAN_LIBS="" +if test "x$enable_asan" == "xyes" ; then + AC_MSG_CHECKING([location of ASAN library]) + ASANLIB1=`${CC} -print-file-name=libasan.so` + ASANLIB=`readlink -f "${ASANLIB1}"` + if test -f "$ASANLIB" ; then + HAVE_ASAN=1 + ASAN_CFLAGS="-fsanitize=address -fno-omit-frame-pointer" + ASAN_LIBS="-fsanitize=address" + AC_MSG_RESULT([$ASANLIB]) + m4_version_prereq(2.64, + AX_APPEND_COMPILE_FLAGS([-fsanitize=address -fno-omit-frame-pointer], [CFLAGS]), + [CFLAGS="$CFLAGS -fsanitize=address -fno-omit-frame-pointer"]) + else + AC_MSG_RESULT([Not found; disabling ASAN]) + fi +fi +AC_SUBST(HAVE_ASAN) +AC_SUBST(ASAN_CFLAGS) +AC_SUBST(ASAN_LIBS) +AM_CONDITIONAL([HAVE_ASAN], + [ test x$HAVE_ASAN = x1 ]) +AC_DEFINE_UNQUOTED([HAVE_ASAN], [$HAVE_ASAN], [Define to 1 if ASAN is enabled]) # check if there's a qsort_r available (musl does not have it) AC_CHECK_FUNC([qsort_r], @@ -162,7 +262,7 @@ AC_DEFINE_UNQUOTED([HAVE_CHECK], [$HAVE_CHECK], [Define to 1 if you have check a AM_CONDITIONAL([HAVE_CHECK], [ test x$HAVE_CHECK = x1 ]) HAVE_COMPATIBLE_CHECK=0 -if test "x$HAVE_CHECK" == "x1" ; then +if test "x$HAVE_CHECK" = "x1" ; then save_LIBS="$LIBS" save_CFLAGS="$CFLAGS" LIBS="$LIBS $CHECK_LIBS" @@ -257,7 +357,7 @@ if test "x$SPHINX" != "x" ; then fi AC_MSG_CHECKING([whether sphinx installation works]) - if test "x$HAVE_SPHINX" == "x1" ; then + if test "x$HAVE_SPHINX" = "x1" ; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) @@ -279,25 +379,25 @@ AM_CONDITIONAL([HAVE_GIT], [ test x$HAVE_GIT = x1 ]) AC_ARG_VAR(TESTSUITEURL, [Testsuite git repo URL (default: https://github.com/yaml/yaml-test-suite)]) -if test "x$TESTSUITEURL" == "x" ; then +if test "x$TESTSUITEURL" = "x" ; then TESTSUITEURL="https://github.com/yaml/yaml-test-suite" fi AC_ARG_VAR(TESTSUITECHECKOUT, [Testsuite checkout (default: 6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f)]) -if test "x$TESTSUITECHECKOUT" == "x" ; then +if test "x$TESTSUITECHECKOUT" = "x" ; then TESTSUITECHECKOUT="6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f" fi AC_ARG_VAR(JSONTESTSUITEURL, [JSON Testsuite git repo URL (default: https://github.com/nst/JSONTestSuite)]) -if test "x$JSONTESTSUITEURL" == "x" ; then +if test "x$JSONTESTSUITEURL" = "x" ; then JSONTESTSUITEURL="https://github.com/nst/JSONTestSuite" fi AC_ARG_VAR(JSONTESTSUITECHECKOUT, [JSON Testsuite checkout (default: d64aefb55228d9584d3e5b2433f720ea8fd00c82)]) -if test "x$JSONTESTSUITECHECKOUT" == "x" ; then +if test "x$JSONTESTSUITECHECKOUT" = "x" ; then JSONTESTSUITECHECKOUT="d64aefb55228d9584d3e5b2433f720ea8fd00c82" fi @@ -321,6 +421,105 @@ AC_DEFINE_UNQUOTED([HAVE_JQ], [$HAVE_JQ], [Define to 1 if you have jq available] AM_CONDITIONAL([HAVE_JQ], [ test x$HAVE_JQ = x1 ]) AC_SUBST(JQ, "$JQ") +# check for libclang +AC_ARG_WITH([libclang], + dnl enable internet available when checking +AC_ARG_ENABLE([network], + AS_HELP_STRING([--disable-network], + [Disable tests requiring network access])) + + [AS_HELP_STRING([--with-libclang=[]], + [Enable support for libclang @<:@default=auto@:>@])], + [with_libclang="$withval"], + [with_libclang=auto]) + +HAVE_LIBCLANG=0 +LIBCLANG_CFLAGS="" +LIBCLANG_CPPFLAGS="" +LIBCLANG_LDFLAGS="" +LIBCLANG_LIBS="" +dnl TODO think about cross compilation +if test "x$with_libclang" != "xno"; then + if test "x$with_libclang" == "xauto"; then + # try to auto detect (llvm 15 down to 8) + check="llvm-config llvm-config-15 llvm-config-14 llvm-config-13 llvm-config-12 llvm-config-11 llvm-config-10" + else + if test "x$with_libclang" == "xlatest"; then + check="llvm-config" + else + check="llvm-config-$with_libclang" + fi + fi + orig_CFLAGS="$CFLAGS" + orig_CPPFLAGS="$CPPFLAGS" + orig_LDFLAGS="$LDFLAGS" + orig_LIBS="$LIBS" + for cfg in $check ; do + # no caching + AC_PATH_PROG([LLVM_CONFIG], [$cfg]) + if test "x$LLVM_CONFIG" != "x" ; then + LIBCLANG_CFLAGS=`$LLVM_CONFIG --cflags` + LIBCLANG_CPPFLAGS=`$LLVM_CONFIG --cppflags` + LIBCLANG_LDFLAGS=`$LLVM_CONFIG --ldflags` + LIBCLANG_LIBS="-lclang" + CPPFLAGS="$CPPFLAGS $LIBCLANG_CPPFLAGS" + CFLAGS="$CFLAGS $LIBCLANG_CFLAGS" + LDFLAGS="$LDFLAGS $LIBCLANG_LDFLAGS" + LIBS="$LIBS $LIBCLANG_LIBS" + AC_CHECK_LIB([clang], [clang_createIndex], + [HAVE_LIBCLANG_LIB=1], [HAVE_LIBCLANG_LIB=0]) + AC_CHECK_HEADER([clang-c/Index.h], + [HAVE_LIBCLANG_HDR=1], [HAVE_LIBCLANG_HDR=0]) + # if we found it, break out + if test "x$HAVE_LIBCLANG_LIB" = "x1" -a "x$HAVE_LIBCLANG_HDR" = "x1" ; then + HAVE_LIBCLANG=1 + break + fi + $as_unset ac_cv_lib_clang_clang_createIndex $as_unset ac_cv_header_clang_c_Index_h \ + LIBCLANG_CFLAGS LIBCLANG_CPPFLAGS LIBCLANG_LIBS HAVE_LIBCLANG_LIB HAVE_LIBCLANG_HDR + fi + CFLAGS=$orig_CFLAGS + LDFLAGS=$orig_LDFLAGS + LIBS=$orig_LIBS + if test "x$HAVE_LIBCLANG" = "x1"; then + break + fi + $as_unset ac_cv_path_LLVM_CONFIG LLVM_CONFIG + done + CFLAGS=$orig_CFLAGS + CPPFLAGS=$orig_CPPFLAGS + LDFLAGS=$orig_LDFLAGS + LIBS=$orig_LIBS +fi + +dnl it is safe to update CFLAGS, CPPFLAGS and LDFLAGS from clang +dnl we will only link against libclang when we have to + +AC_SUBST(HAVE_LIBCLANG) +AC_SUBST(LIBCLANG_CFLAGS) +AC_SUBST(LIBCLANG_CPPFLAGS) +AC_SUBST(LIBCLANG_LDFLAGS) +AC_SUBST(LIBCLANG_LIBS) +AC_DEFINE_UNQUOTED([HAVE_LIBCLANG], [$HAVE_LIBCLANG], [Define to 1 if libclang is available]) +AM_CONDITIONAL([HAVE_LIBCLANG], [ test x$HAVE_LIBCLANG = x1 ]) + +dnl AS_IF([test "x$with_libclang" != xno], +dnl [AC_CHECK_LIB([libclang], [main], +dnl [AC_SUBST([LIBREADLINE], ["-lreadline -lncurses"]) +dnl AC_DEFINE([HAVE_LIBREADLINE], [1], +dnl [Define if you have libreadline]) +dnl ], +dnl [if test "x$with_readline" != xcheck; then +dnl AC_MSG_FAILURE( +dnl [--with-readline was given, but test for readline failed]) +dnl fi +dnl ], -lncurses)]) + +dnl trim cflags, cppflags, ldflags +CFLAGS=`echo $CFLAGS | sed -e 's/^[ ]*//'` +CPPFLAGS=`echo $CPPFLAGS | sed -e 's/^[ ]*//'` +LDFLAGS=`echo $LDFLAGS | sed -e 's/^[ ]*//'` + # Shave by default on supported autoconf versions dnl m4_version_prereq(2.64, SHAVE_INIT([build-aux], [enable]), [true]) m4_ifdef([SHAVE_INIT], [SHAVE_INIT([build-aux], [enable])]) @@ -349,17 +548,20 @@ echo " LIBTOOL_VERSION: ${LIBTOOL_VERSION} prefix: ${prefix} C compiler: ${CC} - CFLAGS: ${CFLAGS} Linker: ${LD} + CFLAGS: ${CFLAGS} LDFLAGS: ${LDFLAGS} LIBS: ${LIBS} + HAVE_ASAN: ${HAVE_ASAN} HAVE_CHECK: ${HAVE_CHECK} HAVE_COMPATIBLE_CHECK: ${HAVE_COMPATIBLE_CHECK} HAVE_NETWORK: ${HAVE_NETWORK} HAVE_DEVMODE: ${HAVE_DEVMODE} HAVE_SPHINX: ${HAVE_SPHINX} - GIT: $GIT - DOCKER: $DOCKER + GIT: ${GIT} + DOCKER: ${DOCKER} + HAVE_LIBCLANG: ${HAVE_LIBCLANG} + LIBCLANG_LIBS: ${LIBCLANG_LIBS} TESTSUITEURL: $TESTSUITEURL TESTSUITECHECKOUT: $TESTSUITECHECKOUT JSONTESTSUITEURL: $JSONTESTSUITEURL diff --git a/Sources/Cfyaml/configure~ b/Sources/Cfyaml/configure~ index a5e00b369..769df850c 100755 --- a/Sources/Cfyaml/configure~ +++ b/Sources/Cfyaml/configure~ @@ -1,11 +1,12 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for libfyaml 0.7.12. +# Generated by GNU Autoconf 2.71 for libfyaml 0.9. # # Report bugs to . # # -# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, +# Inc. # # # This configure script is free software; the Free Software Foundation @@ -16,14 +17,16 @@ # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : +as_nop=: +if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 +then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else +else $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( @@ -33,46 +36,46 @@ esac fi + +# Reset variables that may have inherited troublesome values from +# the environment. + +# IFS needs to be set, to space, tab, and newline, in precisely that order. +# (If _AS_PATH_WALK were called with IFS unset, it would have the +# side effect of setting IFS to empty, thus disabling word splitting.) +# Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi +IFS=" "" $as_nl" + +PS1='$ ' +PS2='> ' +PS4='+ ' + +# Ensure predictable behavior from utilities with locale-dependent output. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# We cannot yet rely on "unset" to work, but we need these variables +# to be unset--not just set to an empty or harmless value--now, to +# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct +# also avoids known problems related to "unset" and subshell syntax +# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). +for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH +do eval test \${$as_var+y} \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done + +# Ensure that fds 0, 1, and 2 are open. +if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi +if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then +if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || @@ -81,13 +84,6 @@ if test "${PATH_SEPARATOR+set}" != set; then fi -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( @@ -96,8 +92,12 @@ case $0 in #(( for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS @@ -109,30 +109,10 @@ if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. @@ -154,20 +134,22 @@ esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -as_fn_exit 255 +printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then - as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + as_bourne_compatible="as_nop=: +if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 +then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST -else +else \$as_nop case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( @@ -187,12 +169,15 @@ as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } -if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : +if ( set x; as_fn_ret_success y && test x = \"\$1\" ) +then : -else +else \$as_nop exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 +blah=\$(echo \$(echo blah)) +test x\"\$blah\" = xblah || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO @@ -207,30 +192,38 @@ test \$(( 1 + 1 )) = 2 || exit 1 PATH=/empty FPATH=/empty; export PATH FPATH test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" - if (eval "$as_required") 2>/dev/null; then : + if (eval "$as_required") 2>/dev/null +then : as_have_required=yes -else +else $as_nop as_have_required=no fi - if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null +then : -else +else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. - as_shell=$as_dir/$as_base + as_shell=$as_dir$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null +then : CONFIG_SHELL=$as_shell as_have_required=yes - if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null +then : break 2 fi fi @@ -238,14 +231,21 @@ fi esac as_found=false done -$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : - CONFIG_SHELL=$SHELL as_have_required=yes -fi; } IFS=$as_save_IFS +if $as_found +then : + +else $as_nop + if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null +then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi +fi - if test "x$CONFIG_SHELL" != x; then : + if test "x$CONFIG_SHELL" != x +then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also @@ -263,18 +263,19 @@ esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi - if test x$as_have_required = xno; then : - $as_echo "$0: This script requires a shell more modern than all" - $as_echo "$0: the shells that I found on your system." - if test x${ZSH_VERSION+set} = xset ; then - $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" - $as_echo "$0: be upgraded to zsh 4.3.4 or later." + if test x$as_have_required = xno +then : + printf "%s\n" "$0: This script requires a shell more modern than all" + printf "%s\n" "$0: the shells that I found on your system." + if test ${ZSH_VERSION+y} ; then + printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" + printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." else - $as_echo "$0: Please tell bug-autoconf@gnu.org and + printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and $0: pantelis.antoniou@konsulko.com about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run @@ -302,6 +303,7 @@ as_fn_unset () } as_unset=as_fn_unset + # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -319,6 +321,14 @@ as_fn_exit () as_fn_set_status $1 exit $1 } # as_fn_exit +# as_fn_nop +# --------- +# Do nothing but, unlike ":", preserve the value of $?. +as_fn_nop () +{ + return $? +} +as_nop=as_fn_nop # as_fn_mkdir_p # ------------- @@ -333,7 +343,7 @@ as_fn_mkdir_p () as_dirs= while :; do case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" @@ -342,7 +352,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | +printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -381,12 +391,13 @@ as_fn_executable_p () # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null +then : eval 'as_fn_append () { eval $1+=\$2 }' -else +else $as_nop as_fn_append () { eval $1=\$$1\$2 @@ -398,18 +409,27 @@ fi # as_fn_append # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null +then : eval 'as_fn_arith () { as_val=$(( $* )) }' -else +else $as_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith +# as_fn_nop +# --------- +# Do nothing but, unlike ":", preserve the value of $?. +as_fn_nop () +{ + return $? +} +as_nop=as_fn_nop # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- @@ -421,9 +441,9 @@ as_fn_error () as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi - $as_echo "$as_me: error: $2" >&2 + printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error @@ -450,7 +470,7 @@ as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | +printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -494,7 +514,7 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall @@ -508,6 +528,10 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits exit } + +# Determine whether it's possible to make 'echo' print without a newline. +# These variables are no longer used directly by Autoconf, but are AC_SUBSTed +# for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) @@ -521,6 +545,13 @@ case `echo -n x` in #((((( ECHO_N='-n';; esac +# For backward compatibility with old third-party macros, we provide +# the shell variables $as_echo and $as_echo_n. New code should use +# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. +as_echo='printf %s\n' +as_echo_n='printf %s' + + rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file @@ -564,8 +595,6 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" -lt_ltdl_dir='libltdl' - SHELL=${CONFIG_SHELL-/bin/sh} @@ -592,48 +621,44 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='libfyaml' PACKAGE_TARNAME='libfyaml' -PACKAGE_VERSION='0.7.12' -PACKAGE_STRING='libfyaml 0.7.12' +PACKAGE_VERSION='0.9' +PACKAGE_STRING='libfyaml 0.9' PACKAGE_BUGREPORT='pantelis.antoniou@konsulko.com' PACKAGE_URL='' ac_unique_file="src/lib/fy-parse.c" # Factoring default headers for most tests. ac_includes_default="\ -#include -#ifdef HAVE_SYS_TYPES_H -# include -#endif -#ifdef HAVE_SYS_STAT_H -# include +#include +#ifdef HAVE_STDIO_H +# include #endif -#ifdef STDC_HEADERS +#ifdef HAVE_STDLIB_H # include -# include -#else -# ifdef HAVE_STDLIB_H -# include -# endif #endif #ifdef HAVE_STRING_H -# if !defined STDC_HEADERS && defined HAVE_MEMORY_H -# include -# endif # include #endif -#ifdef HAVE_STRINGS_H -# include -#endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif #ifdef HAVE_UNISTD_H # include #endif" +ac_header_c_list= enable_option_checking=no ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE @@ -647,10 +672,17 @@ MCS OBJC F77 FC -CCAS AM_MAKEFLAGS MAKEFLAGS shavedir +HAVE_LIBCLANG_FALSE +HAVE_LIBCLANG_TRUE +LIBCLANG_LIBS +LIBCLANG_LDFLAGS +LIBCLANG_CPPFLAGS +LIBCLANG_CFLAGS +HAVE_LIBCLANG +LLVM_CONFIG HAVE_JQ_FALSE HAVE_JQ_TRUE JQ @@ -691,7 +723,42 @@ LIBYAML_CFLAGS HAVE_QSORT_R_FALSE HAVE_QSORT_R_TRUE HAVE_QSORT_R +HAVE_ASAN_FALSE +HAVE_ASAN_TRUE +ASAN_LIBS +ASAN_CFLAGS +HAVE_ASAN +TARGET_HAS_NEON_FALSE +TARGET_HAS_NEON_TRUE +TARGET_HAS_AVX512_FALSE +TARGET_HAS_AVX512_TRUE +TARGET_HAS_AVX2_FALSE +TARGET_HAS_AVX2_TRUE +TARGET_HAS_SSE41_FALSE +TARGET_HAS_SSE41_TRUE +TARGET_HAS_SSE2_FALSE +TARGET_HAS_SSE2_TRUE +TARGET_CPU_ANY_ARM_FALSE +TARGET_CPU_ANY_ARM_TRUE +TARGET_CPU_ARM64_FALSE +TARGET_CPU_ARM64_TRUE +TARGET_CPU_ARM_FALSE +TARGET_CPU_ARM_TRUE +TARGET_CPU_ANY_X86_FALSE +TARGET_CPU_ANY_X86_TRUE +TARGET_CPU_X86_64_FALSE +TARGET_CPU_X86_64_TRUE +TARGET_CPU_X86_FALSE +TARGET_CPU_X86_TRUE +HAVE_PORTABLE_TARGET_FALSE +HAVE_PORTABLE_TARGET_TRUE +HAVE_PORTABLE_TARGET +HAVE_STATIC_FALSE +HAVE_STATIC_TRUE +HAVE_STATIC subdirs +LIBLTDL +LTDLINCL CXXCPP LT_SYS_LIBRARY_PATH OTOOL64 @@ -711,27 +778,13 @@ LIBTOOL OBJDUMP DLLTOOL AS -INCLTDL -LTDLINCL -LTDLDEPS -LIBLTDL PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG -ACLOCAL_AMFLAGS -M4 PTHREAD_CFLAGS PTHREAD_LIBS PTHREAD_CC ax_pthread_config -host_os -host_vendor -host_cpu -host -build_os -build_vendor -build_cpu -build LN_S am__fastdepCXX_FALSE am__fastdepCXX_TRUE @@ -744,6 +797,11 @@ AR EGREP GREP CPP +am__fastdepCCAS_FALSE +am__fastdepCCAS_TRUE +CCASDEPMODE +CCASFLAGS +CCAS am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE @@ -751,7 +809,6 @@ am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE -am__quote am__include DEPDIR OBJEXT @@ -770,6 +827,9 @@ AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V +CSCOPE +ETAGS +CTAGS am__untar am__tar AMTAR @@ -793,6 +853,20 @@ am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM +target_os +target_vendor +target_cpu +target +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +ACLOCAL_AMFLAGS +M4 target_alias host_alias build_alias @@ -831,7 +905,8 @@ PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR -SHELL' +SHELL +am__quote' ac_subst_files='' ac_user_opts=' enable_option_checking @@ -846,8 +921,11 @@ with_aix_soname with_gnu_ld with_sysroot enable_libtool_lock +enable_portable_target +enable_asan enable_network enable_devmode +with_libclang enable_shave ' ac_precious_vars='build_alias @@ -858,6 +936,8 @@ CFLAGS LDFLAGS LIBS CPPFLAGS +CCAS +CCASFLAGS CPP CXX CXXFLAGS @@ -943,8 +1023,6 @@ do *) ac_optarg=yes ;; esac - # Accept the important Cygnus configure options, so we can diagnose typos. - case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; @@ -985,9 +1063,9 @@ do ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: $ac_useropt" + as_fn_error $? "invalid feature name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" @@ -1011,9 +1089,9 @@ do ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: $ac_useropt" + as_fn_error $? "invalid feature name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" @@ -1224,9 +1302,9 @@ do ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: $ac_useropt" + as_fn_error $? "invalid package name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" @@ -1240,9 +1318,9 @@ do ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: $ac_useropt" + as_fn_error $? "invalid package name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" @@ -1286,9 +1364,9 @@ Try \`$0 --help' for more information" *) # FIXME: should be removed in autoconf 3.0. - $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; @@ -1304,7 +1382,7 @@ if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; - *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi @@ -1368,7 +1446,7 @@ $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_myself" | +printf "%s\n" X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -1425,7 +1503,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures libfyaml 0.7.12 to adapt to many kinds of systems. +\`configure' configures libfyaml 0.9 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1491,12 +1569,13 @@ Program names: System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] + --target=TARGET configure for building compilers for TARGET [HOST] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libfyaml 0.7.12:";; + short | recursive ) echo "Configuration of libfyaml 0.9:";; esac cat <<\_ACEOF @@ -1517,6 +1596,10 @@ Optional Features: --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) + --enable-portable-target + Enable portable mode (disable per-target + optimizations) + --enable-asan Enable ASAN support --disable-network Disable tests requiring network access --enable-devmode Enable development mode only debugging --enable-shave use shave to make the build pretty [[default=yes]] @@ -1532,6 +1615,15 @@ Optional Packages: --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-sysroot[=DIR] Search for dependent libraries within DIR (or the compiler's sysroot if not specified). +# Check whether --enable-network was given. +if test ${enable_network+y} +then : + enableval=$enable_network; +fi + + + --with-libclang= + Enable support for libclang [default=auto] Some influential environment variables: CC C compiler command @@ -1541,6 +1633,8 @@ 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 + CCAS assembler compiler command (defaults to CC) + CCASFLAGS assembler compiler flags (defaults to CFLAGS) CPP C preprocessor CXX C++ compiler command CXXFLAGS C++ compiler flags @@ -1591,9 +1685,9 @@ if test "$ac_init_help" = "recursive"; then case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; @@ -1621,7 +1715,8 @@ esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. + # Check for configure.gnu first; this name is used for a wrapper for + # Metaconfig's "Configure" on case-insensitive file systems. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive @@ -1629,7 +1724,7 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix echo && $SHELL "$ac_srcdir/configure" --help=recursive else - $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done @@ -1638,10 +1733,10 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libfyaml configure 0.7.12 -generated by GNU Autoconf 2.69 +libfyaml configure 0.9 +generated by GNU Autoconf 2.71 -Copyright (C) 2012 Free Software Foundation, Inc. +Copyright (C) 2021 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF @@ -1658,14 +1753,14 @@ fi ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext + rm -f conftest.$ac_objext conftest.beam 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 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -1673,14 +1768,15 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err - } && test -s conftest.$ac_objext; then : + } && test -s conftest.$ac_objext +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -1702,7 +1798,7 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -1710,14 +1806,15 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err - }; then : + } +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -1727,139 +1824,6 @@ fi } # ac_fn_c_try_cpp -# 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 "## --------------------------------------------- ## -## Report this to pantelis.antoniou@konsulko.com ## -## --------------------------------------------- ##" - ) | 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_try_run LINENO -# ---------------------- -# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes -# that executables *can* be run. -ac_fn_c_try_run () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - 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>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' - { { 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_try") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then : - ac_retval=0 -else - $as_echo "$as_me: program exited with status $ac_status" >&5 - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=$ac_status -fi - 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_c_try_run - # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in @@ -1867,26 +1831,28 @@ fi ac_fn_c_check_header_compile () { 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 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +printf %s "checking for $2... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : eval "$3=yes" -else +else $as_nop eval "$3=no" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile @@ -1897,14 +1863,14 @@ $as_echo "$ac_res" >&6; } ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext + rm -f conftest.$ac_objext conftest.beam 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 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -1912,14 +1878,15 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$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 : + } && test -s conftest.$ac_objext +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -1935,14 +1902,14 @@ fi ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest$ac_exeext + rm -f conftest.$ac_objext conftest.beam 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 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -1950,17 +1917,18 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext - }; then : + } +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -1981,11 +1949,12 @@ fi ac_fn_c_check_func () { 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 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +printf %s "checking for $2... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. @@ -1993,16 +1962,9 @@ else #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $2 (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif + which can conflict with char $2 (); below. */ +#include #undef $2 /* Override any GCC internal prototype to avoid an error. @@ -2020,24 +1982,25 @@ choke me #endif int -main () +main (void) { return $2 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$3=yes" -else +else $as_nop eval "$3=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func @@ -2054,7 +2017,7 @@ case "(($ac_try" in *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -2062,14 +2025,15 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$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 : + } +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -2085,14 +2049,14 @@ fi 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 + rm -f conftest.$ac_objext conftest.beam 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 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -2100,17 +2064,18 @@ $as_echo "$ac_try_echo"; } >&5 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$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 : + } +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -2125,6 +2090,49 @@ fi } # ac_fn_cxx_try_link +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that +# executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + 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\"" +printf "%s\n" "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { 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\"" +printf "%s\n" "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; } +then : + ac_retval=0 +else $as_nop + printf "%s\n" "$as_me: program exited with status $ac_status" >&5 + printf "%s\n" "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + 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_c_try_run + # ac_fn_c_check_type LINENO TYPE VAR INCLUDES # ------------------------------------------- # Tests whether TYPE exists after having included INCLUDES, setting cache @@ -2132,17 +2140,18 @@ fi 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 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +printf %s "checking for $2... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else $as_nop eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { if (sizeof ($2)) return 0; @@ -2150,12 +2159,13 @@ if (sizeof ($2)) return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { if (sizeof (($2))) return 0; @@ -2163,41 +2173,45 @@ if (sizeof (($2))) return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : -else +else $as_nop eval "$3=yes" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_type -# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES -# --------------------------------------------- +# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR +# ------------------------------------------------------------------ # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR -# accordingly. -ac_fn_c_check_decl () +# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. +ac_fn_check_decl () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack as_decl_name=`echo $2|sed 's/ *(.*//'` + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 +printf %s "checking whether $as_decl_name is declared... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else $as_nop as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 -$as_echo_n "checking whether $as_decl_name is declared... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else + eval ac_save_FLAGS=\$$6 + as_fn_append $6 " $5" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { #ifndef $as_decl_name #ifdef __cplusplus @@ -2211,27 +2225,50 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : eval "$3=yes" -else +else $as_nop eval "$3=no" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + eval $6=\$ac_save_FLAGS + fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno -} # ac_fn_c_check_decl +} # ac_fn_check_decl +ac_configure_args_raw= +for ac_arg +do + case $ac_arg in + *\'*) + ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append ac_configure_args_raw " '$ac_arg'" +done + +case $ac_configure_args_raw in + *$as_nl*) + ac_safe_unquote= ;; + *) + ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. + ac_unsafe_a="$ac_unsafe_z#~" + ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" + ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; +esac + cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libfyaml $as_me 0.7.12, which was -generated by GNU Autoconf 2.69. Invocation command line was +It was created by libfyaml $as_me 0.9, which was +generated by GNU Autoconf 2.71. Invocation command line was - $ $0 $@ + $ $0$ac_configure_args_raw _ACEOF exec 5>>config.log @@ -2264,8 +2301,12 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - $as_echo "PATH: $as_dir" + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + printf "%s\n" "PATH: $as_dir" done IFS=$as_save_IFS @@ -2300,7 +2341,7 @@ do | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) - ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; @@ -2335,11 +2376,13 @@ done # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? + # Sanitize IFS. + IFS=" "" $as_nl" # Save into config.log some information that might help in debugging. { echo - $as_echo "## ---------------- ## + printf "%s\n" "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo @@ -2350,8 +2393,8 @@ trap 'exit_status=$? case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( @@ -2375,7 +2418,7 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; ) echo - $as_echo "## ----------------- ## + printf "%s\n" "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo @@ -2383,14 +2426,14 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; do eval ac_val=\$$ac_var case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac - $as_echo "$ac_var='\''$ac_val'\''" + printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then - $as_echo "## ------------------- ## + printf "%s\n" "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo @@ -2398,15 +2441,15 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; do eval ac_val=\$$ac_var case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac - $as_echo "$ac_var='\''$ac_val'\''" + printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then - $as_echo "## ----------- ## + printf "%s\n" "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo @@ -2414,8 +2457,8 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; echo fi test "$ac_signal" != 0 && - $as_echo "$as_me: caught signal $ac_signal" - $as_echo "$as_me: exit $exit_status" + printf "%s\n" "$as_me: caught signal $ac_signal" + printf "%s\n" "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && @@ -2429,63 +2472,48 @@ ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h -$as_echo "/* confdefs.h */" > confdefs.h +printf "%s\n" "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF +printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF +printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF +printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF +printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF +printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_URL "$PACKAGE_URL" -_ACEOF +printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. -ac_site_file1=NONE -ac_site_file2=NONE if test -n "$CONFIG_SITE"; then - # We do not want a PATH search for config.site. - case $CONFIG_SITE in #(( - -*) ac_site_file1=./$CONFIG_SITE;; - */*) ac_site_file1=$CONFIG_SITE;; - *) ac_site_file1=./$CONFIG_SITE;; - esac + ac_site_files="$CONFIG_SITE" elif test "x$prefix" != xNONE; then - ac_site_file1=$prefix/share/config.site - ac_site_file2=$prefix/etc/config.site + ac_site_files="$prefix/share/config.site $prefix/etc/config.site" else - ac_site_file1=$ac_default_prefix/share/config.site - ac_site_file2=$ac_default_prefix/etc/config.site + ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi -for ac_site_file in "$ac_site_file1" "$ac_site_file2" + +for ac_site_file in $ac_site_files do - test "x$ac_site_file" = xNONE && continue - if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 -$as_echo "$as_me: loading site script $ac_site_file" >&6;} + case $ac_site_file in #( + */*) : + ;; #( + *) : + ac_site_file=./$ac_site_file ;; +esac + if test -f "$ac_site_file" && test -r "$ac_site_file"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ - || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi @@ -2495,2596 +2523,1929 @@ if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 -$as_echo "$as_me: loading cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +printf "%s\n" "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 -$as_echo "$as_me: creating cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +printf "%s\n" "$as_me: creating cache $cache_file" >&6;} >$cache_file fi -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - # differences in whitespace do not lead to failure. - ac_old_val_w=`echo x $ac_old_val` - ac_new_val_w=`echo x $ac_new_val` - if test "$ac_old_val_w" != "$ac_new_val_w"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 -$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - ac_cache_corrupted=: - else - { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 -$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} - eval $ac_var=\$ac_old_val - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 -$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 -$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) as_fn_append ac_configure_args " '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 -$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} - as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 -fi -## -------------------- ## -## Main body of script. ## -## -------------------- ## - -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 +# Test code for whether the C compiler supports C89 (global declarations) +ac_c_conftest_c89_globals=' +/* Does the compiler advertise C89 conformance? + Do not test the value of __STDC__, because some compilers set it to 0 + while being otherwise adequately conformant. */ +#if !defined __STDC__ +# error "Compiler does not advertise C89 conformance" +#endif +#include +#include +struct stat; +/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ +struct buf { int x; }; +struct buf * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not \xHH hex character constants. + These do not provoke an error unfortunately, instead are silently treated + as an "x". The following induces an error, until -std is added to get + proper ANSI mode. Curiously \x00 != x always comes out true, for an + array size at least. It is necessary to write \x00 == 0 to get something + that is true only with -std. */ +int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) '\''x'\'' +int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; -ac_config_headers="$ac_config_headers config.h" +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), + int, int);' +# Test code for whether the C compiler supports C89 (body of main). +ac_c_conftest_c89_main=' +ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); +' -ac_aux_dir= -for ac_dir in build-aux "$srcdir"/build-aux; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 -fi +# Test code for whether the C compiler supports C99 (global declarations) +ac_c_conftest_c99_globals=' +// Does the compiler advertise C99 conformance? +#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L +# error "Compiler does not advertise C99 conformance" +#endif -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. +#include +extern int puts (const char *); +extern int printf (const char *, ...); +extern int dprintf (int, const char *, ...); +extern void *malloc (size_t); +// Check varargs macros. These examples are taken from C99 6.10.3.5. +// dprintf is used instead of fprintf to avoid needing to declare +// FILE and stderr. +#define debug(...) dprintf (2, __VA_ARGS__) +#define showlist(...) puts (#__VA_ARGS__) +#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) +static void +test_varargs_macros (void) +{ + int x = 1234; + int y = 5678; + debug ("Flag"); + debug ("X = %d\n", x); + showlist (The first, second, and third items.); + report (x>y, "x is %d but y is %d", x, y); +} -am__api_version='1.15' +// Check long long types. +#define BIG64 18446744073709551615ull +#define BIG32 4294967295ul +#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) +#if !BIG_OK + #error "your preprocessor is broken" +#endif +#if BIG_OK +#else + #error "your preprocessor is broken" +#endif +static long long int bignum = -9223372036854775807LL; +static unsigned long long int ubignum = BIG64; -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -# Reject install programs that cannot install multiple files. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 -$as_echo_n "checking for a BSD-compatible install... " >&6; } -if test -z "$INSTALL"; then -if ${ac_cv_path_install+:} false; then : - $as_echo_n "(cached) " >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in #(( - ./ | .// | /[cC]/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - rm -rf conftest.one conftest.two conftest.dir - echo one > conftest.one - echo two > conftest.two - mkdir conftest.dir - if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && - test -s conftest.one && test -s conftest.two && - test -s conftest.dir/conftest.one && - test -s conftest.dir/conftest.two - then - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - fi - done - done - ;; -esac +struct incomplete_array +{ + int datasize; + double data[]; +}; - done -IFS=$as_save_IFS +struct named_init { + int number; + const wchar_t *name; + double average; +}; -rm -rf conftest.one conftest.two conftest.dir +typedef const char *ccp; -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 -$as_echo "$INSTALL" >&6; } +static inline int +test_restrict (ccp restrict text) +{ + // See if C++-style comments work. + // Iterate through items via the restricted pointer. + // Also check for declarations in for loops. + for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) + continue; + return 0; +} -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' +// Check varargs and va_copy. +static bool +test_varargs (const char *format, ...) +{ + va_list args; + va_start (args, format); + va_list args_copy; + va_copy (args_copy, args); -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + const char *str = ""; + int number = 0; + float fnumber = 0; -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + while (*format) + { + switch (*format++) + { + case '\''s'\'': // string + str = va_arg (args_copy, const char *); + break; + case '\''d'\'': // int + number = va_arg (args_copy, int); + break; + case '\''f'\'': // float + fnumber = va_arg (args_copy, double); + break; + default: + break; + } + } + va_end (args_copy); + va_end (args); -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 -$as_echo_n "checking whether build environment is sane... " >&6; } -# Reject unsafe characters in $srcdir or the absolute working directory -# name. Accept space and tab only in the latter. -am_lf=' + return *str && number && fnumber; +} ' -case `pwd` in - *[\\\"\#\$\&\'\`$am_lf]*) - as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; -esac -case $srcdir in - *[\\\"\#\$\&\'\`$am_lf\ \ ]*) - as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; -esac -# Do 'set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - am_has_slept=no - for am_try in 1 2; do - echo "timestamp, slept: $am_has_slept" > conftest.file - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t "$srcdir/configure" conftest.file` - fi - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then +# Test code for whether the C compiler supports C99 (body of main). +ac_c_conftest_c99_main=' + // Check bool. + _Bool success = false; + success |= (argc != 0); - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - as_fn_error $? "ls -t appears to fail. Make sure there is not a broken - alias in your environment" "$LINENO" 5 - fi - if test "$2" = conftest.file || test $am_try -eq 2; then - break - fi - # Just in case. - sleep 1 - am_has_slept=yes - done - test "$2" = conftest.file - ) -then - # Ok. - : -else - as_fn_error $? "newly created file is older than distributed files! -Check your system clock" "$LINENO" 5 -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -# If we didn't sleep, we still need to ensure time stamps of config.status and -# generated files are strictly newer. -am_sleep_pid= -if grep 'slept: no' conftest.file >/dev/null 2>&1; then - ( sleep 1 ) & - am_sleep_pid=$! -fi + // Check restrict. + if (test_restrict ("String literal") == 0) + success = true; + char *restrict newvar = "Another string"; -rm -f conftest.file + // Check varargs. + success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); + test_varargs_macros (); -test "$program_prefix" != NONE && - program_transform_name="s&^&$program_prefix&;$program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s&\$&$program_suffix&;$program_transform_name" -# Double any \ or $. -# By default was `s,x,x', remove it if useless. -ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' -program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + // Check flexible array members. + struct incomplete_array *ia = + malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); + ia->datasize = 10; + for (int i = 0; i < ia->datasize; ++i) + ia->data[i] = i * 1.234; -# Expand $ac_aux_dir to an absolute path. -am_aux_dir=`cd "$ac_aux_dir" && pwd` + // Check named initializers. + struct named_init ni = { + .number = 34, + .name = L"Test wide string", + .average = 543.34343, + }; -if test x"${MISSING+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; - *) - MISSING="\${SHELL} $am_aux_dir/missing" ;; - esac -fi -# Use eval to expand $SHELL -if eval "$MISSING --is-lightweight"; then - am_missing_run="$MISSING " -else - am_missing_run= - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 -$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} -fi + ni.number = 58; -if test x"${install_sh+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; - *) - install_sh="\${SHELL} $am_aux_dir/install-sh" - esac -fi + int dynamic_array[ni.number]; + dynamic_array[0] = argv[0][0]; + dynamic_array[ni.number - 1] = 543; -# Installed binaries are usually stripped using 'strip' when the user -# run "make install-strip". However 'strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the 'STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; 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_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip" - $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 + // work around unused variable warnings + ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' + || dynamic_array[ni.number - 1] != 543); +' -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 -$as_echo "$STRIP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi +# Test code for whether the C compiler supports C11 (global declarations) +ac_c_conftest_c11_globals=' +// Does the compiler advertise C11 conformance? +#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L +# error "Compiler does not advertise C11 conformance" +#endif +// Check _Alignas. +char _Alignas (double) aligned_as_double; +char _Alignas (0) no_special_alignment; +extern char aligned_as_int; +char _Alignas (0) _Alignas (int) aligned_as_int; -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; 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_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_STRIP="strip" - $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 +// Check _Alignof. +enum +{ + int_alignment = _Alignof (int), + int_array_alignment = _Alignof (int[100]), + char_alignment = _Alignof (char) +}; +_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 -$as_echo "$ac_ct_STRIP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi +// Check _Noreturn. +int _Noreturn does_not_return (void) { for (;;) continue; } - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - 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 - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi +// Check _Static_assert. +struct test_static_assert +{ + int x; + _Static_assert (sizeof (int) <= sizeof (long int), + "_Static_assert does not work in struct"); + long int y; +}; -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +// Check UTF-8 literals. +#define u8 syntax error! +char const utf8_literal[] = u8"happens to be ASCII" "another string"; -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 -$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } -if test -z "$MKDIR_P"; then - if ${ac_cv_path_mkdir+:} false; then : - $as_echo_n "(cached) " >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in mkdir gmkdir; do - for ac_exec_ext in '' $ac_executable_extensions; do - as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( - 'mkdir (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ - 'mkdir (fileutils) '4.1*) - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext - break 3;; - esac - done - done - done -IFS=$as_save_IFS +// Check duplicate typedefs. +typedef long *long_ptr; +typedef long int *long_ptr; +typedef long_ptr long_ptr; -fi +// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. +struct anonymous +{ + union { + struct { int i; int j; }; + struct { int k; long int l; } w; + }; + int m; +} v1; +' - test -d ./--version && rmdir ./--version - if test "${ac_cv_path_mkdir+set}" = set; then - MKDIR_P="$ac_cv_path_mkdir -p" - else - # As a last resort, use the slow shell script. Don't cache a - # value for MKDIR_P within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - MKDIR_P="$ac_install_sh -d" - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 -$as_echo "$MKDIR_P" >&6; } +# Test code for whether the C compiler supports C11 (body of main). +ac_c_conftest_c11_main=' + _Static_assert ((offsetof (struct anonymous, i) + == offsetof (struct anonymous, w.k)), + "Anonymous union alignment botch"); + v1.i = 2; + v1.w.k = 5; + ok |= v1.i != 5; +' -for ac_prog in gawk mawk nawk awk -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_AWK+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # 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_AWK="$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 +# Test code for whether the C compiler supports C11 (complete). +ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} +${ac_c_conftest_c99_globals} +${ac_c_conftest_c11_globals} -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 -$as_echo "$AWK" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_c_conftest_c89_main} + ${ac_c_conftest_c99_main} + ${ac_c_conftest_c11_main} + return ok; +} +" +# Test code for whether the C compiler supports C99 (complete). +ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} +${ac_c_conftest_c99_globals} - test -n "$AWK" && break -done +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_c_conftest_c89_main} + ${ac_c_conftest_c99_main} + return ok; +} +" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } -set x ${MAKE-make} -ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat >conftest.make <<\_ACEOF -SHELL = /bin/sh -all: - @echo '@@@%%%=$(MAKE)=@@@%%%' -_ACEOF -# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. -case `${MAKE-make} -f conftest.make 2>/dev/null` in - *@@@%%%=?*=@@@%%%*) - eval ac_cv_prog_make_${ac_make}_set=yes;; - *) - eval ac_cv_prog_make_${ac_make}_set=no;; -esac -rm -f conftest.make -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - SET_MAKE= -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - SET_MAKE="MAKE=${MAKE-make}" -fi +# Test code for whether the C compiler supports C89 (complete). +ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} -rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_c_conftest_c89_main} + return ok; +} +" -# Check whether --enable-silent-rules was given. -if test "${enable_silent_rules+set}" = set; then : - enableval=$enable_silent_rules; -fi - -case $enable_silent_rules in # ((( - yes) AM_DEFAULT_VERBOSITY=0;; - no) AM_DEFAULT_VERBOSITY=1;; - *) AM_DEFAULT_VERBOSITY=1;; -esac -am_make=${MAKE-make} -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 -$as_echo_n "checking whether $am_make supports nested variables... " >&6; } -if ${am_cv_make_support_nested_variables+:} false; then : - $as_echo_n "(cached) " >&6 -else - if $as_echo 'TRUE=$(BAR$(V)) -BAR0=false -BAR1=true -V=1 -am__doit: - @$(TRUE) -.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then - am_cv_make_support_nested_variables=yes -else - am_cv_make_support_nested_variables=no -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 -$as_echo "$am_cv_make_support_nested_variables" >&6; } -if test $am_cv_make_support_nested_variables = yes; then - AM_V='$(V)' - AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' -else - AM_V=$AM_DEFAULT_VERBOSITY - AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY -fi -AM_BACKSLASH='\' - -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - am__isrc=' -I$(srcdir)' - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi +as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" +as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" +as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" +as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" +as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" +as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" +as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" +as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" +as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" +as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" +as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" +# Test code for whether the C++ compiler supports C++98 (global declarations) +ac_cxx_conftest_cxx98_globals=' +// Does the compiler advertise C++98 conformance? +#if !defined __cplusplus || __cplusplus < 199711L +# error "Compiler does not advertise C++98 conformance" +#endif +// These inclusions are to reject old compilers that +// lack the unsuffixed header files. +#include +#include -# Define the identity of the package. - PACKAGE='libfyaml' - VERSION='0.7.12' +// and are *not* freestanding headers in C++98. +extern void assert (int); +namespace std { + extern int strcmp (const char *, const char *); +} +// Namespaces, exceptions, and templates were all added after "C++ 2.0". +using std::exception; +using std::strcmp; -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF +namespace { +void test_exception_syntax() +{ + try { + throw "test"; + } catch (const char *s) { + // Extra parentheses suppress a warning when building autoconf itself, + // due to lint rules shared with more typical C programs. + assert (!(strcmp) (s, "test")); + } +} -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF +template struct test_template +{ + T const val; + explicit test_template(T t) : val(t) {} + template T add(U u) { return static_cast(u) + val; } +}; -# Some tools Automake needs. +} // anonymous namespace +' -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} +# Test code for whether the C++ compiler supports C++98 (body of main) +ac_cxx_conftest_cxx98_main=' + assert (argc); + assert (! argv[0]); +{ + test_exception_syntax (); + test_template tt (2.0); + assert (tt.add (4) == 6.0); + assert (true && !false); +} +' +# Test code for whether the C++ compiler supports C++11 (global declarations) +ac_cxx_conftest_cxx11_globals=' +// Does the compiler advertise C++ 2011 conformance? +#if !defined __cplusplus || __cplusplus < 201103L +# error "Compiler does not advertise C++11 conformance" +#endif -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} +namespace cxx11test +{ + constexpr int get_val() { return 20; } + struct testinit + { + int i; + double d; + }; -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + class delegate + { + public: + delegate(int n) : n(n) {} + delegate(): delegate(2354) {} + virtual int getval() { return this->n; }; + protected: + int n; + }; -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + class overridden : public delegate + { + public: + overridden(int n): delegate(n) {} + virtual int getval() override final { return this->n * 2; } + }; + class nocopy + { + public: + nocopy(int i): i(i) {} + nocopy() = default; + nocopy(const nocopy&) = delete; + nocopy & operator=(const nocopy&) = delete; + private: + int i; + }; -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + // for testing lambda expressions + template Ret eval(Fn f, Ret v) + { + return f(v); + } -# For better backward compatibility. To be removed once Automake 1.9.x -# dies out for good. For more background, see: -# -# -mkdir_p='$(MKDIR_P)' + // for testing variadic templates and trailing return types + template auto sum(V first) -> V + { + return first; + } + template auto sum(V first, Args... rest) -> V + { + return first + sum(rest...); + } +} +' -# We need awk for the "check" target (and possibly the TAP driver). The -# system "awk" is bad on some platforms. -# Always define AMTAR for backward compatibility. Yes, it's still used -# in the wild :-( We should find a proper way to deprecate it ... -AMTAR='$${TAR-tar}' +# Test code for whether the C++ compiler supports C++11 (body of main) +ac_cxx_conftest_cxx11_main=' +{ + // Test auto and decltype + auto a1 = 6538; + auto a2 = 48573953.4; + auto a3 = "String literal"; + int total = 0; + for (auto i = a3; *i; ++i) { total += *i; } -# We'll loop over all known methods to create a tar archive until one works. -_am_tools='gnutar pax cpio none' + decltype(a2) a4 = 34895.034; +} +{ + // Test constexpr + short sa[cxx11test::get_val()] = { 0 }; +} +{ + // Test initializer lists + cxx11test::testinit il = { 4323, 435234.23544 }; +} +{ + // Test range-based for + int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, + 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; + for (auto &x : array) { x += 23; } +} +{ + // Test lambda expressions + using cxx11test::eval; + assert (eval ([](int x) { return x*2; }, 21) == 42); + double d = 2.0; + assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); + assert (d == 5.0); + assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); + assert (d == 5.0); +} +{ + // Test use of variadic templates + using cxx11test::sum; + auto a = sum(1); + auto b = sum(1, 2); + auto c = sum(1.0, 2.0, 3.0); +} +{ + // Test constructor delegation + cxx11test::delegate d1; + cxx11test::delegate d2(); + cxx11test::delegate d3(45); +} +{ + // Test override and final + cxx11test::overridden o1(55464); +} +{ + // Test nullptr + char *c = nullptr; +} +{ + // Test template brackets + test_template<::test_template> v(test_template(12)); +} +{ + // Unicode literals + char const *utf8 = u8"UTF-8 string \u2500"; + char16_t const *utf16 = u"UTF-8 string \u2500"; + char32_t const *utf32 = U"UTF-32 string \u2500"; +} +' -am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' +# Test code for whether the C compiler supports C++11 (complete). +ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} +${ac_cxx_conftest_cxx11_globals} +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_cxx_conftest_cxx98_main} + ${ac_cxx_conftest_cxx11_main} + return ok; +} +" +# Test code for whether the C compiler supports C++98 (complete). +ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_cxx_conftest_cxx98_main} + return ok; +} +" +# Auxiliary files required by this configure script. +ac_aux_files="tap-driver.sh ltmain.sh ar-lib compile missing install-sh config.guess config.sub" +# Locations in which to look for auxiliary files. +ac_aux_dir_candidates="${srcdir}/build-aux" -# POSIX will say in a future version that running "rm -f" with no argument -# is OK; and we want to be able to make that assumption in our Makefile -# recipes. So use an aggressive probe to check that the usage we want is -# actually supported "in the wild" to an acceptable degree. -# See automake bug#10828. -# To make any issue more visible, cause the running configure to be aborted -# by default if the 'rm' program in use doesn't match our expectations; the -# user can still override this though. -if rm -f && rm -fr && rm -rf; then : OK; else - cat >&2 <<'END' -Oops! +# Search for a directory containing all of the required auxiliary files, +# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. +# If we don't find one directory that contains all the files we need, +# we report the set of missing files from the *first* directory in +# $ac_aux_dir_candidates and give up. +ac_missing_aux_files="" +ac_first_candidate=: +printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in $ac_aux_dir_candidates +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + as_found=: -Your 'rm' program seems unable to run without file operands specified -on the command line, even when the '-f' option is present. This is contrary -to the behaviour of most rm programs out there, and not conforming with -the upcoming POSIX standard: + printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 + ac_aux_dir_found=yes + ac_install_sh= + for ac_aux in $ac_aux_files + do + # As a special case, if "install-sh" is required, that requirement + # can be satisfied by any of "install-sh", "install.sh", or "shtool", + # and $ac_install_sh is set appropriately for whichever one is found. + if test x"$ac_aux" = x"install-sh" + then + if test -f "${as_dir}install-sh"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 + ac_install_sh="${as_dir}install-sh -c" + elif test -f "${as_dir}install.sh"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 + ac_install_sh="${as_dir}install.sh -c" + elif test -f "${as_dir}shtool"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 + ac_install_sh="${as_dir}shtool install -c" + else + ac_aux_dir_found=no + if $ac_first_candidate; then + ac_missing_aux_files="${ac_missing_aux_files} install-sh" + else + break + fi + fi + else + if test -f "${as_dir}${ac_aux}"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 + else + ac_aux_dir_found=no + if $ac_first_candidate; then + ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" + else + break + fi + fi + fi + done + if test "$ac_aux_dir_found" = yes; then + ac_aux_dir="$as_dir" + break + fi + ac_first_candidate=false -Please tell bug-automake@gnu.org about your system, including the value -of your $PATH and any error possibly output before this message. This -can help us improve future automake versions. + as_found=false +done +IFS=$as_save_IFS +if $as_found +then : -END - if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then - echo 'Configuration will proceed anyway, since you have set the' >&2 - echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 - echo >&2 - else - cat >&2 <<'END' -Aborting the configuration process, to ensure you take notice of the issue. +else $as_nop + as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 +fi -You can download and install GNU coreutils to get an 'rm' implementation -that behaves properly: . -If you want to complete the configuration process using your problematic -'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM -to "yes", and re-run configure. +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +if test -f "${ac_aux_dir}config.guess"; then + ac_config_guess="$SHELL ${ac_aux_dir}config.guess" +fi +if test -f "${ac_aux_dir}config.sub"; then + ac_config_sub="$SHELL ${ac_aux_dir}config.sub" +fi +if test -f "$ac_aux_dir/configure"; then + ac_configure="$SHELL ${ac_aux_dir}configure" +fi -END - as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac fi +done +if $ac_cache_corrupted; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' + and start over" "$LINENO" 5 fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## +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 -# supoort older versions of automake -# only define the recursive targets when it's defined -# note that the top level makefile rules will not -# include them - +# Extract the first word of "m4 gm4", so it can be a program name with args. +set dummy m4 gm4; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_M4+y} +then : + printf %s "(cached) " >&6 +else $as_nop + case $M4 in + [\\/]* | ?:[\\/]*) + ac_cv_path_M4="$M4" # 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 + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_M4="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$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_path_M4" && ac_cv_path_M4="no" + ;; +esac +fi +M4=$ac_cv_path_M4 +if test -n "$M4"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 +printf "%s\n" "$M4" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi -MAJOR=`echo $VERSION | cut -d. -f1 | cut -d- -f1` - -MINOR=`echo $VERSION | cut -d. -f2 | cut -d- -f1` - -PATCH=`echo $VERSION | cut -d. -f3- | cut -d- -f1` - -EXTRA=`echo $VERSION | cut -d- -f2- -s` - - -# libtool version is of the following format :: -# and it is the library ABI version -# -# - Increase current when an interface has been added removed or changed -# - Increase revision every time a release is made -# - Increase age when changes are backwards compatible -# -# examples of semantic versioning progression mapping to libtool abi versions -# -# v0.7.4 -> v0.7.5 - patch number changes, backwards compatible (1) -# increase revision, increase age (age must be <= current), current unchanged -# -# v0.7.5 -> v0.8.0 - minor number changes, backwards compatible (same as (1)) (2) -# increase revision, increase age (age must be <= current), current unchanged -# -# v0.8.0 -> v0.9.0 - minor number changes, but breaks backwards compatibility - should not happen (3) -# with semantic versioning for major version number >= 1, allowed for major == 0 -# increase revision, increase current, age reset to 0 -# -# v0.9.0 -> v1.0.0 - major number changes, first public release (4) -# increase current, set revision and age to 0 -# -# v1.0.0 -> v1.0.1 - patch number changes, _must_ be backwards compatible (same as (1)) (5) -# increase revision, increase age (age must be <= current), current unchanged -# -# v1.0.1 -> v1.1.0 - minor number changes, backwards compatible (same as (5)) (6) -# increase revision, increase age (age must be <= current), current unchanged -# -# v1.1.0 -> v1.2.0 - minor number changes, breaking backwards compatibility (7) -# XXX illegal in semantic versioning and should not happen -# -# v1.1.0 -> v2.0.0 - major number changes, breaking backwards compatibility (same as (4)) (8) -# increase current, set revision and age to 0 +if test "x$M4" = xno ; then + as_fn_error $? "m4 missing" "$LINENO" 5 +fi +ACLOCAL_AMFLAGS="-I m4" -LIBTOOL_VERSION=1:2:0 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5 -$as_echo_n "checking whether to enable debugging... " >&6; } + # Make sure we can run config.sub. +$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 - ax_enable_debug_default=no - ax_enable_debug_is_release=$ax_is_release +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +printf %s "checking build system type... " >&6; } +if test ${ac_cv_build+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` +test "x$ac_build_alias" = x && + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 - # If this is a release, override the default. - if test "$ax_enable_debug_is_release" = "yes"; then : - ax_enable_debug_default="no" fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +printf "%s\n" "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - - # Check whether --enable-debug was given. -if test "${enable_debug+set}" = set; then : - enableval=$enable_debug; +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +printf %s "checking host system type... " >&6; } +if test ${ac_cv_host+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build else - enable_debug=$ax_enable_debug_default -fi - - - # empty mean debug yes - if test "x$enable_debug" = "x"; then : - enable_debug="yes" + ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 fi - # case of debug - case $enable_debug in #( - yes) : - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - CFLAGS="${CFLAGS} -g -O0" - CXXFLAGS="${CXXFLAGS} -g -O0" - FFLAGS="${FFLAGS} -g -O0" - FCFLAGS="${FCFLAGS} -g -O0" - OBJCFLAGS="${OBJCFLAGS} -g -O0" - ;; #( - info) : - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: info" >&5 -$as_echo "info" >&6; } - CFLAGS="${CFLAGS} -g" - CXXFLAGS="${CXXFLAGS} -g" - FFLAGS="${FFLAGS} -g" - FCFLAGS="${FCFLAGS} -g" - OBJCFLAGS="${OBJCFLAGS} -g" - ;; #( - profile) : - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: profile" >&5 -$as_echo "profile" >&6; } - CFLAGS="${CFLAGS} -g -pg" - CXXFLAGS="${CXXFLAGS} -g -pg" - FFLAGS="${FFLAGS} -g -pg" - FCFLAGS="${FCFLAGS} -g -pg" - OBJCFLAGS="${OBJCFLAGS} -g -pg" - LDFLAGS="${LDFLAGS} -pg" - ;; #( - *) : - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - if test "x${CFLAGS+set}" != "xset"; then : - CFLAGS="" -fi - if test "x${CXXFLAGS+set}" != "xset"; then : - CXXFLAGS="" -fi - if test "x${FFLAGS+set}" != "xset"; then : - FFLAGS="" -fi - if test "x${FCFLAGS+set}" != "xset"; then : - FCFLAGS="" -fi - if test "x${OBJCFLAGS+set}" != "xset"; then : - OBJCFLAGS="" fi - ;; +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +printf "%s\n" "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - if test "x$enable_debug" = "xyes"; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 +printf %s "checking target system type... " >&6; } +if test ${ac_cv_target+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "x$target_alias" = x; then + ac_cv_target=$ac_cv_host else - -$as_echo "#define NDEBUG 1" >>confdefs.h - + ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5 fi - ax_enable_debug=$enable_debug +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 +printf "%s\n" "$ac_cv_target" >&6; } +case $ac_cv_target in +*-*-*) ;; +*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; +esac +target=$ac_cv_target +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_target +shift +target_cpu=$1 +target_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +target_os=$* +IFS=$ac_save_IFS +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac -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 -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; 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_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$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_CC="${ac_tool_prefix}gcc" - $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 +# The aliases save the names the user supplied, while $host etc. +# will get canonicalized. +test -n "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" = \ + NONENONEs,x,x, && + program_prefix=${target_alias}- -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi +ac_config_headers="$ac_config_headers config.h" -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; 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_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="gcc" - $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_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi +am__api_version='1.16' - if test "x$ac_ct_CC" = x; then - CC="" - 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 - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; 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_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + # Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +printf %s "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if test ${ac_cv_path_install+y} +then : + printf %s "(cached) " >&6 +else $as_nop + 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_CC="${ac_tool_prefix}cc" - $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 -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; 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_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -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 - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - $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 - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - 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_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$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_CC="$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 -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -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_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_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 -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$ac_ct_CC" && break -done - - if test "x$ac_ct_CC" = x; then - CC="" - 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 - CC=$ac_ct_CC - fi -fi - -fi - - -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "no acceptable C compiler found in \$PATH -See \`config.log' for more details" "$LINENO" 5; } - -# 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 - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 -$as_echo_n "checking whether the C compiler works... " >&6; } -ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` - -# The possible output files: -ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" - -ac_rmfiles= -for ac_file in $ac_files -do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; - * ) ac_rmfiles="$ac_rmfiles $ac_file";; + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; esac -done -rm -f $ac_rmfiles - -if { { ac_try="$ac_link_default" -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_default") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' -# in a Makefile. We should not override ac_cv_exeext if it was cached, -# so that the user can short-circuit this test for compilers unknown to -# Autoconf. -for ac_file in $ac_files '' -do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) - ;; - [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; - then :; else - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + # Account for fact that we put trailing slashes in our PATH walk. +case $as_dir in #(( + ./ | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" + break 3 + fi + fi fi - # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' - # argument, so we may need to know it at that point already. - # Even if this section looks crufty: it has the advantage of - # actually working. - break;; - * ) - break;; - esac -done -test "$ac_cv_exeext" = no && ac_cv_exeext= - -else - ac_file='' -fi -if test -z "$ac_file"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { $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 "C compiler cannot create executables -See \`config.log' for more details" "$LINENO" 5; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 -$as_echo_n "checking for C compiler default output file name... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 -$as_echo "$ac_file" >&6; } -ac_exeext=$ac_cv_exeext - -rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out -ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 -$as_echo_n "checking for suffix of executables... " >&6; } -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>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in conftest.exe conftest conftest.*; do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - break;; - * ) break;; - esac -done -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 $? "cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details" "$LINENO" 5; } -fi -rm -f conftest conftest$ac_cv_exeext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 -$as_echo "$ac_cv_exeext" >&6; } - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -FILE *f = fopen ("conftest.out", "w"); - return ferror (f) || fclose (f) != 0; - - ; - return 0; -} -_ACEOF -ac_clean_files="$ac_clean_files conftest.out" -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 -$as_echo_n "checking whether we are cross compiling... " >&6; } -if test "$cross_compiling" != yes; then - { { 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>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - if { ac_try='./conftest$ac_cv_exeext' - { { 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_try") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - 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 $? "cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details" "$LINENO" 5; } - fi - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 -$as_echo "$cross_compiling" >&6; } - -rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out -ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 -$as_echo_n "checking for suffix of object files... " >&6; } -if ${ac_cv_objext+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -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>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : - for ac_file in conftest.o conftest.obj conftest.*; do - test -f "$ac_file" || continue; - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot compute suffix of object files: cannot compile -See \`config.log' for more details" "$LINENO" 5; } -fi -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 -$as_echo "$ac_cv_objext" >&6; } -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -{ $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_c_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 + done + done + ;; +esac - ; - return 0; -} -_ACEOF -if ac_fn_c_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_c_compiler_gnu=$ac_compiler_gnu + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 -$as_echo "$ac_cv_c_compiler_gnu" >&6; } -if test $ac_compiler_gnu = yes; then - GCC=yes -else - GCC= + if test ${ac_cv_path_install+y}; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi fi -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 -$as_echo_n "checking whether $CC accepts -g... " >&6; } -if ${ac_cv_prog_cc_g+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +printf "%s\n" "$INSTALL" >&6; } - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_g=yes -else - CFLAGS="" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' -int -main () -{ +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -else - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +printf %s "checking whether build environment is sane... " >&6; } +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; +esac -int -main () -{ +# Do 'set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + am_has_slept=no + for am_try in 1 2; do + echo "timestamp, slept: $am_has_slept" > conftest.file + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_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_c_werror_flag=$ac_save_c_werror_flag -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 -$as_echo "$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken + alias in your environment" "$LINENO" 5 + fi + if test "$2" = conftest.file || test $am_try -eq 2; then + break + fi + # Just in case. + sleep 1 + am_has_slept=yes + done + test "$2" = conftest.file + ) +then + # Ok. + : else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +# If we didn't sleep, we still need to ensure time stamps of config.status and +# generated files are strictly newer. +am_sleep_pid= +if grep 'slept: no' conftest.file >/dev/null 2>&1; then + ( sleep 1 ) & + am_sleep_pid=$! fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } -if ${ac_cv_prog_cc_c89+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -struct stat; -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; +rm -f conftest.file -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_c89=$ac_arg -fi -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -$as_echo "none needed" >&6; } ;; - xno) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -$as_echo "unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c89" != xno; then : -fi +# Expand $ac_aux_dir to an absolute path. +am_aux_dir=`cd "$ac_aux_dir" && pwd` -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 -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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 -$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } -if ${am_cv_prog_cc_c_o+:} false; then : - $as_echo_n "(cached) " >&6 + if test x"${MISSING+set}" != xset; then + MISSING="\${SHELL} '$am_aux_dir/missing'" +fi +# Use eval to expand $SHELL +if eval "$MISSING --is-lightweight"; then + am_missing_run="$MISSING " else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ + am_missing_run= + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 +printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} +fi -int -main () -{ +if test x"${install_sh+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi - ; - return 0; -} -_ACEOF - # Make sure it works both with $CC and with simple cc. - # Following AC_PROG_CC_C_O, we do the test twice because some - # compilers refuse to overwrite an existing .o file with -o, - # though they will create one. - am_cv_prog_cc_c_o=yes - for am_i in 1 2; do - if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 - ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } \ - && test -f conftest2.$ac_objext; then - : OK - else - am_cv_prog_cc_c_o=no - break - fi +# Installed binaries are usually stripped using 'strip' when the user +# run "make install-strip". However 'strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the 'STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_STRIP+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_STRIP="${ac_tool_prefix}strip" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done done - rm -f core conftest* - unset am_i +IFS=$as_save_IFS + fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 -$as_echo "$am_cv_prog_cc_c_o" >&6; } -if test "$am_cv_prog_cc_c_o" != yes; then - # Losing compiler, so override with the script. - # FIXME: It is wrong to rewrite CC. - # But if we don't then we get into trouble of one sort or another. - # A longer-term fix would be to have automake use am__CC in this case, - # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" - CC="$am_aux_dir/compile $CC" 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 +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +printf "%s\n" "$STRIP" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi -DEPDIR="${am__leading_dot}deps" -ac_config_commands="$ac_config_commands depfiles" +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_STRIP+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_STRIP="strip" + printf "%s\n" "$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_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +printf "%s\n" "$ac_ct_STRIP" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi -am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo this is the am__doit target -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 -$as_echo_n "checking for style of include used by $am_make... " >&6; } -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# Ignore all kinds of additional output from 'make'. -case `$am_make -s -f confmf 2> /dev/null` in #( -*the\ am__doit\ target*) - am__include=include - am__quote= - _am_result=GNU - ;; + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; esac -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - case `$am_make -s -f confmf 2> /dev/null` in #( - *the\ am__doit\ target*) - am__include=.include - am__quote="\"" - _am_result=BSD - ;; - esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" fi +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 -$as_echo "$_am_result" >&6; } -rm -f confinc confmf -# Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then : - enableval=$enable_dependency_tracking; -fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 +printf %s "checking for a race-free mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if test ${ac_cv_path_mkdir+y} +then : + printf %s "(cached) " >&6 +else $as_nop + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue + case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir ('*'coreutils) '* | \ + 'BusyBox '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' - am__nodep='_no' -fi - if test "x$enable_dependency_tracking" != xno; then - AMDEP_TRUE= - AMDEP_FALSE='#' -else - AMDEP_TRUE='#' - AMDEP_FALSE= fi + test -d ./--version && rmdir ./--version + if test ${ac_cv_path_mkdir+y}; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +printf "%s\n" "$MKDIR_P" >&6; } +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_AWK+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_AWK="$ac_prog" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS -depcc="$CC" 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_CC_dependencies_compiler_type+:} false; then : - $as_echo_n "(cached) " >&6 +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +printf "%s\n" "$AWK" >&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 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi - am_cv_CC_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 + test -n "$AWK" && break +done - # 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_CC_dependencies_compiler_type=$depmode - break - fi - fi - done +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval test \${ac_cv_prog_make_${ac_make}_set+y} +then : + printf %s "(cached) " >&6 +else $as_nop + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + SET_MAKE= +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi - cd .. - rm -rf conftest.dir +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. else - am_cv_CC_dependencies_compiler_type=none + am__leading_dot=_ fi +rmdir .tst 2>/dev/null +# Check whether --enable-silent-rules was given. +if test ${enable_silent_rules+y} +then : + enableval=$enable_silent_rules; fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 -$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then - am__fastdepCC_TRUE= - am__fastdepCC_FALSE='#' +case $enable_silent_rules in # ((( + yes) AM_DEFAULT_VERBOSITY=0;; + no) AM_DEFAULT_VERBOSITY=1;; + *) AM_DEFAULT_VERBOSITY=1;; +esac +am_make=${MAKE-make} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 +printf %s "checking whether $am_make supports nested variables... " >&6; } +if test ${am_cv_make_support_nested_variables+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if printf "%s\n" 'TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: + @$(TRUE) +.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then + am_cv_make_support_nested_variables=yes else - am__fastdepCC_TRUE='#' - am__fastdepCC_FALSE= + am_cv_make_support_nested_variables=no fi - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 -$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } -if ${ac_cv_prog_cc_c99+:} false; then : - $as_echo_n "(cached) " >&6 +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 +printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } +if test $am_cv_make_support_nested_variables = yes; then + AM_V='$(V)' + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else - ac_cv_prog_cc_c99=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -#include -#include - -// Check varargs macros. These examples are taken from C99 6.10.3.5. -#define debug(...) fprintf (stderr, __VA_ARGS__) -#define showlist(...) puts (#__VA_ARGS__) -#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) -static void -test_varargs_macros (void) -{ - int x = 1234; - int y = 5678; - debug ("Flag"); - debug ("X = %d\n", x); - showlist (The first, second, and third items.); - report (x>y, "x is %d but y is %d", x, y); -} - -// Check long long types. -#define BIG64 18446744073709551615ull -#define BIG32 4294967295ul -#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) -#if !BIG_OK - your preprocessor is broken; -#endif -#if BIG_OK -#else - your preprocessor is broken; -#endif -static long long int bignum = -9223372036854775807LL; -static unsigned long long int ubignum = BIG64; - -struct incomplete_array -{ - int datasize; - double data[]; -}; - -struct named_init { - int number; - const wchar_t *name; - double average; -}; - -typedef const char *ccp; - -static inline int -test_restrict (ccp restrict text) -{ - // See if C++-style comments work. - // Iterate through items via the restricted pointer. - // Also check for declarations in for loops. - for (unsigned int i = 0; *(text+i) != '\0'; ++i) - continue; - return 0; -} - -// Check varargs and va_copy. -static void -test_varargs (const char *format, ...) -{ - va_list args; - va_start (args, format); - va_list args_copy; - va_copy (args_copy, args); - - const char *str; - int number; - float fnumber; + AM_V=$AM_DEFAULT_VERBOSITY + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AM_BACKSLASH='\' - while (*format) - { - switch (*format++) - { - case 's': // string - str = va_arg (args_copy, const char *); - break; - case 'd': // int - number = va_arg (args_copy, int); - break; - case 'f': // float - fnumber = va_arg (args_copy, double); - break; - default: - break; - } - } - va_end (args_copy); - va_end (args); -} +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi -int -main () -{ +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi - // Check bool. - _Bool success = false; - // Check restrict. - if (test_restrict ("String literal") == 0) - success = true; - char *restrict newvar = "Another string"; +# Define the identity of the package. + PACKAGE='libfyaml' + VERSION='0.9' - // Check varargs. - test_varargs ("s, d' f .", "string", 65, 34.234); - test_varargs_macros (); - // Check flexible array members. - struct incomplete_array *ia = - malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); - ia->datasize = 10; - for (int i = 0; i < ia->datasize; ++i) - ia->data[i] = i * 1.234; +printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h - // Check named initializers. - struct named_init ni = { - .number = 34, - .name = L"Test wide string", - .average = 543.34343, - }; - ni.number = 58; +printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h - int dynamic_array[ni.number]; - dynamic_array[ni.number - 1] = 543; +# Some tools Automake needs. - // work around unused variable warnings - return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' - || dynamic_array[ni.number - 1] != 543); +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} - ; - return 0; -} -_ACEOF -for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 -do - CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_c99=$ac_arg -fi -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c99" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c99" in - x) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -$as_echo "none needed" >&6; } ;; - xno) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -$as_echo "unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c99" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 -$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c99" != xno; then : +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} -fi +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} -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 -{ $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; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if ${ac_cv_prog_CPP+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_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_c_try_cpp "$LINENO"; then : +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} -else - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.i conftest.$ac_ext +# For better backward compatibility. To be removed once Automake 1.9.x +# dies out for good. For more background, see: +# +# +mkdir_p='$(MKDIR_P)' - # 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_c_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 +# We need awk for the "check" target (and possibly the TAP driver). The +# system "awk" is bad on some platforms. +# Always define AMTAR for backward compatibility. Yes, it's still used +# in the wild :-( We should find a proper way to deprecate it ... +AMTAR='$${TAR-tar}' -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_CPP=$CPP +# We'll loop over all known methods to create a tar archive until one works. +_am_tools='gnutar pax cpio none' +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' + + + + + +# Variables for tags utilities; see am/tags.am +if test -z "$CTAGS"; then + CTAGS=ctags fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 -$as_echo "$CPP" >&6; } -ac_preproc_ok=false -for ac_c_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_c_try_cpp "$LINENO"; then : -else - # Broken: fails on valid input. -continue +if test -z "$ETAGS"; then + ETAGS=etags 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_c_try_cpp "$LINENO"; then : - # Broken: success on invalid input. -continue -else - # Passes both tests. -ac_preproc_ok=: -break +if test -z "$CSCOPE"; then + CSCOPE=cscope 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 \"$CPP\" 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 +# POSIX will say in a future version that running "rm -f" with no argument +# is OK; and we want to be able to make that assumption in our Makefile +# recipes. So use an aggressive probe to check that the usage we want is +# actually supported "in the wild" to an acceptable degree. +# See automake bug#10828. +# To make any issue more visible, cause the running configure to be aborted +# by default if the 'rm' program in use doesn't match our expectations; the +# user can still override this though. +if rm -f && rm -fr && rm -rf; then : OK; else + cat >&2 <<'END' +Oops! +Your 'rm' program seems unable to run without file operands specified +on the command line, even when the '-f' option is present. This is contrary +to the behaviour of most rm programs out there, and not conforming with +the upcoming POSIX standard: -{ $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; } -if ${ac_cv_path_GREP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$GREP"; then - ac_path_GREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in -*GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac +Please tell bug-automake@gnu.org about your system, including the value +of your $PATH and any error possibly output before this message. This +can help us improve future automake versions. - $ac_path_GREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 +END + if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then + echo 'Configuration will proceed anyway, since you have set the' >&2 + echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 + echo >&2 + else + cat >&2 <<'END' +Aborting the configuration process, to ensure you take notice of the issue. + +You can download and install GNU coreutils to get an 'rm' implementation +that behaves properly: . + +If you want to complete the configuration process using your problematic +'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM +to "yes", and re-run configure. + +END + as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 fi -else - ac_cv_path_GREP=$GREP fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -$as_echo "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -$as_echo_n "checking for egrep... " >&6; } -if ${ac_cv_path_EGREP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac +# supoort older versions of automake +# only define the recursive targets when it's defined +# note that the top level makefile rules will not +# include them - $ac_path_EGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_EGREP=$EGREP -fi - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -$as_echo "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" -if test $ac_cv_c_compiler_gnu = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 -$as_echo_n "checking whether $CC needs -traditional... " >&6; } -if ${ac_cv_prog_gcc_traditional+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_pattern="Autoconf.*'x'" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -Autoconf TIOCGETP -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "$ac_pattern" >/dev/null 2>&1; then : - ac_cv_prog_gcc_traditional=yes -else - ac_cv_prog_gcc_traditional=no -fi -rm -f conftest* - if test $ac_cv_prog_gcc_traditional = no; then - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -Autoconf TCGETA -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "$ac_pattern" >/dev/null 2>&1; then : - ac_cv_prog_gcc_traditional=yes -fi -rm -f conftest* - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 -$as_echo "$ac_cv_prog_gcc_traditional" >&6; } - if test $ac_cv_prog_gcc_traditional = yes; then - CC="$CC -traditional" - fi -fi +MAJOR=`echo $VERSION | cut -d. -f1 | cut -d- -f1` + +MINOR=`echo $VERSION | cut -d. -f2 | cut -d- -f1` + +PATCH=`echo $VERSION | cut -d. -f3- | cut -d- -f1` + +EXTRA=`echo $VERSION | cut -d- -f2- -s` + + +# libtool version is of the following format :: +# and it is the library ABI version +# +# - Increase current when an interface has been added removed or changed +# - Increase revision every time a release is made +# - Increase age when changes are backwards compatible +# +# examples of semantic versioning progression mapping to libtool abi versions +# +# v0.7.4 -> v0.7.5 - patch number changes, backwards compatible (1) +# increase revision, increase age (age must be <= current), current unchanged +# +# v0.7.5 -> v0.8.0 - minor number changes, backwards compatible (same as (1)) (2) +# increase revision, increase age (age must be <= current), current unchanged +# +# v0.8.0 -> v0.9.0 - minor number changes, but breaks backwards compatibility - should not happen (3) +# with semantic versioning for major version number >= 1, allowed for major == 0 +# increase revision, increase current, age reset to 0 +# +# v0.9.0 -> v1.0.0 - major number changes, first public release (4) +# increase current, set revision and age to 0 +# +# v1.0.0 -> v1.0.1 - patch number changes, _must_ be backwards compatible (same as (1)) (5) +# increase revision, increase age (age must be <= current), current unchanged +# +# v1.0.1 -> v1.1.0 - minor number changes, backwards compatible (same as (5)) (6) +# increase revision, increase age (age must be <= current), current unchanged +# +# v1.1.0 -> v1.2.0 - minor number changes, breaking backwards compatibility (7) +# XXX illegal in semantic versioning and should not happen +# +# v1.1.0 -> v2.0.0 - major number changes, breaking backwards compatibility (same as (4)) (8) +# increase current, set revision and age to 0 + + +LIBTOOL_VERSION=1:4:2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 -$as_echo_n "checking for ANSI C header files... " >&6; } -if ${ac_cv_header_stdc+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -#include -int -main () -{ - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_header_stdc=yes -else - ac_cv_header_stdc=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5 +printf %s "checking whether to enable debugging... " >&6; } -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then : + ax_enable_debug_default=no + ax_enable_debug_is_release=$ax_is_release -else - ac_cv_header_stdc=no + # If this is a release, override the default. + if test "$ax_enable_debug_is_release" = "yes" +then : + ax_enable_debug_default="no" fi -rm -f conftest* -fi -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then : -else - ac_cv_header_stdc=no + # Check whether --enable-debug was given. +if test ${enable_debug+y} +then : + enableval=$enable_debug; +else $as_nop + enable_debug=$ax_enable_debug_default fi -rm -f conftest* + + # empty mean debug yes + if test "x$enable_debug" = "x" +then : + enable_debug="yes" fi -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then : - : -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif + # case of debug + case $enable_debug in #( + yes) : -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + CFLAGS="${CFLAGS} -g -O0" + CXXFLAGS="${CXXFLAGS} -g -O0" + FFLAGS="${FFLAGS} -g -O0" + FCFLAGS="${FCFLAGS} -g -O0" + OBJCFLAGS="${OBJCFLAGS} -g -O0" + ;; #( + info) : -else - ac_cv_header_stdc=no + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: info" >&5 +printf "%s\n" "info" >&6; } + CFLAGS="${CFLAGS} -g" + CXXFLAGS="${CXXFLAGS} -g" + FFLAGS="${FFLAGS} -g" + FCFLAGS="${FCFLAGS} -g" + OBJCFLAGS="${OBJCFLAGS} -g" + ;; #( + profile) : + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: profile" >&5 +printf "%s\n" "profile" >&6; } + CFLAGS="${CFLAGS} -g -pg" + CXXFLAGS="${CXXFLAGS} -g -pg" + FFLAGS="${FFLAGS} -g -pg" + FCFLAGS="${FCFLAGS} -g -pg" + OBJCFLAGS="${OBJCFLAGS} -g -pg" + LDFLAGS="${LDFLAGS} -pg" + ;; #( + *) : + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + if test "x${CFLAGS+set}" != "xset" +then : + CFLAGS="" fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext + if test "x${CXXFLAGS+set}" != "xset" +then : + CXXFLAGS="" fi - + if test "x${FFLAGS+set}" != "xset" +then : + FFLAGS="" fi + if test "x${FCFLAGS+set}" != "xset" +then : + FCFLAGS="" +fi + if test "x${OBJCFLAGS+set}" != "xset" +then : + OBJCFLAGS="" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 -$as_echo "$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then + ;; +esac -$as_echo "#define STDC_HEADERS 1" >>confdefs.h + if test "x$enable_debug" = "xyes" +then : -fi +else $as_nop -# On IRIX 5.3, sys/types and inttypes.h are conflicting. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.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" "$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 +printf "%s\n" "#define NDEBUG 1" >>confdefs.h fi + ax_enable_debug=$enable_debug -done - ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" -if test "x$ac_cv_header_minix_config_h" = xyes; then : - MINIX=yes -else - MINIX= -fi - if test "$MINIX" = yes; then -$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h -$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h -$as_echo "#define _MINIX 1" >>confdefs.h +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 +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$CC"; then + ac_cv_prog_CC="$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 + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_CC="${ac_tool_prefix}gcc" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 fi +done + done +IFS=$as_save_IFS - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 -$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } -if ${ac_cv_safe_to_define___extensions__+:} false; then : - $as_echo_n "(cached) " >&6 +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi -# define __EXTENSIONS__ 1 - $ac_includes_default -int -main () -{ - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_safe_to_define___extensions__=yes +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else - ac_cv_safe_to_define___extensions__=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_CC="gcc" + printf "%s\n" "$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_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 -$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } - test $ac_cv_safe_to_define___extensions__ = yes && - $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h - $as_echo "#define _ALL_SOURCE 1" >>confdefs.h +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$CC"; then + ac_cv_prog_CC="$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 + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_CC="${ac_tool_prefix}cc" + printf "%s\n" "$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 +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi - $as_echo "#define _GNU_SOURCE 1" >>confdefs.h - $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi -if test -n "$ac_tool_prefix"; then - for ac_prog in ar lib "link -lib" +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe 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_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$AR"; then - ac_cv_prog_AR="$AR" # Let the user override the test. +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$CC"; then + ac_cv_prog_CC="$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=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac 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_AR="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5093,42 +4454,47 @@ IFS=$as_save_IFS fi fi -AR=$ac_cv_prog_AR -if test -n "$AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 -$as_echo "$AR" >&6; } +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - test -n "$AR" && break + test -n "$CC" && break done fi -if test -z "$AR"; then - ac_ct_AR=$AR - for ac_prog in ar lib "link -lib" +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe 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_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_AR"; then - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_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=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac 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_AR="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="$ac_prog" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5137,135 +4503,59 @@ IFS=$as_save_IFS fi fi -ac_ct_AR=$ac_cv_prog_ac_ct_AR -if test -n "$ac_ct_AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 -$as_echo "$ac_ct_AR" >&6; } +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - test -n "$ac_ct_AR" && break + test -n "$ac_ct_CC" && break done - if test "x$ac_ct_AR" = x; then - AR="false" + if test "x$ac_ct_CC" = x; then + CC="" 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;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac - AR=$ac_ct_AR + CC=$ac_ct_CC fi fi -: ${AR=ar} - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 -$as_echo_n "checking the archiver ($AR) interface... " >&6; } -if ${am_cv_ar_interface+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - - am_cv_ar_interface=ar - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -int some_variable = 0; -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' - { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 - (eval $am_ar_try) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - if test "$ac_status" -eq 0; then - am_cv_ar_interface=ar - else - am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' - { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 - (eval $am_ar_try) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - if test "$ac_status" -eq 0; then - am_cv_ar_interface=lib - else - am_cv_ar_interface=unknown - fi - fi - rm -f conftest.lib libconftest.a - -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: $am_cv_ar_interface" >&5 -$as_echo "$am_cv_ar_interface" >&6; } - -case $am_cv_ar_interface in -ar) - ;; -lib) - # Microsoft lib, so override with the ar-lib wrapper script. - # FIXME: It is wrong to rewrite AR. - # But if we don't then we get into trouble of one sort or another. - # A longer-term fix would be to have automake use am__AR in this case, - # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something - # similar. - AR="$am_aux_dir/ar-lib $AR" - ;; -unknown) - as_fn_error $? "could not determine $AR interface" "$LINENO" 5 - ;; -esac - - -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. +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. +set dummy ${ac_tool_prefix}clang; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$CC"; then + ac_cv_prog_CC="$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=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac 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 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}clang" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5274,113 +4564,374 @@ 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; } +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "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. +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "clang", so it can be a program name with args. +set dummy clang; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_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=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac 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 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="clang" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done - done -IFS=$as_save_IFS + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +fi + + +test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +printf "%s\n" "$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 -version; 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\"" +printf "%s\n" "$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 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main (void) +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +printf %s "checking whether the C compiler works... " >&6; } +ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +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\"" +printf "%s\n" "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= +else $as_nop + ac_file='' 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 +if test -z "$ac_file" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +printf "%s\n" "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +printf %s "checking for C compiler default output file name... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +printf "%s\n" "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext - test -n "$ac_ct_CXX" && break +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +printf %s "checking for suffix of executables... " >&6; } +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\"" +printf "%s\n" "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac done +else $as_nop + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +printf "%s\n" "$ac_cv_exeext" >&6; } - 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 ;; +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main (void) +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +printf %s "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; esac - CXX=$ac_ct_CXX +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +printf "%s\n" "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { 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\"" +printf "%s\n" "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi fi fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +printf "%s\n" "$cross_compiling" >&6; } - 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" +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +printf %s "checking for suffix of object files... " >&6; } +if test ${ac_cv_objext+y} +then : + printf %s "(cached) " >&6 +else $as_nop + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main (void) +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +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_compiler $ac_option >&5") 2>conftest.err +printf "%s\n" "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 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 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } +then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac done +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 -{ $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 +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +printf "%s\n" "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 +printf %s "checking whether the compiler supports GNU C... " >&6; } +if test ${ac_cv_c_compiler_gnu+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { #ifndef __GNUC__ choke me @@ -5390,101 +4941,308 @@ main () return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_compiler_gnu=yes -else +else $as_nop ac_compiler_gnu=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +ac_cv_c_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; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } +ac_compiler_gnu=$ac_cv_c_compiler_gnu + if test $ac_compiler_gnu = yes; then - GXX=yes + GCC=yes else - GXX= + GCC= 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" +ac_test_CFLAGS=${CFLAGS+y} +ac_save_CFLAGS=$CFLAGS +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +printf %s "checking whether $CC accepts -g... " >&6; } +if test ${ac_cv_prog_cc_g+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - ac_cv_prog_cxx_g=yes -else - CXXFLAGS="" +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_g=yes +else $as_nop + CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : -else - ac_cxx_werror_flag=$ac_save_cxx_werror_flag - CXXFLAGS="-g" +else $as_nop + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +printf "%s\n" "$ac_cv_prog_cc_g" >&6; } +if test $ac_test_CFLAGS; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +ac_prog_cc_stdc=no +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 +printf %s "checking for $CC option to enable C11 features... " >&6; } +if test ${ac_cv_prog_cc_c11+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cc_c11=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_c_conftest_c11_program +_ACEOF +for ac_arg in '' -std=gnu11 +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_c11=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cc_c11" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC +fi + +if test "x$ac_cv_prog_cc_c11" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cc_c11" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 +printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } + CC="$CC $ac_cv_prog_cc_c11" +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 + ac_prog_cc_stdc=c11 +fi +fi +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 +printf %s "checking for $CC option to enable C99 features... " >&6; } +if test ${ac_cv_prog_cc_c99+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cc_c99=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_c_conftest_c99_program +_ACEOF +for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_c99=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cc_c99" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC +fi + +if test "x$ac_cv_prog_cc_c99" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cc_c99" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 +printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } + CC="$CC $ac_cv_prog_cc_c99" +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 + ac_prog_cc_stdc=c99 +fi +fi +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 +printf %s "checking for $CC option to enable C89 features... " >&6; } +if test ${ac_cv_prog_cc_c89+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_c_conftest_c89_program +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC +fi + +if test "x$ac_cv_prog_cc_c89" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cc_c89" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } + CC="$CC $ac_cv_prog_cc_c89" +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 + ac_prog_cc_stdc=c89 +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 + + + 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 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 +printf %s "checking whether $CC understands -c and -o together... " >&6; } +if test ${am_cv_prog_cc_c_o+y} +then : + printf %s "(cached) " >&6 +else $as_nop + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main (void) { ; 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 + # Make sure it works both with $CC and with simple cc. + # Following AC_PROG_CC_C_O, we do the test twice because some + # compilers refuse to overwrite an existing .o file with -o, + # though they will create one. + am_cv_prog_cc_c_o=yes + for am_i in 1 2; do + if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 + ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } \ + && test -f conftest2.$ac_objext; then + : OK + else + am_cv_prog_cc_c_o=no + break + fi + done + rm -f core conftest* + unset am_i 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 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 +printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } +if test "$am_cv_prog_cc_c_o" != yes; then + # Losing compiler, so override with the script. + # FIXME: It is wrong to rewrite CC. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__CC in this case, + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" + CC="$am_aux_dir/compile $CC" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -5492,13 +5250,79 @@ 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= +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 +printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } +cat > confinc.mk << 'END' +am__doit: + @echo this is the am__doit target >confinc.out +.PHONY: am__doit +END +am__include="#" +am__quote= +# BSD make does it like this. +echo '.include "confinc.mk" # ignored' > confmf.BSD +# Other make implementations (GNU, Solaris 10, AIX) do it like this. +echo 'include confinc.mk # ignored' > confmf.GNU +_am_result=no +for s in GNU BSD; do + { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 + (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + case $?:`cat confinc.out 2>/dev/null` in #( + '0:this is the am__doit target') : + case $s in #( + BSD) : + am__include='.include' am__quote='"' ;; #( + *) : + am__include='include' am__quote='' ;; +esac ;; #( + *) : + ;; +esac + if test "$am__include" != "#"; then + _am_result="yes ($s style)" + break + fi +done +rm -f confinc.* confmf.* +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 +printf "%s\n" "${_am_result}" >&6; } + +# Check whether --enable-dependency-tracking was given. +if test ${enable_dependency_tracking+y} +then : + enableval=$enable_dependency_tracking; +fi -{ $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 +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' + am__nodep='_no' +fi + if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' else + AMDEP_TRUE='#' + AMDEP_FALSE= +fi + + + +depcc="$CC" am_compiler_list= + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +printf %s "checking dependency style of $depcc... " >&6; } +if test ${am_cv_CC_dependencies_compiler_type+y} +then : + printf %s "(cached) " >&6 +else $as_nop 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 @@ -5519,7 +5343,7 @@ else # directory. mkdir sub - am_cv_CXX_dependencies_compiler_type=none + am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi @@ -5592,516 +5416,937 @@ else # 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 + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + + +# By default we simply use the C compiler to build assembly code. + +test "${CCAS+set}" = set || CCAS=$CC +test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS + + + +depcc="$CCAS" am_compiler_list= + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +printf %s "checking dependency style of $depcc... " >&6; } +if test ${am_cv_CCAS_dependencies_compiler_type+y} +then : + printf %s "(cached) " >&6 +else $as_nop + 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_CCAS_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 + + + 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_CCAS_dependencies_compiler_type=$depmode break fi fi done - cd .. - rm -rf conftest.dir -else - am_cv_CXX_dependencies_compiler_type=none + cd .. + rm -rf conftest.dir +else + am_cv_CCAS_dependencies_compiler_type=none +fi + +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 +printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; } +CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then + am__fastdepCCAS_TRUE= + am__fastdepCCAS_FALSE='#' +else + am__fastdepCCAS_TRUE='#' + am__fastdepCCAS_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 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +printf %s "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if test ${ac_cv_prog_CPP+y} +then : + printf %s "(cached) " >&6 +else $as_nop + # Double quotes because $CC needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # 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. */ +#include + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO" +then : + +else $as_nop + # 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_c_try_cpp "$LINENO" +then : + # Broken: success on invalid input. +continue +else $as_nop + # Passes both tests. +ac_preproc_ok=: +break 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 +rm -f conftest.err conftest.i conftest.$ac_ext - 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= +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_CPP=$CPP -for ac_prog in gawk mawk nawk awk -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_AWK+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # Let the user override the test. +fi + CPP=$ac_cv_prog_CPP else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH + ac_cv_prog_CPP=$CPP +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +printf "%s\n" "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # 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. */ +#include + Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO" +then : + +else $as_nop + # 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_c_try_cpp "$LINENO" +then : + # Broken: success on invalid input. +continue +else $as_nop + # 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_nop + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" 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 + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +printf %s "checking for grep that handles long lines and -e... " >&6; } +if test ${ac_cv_path_GREP+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in grep ggrep + do 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_AWK="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done + ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_GREP" || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + printf %s 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + printf "%s\n" 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break done -IFS=$as_save_IFS + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 -$as_echo "$AWK" >&6; } + $ac_path_GREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + ac_cv_path_GREP=$GREP fi +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +printf "%s\n" "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" - test -n "$AWK" && break -done -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 -$as_echo_n "checking whether ln -s works... " >&6; } -LN_S=$as_ln_s -if test "$LN_S" = "ln -s"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +printf %s "checking for egrep... " >&6; } +if test ${ac_cv_path_EGREP+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in egrep + do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP" || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + printf %s 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + printf "%s\n" 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 -$as_echo "no, using $LN_S" >&6; } + ac_cv_path_EGREP=$EGREP fi + fi +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +printf "%s\n" "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 -$as_echo_n "checking build system type... " >&6; } -if ${ac_cv_build+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` -test "x$ac_build_alias" = x && - as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 +if test $ac_cv_c_compiler_gnu = yes; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 +printf %s "checking whether $CC needs -traditional... " >&6; } +if test ${ac_cv_prog_gcc_traditional+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_pattern="Autoconf.*'x'" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +Autoconf TIOCGETP +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "$ac_pattern" >/dev/null 2>&1 +then : + ac_cv_prog_gcc_traditional=yes +else $as_nop + ac_cv_prog_gcc_traditional=no +fi +rm -rf conftest* + + + if test $ac_cv_prog_gcc_traditional = no; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +Autoconf TCGETA +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "$ac_pattern" >/dev/null 2>&1 +then : + ac_cv_prog_gcc_traditional=yes +fi +rm -rf conftest* + fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 -$as_echo "$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 +printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; } + if test $ac_cv_prog_gcc_traditional = yes; then + CC="$CC -traditional" + fi +fi + +ac_header= ac_cache= +for ac_item in $ac_header_c_list +do + if test $ac_cache; then + ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" + if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then + printf "%s\n" "#define $ac_item 1" >> confdefs.h + fi + ac_header= ac_cache= + elif test $ac_header; then + ac_cache=$ac_item + else + ac_header=$ac_item + fi +done + + + + -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 -$as_echo_n "checking host system type... " >&6; } -if ${ac_cv_host+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 -fi + + +if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes +then : + +printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 -$as_echo "$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac -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. + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 +printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } +if test ${ac_cv_safe_to_define___extensions__+y} +then : + printf %s "(cached) " >&6 +else $as_nop + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -# 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 +# define __EXTENSIONS__ 1 + $ac_includes_default +int +main (void) +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_safe_to_define___extensions__=yes +else $as_nop + ac_cv_safe_to_define___extensions__=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 +printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 +printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } +if test ${ac_cv_should_define__xopen_source+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_should_define__xopen_source=no + if test $ac_cv_header_wchar_h = yes +then : + 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 (); + #include + mbstate_t x; int -main () +main (void) { -return pthread_join (); + ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ax_pthread_ok=yes +if ac_fn_c_try_compile "$LINENO" +then : + +else $as_nop + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #define _XOPEN_SOURCE 500 + #include + mbstate_t x; +int +main (void) +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_should_define__xopen_source=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 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 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 +printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } -# 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). + printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h -# 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. + printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h -ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" + printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h -# The ordering *is* (sometimes) important. Some notes on the -# individual items follow: + printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h -# 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) + printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h -case ${host_os} in - solaris*) + printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h - # 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: + printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h - ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" - ;; + printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h - darwin*) - ax_pthread_flags="-pthread $ax_pthread_flags" - ;; -esac + printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h -if test x"$ax_pthread_ok" = xno; then -for flag in $ax_pthread_flags; do + printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h - 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; } - ;; + printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h - -*) - { $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" - ;; + printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h - 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. + printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h + + printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h + + printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h + + if test $ac_cv_header_minix_config_h = yes +then : + MINIX=yes + printf "%s\n" "#define _MINIX 1" >>confdefs.h + + printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h + + printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h + +else $as_nop + MINIX= +fi + if test $ac_cv_safe_to_define___extensions__ = yes +then : + printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h + +fi + if test $ac_cv_should_define__xopen_source = yes +then : + printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h + +fi + + + if test -n "$ac_tool_prefix"; then + for ac_prog in ar lib "link -lib" + 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 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_AR+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # 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=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac 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 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" + printf "%s\n" "$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; } +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +printf "%s\n" "$AR" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "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`" - ;; + test -n "$AR" && break + done +fi +if test -z "$AR"; then + ac_ct_AR=$AR + for ac_prog in ar lib "link -lib" +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_AR+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_AR="$ac_prog" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - *) - { $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 +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +printf "%s\n" "$ac_ct_AR" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi - 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 + test -n "$ac_ct_AR" && break +done + + if test "x$ac_ct_AR" = x; then + AR="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$save_LIBS" - CFLAGS="$save_CFLAGS" +: ${AR=ar} - { $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; +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 +printf %s "checking the archiver ($AR) interface... " >&6; } +if test ${am_cv_ar_interface+y} +then : + printf %s "(cached) " >&6 +else $as_nop + 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 + + am_cv_ar_interface=ar + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int some_variable = 0; +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 + (eval $am_ar_try) 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -eq 0; then + am_cv_ar_interface=ar + else + am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 + (eval $am_ar_try) 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -eq 0; then + am_cv_ar_interface=lib + else + am_cv_ar_interface=unknown fi + fi + rm -f conftest.lib libconftest.a - PTHREAD_LIBS="" - PTHREAD_CFLAGS="" -done fi +rm -f core conftest.err conftest.$ac_objext conftest.beam 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 -# 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 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 +printf "%s\n" "$am_cv_ar_interface" >&6; } + +case $am_cv_ar_interface in +ar) + ;; +lib) + # Microsoft lib, so override with the ar-lib wrapper script. + # FIXME: It is wrong to rewrite AR. + # But if we don't then we get into trouble of one sort or another. + # A longer-term fix would be to have automake use am__AR in this case, + # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something + # similar. + AR="$am_aux_dir/ar-lib $AR" + ;; +unknown) + as_fn_error $? "could not determine $AR interface" "$LINENO" 5 + ;; +esac -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_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 +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 clang++ + 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 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop + 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 + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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" + printf "%s\n" "$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 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +printf "%s\n" "$CXX" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - LIBS="$save_LIBS" - CFLAGS="$save_CFLAGS" - # More AIX lossage: compile with *_r variant - if test "x$GCC" != xyes; then - case $host_os in - aix*) - case "x/$CC" in #( - x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : - #handle absolute path differently from PATH based program lookup - case "x$CC" in #( - x/*) : - if as_fn_executable_p ${CC}_r; then : - PTHREAD_CC="${CC}_r" -fi ;; #( - *) : - for ac_prog in ${CC}_r + 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 clang++ 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. +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop + 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=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac 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 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6110,378 +6355,839 @@ 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; } +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +printf "%s\n" "$ac_ct_CXX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - test -n "$PTHREAD_CC" && break + test -n "$ac_ct_CXX" && break done -test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" - ;; -esac ;; #( - *) : - ;; + + if test "x$ac_ct_CXX" = x; then + CXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; esac - ;; - esac - fi + CXX=$ac_ct_CXX + fi +fi + + fi +fi +# Provide some information about the compiler. +printf "%s\n" "$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\"" +printf "%s\n" "$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 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 +printf %s "checking whether the compiler supports GNU C++... " >&6; } +if test ${ac_cv_cxx_compiler_gnu+y} +then : + printf %s "(cached) " >&6 +else $as_nop + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main (void) +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO" +then : + ac_compiler_gnu=yes +else $as_nop + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +if test $ac_compiler_gnu = yes; then + GXX=yes +else + GXX= fi +ac_test_CXXFLAGS=${CXXFLAGS+y} +ac_save_CXXFLAGS=$CXXFLAGS +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +printf %s "checking whether $CXX accepts -g... " >&6; } +if test ${ac_cv_prog_cxx_g+y} +then : + printf %s "(cached) " >&6 +else $as_nop + 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. */ -test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" - +int +main (void) +{ + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO" +then : + ac_cv_prog_cxx_g=yes +else $as_nop + CXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int +main (void) +{ + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO" +then : -# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: -if test x"$ax_pthread_ok" = xyes; then +else $as_nop + ac_cxx_werror_flag=$ac_save_cxx_werror_flag + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h +int +main (void) +{ - : + ; + 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.beam conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } +if test $ac_test_CXXFLAGS; 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 - ax_pthread_ok=no + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +ac_prog_cxx_stdcxx=no +if test x$ac_prog_cxx_stdcxx = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 +printf %s "checking for $CXX option to enable C++11 features... " >&6; } +if test ${ac_cv_prog_cxx_11+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cxx_11=no +ac_save_CXX=$CXX +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_cxx_conftest_cxx11_program +_ACEOF +for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA +do + CXX="$ac_save_CXX $ac_arg" + if ac_fn_cxx_try_compile "$LINENO" +then : + ac_cv_prog_cxx_cxx11=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cxx_cxx11" != "xno" && break +done +rm -f conftest.$ac_ext +CXX=$ac_save_CXX +fi + +if test "x$ac_cv_prog_cxx_cxx11" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cxx_cxx11" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 +printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } + CXX="$CXX $ac_cv_prog_cxx_cxx11" +fi + ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 + ac_prog_cxx_stdcxx=cxx11 +fi +fi +if test x$ac_prog_cxx_stdcxx = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 +printf %s "checking for $CXX option to enable C++98 features... " >&6; } +if test ${ac_cv_prog_cxx_98+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cxx_98=no +ac_save_CXX=$CXX +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_cxx_conftest_cxx98_program +_ACEOF +for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA +do + CXX="$ac_save_CXX $ac_arg" + if ac_fn_cxx_try_compile "$LINENO" +then : + ac_cv_prog_cxx_cxx98=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cxx_cxx98" != "xno" && break +done +rm -f conftest.$ac_ext +CXX=$ac_save_CXX +fi +if test "x$ac_cv_prog_cxx_cxx98" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cxx_cxx98" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 +printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } + CXX="$CXX $ac_cv_prog_cxx_cxx98" +fi + ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 + ac_prog_cxx_stdcxx=cxx98 +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= +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +printf %s "checking dependency style of $depcc... " >&6; } +if test ${am_cv_CXX_dependencies_compiler_type+y} +then : + printf %s "(cached) " >&6 +else $as_nop + 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 -# Extract the first word of "m4 gm4", so it can be a program name with args. -set dummy m4 gm4; 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_M4+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $M4 in - [\\/]* | ?:[\\/]*) - ac_cv_path_M4="$M4" # 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_M4="$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 + 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 -done + 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 -IFS=$as_save_IFS - test -z "$ac_cv_path_M4" && ac_cv_path_M4="no" - ;; -esac -fi -M4=$ac_cv_path_M4 -if test -n "$M4"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 -$as_echo "$M4" >&6; } + cd .. + rm -rf conftest.dir else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + am_cv_CXX_dependencies_compiler_type=none fi - -if test "x$M4" = xno ; then - as_fn_error $? "m4 missing" "$LINENO" 5 fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 +printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type -ACLOCAL_AMFLAGS="-I m4" - - -# pkg-config - - - - - - - -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. -set dummy ${ac_tool_prefix}pkg-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_path_PKG_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # 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_PKG_CONFIG="$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 -PKG_CONFIG=$ac_cv_path_PKG_CONFIG -if test -n "$PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 -$as_echo "$PKG_CONFIG" >&6; } + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then + am__fastdepCXX_TRUE= + am__fastdepCXX_FALSE='#' else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= fi -fi -if test -z "$ac_cv_path_PKG_CONFIG"; then - ac_pt_PKG_CONFIG=$PKG_CONFIG - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-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_path_ac_pt_PKG_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_AWK+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. else - case $ac_pt_PKG_CONFIG in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac 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_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + printf "%s\n" "$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 -ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG -if test -n "$ac_pt_PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 -$as_echo "$ac_pt_PKG_CONFIG" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } fi - - if test "x$ac_pt_PKG_CONFIG" = x; then - PKG_CONFIG="" - 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 - PKG_CONFIG=$ac_pt_PKG_CONFIG - fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +printf "%s\n" "$AWK" >&6; } else - PKG_CONFIG="$ac_cv_path_PKG_CONFIG" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi -fi -if test -n "$PKG_CONFIG"; then - _pkg_min_version=0.9.0 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 -$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; 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; } - PKG_CONFIG="" - fi + + test -n "$AWK" && break +done + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +printf %s "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +printf "%s\n" "no, using $LN_S" >&6; } 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. -if test -f "$prefix/lib/libltdl.la"; then - lt_save_LDFLAGS=$LDFLAGS - LDFLAGS="-L$prefix/lib $LDFLAGS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5 -$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; } -if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lltdl $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext +# 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" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 +printf %s "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 lt_dlinit (); +char pthread_join (); int -main () +main (void) { -return lt_dlinit (); +return pthread_join (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_ltdl_lt_dlinit=yes -else - ac_cv_lib_ltdl_lt_dlinit=no +if ac_fn_c_try_link "$LINENO" +then : + ax_pthread_ok=yes fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5 -$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; } -if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then : - lt_lib_ltdl=yes + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 +printf "%s\n" "$ax_pthread_ok" >&6; } + if test x"$ax_pthread_ok" = xno; then + PTHREAD_LIBS="" + PTHREAD_CFLAGS="" + fi + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" fi - LDFLAGS=$lt_save_LDFLAGS - if test yes = "${lt_lib_ltdl-no}"; then - if test yes != "$enable_ltdl_install"; then - # Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not overwriting libltdl at $prefix, force with '--enable-ltdl-install'" >&5 -$as_echo "$as_me: WARNING: not overwriting libltdl at $prefix, force with '--enable-ltdl-install'" >&2;} - enable_ltdl_install=no - fi - elif test no = "$enable_ltdl_install"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libltdl not installed, but installation disabled" >&5 -$as_echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;} - fi -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). -# If configure.ac declared an installable ltdl, and the user didn't override -# with --disable-ltdl-install, we will install the shipped libltdl. -case $enable_ltdl_install in - no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no" - LIBLTDL=-lltdl - LTDLDEPS= - LTDLINCL= - ;; - *) enable_ltdl_install=yes - ac_configure_args="$ac_configure_args --enable-ltdl-install" - LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la" - LTDLDEPS=$LIBLTDL - LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}" - ;; -esac +# 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_os} in + solaris*) -# For backwards non-gettext consistent compatibility... -INCLTDL=$LTDLINCL + # 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" + ;; -enable_dlopen=yes + 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) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 +printf %s "checking whether pthreads work without any flags... " >&6; } + ;; -enable_win32_dll=yes + -*) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 +printf %s "checking whether pthreads work with $flag... " >&6; } + PTHREAD_CFLAGS="$flag" + ;; -case $host in -*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. -set dummy ${ac_tool_prefix}as; 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_AS+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$AS"; then - ac_cv_prog_AS="$AS" # Let the user override the test. + 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 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ax_pthread_config+y} +then : + printf %s "(cached) " >&6 +else $as_nop + 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=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac 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_AS="${ac_tool_prefix}as" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_ax_pthread_config="yes" + printf "%s\n" "$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 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 +printf "%s\n" "$ax_pthread_config" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "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`" + ;; + + *) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 +printf %s "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 (void) +{ +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.beam \ + conftest$ac_exeext conftest.$ac_ext + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 +printf "%s\n" "$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. + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 +printf %s "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 (void) +{ +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.beam \ + conftest$ac_exeext conftest.$ac_ext + done + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 +printf "%s\n" "$attr_name" >&6; } + if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then + +printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h + + fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 +printf %s "checking if more special flags are required for pthreads... " >&6; } + flag=no + case ${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 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 +printf "%s\n" "${flag}" >&6; } + if test "x$flag" != xno; then + PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" + fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 +printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } +if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} +then : + printf %s "(cached) " >&6 +else $as_nop + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include +int +main (void) +{ +int i = PTHREAD_PRIO_INHERIT; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ax_cv_PTHREAD_PRIO_INHERIT=yes +else $as_nop + ax_cv_PTHREAD_PRIO_INHERIT=no fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext + fi -AS=$ac_cv_prog_AS -if test -n "$AS"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 -$as_echo "$AS" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 +printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } + if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" +then : +printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h fi -if test -z "$ac_cv_prog_AS"; then - ac_ct_AS=$AS - # Extract the first word of "as", so it can be a program name with args. -set dummy as; 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_AS+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_AS"; then - ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. + + LIBS="$save_LIBS" + CFLAGS="$save_CFLAGS" + + # More AIX lossage: compile with *_r variant + if test "x$GCC" != xyes; then + case $host_os in + aix*) + case "x/$CC" in #( + x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : + #handle absolute path differently from PATH based program lookup + case "x$CC" in #( + x/*) : + if as_fn_executable_p ${CC}_r +then : + PTHREAD_CC="${CC}_r" +fi ;; #( + *) : + for ac_prog in ${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 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_PTHREAD_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + 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=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac 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_AS="as" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_PTHREAD_CC="$ac_prog" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6490,241 +7196,198 @@ IFS=$as_save_IFS fi fi -ac_ct_AS=$ac_cv_prog_ac_ct_AS -if test -n "$ac_ct_AS"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 -$as_echo "$ac_ct_AS" >&6; } +PTHREAD_CC=$ac_cv_prog_PTHREAD_CC +if test -n "$PTHREAD_CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 +printf "%s\n" "$PTHREAD_CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - if test "x$ac_ct_AS" = x; then - AS="false" - 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 ;; + + test -n "$PTHREAD_CC" && break +done +test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" + ;; +esac ;; #( + *) : + ;; esac - AS=$ac_ct_AS - fi -else - AS="$ac_cv_prog_AS" + ;; + esac + fi fi - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. -set dummy ${ac_tool_prefix}dlltool; 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_DLLTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$DLLTOOL"; then - ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${ac_tool_prefix}dlltool" - $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 -n "$PTHREAD_CC" || PTHREAD_CC="$CC" -fi -fi -DLLTOOL=$ac_cv_prog_DLLTOOL -if test -n "$DLLTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 -$as_echo "$DLLTOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi -fi -if test -z "$ac_cv_prog_DLLTOOL"; then - ac_ct_DLLTOOL=$DLLTOOL - # Extract the first word of "dlltool", so it can be a program name with args. -set dummy dlltool; 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_DLLTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_DLLTOOL"; then - ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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_DLLTOOL="dlltool" - $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_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL -if test -n "$ac_ct_DLLTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 -$as_echo "$ac_ct_DLLTOOL" >&6; } + +# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: +if test x"$ax_pthread_ok" = xyes; then + +printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h + + : else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + ax_pthread_ok=no + as_fn_error $? "\"Missing required pthread support\"" "$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 - if test "x$ac_ct_DLLTOOL" = x; then - DLLTOOL="false" - 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 - DLLTOOL=$ac_ct_DLLTOOL - fi -else - DLLTOOL="$ac_cv_prog_DLLTOOL" + + +# in some cases PTHREAD_LIBS is empty - force -lpthread */ +if test "x$PTHREAD_LIBS" = "x"; then + PTHREAD_LIBS="-lpthread" fi - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. -set dummy ${ac_tool_prefix}objdump; 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_OBJDUMP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$OBJDUMP"; then - ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +CFLAGS="$CFLAGS $PTHREAD_CFLAGS" +LIBS="$LIBS $PTHREAD_LIBS" + +# pkg-config + + + + + + + +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PKG_CONFIG+y} +then : + printf %s "(cached) " >&6 +else $as_nop + case $PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # 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=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac 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_OBJDUMP="${ac_tool_prefix}objdump" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$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 -fi -OBJDUMP=$ac_cv_prog_OBJDUMP -if test -n "$OBJDUMP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 -$as_echo "$OBJDUMP" >&6; } +PKG_CONFIG=$ac_cv_path_PKG_CONFIG +if test -n "$PKG_CONFIG"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +printf "%s\n" "$PKG_CONFIG" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi fi -if test -z "$ac_cv_prog_OBJDUMP"; then - ac_ct_OBJDUMP=$OBJDUMP - # Extract the first word of "objdump", so it can be a program name with args. -set dummy objdump; 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_OBJDUMP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_OBJDUMP"; then - ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +if test -z "$ac_cv_path_PKG_CONFIG"; then + ac_pt_PKG_CONFIG=$PKG_CONFIG + # Extract the first word of "pkg-config", so it can be a program name with args. +set dummy pkg-config; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} +then : + printf %s "(cached) " >&6 +else $as_nop + case $ac_pt_PKG_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # 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=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac 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_OBJDUMP="objdump" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$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 -fi -ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP -if test -n "$ac_ct_OBJDUMP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 -$as_echo "$ac_ct_OBJDUMP" >&6; } +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG +if test -n "$ac_pt_PKG_CONFIG"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 +printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - if test "x$ac_ct_OBJDUMP" = x; then - OBJDUMP="false" + if test "x$ac_pt_PKG_CONFIG" = x; then + PKG_CONFIG="" 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;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac - OBJDUMP=$ac_ct_OBJDUMP + PKG_CONFIG=$ac_pt_PKG_CONFIG fi else - OBJDUMP="$ac_cv_prog_OBJDUMP" + PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi - ;; -esac - -test -z "$AS" && AS=as - - - - - -test -z "$DLLTOOL" && DLLTOOL=dlltool - - - - - -test -z "$OBJDUMP" && OBJDUMP=objdump - - - - - +fi +if test -n "$PKG_CONFIG"; then + _pkg_min_version=0.9.0 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 +printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + PKG_CONFIG="" + fi +fi case `pwd` in *\ * | *\ *) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 -$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac @@ -6744,6 +7407,7 @@ macro_revision='2.4.6' + ltmain=$ac_aux_dir/ltmain.sh # Backslashify metacharacters that are still active within @@ -6767,8 +7431,8 @@ ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 -$as_echo_n "checking how to print strings... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 +printf %s "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then @@ -6794,12 +7458,12 @@ func_echo_all () } case $ECHO in - printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 -$as_echo "printf" >&6; } ;; - print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 -$as_echo "print -r" >&6; } ;; - *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 -$as_echo "cat" >&6; } ;; + printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 +printf "%s\n" "printf" >&6; } ;; + print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 +printf "%s\n" "print -r" >&6; } ;; + *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 +printf "%s\n" "cat" >&6; } ;; esac @@ -6815,11 +7479,12 @@ esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 -$as_echo_n "checking for a sed that does not truncate output... " >&6; } -if ${ac_cv_path_SED+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +printf %s "checking for a sed that does not truncate output... " >&6; } +if test ${ac_cv_path_SED+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" @@ -6833,10 +7498,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in sed gsed; do + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in sed gsed + do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + ac_path_SED="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_SED" || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED @@ -6845,13 +7515,13 @@ case `"$ac_path_SED" --version 2>&1` in ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 - $as_echo_n 0123456789 >"conftest.in" + printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - $as_echo '' >> "conftest.nl" + printf "%s\n" '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val @@ -6879,8 +7549,8 @@ else fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 -$as_echo "$ac_cv_path_SED" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +printf "%s\n" "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed @@ -6897,11 +7567,12 @@ Xsed="$SED -e 1s/^X//" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 -$as_echo_n "checking for fgrep... " >&6; } -if ${ac_cv_path_FGREP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 +printf %s "checking for fgrep... " >&6; } +if test ${ac_cv_path_FGREP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else @@ -6912,10 +7583,15 @@ else for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in fgrep; do + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in fgrep + do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" + ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_FGREP" || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP @@ -6924,13 +7600,13 @@ case `"$ac_path_FGREP" --version 2>&1` in ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; *) ac_count=0 - $as_echo_n 0123456789 >"conftest.in" + printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - $as_echo 'FGREP' >> "conftest.nl" + printf "%s\n" 'FGREP' >> "conftest.nl" "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val @@ -6959,8 +7635,8 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 -$as_echo "$ac_cv_path_FGREP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 +printf "%s\n" "$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" @@ -6985,17 +7661,18 @@ test -z "$GREP" && GREP=grep # Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then : +if test ${with_gnu_ld+y} +then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes -else +else $as_nop 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +printf %s "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw @@ -7024,15 +7701,16 @@ $as_echo_n "checking for ld used by $CC... " >&6; } ;; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +printf %s "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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +printf %s "checking for non-GNU ld... " >&6; } fi -if ${lt_cv_path_LD+:} false; then : - $as_echo_n "(cached) " >&6 -else +if test ${lt_cv_path_LD+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do @@ -7061,18 +7739,19 @@ fi LD=$lt_cv_path_LD if test -n "$LD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 -$as_echo "$LD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 +printf "%s\n" "$LD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "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 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +printf %s "checking if the linker ($LD) is GNU ld... " >&6; } +if test ${lt_cv_prog_gnu_ld+y} +then : + printf %s "(cached) " >&6 +else $as_nop # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &1 &5 -$as_echo "$lt_cv_prog_gnu_ld" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 +printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld @@ -7095,11 +7774,12 @@ with_gnu_ld=$lt_cv_prog_gnu_ld -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 -$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } -if ${lt_cv_path_NM+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 +printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } +if test ${lt_cv_path_NM+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM=$NM @@ -7149,8 +7829,8 @@ else : ${lt_cv_path_NM=no} fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 -$as_echo "$lt_cv_path_NM" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +printf "%s\n" "$lt_cv_path_NM" >&6; } if test no != "$lt_cv_path_NM"; then NM=$lt_cv_path_NM else @@ -7163,11 +7843,12 @@ else 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_DUMPBIN+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_DUMPBIN+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else @@ -7175,11 +7856,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7190,11 +7875,11 @@ fi fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 -$as_echo "$DUMPBIN" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 +printf "%s\n" "$DUMPBIN" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -7207,11 +7892,12 @@ if test -z "$DUMPBIN"; then 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_DUMPBIN+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_DUMPBIN+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else @@ -7219,11 +7905,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7234,11 +7924,11 @@ fi fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 -$as_echo "$ac_ct_DUMPBIN" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 +printf "%s\n" "$ac_ct_DUMPBIN" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -7250,8 +7940,8 @@ done 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;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DUMPBIN=$ac_ct_DUMPBIN @@ -7279,11 +7969,12 @@ test -z "$NM" && NM=nm -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 -$as_echo_n "checking the name lister ($NM) interface... " >&6; } -if ${lt_cv_nm_interface+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 +printf %s "checking the name lister ($NM) interface... " >&6; } +if test ${lt_cv_nm_interface+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) @@ -7299,15 +7990,16 @@ else fi rm -f conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 -$as_echo "$lt_cv_nm_interface" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 +printf "%s\n" "$lt_cv_nm_interface" >&6; } # find the maximum length of command line arguments -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 -$as_echo_n "checking the maximum length of command line arguments... " >&6; } -if ${lt_cv_sys_max_cmd_len+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +printf %s "checking the maximum length of command line arguments... " >&6; } +if test ${lt_cv_sys_max_cmd_len+y} +then : + printf %s "(cached) " >&6 +else $as_nop i=0 teststring=ABCD @@ -7434,11 +8126,11 @@ else fi if test -n "$lt_cv_sys_max_cmd_len"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 -$as_echo "$lt_cv_sys_max_cmd_len" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 -$as_echo "none" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 +printf "%s\n" "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len @@ -7482,11 +8174,12 @@ esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 -$as_echo_n "checking how to convert $build file names to $host format... " >&6; } -if ${lt_cv_to_host_file_cmd+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 +printf %s "checking how to convert $build file names to $host format... " >&6; } +if test ${lt_cv_to_host_file_cmd+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $host in *-*-mingw* ) case $build in @@ -7522,18 +8215,19 @@ esac fi to_host_file_cmd=$lt_cv_to_host_file_cmd -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 -$as_echo "$lt_cv_to_host_file_cmd" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 +printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 -$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } -if ${lt_cv_to_tool_file_cmd+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 +printf %s "checking how to convert $build file names to toolchain format... " >&6; } +if test ${lt_cv_to_tool_file_cmd+y} +then : + printf %s "(cached) " >&6 +else $as_nop #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in @@ -7549,22 +8243,23 @@ esac fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 -$as_echo "$lt_cv_to_tool_file_cmd" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 +printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 -$as_echo_n "checking for $LD option to reload object files... " >&6; } -if ${lt_cv_ld_reload_flag+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +printf %s "checking for $LD option to reload object files... " >&6; } +if test ${lt_cv_ld_reload_flag+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_ld_reload_flag='-r' fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 -$as_echo "$lt_cv_ld_reload_flag" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; @@ -7597,11 +8292,12 @@ esac if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; 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_OBJDUMP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_OBJDUMP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else @@ -7609,11 +8305,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7624,11 +8324,11 @@ fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 -$as_echo "$OBJDUMP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +printf "%s\n" "$OBJDUMP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -7637,11 +8337,12 @@ if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; 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_OBJDUMP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_OBJDUMP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else @@ -7649,11 +8350,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJDUMP="objdump" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7664,11 +8369,11 @@ fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 -$as_echo "$ac_ct_OBJDUMP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +printf "%s\n" "$ac_ct_OBJDUMP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then @@ -7676,8 +8381,8 @@ fi 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;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP @@ -7693,11 +8398,12 @@ test -z "$OBJDUMP" && OBJDUMP=objdump -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 -$as_echo_n "checking how to recognize dependent libraries... " >&6; } -if ${lt_cv_deplibs_check_method+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 +printf %s "checking how to recognize dependent libraries... " >&6; } +if test ${lt_cv_deplibs_check_method+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' @@ -7893,8 +8599,8 @@ os2*) esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 -$as_echo "$lt_cv_deplibs_check_method" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } file_magic_glob= want_nocaseglob=no @@ -7938,11 +8644,12 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; 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_DLLTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_DLLTOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else @@ -7950,11 +8657,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7965,11 +8676,11 @@ fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 -$as_echo "$DLLTOOL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +printf "%s\n" "$DLLTOOL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -7978,11 +8689,12 @@ if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; 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_DLLTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_DLLTOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else @@ -7990,11 +8702,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -8005,11 +8721,11 @@ fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 -$as_echo "$ac_ct_DLLTOOL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +printf "%s\n" "$ac_ct_DLLTOOL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then @@ -8017,8 +8733,8 @@ fi 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;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL @@ -8035,11 +8751,12 @@ test -z "$DLLTOOL" && DLLTOOL=dlltool -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 -$as_echo_n "checking how to associate runtime and link libraries... " >&6; } -if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 +printf %s "checking how to associate runtime and link libraries... " >&6; } +if test ${lt_cv_sharedlib_from_linklib_cmd+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in @@ -8062,8 +8779,8 @@ cygwin* | mingw* | pw32* | cegcc*) esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 -$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 +printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO @@ -8078,11 +8795,12 @@ if test -n "$ac_tool_prefix"; then 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_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_AR+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else @@ -8090,11 +8808,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AR="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -8105,11 +8827,11 @@ fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 -$as_echo "$AR" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +printf "%s\n" "$AR" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -8122,11 +8844,12 @@ if test -z "$AR"; then 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_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_AR+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else @@ -8134,11 +8857,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -8149,11 +8876,11 @@ fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 -$as_echo "$ac_ct_AR" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +printf "%s\n" "$ac_ct_AR" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -8165,8 +8892,8 @@ done 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;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR @@ -8174,7 +8901,7 @@ esac fi : ${AR=ar} -: ${AR_FLAGS=cru} +: ${AR_FLAGS=cr} @@ -8186,30 +8913,32 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 -$as_echo_n "checking for archiver @FILE support... " >&6; } -if ${lt_cv_ar_at_file+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 +printf %s "checking for archiver @FILE support... " >&6; } +if test ${lt_cv_ar_at_file+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test 0 -eq "$ac_status"; then # Ensure the archiver fails upon bogus file names. @@ -8217,7 +8946,7 @@ if ac_fn_c_try_compile "$LINENO"; then : { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test 0 -ne "$ac_status"; then lt_cv_ar_at_file=@ @@ -8226,11 +8955,11 @@ if ac_fn_c_try_compile "$LINENO"; then : rm -f conftest.* libconftest.a fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 -$as_echo "$lt_cv_ar_at_file" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 +printf "%s\n" "$lt_cv_ar_at_file" >&6; } if test no = "$lt_cv_ar_at_file"; then archiver_list_spec= @@ -8247,11 +8976,12 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; 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_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_STRIP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else @@ -8259,11 +8989,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -8274,11 +9008,11 @@ fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 -$as_echo "$STRIP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +printf "%s\n" "$STRIP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -8287,11 +9021,12 @@ if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; 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_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_STRIP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else @@ -8299,11 +9034,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -8314,11 +9053,11 @@ fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 -$as_echo "$ac_ct_STRIP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +printf "%s\n" "$ac_ct_STRIP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then @@ -8326,8 +9065,8 @@ fi 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;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP @@ -8346,11 +9085,12 @@ test -z "$STRIP" && STRIP=: if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_RANLIB+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else @@ -8358,11 +9098,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -8373,11 +9117,11 @@ fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 -$as_echo "$RANLIB" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +printf "%s\n" "$RANLIB" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -8386,11 +9130,12 @@ if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; 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_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_RANLIB+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else @@ -8398,11 +9143,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -8413,11 +9162,11 @@ fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 -$as_echo "$ac_ct_RANLIB" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +printf "%s\n" "$ac_ct_RANLIB" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then @@ -8425,8 +9174,8 @@ fi 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;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB @@ -8515,11 +9264,12 @@ compiler=$CC # Check for command to grab the raw symbol name followed by C symbol from nm. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 -$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } -if ${lt_cv_sys_global_symbol_pipe+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +printf %s "checking command to parse $NM output from $compiler object... " >&6; } +if test ${lt_cv_sys_global_symbol_pipe+y} +then : + printf %s "(cached) " >&6 +else $as_nop # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] @@ -8671,15 +9421,12 @@ _LT_EOF 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 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 - (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && test -s "$nlist"; then + $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 + if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" @@ -8747,7 +9494,7 @@ _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest$ac_exeext; then pipe_works=yes fi @@ -8782,11 +9529,11 @@ if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 -$as_echo "failed" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +printf "%s\n" "failed" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 -$as_echo "ok" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +printf "%s\n" "ok" >&6; } fi # Response file support. @@ -8832,13 +9579,14 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 -$as_echo_n "checking for sysroot... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 +printf %s "checking for sysroot... " >&6; } # Check whether --with-sysroot was given. -if test "${with_sysroot+set}" = set; then : +if test ${with_sysroot+y} +then : withval=$with_sysroot; -else +else $as_nop with_sysroot=no fi @@ -8856,24 +9604,25 @@ case $with_sysroot in #( no|'') ;; #( *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 -$as_echo "$with_sysroot" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 +printf "%s\n" "$with_sysroot" >&6; } as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 ;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 -$as_echo "${lt_sysroot:-no}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 +printf "%s\n" "${lt_sysroot:-no}" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 -$as_echo_n "checking for a working dd... " >&6; } -if ${ac_cv_path_lt_DD+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 +printf %s "checking for a working dd... " >&6; } +if test ${ac_cv_path_lt_DD+y} +then : + printf %s "(cached) " >&6 +else $as_nop printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} @@ -8884,10 +9633,15 @@ if test -z "$lt_DD"; then for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in dd; do + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in dd + do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" + ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_lt_DD" || continue if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ @@ -8907,15 +9661,16 @@ fi rm -f conftest.i conftest2.i conftest.out fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 -$as_echo "$ac_cv_path_lt_DD" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 +printf "%s\n" "$ac_cv_path_lt_DD" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 -$as_echo_n "checking how to truncate binary pipes... " >&6; } -if ${lt_cv_truncate_bin+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 +printf %s "checking how to truncate binary pipes... " >&6; } +if test ${lt_cv_truncate_bin+y} +then : + printf %s "(cached) " >&6 +else $as_nop printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= @@ -8926,8 +9681,8 @@ fi rm -f conftest.i conftest2.i conftest.out test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 -$as_echo "$lt_cv_truncate_bin" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 +printf "%s\n" "$lt_cv_truncate_bin" >&6; } @@ -8950,7 +9705,8 @@ func_cc_basename () } # Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then : +if test ${enable_libtool_lock+y} +then : enableval=$enable_libtool_lock; fi @@ -8966,7 +9722,7 @@ ia64-*-hpux*) 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 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) @@ -8986,7 +9742,7 @@ ia64-*-hpux*) 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 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test yes = "$lt_cv_prog_gnu_ld"; then case `/usr/bin/file conftest.$ac_objext` in @@ -9024,7 +9780,7 @@ mips64*-*linux*) 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 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then emul=elf case `/usr/bin/file conftest.$ac_objext` in @@ -9065,7 +9821,7 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 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 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *32-bit*) @@ -9128,11 +9884,12 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -belf" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 -$as_echo_n "checking whether the C compiler needs -belf... " >&6; } -if ${lt_cv_cc_needs_belf+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +printf %s "checking whether the C compiler needs -belf... " >&6; } +if test ${lt_cv_cc_needs_belf+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -9143,19 +9900,20 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : lt_cv_cc_needs_belf=yes -else +else $as_nop lt_cv_cc_needs_belf=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -9164,8 +9922,8 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 -$as_echo "$lt_cv_cc_needs_belf" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } if test yes != "$lt_cv_cc_needs_belf"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS=$SAVE_CFLAGS @@ -9178,7 +9936,7 @@ $as_echo "$lt_cv_cc_needs_belf" >&6; } 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 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *64-bit*) @@ -9215,11 +9973,12 @@ need_locks=$enable_libtool_lock if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. set dummy ${ac_tool_prefix}mt; 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_MANIFEST_TOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_MANIFEST_TOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. else @@ -9227,11 +9986,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9242,11 +10005,11 @@ fi fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 -$as_echo "$MANIFEST_TOOL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 +printf "%s\n" "$MANIFEST_TOOL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -9255,11 +10018,12 @@ if test -z "$ac_cv_prog_MANIFEST_TOOL"; then ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL # Extract the first word of "mt", so it can be a program name with args. set dummy mt; 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_MANIFEST_TOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. else @@ -9267,11 +10031,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9282,11 +10050,11 @@ fi fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 -$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 +printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_MANIFEST_TOOL" = x; then @@ -9294,8 +10062,8 @@ fi 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;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL @@ -9305,11 +10073,12 @@ else fi test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 -$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } -if ${lt_cv_path_mainfest_tool+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 +printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } +if test ${lt_cv_path_mainfest_tool+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out @@ -9319,8 +10088,8 @@ else fi rm -f conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 -$as_echo "$lt_cv_path_mainfest_tool" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 +printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } if test yes != "$lt_cv_path_mainfest_tool"; then MANIFEST_TOOL=: fi @@ -9335,11 +10104,12 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; 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_DSYMUTIL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_DSYMUTIL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else @@ -9347,11 +10117,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9362,11 +10136,11 @@ fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 -$as_echo "$DSYMUTIL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +printf "%s\n" "$DSYMUTIL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -9375,11 +10149,12 @@ if test -z "$ac_cv_prog_DSYMUTIL"; then ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; 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_DSYMUTIL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else @@ -9387,11 +10162,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9402,11 +10181,11 @@ fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 -$as_echo "$ac_ct_DSYMUTIL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then @@ -9414,8 +10193,8 @@ fi 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;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL @@ -9427,11 +10206,12 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; 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_NMEDIT+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_NMEDIT+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else @@ -9439,11 +10219,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9454,11 +10238,11 @@ fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 -$as_echo "$NMEDIT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +printf "%s\n" "$NMEDIT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -9467,11 +10251,12 @@ if test -z "$ac_cv_prog_NMEDIT"; then ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; 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_NMEDIT+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_NMEDIT+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else @@ -9479,11 +10264,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_NMEDIT="nmedit" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9494,11 +10283,11 @@ fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 -$as_echo "$ac_ct_NMEDIT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +printf "%s\n" "$ac_ct_NMEDIT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then @@ -9506,8 +10295,8 @@ fi 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;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT @@ -9519,11 +10308,12 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; 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_LIPO+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_LIPO+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else @@ -9531,11 +10321,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9546,11 +10340,11 @@ fi fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 -$as_echo "$LIPO" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 +printf "%s\n" "$LIPO" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -9559,11 +10353,12 @@ if test -z "$ac_cv_prog_LIPO"; then ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; 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_LIPO+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_LIPO+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else @@ -9571,11 +10366,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_LIPO="lipo" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9586,11 +10385,11 @@ fi fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 -$as_echo "$ac_ct_LIPO" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 +printf "%s\n" "$ac_ct_LIPO" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then @@ -9598,8 +10397,8 @@ fi 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;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO @@ -9611,11 +10410,12 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; 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_OTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_OTOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else @@ -9623,11 +10423,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9638,11 +10442,11 @@ fi fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 -$as_echo "$OTOOL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 +printf "%s\n" "$OTOOL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -9651,11 +10455,12 @@ if test -z "$ac_cv_prog_OTOOL"; then ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; 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_OTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_OTOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else @@ -9663,11 +10468,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL="otool" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9678,11 +10487,11 @@ fi fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 -$as_echo "$ac_ct_OTOOL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 +printf "%s\n" "$ac_ct_OTOOL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then @@ -9690,8 +10499,8 @@ fi 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;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL @@ -9703,11 +10512,12 @@ fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_OTOOL64+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else @@ -9715,11 +10525,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9730,11 +10544,11 @@ fi fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 -$as_echo "$OTOOL64" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 +printf "%s\n" "$OTOOL64" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -9743,11 +10557,12 @@ if test -z "$ac_cv_prog_OTOOL64"; then ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; 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_OTOOL64+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_OTOOL64+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else @@ -9755,11 +10570,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL64="otool64" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -9770,11 +10589,11 @@ fi fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 -$as_echo "$ac_ct_OTOOL64" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 +printf "%s\n" "$ac_ct_OTOOL64" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then @@ -9782,8 +10601,8 @@ fi 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;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 @@ -9818,11 +10637,12 @@ fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 -$as_echo_n "checking for -single_module linker flag... " >&6; } -if ${lt_cv_apple_cc_single_mod+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +printf %s "checking for -single_module linker flag... " >&6; } +if test ${lt_cv_apple_cc_single_mod+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override @@ -9851,14 +10671,15 @@ else rm -f conftest.* fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 -$as_echo "$lt_cv_apple_cc_single_mod" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 -$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } -if ${lt_cv_ld_exported_symbols_list+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +printf %s "checking for -exported_symbols_list linker flag... " >&6; } +if test ${lt_cv_ld_exported_symbols_list+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym @@ -9867,39 +10688,41 @@ else /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : lt_cv_ld_exported_symbols_list=yes -else +else $as_nop lt_cv_ld_exported_symbols_list=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 -$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 -$as_echo_n "checking for -force_load linker flag... " >&6; } -if ${lt_cv_ld_force_load+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 +printf %s "checking for -force_load linker flag... " >&6; } +if test ${lt_cv_ld_force_load+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 - echo "$AR cru libconftest.a conftest.o" >&5 - $AR cru libconftest.a conftest.o 2>&5 + echo "$AR cr libconftest.a conftest.o" >&5 + $AR cr libconftest.a conftest.o 2>&5 echo "$RANLIB libconftest.a" >&5 $RANLIB libconftest.a 2>&5 cat > conftest.c << _LT_EOF @@ -9919,8 +10742,8 @@ _LT_EOF rm -rf conftest.dSYM fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 -$as_echo "$lt_cv_ld_force_load" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 +printf "%s\n" "$lt_cv_ld_force_load" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; @@ -9931,11 +10754,11 @@ $as_echo "$lt_cv_ld_force_load" >&6; } # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in - 10.0,*86*-darwin8*|10.0,*-darwin[91]*) + 10.0,*86*-darwin8*|10.0,*-darwin[912]*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10.[012][,.]*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; - 10.*) + 10.*|11.*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; esac ;; @@ -9991,42 +10814,369 @@ func_munge_path_list () esac } -for ac_header in dlfcn.h -do : - ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default +ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default " -if test "x$ac_cv_header_dlfcn_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_DLFCN_H 1 -_ACEOF +if test "x$ac_cv_header_dlfcn_h" = xyes +then : + printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h + +fi + + + + +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 +enable_dlopen=yes +enable_win32_dll=yes + +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. +set dummy ${ac_tool_prefix}as; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_AS+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$AS"; then + ac_cv_prog_AS="$AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_AS="${ac_tool_prefix}as" + printf "%s\n" "$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 +AS=$ac_cv_prog_AS +if test -n "$AS"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 +printf "%s\n" "$AS" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_AS"; then + ac_ct_AS=$AS + # Extract the first word of "as", so it can be a program name with args. +set dummy as; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_AS+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$ac_ct_AS"; then + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_AS="as" + printf "%s\n" "$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_AS=$ac_cv_prog_ac_ct_AS +if test -n "$ac_ct_AS"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 +printf "%s\n" "$ac_ct_AS" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + if test "x$ac_ct_AS" = x; then + AS="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AS=$ac_ct_AS + fi +else + AS="$ac_cv_prog_AS" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_DLLTOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_DLLTOOL="${ac_tool_prefix}dlltool" + printf "%s\n" "$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 +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +printf "%s\n" "$DLLTOOL" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_DLLTOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_DLLTOOL="dlltool" + printf "%s\n" "$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_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +printf "%s\n" "$ac_ct_DLLTOOL" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_OBJDUMP+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_OBJDUMP="${ac_tool_prefix}objdump" + printf "%s\n" "$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 +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +printf "%s\n" "$OBJDUMP" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_OBJDUMP+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_OBJDUMP="objdump" + printf "%s\n" "$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_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +printf "%s\n" "$ac_ct_OBJDUMP" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + ;; +esac + +test -z "$AS" && AS=as -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 +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + +test -z "$OBJDUMP" && OBJDUMP=objdump + -# Set options # Check whether --enable-shared was given. -if test "${enable_shared+set}" = set; then : +if test ${enable_shared+y} +then : enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; @@ -10044,7 +11194,7 @@ if test "${enable_shared+set}" = set; then : IFS=$lt_save_ifs ;; esac -else +else $as_nop enable_shared=yes fi @@ -10057,7 +11207,8 @@ fi # Check whether --enable-static was given. -if test "${enable_static+set}" = set; then : +if test ${enable_static+y} +then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; @@ -10075,7 +11226,7 @@ if test "${enable_static+set}" = set; then : IFS=$lt_save_ifs ;; esac -else +else $as_nop enable_static=yes fi @@ -10089,7 +11240,8 @@ fi # Check whether --with-pic was given. -if test "${with_pic+set}" = set; then : +if test ${with_pic+y} +then : withval=$with_pic; lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; @@ -10106,7 +11258,7 @@ if test "${with_pic+set}" = set; then : IFS=$lt_save_ifs ;; esac -else +else $as_nop pic_mode=default fi @@ -10118,7 +11270,8 @@ fi # Check whether --enable-fast-install was given. -if test "${enable_fast_install+set}" = set; then : +if test ${enable_fast_install+y} +then : enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; @@ -10136,7 +11289,7 @@ if test "${enable_fast_install+set}" = set; then : IFS=$lt_save_ifs ;; esac -else +else $as_nop enable_fast_install=yes fi @@ -10150,11 +11303,12 @@ fi shared_archive_member_spec= case $host,$enable_shared in power*-*-aix[5-9]*,yes) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 -$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 +printf %s "checking which variant of shared library versioning to provide... " >&6; } # Check whether --with-aix-soname was given. -if test "${with_aix_soname+set}" = set; then : +if test ${with_aix_soname+y} +then : withval=$with_aix_soname; case $withval in aix|svr4|both) ;; @@ -10163,18 +11317,19 @@ if test "${with_aix_soname+set}" = set; then : ;; esac lt_cv_with_aix_soname=$with_aix_soname -else - if ${lt_cv_with_aix_soname+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + if test ${lt_cv_with_aix_soname+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_with_aix_soname=aix fi with_aix_soname=$lt_cv_with_aix_soname fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 -$as_echo "$with_aix_soname" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 +printf "%s\n" "$with_aix_soname" >&6; } if test aix != "$with_aix_soname"; then # For the AIX way of multilib, we name the shared archive member # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', @@ -10256,11 +11411,12 @@ if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 -$as_echo_n "checking for objdir... " >&6; } -if ${lt_cv_objdir+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +printf %s "checking for objdir... " >&6; } +if test ${lt_cv_objdir+y} +then : + printf %s "(cached) " >&6 +else $as_nop rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then @@ -10271,17 +11427,15 @@ else fi rmdir .libs 2>/dev/null fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 -$as_echo "$lt_cv_objdir" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +printf "%s\n" "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir -cat >>confdefs.h <<_ACEOF -#define LT_OBJDIR "$lt_cv_objdir/" -_ACEOF +printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h @@ -10327,11 +11481,12 @@ test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 -$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } -if ${lt_cv_path_MAGIC_CMD+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 +printf %s "checking for ${ac_tool_prefix}file... " >&6; } +if test ${lt_cv_path_MAGIC_CMD+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. @@ -10380,11 +11535,11 @@ fi MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 -$as_echo "$MAGIC_CMD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +printf "%s\n" "$MAGIC_CMD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -10393,11 +11548,12 @@ fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 -$as_echo_n "checking for file... " >&6; } -if ${lt_cv_path_MAGIC_CMD+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 +printf %s "checking for file... " >&6; } +if test ${lt_cv_path_MAGIC_CMD+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. @@ -10446,11 +11602,11 @@ fi MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 -$as_echo "$MAGIC_CMD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +printf "%s\n" "$MAGIC_CMD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -10535,11 +11691,12 @@ if test yes = "$GCC"; then lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } -if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if test ${lt_cv_prog_compiler_rtti_exceptions+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext @@ -10570,8 +11727,8 @@ else $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" @@ -10768,6 +11925,12 @@ lt_prog_compiler_static= lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; + # flang / f18. f95 an alias for gfortran or flang on Debian + flang* | f18* | f95*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) @@ -10928,26 +12091,28 @@ case $host_os in ;; 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+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +printf %s "checking for $compiler option to produce PIC... " >&6; } +if test ${lt_cv_prog_compiler_pic+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_pic=$lt_prog_compiler_pic fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 -$as_echo "$lt_cv_prog_compiler_pic" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 +printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } lt_prog_compiler_pic=$lt_cv_prog_compiler_pic # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } -if ${lt_cv_prog_compiler_pic_works+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if test ${lt_cv_prog_compiler_pic_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext @@ -10978,8 +12143,8 @@ else $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 -$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 +printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } if test yes = "$lt_cv_prog_compiler_pic_works"; then case $lt_prog_compiler_pic in @@ -11007,11 +12172,12 @@ fi # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" -{ $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+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if test ${lt_cv_prog_compiler_static_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_static_works=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" @@ -11035,8 +12201,8 @@ else LDFLAGS=$save_LDFLAGS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 -$as_echo "$lt_cv_prog_compiler_static_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 +printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } if test yes = "$lt_cv_prog_compiler_static_works"; then : @@ -11050,11 +12216,12 @@ 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+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test ${lt_cv_prog_compiler_c_o+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest @@ -11097,19 +12264,20 @@ else $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 -$as_echo "$lt_cv_prog_compiler_c_o" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +printf "%s\n" "$lt_cv_prog_compiler_c_o" >&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+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test ${lt_cv_prog_compiler_c_o+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest @@ -11152,8 +12320,8 @@ else $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 -$as_echo "$lt_cv_prog_compiler_c_o" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } @@ -11161,19 +12329,19 @@ $as_echo "$lt_cv_prog_compiler_c_o" >&6; } hard_links=nottested if test no = "$lt_cv_prog_compiler_c_o" && 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +printf %s "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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +printf "%s\n" "$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;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 +printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else @@ -11185,8 +12353,8 @@ 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= @@ -11744,21 +12912,23 @@ _LT_EOF if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else - if ${lt_cv_aix_libpath_+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${lt_cv_aix_libpath_+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { @@ -11773,7 +12943,7 @@ if ac_fn_c_try_link "$LINENO"; then : lt_cv_aix_libpath_=`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 \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib @@ -11797,21 +12967,23 @@ fi if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else - if ${lt_cv_aix_libpath_+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${lt_cv_aix_libpath_+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { @@ -11826,7 +12998,7 @@ if ac_fn_c_try_link "$LINENO"; then : lt_cv_aix_libpath_=`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 \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib @@ -12077,11 +13249,12 @@ fi # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 -$as_echo_n "checking if $CC understands -b... " >&6; } -if ${lt_cv_prog_compiler__b+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 +printf %s "checking if $CC understands -b... " >&6; } +if test ${lt_cv_prog_compiler__b+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler__b=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -b" @@ -12105,8 +13278,8 @@ else LDFLAGS=$save_LDFLAGS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 -$as_echo "$lt_cv_prog_compiler__b" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 +printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } if test yes = "$lt_cv_prog_compiler__b"; then archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' @@ -12146,28 +13319,30 @@ fi # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 -$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } -if ${lt_cv_irix_exported_symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 +printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } +if test ${lt_cv_irix_exported_symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo (void) { return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : lt_cv_irix_exported_symbol=yes -else +else $as_nop lt_cv_irix_exported_symbol=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 -$as_echo "$lt_cv_irix_exported_symbol" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 +printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } if test yes = "$lt_cv_irix_exported_symbol"; then archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $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 $wl-exports_file $wl$export_symbols -o $lib' fi @@ -12448,8 +13623,8 @@ $as_echo "$lt_cv_irix_exported_symbol" >&6; } fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 -$as_echo "$ld_shlibs" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 +printf "%s\n" "$ld_shlibs" >&6; } test no = "$ld_shlibs" && can_build_shared=no with_gnu_ld=$with_gnu_ld @@ -12485,18 +13660,19 @@ x|xyes) # 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+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +printf %s "checking whether -lc should be explicitly linked in... " >&6; } +if test ${lt_cv_archive_cmds_need_lc+y} +then : + printf %s "(cached) " >&6 +else $as_nop $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 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest @@ -12514,7 +13690,7 @@ else if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc=no @@ -12528,8 +13704,8 @@ else $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 -$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 +printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac @@ -12688,8 +13864,8 @@ esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 -$as_echo_n "checking dynamic linker characteristics... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +printf %s "checking dynamic linker characteristics... " >&6; } if test yes = "$GCC"; then case $host_os in @@ -13250,9 +14426,10 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 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 + if test ${lt_cv_shlibpath_overrides_runpath+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir @@ -13262,19 +14439,21 @@ else /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : +if ac_fn_c_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 \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir @@ -13518,8 +14697,8 @@ uts4*) dynamic_linker=no ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 -$as_echo "$dynamic_linker" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +printf "%s\n" "$dynamic_linker" >&6; } test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" @@ -13640,8 +14819,8 @@ 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +printf %s "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || @@ -13665,8 +14844,8 @@ else # directories. hardcode_action=unsupported fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 -$as_echo "$hardcode_action" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 +printf "%s\n" "$hardcode_action" >&6; } if test relink = "$hardcode_action" || test yes = "$inherit_rpath"; then @@ -13710,11 +14889,12 @@ else darwin*) # if libdl is installed we need to link against it - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +printf %s "checking for dlopen in -ldl... " >&6; } +if test ${ac_cv_lib_dl_dlopen+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -13723,32 +14903,31 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 dlopen (); int -main () +main (void) { return dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dl_dlopen=yes -else +else $as_nop ac_cv_lib_dl_dlopen=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes +then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl -else +else $as_nop lt_cv_dlopen=dyld lt_cv_dlopen_libs= @@ -13768,14 +14947,16 @@ fi *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" -if test "x$ac_cv_func_shl_load" = xyes; then : +if test "x$ac_cv_func_shl_load" = xyes +then : lt_cv_dlopen=shl_load -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 -$as_echo_n "checking for shl_load in -ldld... " >&6; } -if ${ac_cv_lib_dld_shl_load+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +printf %s "checking for shl_load in -ldld... " >&6; } +if test ${ac_cv_lib_dld_shl_load+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -13784,41 +14965,42 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 shl_load (); int -main () +main (void) { return shl_load (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dld_shl_load=yes -else +else $as_nop ac_cv_lib_dld_shl_load=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 -$as_echo "$ac_cv_lib_dld_shl_load" >&6; } -if test "x$ac_cv_lib_dld_shl_load" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = xyes +then : lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld -else +else $as_nop ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" -if test "x$ac_cv_func_dlopen" = xyes; then : +if test "x$ac_cv_func_dlopen" = xyes +then : lt_cv_dlopen=dlopen -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +printf %s "checking for dlopen in -ldl... " >&6; } +if test ${ac_cv_lib_dl_dlopen+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -13827,37 +15009,37 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 dlopen (); int -main () +main (void) { return dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dl_dlopen=yes -else +else $as_nop ac_cv_lib_dl_dlopen=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes +then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 -$as_echo_n "checking for dlopen in -lsvld... " >&6; } -if ${ac_cv_lib_svld_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +printf %s "checking for dlopen in -lsvld... " >&6; } +if test ${ac_cv_lib_svld_dlopen+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -13866,37 +15048,37 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 dlopen (); int -main () +main (void) { return dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_svld_dlopen=yes -else +else $as_nop ac_cv_lib_svld_dlopen=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 -$as_echo "$ac_cv_lib_svld_dlopen" >&6; } -if test "x$ac_cv_lib_svld_dlopen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 +printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = xyes +then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 -$as_echo_n "checking for dld_link in -ldld... " >&6; } -if ${ac_cv_lib_dld_dld_link+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +printf %s "checking for dld_link in -ldld... " >&6; } +if test ${ac_cv_lib_dld_dld_link+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -13905,30 +15087,29 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 dld_link (); int -main () +main (void) { return dld_link (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dld_dld_link=yes -else +else $as_nop ac_cv_lib_dld_dld_link=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 -$as_echo "$ac_cv_lib_dld_dld_link" >&6; } -if test "x$ac_cv_lib_dld_dld_link" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 +printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = xyes +then : lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld fi @@ -13967,11 +15148,12 @@ fi save_LIBS=$LIBS LIBS="$lt_cv_dlopen_libs $LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 -$as_echo_n "checking whether a program can dlopen itself... " >&6; } -if ${lt_cv_dlopen_self+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 +printf %s "checking whether a program can dlopen itself... " >&6; } +if test ${lt_cv_dlopen_self+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test yes = "$cross_compiling"; then : lt_cv_dlopen_self=cross else @@ -14050,7 +15232,7 @@ _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? @@ -14068,16 +15250,17 @@ rm -fr conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 -$as_echo "$lt_cv_dlopen_self" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 +printf "%s\n" "$lt_cv_dlopen_self" >&6; } if test yes = "$lt_cv_dlopen_self"; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 -$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } -if ${lt_cv_dlopen_self_static+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 +printf %s "checking whether a statically linked program can dlopen itself... " >&6; } +if test ${lt_cv_dlopen_self_static+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test yes = "$cross_compiling"; then : lt_cv_dlopen_self_static=cross else @@ -14156,7 +15339,7 @@ _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? @@ -14174,8 +15357,8 @@ rm -fr conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 -$as_echo "$lt_cv_dlopen_self_static" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS=$save_CPPFLAGS @@ -14213,13 +15396,13 @@ fi striplib= old_striplib= -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 -$as_echo_n "checking whether stripping libraries is possible... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +printf %s "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in @@ -14227,16 +15410,16 @@ else if test -n "$STRIP"; then striplib="$STRIP -x" old_striplib="$STRIP -S" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi ;; *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } ;; esac fi @@ -14253,13 +15436,13 @@ fi # Report what library types will actually be built - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 -$as_echo_n "checking if libtool supports shared libraries... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 -$as_echo "$can_build_shared" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +printf %s "checking if libtool supports shared libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +printf "%s\n" "$can_build_shared" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 -$as_echo_n "checking whether to build shared libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +printf %s "checking whether to build shared libraries... " >&6; } test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and @@ -14283,15 +15466,15 @@ $as_echo_n "checking whether to build shared libraries... " >&6; } fi ;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 -$as_echo "$enable_shared" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +printf "%s\n" "$enable_shared" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 -$as_echo_n "checking whether to build static libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +printf %s "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 -$as_echo "$enable_static" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +printf "%s\n" "$enable_static" >&6; } @@ -14313,36 +15496,32 @@ 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; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +printf %s "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" + if test ${ac_cv_prog_CXXCPP+y} +then : + printf %s "(cached) " >&6 +else $as_nop + # Double quotes because $CXX needs to be expanded + for CXXCPP in "$CXX -E" cpp /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 +#include Syntax error _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : -else +else $as_nop # Broken: fails on valid input. continue fi @@ -14354,10 +15533,11 @@ rm -f conftest.err conftest.i conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else +else $as_nop # Passes both tests. ac_preproc_ok=: break @@ -14367,7 +15547,8 @@ 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 : +if $ac_preproc_ok +then : break fi @@ -14379,29 +15560,24 @@ fi else ac_cv_prog_CXXCPP=$CXXCPP fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 -$as_echo "$CXXCPP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +printf "%s\n" "$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 +#include Syntax error _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : -else +else $as_nop # Broken: fails on valid input. continue fi @@ -14413,10 +15589,11 @@ rm -f conftest.err conftest.i conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else +else $as_nop # Passes both tests. ac_preproc_ok=: break @@ -14426,11 +15603,12 @@ 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 : +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;} +else $as_nop + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$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 @@ -14566,17 +15744,18 @@ cc_basename=$func_cc_basename_result # Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then : +if test ${with_gnu_ld+y} +then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes -else +else $as_nop 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +printf %s "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw @@ -14605,15 +15784,16 @@ $as_echo_n "checking for ld used by $CC... " >&6; } ;; 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +printf %s "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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +printf %s "checking for non-GNU ld... " >&6; } fi -if ${lt_cv_path_LD+:} false; then : - $as_echo_n "(cached) " >&6 -else +if test ${lt_cv_path_LD+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do @@ -14642,18 +15822,19 @@ fi LD=$lt_cv_path_LD if test -n "$LD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 -$as_echo "$LD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 +printf "%s\n" "$LD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "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 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +printf %s "checking if the linker ($LD) is GNU ld... " >&6; } +if test ${lt_cv_prog_gnu_ld+y} +then : + printf %s "(cached) " >&6 +else $as_nop # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &1 &5 -$as_echo "$lt_cv_prog_gnu_ld" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 +printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld @@ -14710,7 +15891,7 @@ with_gnu_ld=$lt_cv_prog_gnu_ld # 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"' + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' else GXX=no @@ -14719,8 +15900,8 @@ with_gnu_ld=$lt_cv_prog_gnu_ld 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } ld_shlibs_CXX=yes case $host_os in aix3*) @@ -14858,21 +16039,23 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie 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 + if test ${lt_cv_aix_libpath__CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { @@ -14887,7 +16070,7 @@ if ac_fn_cxx_try_link "$LINENO"; 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 \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib @@ -14912,21 +16095,23 @@ fi 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 + if test ${lt_cv_aix_libpath__CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { @@ -14941,7 +16126,7 @@ if ac_fn_cxx_try_link "$LINENO"; 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 \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib @@ -15202,7 +16387,7 @@ fi # 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"' + 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 @@ -15267,7 +16452,7 @@ fi # 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"' + 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 @@ -15606,7 +16791,7 @@ 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"' + 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 @@ -15690,7 +16875,7 @@ 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"' + 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. @@ -15701,7 +16886,7 @@ 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 -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + 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' @@ -15792,8 +16977,8 @@ fi ;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 -$as_echo "$ld_shlibs_CXX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +printf "%s\n" "$ld_shlibs_CXX" >&6; } test no = "$ld_shlibs_CXX" && can_build_shared=no GCC_CXX=$GXX @@ -15831,7 +17016,7 @@ 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 + printf "%s\n" "$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. @@ -16312,26 +17497,28 @@ case $host_os in ;; 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 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +printf %s "checking for $compiler option to produce PIC... " >&6; } +if test ${lt_cv_prog_compiler_pic_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop 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; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 +printf "%s\n" "$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 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 +printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } +if test ${lt_cv_prog_compiler_pic_works_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext @@ -16362,8 +17549,8 @@ else $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; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 +printf "%s\n" "$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 @@ -16385,11 +17572,12 @@ 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 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if test ${lt_cv_prog_compiler_static_works_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_static_works_CXX=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" @@ -16413,8 +17601,8 @@ else 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; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 +printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then : @@ -16425,11 +17613,12 @@ 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 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test ${lt_cv_prog_compiler_c_o_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest @@ -16472,16 +17661,17 @@ else $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; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +printf "%s\n" "$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 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test ${lt_cv_prog_compiler_c_o_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest @@ -16524,8 +17714,8 @@ else $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; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } @@ -16533,19 +17723,19 @@ $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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +printf %s "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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +printf "%s\n" "$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;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 +printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else @@ -16554,8 +17744,8 @@ 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +printf %s "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]_.*' @@ -16597,8 +17787,8 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 -$as_echo "$ld_shlibs_CXX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +printf "%s\n" "$ld_shlibs_CXX" >&6; } test no = "$ld_shlibs_CXX" && can_build_shared=no with_gnu_ld_CXX=$with_gnu_ld @@ -16625,18 +17815,19 @@ x|xyes) # 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 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +printf %s "checking whether -lc should be explicitly linked in... " >&6; } +if test ${lt_cv_archive_cmds_need_lc_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop $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 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest @@ -16654,7 +17845,7 @@ else 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 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc_CXX=no @@ -16668,8 +17859,8 @@ else $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; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 +printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX ;; esac @@ -16738,8 +17929,8 @@ esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 -$as_echo_n "checking dynamic linker characteristics... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +printf %s "checking dynamic linker characteristics... " >&6; } library_names_spec= libname_spec='lib$name' @@ -17227,9 +18418,10 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 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 + if test ${lt_cv_shlibpath_overrides_runpath+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir @@ -17239,19 +18431,21 @@ else /* end confdefs.h. */ int -main () +main (void) { ; 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 : +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 \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir @@ -17470,56 +18664,165 @@ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) ;; esac fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; + 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 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +printf "%s\n" "$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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +printf %s "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 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 +printf "%s\n" "$hardcode_action_CXX" >&6; } -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 - ;; +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 -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" + 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 + + + + + -# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool -configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH @@ -17529,806 +18832,1153 @@ configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH + ac_config_commands="$ac_config_commands libtool" +# Only expand once: +subdirs="$subdirs libltdl" +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 +printf %s "checking for an ANSI C-conforming const... " >&6; } +if test ${ac_cv_c_const+y} +then : + printf %s "(cached) " >&6 +else $as_nop + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int +main (void) +{ +#ifndef __cplusplus + /* Ultrix mips cc rejects this sort of thing. */ + typedef int charset[2]; + const charset cs = { 0, 0 }; + /* SunOS 4.1.1 cc rejects this. */ + char const *const *pcpcc; + char **ppc; + /* NEC SVR4.0.2 mips cc rejects this. */ + struct point {int x, y;}; + static struct point const zero = {0,0}; + /* IBM XL C 1.02.0.0 rejects this. + It does not let you subtract one const X* pointer from another in + an arm of an if-expression whose if-part is not a constant + expression */ + const char *g = "string"; + pcpcc = &g + (g ? g-g : 0); + /* HPUX 7.0 cc rejects these. */ + ++pcpcc; + ppc = (char**) pcpcc; + pcpcc = (char const *const *) ppc; + { /* SCO 3.2v4 cc rejects this sort of thing. */ + char tx; + char *t = &tx; + char const *s = 0 ? (char *) 0 : (char const *) 0; + *t++ = 0; + if (s) return 0; + } + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ + int x[] = {25, 17}; + const int *foo = &x[0]; + ++foo; + } + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ + typedef const int *iptr; + iptr p = 0; + ++p; + } + { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ + struct s { int j; const int *ap[3]; } bx; + struct s *b = &bx; b->j = 5; + } + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ + const int foo = 10; + if (!foo) return 0; + } + return !cs[0] && !zero.x; +#endif + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_c_const=yes +else $as_nop + ac_cv_c_const=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +printf "%s\n" "$ac_cv_c_const" >&6; } +if test $ac_cv_c_const = no; then +printf "%s\n" "#define const /**/" >>confdefs.h +fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 +printf %s "checking whether byte ordering is bigendian... " >&6; } +if test ${ac_cv_c_bigendian+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_c_bigendian=unknown + # See if we're dealing with a universal compiler. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifndef __APPLE_CC__ + not a universal capable compiler + #endif + typedef int dummy; +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + # Check for potential -arch flags. It is not universal unless + # there are at least two -arch flags with different values. + ac_arch= + ac_prev= + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do + if test -n "$ac_prev"; then + case $ac_word in + i?86 | x86_64 | ppc | ppc64) + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then + ac_arch=$ac_word + else + ac_cv_c_bigendian=universal + break + fi + ;; + esac + ac_prev= + elif test "x$ac_word" = "x-arch"; then + ac_prev=arch + fi + done +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + if test $ac_cv_c_bigendian = unknown; then + # See if sys/param.h defines the BYTE_ORDER macro. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include +int +main (void) +{ +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ + && LITTLE_ENDIAN) + bogus endian macros + #endif + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + # It does; now see whether it defined to BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include +int +main (void) +{ +#if BYTE_ORDER != BIG_ENDIAN + not big endian + #endif + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_c_bigendian=yes +else $as_nop + ac_cv_c_bigendian=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main (void) +{ +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) + bogus endian macros + #endif + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + # It does; now see whether it defined to _BIG_ENDIAN or not. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main (void) +{ +#ifndef _BIG_ENDIAN + not big endian + #endif + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_c_bigendian=yes +else $as_nop + ac_cv_c_bigendian=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + fi + if test $ac_cv_c_bigendian = unknown; then + # Compile a test program. + if test "$cross_compiling" = yes +then : + # Try to guess by grepping values from an object file. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +unsigned short int ascii_mm[] = + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; + unsigned short int ascii_ii[] = + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; + int use_ascii (int i) { + return ascii_mm[i] + ascii_ii[i]; + } + unsigned short int ebcdic_ii[] = + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; + unsigned short int ebcdic_mm[] = + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; + int use_ebcdic (int i) { + return ebcdic_mm[i] + ebcdic_ii[i]; + } + extern int foo; +int +main (void) +{ +return use_ascii (foo) == use_ebcdic (foo); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then + ac_cv_c_bigendian=yes + fi + if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then + if test "$ac_cv_c_bigendian" = unknown; then + ac_cv_c_bigendian=no + else + # finding both strings is unlikely to happen, but who knows? + ac_cv_c_bigendian=unknown + fi + fi +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +else $as_nop + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main (void) +{ - { $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 + /* Are we little or big endian? From Harbison&Steele. */ + union + { + long int l; + char c[sizeof (long int)]; + } u; + u.l = 1; + return u.c[sizeof (long int) - 1] == 1; - # 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 + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO" +then : + ac_cv_c_bigendian=no +else $as_nop + ac_cv_c_bigendian=yes +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext 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 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 +printf "%s\n" "$ac_cv_c_bigendian" >&6; } + case $ac_cv_c_bigendian in #( + yes) + printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h +;; #( + no) + ;; #( + universal) +printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h + ;; #( + *) + as_fn_error $? "unknown endianness + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; + esac + ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default +" +if test "x$ac_cv_type_pid_t" = xyes +then : +else $as_nop + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + #if defined _WIN64 && !defined __CYGWIN__ + LLP64 + #endif - fi # test -n "$compiler" +int +main (void) +{ - 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" + ; + return 0; +} -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 +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_pid_type='int' +else $as_nop + ac_pid_type='__int64' +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h +fi +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = xyes +then : +else $as_nop +printf "%s\n" "#define size_t unsigned int" >>confdefs.h +fi +ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" +if test "x$ac_cv_type_ssize_t" = xyes +then : +printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h +else $as_nop +printf "%s\n" "#define ssize_t signed long" >>confdefs.h +fi - ac_config_commands="$ac_config_commands libtool" +ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" +if test "x$ac_cv_type_off_t" = xyes +then : +else $as_nop +printf "%s\n" "#define off_t long int" >>confdefs.h +fi -# Only expand once: +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 +printf %s "checking for uid_t in sys/types.h... " >&6; } +if test ${ac_cv_type_uid_t+y} +then : + printf %s "(cached) " >&6 +else $as_nop + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "uid_t" >/dev/null 2>&1 +then : + ac_cv_type_uid_t=yes +else $as_nop + ac_cv_type_uid_t=no +fi +rm -rf conftest* +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 +printf "%s\n" "$ac_cv_type_uid_t" >&6; } +if test $ac_cv_type_uid_t = no; then +printf "%s\n" "#define uid_t int" >>confdefs.h +printf "%s\n" "#define gid_t int" >>confdefs.h -subdirs="$subdirs libltdl" +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 +printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } +if test ${ac_cv_c_undeclared_builtin_options+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_save_CFLAGS=$CFLAGS + ac_cv_c_undeclared_builtin_options='cannot detect' + for ac_arg in '' -fno-builtin; do + CFLAGS="$ac_save_CFLAGS $ac_arg" + # This test program should *not* compile successfully. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 -$as_echo_n "checking for ANSI C header files... " >&6; } -if ${ac_cv_header_stdc+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +int +main (void) +{ +(void) strchr; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + +else $as_nop + # This test program should compile successfully. + # No library function is consistently available on + # freestanding implementations, so test against a dummy + # declaration. Include always-available headers on the + # off chance that they somehow elicit warnings. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include -#include #include +#include +#include +#include +extern void ac_decl (int, char *); int -main () +main (void) { +(void) ac_decl (0, (char *) 0); + (void) ac_decl; ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_header_stdc=yes -else - ac_cv_header_stdc=no +if ac_fn_c_try_compile "$LINENO" +then : + if test x"$ac_arg" = x +then : + ac_cv_c_undeclared_builtin_options='none needed' +else $as_nop + ac_cv_c_undeclared_builtin_options=$ac_arg fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no + break fi -rm -f conftest* - +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + done + CFLAGS=$ac_save_CFLAGS + +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 +printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } + case $ac_cv_c_undeclared_builtin_options in #( + 'cannot detect') : + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot make $CC report undeclared builtins +See \`config.log' for more details" "$LINENO" 5; } ;; #( + 'none needed') : + ac_c_undeclared_builtin_options='' ;; #( + *) : + ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; +esac -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include +ac_fn_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_environ" = xyes +then : + ac_have_decl=1 +else $as_nop + ac_have_decl=0 +fi +printf "%s\n" "#define HAVE_DECL_ENVIRON $ac_have_decl" >>confdefs.h -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then : -else - ac_cv_header_stdc=no -fi -rm -f conftest* +ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" +if test "x$ac_cv_header_byteswap_h" = xyes +then : + printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h fi -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then : - : -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : +ac_fn_c_check_func "$LINENO" "__builtin_bswap16" "ac_cv_func___builtin_bswap16" +if test "x$ac_cv_func___builtin_bswap16" = xyes +then : + printf "%s\n" "#define HAVE___BUILTIN_BSWAP16 1" >>confdefs.h -else - ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext fi +ac_fn_c_check_func "$LINENO" "__builtin_bswap32" "ac_cv_func___builtin_bswap32" +if test "x$ac_cv_func___builtin_bswap32" = xyes +then : + printf "%s\n" "#define HAVE___BUILTIN_BSWAP32 1" >>confdefs.h fi +ac_fn_c_check_func "$LINENO" "__builtin_bswap64" "ac_cv_func___builtin_bswap64" +if test "x$ac_cv_func___builtin_bswap64" = xyes +then : + printf "%s\n" "#define HAVE___BUILTIN_BSWAP64 1" >>confdefs.h + fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 -$as_echo "$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then -$as_echo "#define STDC_HEADERS 1" >>confdefs.h -fi +for flag in -Wall -Wsign-compare -Wno-stringop-overflow -fvisibility=hidden; do + as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_-pedantic -Werror_$flag" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 +printf %s "checking whether C compiler accepts $flag... " >&6; } +if eval test \${$as_CACHEVAR+y} +then : + printf %s "(cached) " >&6 +else $as_nop -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 -$as_echo_n "checking for an ANSI C-conforming const... " >&6; } -if ${ac_cv_c_const+:} false; then : - $as_echo_n "(cached) " >&6 -else + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -pedantic -Werror $flag" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { -#ifndef __cplusplus - /* Ultrix mips cc rejects this sort of thing. */ - typedef int charset[2]; - const charset cs = { 0, 0 }; - /* SunOS 4.1.1 cc rejects this. */ - char const *const *pcpcc; - char **ppc; - /* NEC SVR4.0.2 mips cc rejects this. */ - struct point {int x, y;}; - static struct point const zero = {0,0}; - /* AIX XL C 1.02.0.0 rejects this. - It does not let you subtract one const X* pointer from another in - an arm of an if-expression whose if-part is not a constant - expression */ - const char *g = "string"; - pcpcc = &g + (g ? g-g : 0); - /* HPUX 7.0 cc rejects these. */ - ++pcpcc; - ppc = (char**) pcpcc; - pcpcc = (char const *const *) ppc; - { /* SCO 3.2v4 cc rejects this sort of thing. */ - char tx; - char *t = &tx; - char const *s = 0 ? (char *) 0 : (char const *) 0; - - *t++ = 0; - if (s) return 0; - } - { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ - int x[] = {25, 17}; - const int *foo = &x[0]; - ++foo; - } - { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ - typedef const int *iptr; - iptr p = 0; - ++p; - } - { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ - struct s { int j; const int *ap[3]; } bx; - struct s *b = &bx; b->j = 5; - } - { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ - const int foo = 10; - if (!foo) return 0; - } - return !cs[0] && !zero.x; -#endif - ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_c_const=yes -else - ac_cv_c_const=no +if ac_fn_c_try_compile "$LINENO" +then : + eval "$as_CACHEVAR=yes" +else $as_nop + eval "$as_CACHEVAR=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +eval ac_res=\$$as_CACHEVAR + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_CACHEVAR"\" = x"\"yes\"" +then : + +if test ${CFLAGS+y} +then : + if printf "%s\n" " $CFLAGS " | $GREP " $flag " 2>&1 >/dev/null +then : + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 + (: CFLAGS already contains $flag) 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +else $as_nop + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 + (: CFLAGS="$CFLAGS $flag") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + as_fn_append CFLAGS " $flag" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +else $as_nop + CFLAGS=$flag +fi + +else $as_nop + : fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 -$as_echo "$ac_cv_c_const" >&6; } -if test $ac_cv_c_const = no; then -$as_echo "#define const /**/" >>confdefs.h +done + +if test "x$ax_enable_debug" != "xyes" ; then + CFLAGS="$CFLAGS -O2" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 -$as_echo_n "checking whether byte ordering is bigendian... " >&6; } -if ${ac_cv_c_bigendian+:} false; then : - $as_echo_n "(cached) " >&6 +# need that as conditional because some internal tools compile as static +# to have access to internal libfyaml APIs +if test "x$enable_static" = "xyes" ; then +HAVE_STATIC=1 else - ac_cv_c_bigendian=unknown - # See if we're dealing with a universal compiler. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifndef __APPLE_CC__ - not a universal capable compiler - #endif - typedef int dummy; +HAVE_STATIC=0 +fi -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - # Check for potential -arch flags. It is not universal unless - # there are at least two -arch flags with different values. - ac_arch= - ac_prev= - for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do - if test -n "$ac_prev"; then - case $ac_word in - i?86 | x86_64 | ppc | ppc64) - if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then - ac_arch=$ac_word - else - ac_cv_c_bigendian=universal - break - fi - ;; - esac - ac_prev= - elif test "x$ac_word" = "x-arch"; then - ac_prev=arch - fi - done +printf "%s\n" "#define HAVE_STATIC $HAVE_STATIC" >>confdefs.h + + if test x$HAVE_STATIC = x1 ; then + HAVE_STATIC_TRUE= + HAVE_STATIC_FALSE='#' +else + HAVE_STATIC_TRUE='#' + HAVE_STATIC_FALSE= fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - if test $ac_cv_c_bigendian = unknown; then - # See if sys/param.h defines the BYTE_ORDER macro. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - #include -int -main () -{ -#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ - && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ - && LITTLE_ENDIAN) - bogus endian macros - #endif - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - # It does; now see whether it defined to BIG_ENDIAN or not. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstringop-overread" >&5 +printf %s "checking whether C compiler accepts -Wstringop-overread... " >&6; } +if test ${ax_cv_check_cflags__Werror__Wstringop_overread+y} +then : + printf %s "(cached) " >&6 +else $as_nop + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -Wstringop-overread" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include - #include int -main () +main (void) { -#if BYTE_ORDER != BIG_ENDIAN - not big endian - #endif ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_c_bigendian=yes +if ac_fn_c_try_compile "$LINENO" +then : + ax_cv_check_cflags__Werror__Wstringop_overread=yes +else $as_nop + ax_cv_check_cflags__Werror__Wstringop_overread=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wstringop_overread" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__Wstringop_overread" >&6; } +if test "x$ax_cv_check_cflags__Werror__Wstringop_overread" = x"yes" +then : + : +else $as_nop + : +fi + +if test "x$ax_cv_check_cflags__Werror__wstringop_overread" = x"yes" +then : + HAVE_WSTRINGOP_OVERREAD=1 +else $as_nop + HAVE_WSTRINGOP_OVERREAD=0 +fi + +printf "%s\n" "#define HAVE_WSTRINGOP_OVERREAD $HAVE_WSTRINGOP_OVERREAD" >>confdefs.h + + +# Check whether --enable-portable-target was given. +if test ${enable_portable_target+y} +then : + enableval=$enable_portable_target; +fi + +HAVE_PORTABLE_TARGET=0 +if test "x$enable_portable_target" == "xyes"; then + HAVE_PORTABLE_TARGET=1 +fi + + +printf "%s\n" "#define HAVE_PORTABLE_TARGET $HAVE_PORTABLE_TARGET" >>confdefs.h + + if test x$HAVE_PORTABLE_TARGET == x1 ; then + HAVE_PORTABLE_TARGET_TRUE= + HAVE_PORTABLE_TARGET_FALSE='#' else - ac_cv_c_bigendian=no + HAVE_PORTABLE_TARGET_TRUE='#' + HAVE_PORTABLE_TARGET_FALSE= fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + if test x$target_cpu = xx86 ; then + TARGET_CPU_X86_TRUE= + TARGET_CPU_X86_FALSE='#' +else + TARGET_CPU_X86_TRUE='#' + TARGET_CPU_X86_FALSE= fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi - if test $ac_cv_c_bigendian = unknown; then - # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + + if test x$target_cpu = xx86_64 ; then + TARGET_CPU_X86_64_TRUE= + TARGET_CPU_X86_64_FALSE='#' +else + TARGET_CPU_X86_64_TRUE='#' + TARGET_CPU_X86_64_FALSE= +fi + + if test x$target_cpu = xx86 -o x$target_cpu = xx86_64 ; then + TARGET_CPU_ANY_X86_TRUE= + TARGET_CPU_ANY_X86_FALSE='#' +else + TARGET_CPU_ANY_X86_TRUE='#' + TARGET_CPU_ANY_X86_FALSE= +fi + + if test x$target_cpu = xarm ; then + TARGET_CPU_ARM_TRUE= + TARGET_CPU_ARM_FALSE='#' +else + TARGET_CPU_ARM_TRUE='#' + TARGET_CPU_ARM_FALSE= +fi + + if test x$target_cpu = xaarch64 ; then + TARGET_CPU_ARM64_TRUE= + TARGET_CPU_ARM64_FALSE='#' +else + TARGET_CPU_ARM64_TRUE='#' + TARGET_CPU_ARM64_FALSE= +fi + + if test x$target_cpu = xarm -o x$target_cpu = xaarch64 ; then + TARGET_CPU_ANY_ARM_TRUE= + TARGET_CPU_ANY_ARM_FALSE='#' +else + TARGET_CPU_ANY_ARM_TRUE='#' + TARGET_CPU_ANY_ARM_FALSE= +fi + + +if test -z "$TARGET_CPU_ANY_X86_TRUE"; then : + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse2" >&5 +printf %s "checking whether C compiler accepts -msse2... " >&6; } +if test ${ax_cv_check_cflags__Werror__msse2+y} +then : + printf %s "(cached) " >&6 +else $as_nop + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -msse2" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include int -main () +main (void) { -#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) - bogus endian macros - #endif ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - # It does; now see whether it defined to _BIG_ENDIAN or not. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +if ac_fn_c_try_compile "$LINENO" +then : + ax_cv_check_cflags__Werror__msse2=yes +else $as_nop + ax_cv_check_cflags__Werror__msse2=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__msse2" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__msse2" >&6; } +if test "x$ax_cv_check_cflags__Werror__msse2" = x"yes" +then : + : +else $as_nop + : +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.1" >&5 +printf %s "checking whether C compiler accepts -msse4.1... " >&6; } +if test ${ax_cv_check_cflags__Werror__msse4_1+y} +then : + printf %s "(cached) " >&6 +else $as_nop + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -msse4.1" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include int -main () +main (void) { -#ifndef _BIG_ENDIAN - not big endian - #endif ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_c_bigendian=yes -else - ac_cv_c_bigendian=no +if ac_fn_c_try_compile "$LINENO" +then : + ax_cv_check_cflags__Werror__msse4_1=yes +else $as_nop + ax_cv_check_cflags__Werror__msse4_1=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__msse4_1" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__msse4_1" >&6; } +if test "x$ax_cv_check_cflags__Werror__msse4_1" = x"yes" +then : + : +else $as_nop + : fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi - if test $ac_cv_c_bigendian = unknown; then - # Compile a test program. - if test "$cross_compiling" = yes; then : - # Try to guess by grepping values from an object file. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5 +printf %s "checking whether C compiler accepts -mavx2... " >&6; } +if test ${ax_cv_check_cflags__Werror__mavx2+y} +then : + printf %s "(cached) " >&6 +else $as_nop + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -mavx2" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -short int ascii_mm[] = - { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; - short int ascii_ii[] = - { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; - int use_ascii (int i) { - return ascii_mm[i] + ascii_ii[i]; - } - short int ebcdic_ii[] = - { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; - short int ebcdic_mm[] = - { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; - int use_ebcdic (int i) { - return ebcdic_mm[i] + ebcdic_ii[i]; - } - extern int foo; int -main () +main (void) { -return use_ascii (foo) == use_ebcdic (foo); + ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then - ac_cv_c_bigendian=yes - fi - if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then - if test "$ac_cv_c_bigendian" = unknown; then - ac_cv_c_bigendian=no - else - # finding both strings is unlikely to happen, but who knows? - ac_cv_c_bigendian=unknown - fi - fi +if ac_fn_c_try_compile "$LINENO" +then : + ax_cv_check_cflags__Werror__mavx2=yes +else $as_nop + ax_cv_check_cflags__Werror__mavx2=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__mavx2" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__mavx2" >&6; } +if test "x$ax_cv_check_cflags__Werror__mavx2" = x"yes" +then : + : +else $as_nop + : +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx512f -mavx512vl" >&5 +printf %s "checking whether C compiler accepts -mavx512f -mavx512vl... " >&6; } +if test ${ax_cv_check_cflags__Werror__mavx512f__mavx512vl+y} +then : + printf %s "(cached) " >&6 +else $as_nop + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -mavx512f -mavx512vl" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default + int -main () +main (void) { - /* Are we little or big endian? From Harbison&Steele. */ - union - { - long int l; - char c[sizeof (long int)]; - } u; - u.l = 1; - return u.c[sizeof (long int) - 1] == 1; - ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : - ac_cv_c_bigendian=no -else - ac_cv_c_bigendian=yes +if ac_fn_c_try_compile "$LINENO" +then : + ax_cv_check_cflags__Werror__mavx512f__mavx512vl=yes +else $as_nop + ax_cv_check_cflags__Werror__mavx512f__mavx512vl=no fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags fi - - fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__mavx512f__mavx512vl" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__mavx512f__mavx512vl" >&6; } +if test "x$ax_cv_check_cflags__Werror__mavx512f__mavx512vl" = x"yes" +then : + : +else $as_nop + : fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 -$as_echo "$ac_cv_c_bigendian" >&6; } - case $ac_cv_c_bigendian in #( - yes) - $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h -;; #( - no) - ;; #( - universal) -$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h - ;; #( - *) - as_fn_error $? "unknown endianness - presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; - esac - -ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" -if test "x$ac_cv_type_pid_t" = xyes; then : -else +fi -cat >>confdefs.h <<_ACEOF -#define pid_t int -_ACEOF +if test -z "$TARGET_CPU_ARM_TRUE"; then : -fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfpu=neon" >&5 +printf %s "checking whether C compiler accepts -mfpu=neon... " >&6; } +if test ${ax_cv_check_cflags__Werror__mfpu_neon+y} +then : + printf %s "(cached) " >&6 +else $as_nop -ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" -if test "x$ac_cv_type_size_t" = xyes; then : + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror -mfpu=neon" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -else +int +main (void) +{ -cat >>confdefs.h <<_ACEOF -#define size_t unsigned int + ; + return 0; +} _ACEOF - +if ac_fn_c_try_compile "$LINENO" +then : + ax_cv_check_cflags__Werror__mfpu_neon=yes +else $as_nop + ax_cv_check_cflags__Werror__mfpu_neon=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__mfpu_neon" >&5 +printf "%s\n" "$ax_cv_check_cflags__Werror__mfpu_neon" >&6; } +if test "x$ax_cv_check_cflags__Werror__mfpu_neon" = x"yes" +then : + : +else $as_nop + : fi -ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" -if test "x$ac_cv_type_ssize_t" = xyes; then : -cat >>confdefs.h <<_ACEOF -#define HAVE_SSIZE_T 1 -_ACEOF +fi + if test "x$ax_cv_check_cflags__Werror__msse2" = x"yes" -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_SSE2_TRUE= + TARGET_HAS_SSE2_FALSE='#' else - -$as_echo "#define ssize_t signed long" >>confdefs.h - + TARGET_HAS_SSE2_TRUE='#' + TARGET_HAS_SSE2_FALSE= fi -ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" -if test "x$ac_cv_type_off_t" = xyes; then : - + if test "x$ax_cv_check_cflags__Werror__msse4_1" = x"yes" -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_SSE41_TRUE= + TARGET_HAS_SSE41_FALSE='#' else + TARGET_HAS_SSE41_TRUE='#' + TARGET_HAS_SSE41_FALSE= +fi -cat >>confdefs.h <<_ACEOF -#define off_t long int -_ACEOF - + if test "x$ax_cv_check_cflags__Werror__mavx2" = x"yes" -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_AVX2_TRUE= + TARGET_HAS_AVX2_FALSE='#' +else + TARGET_HAS_AVX2_TRUE='#' + TARGET_HAS_AVX2_FALSE= fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 -$as_echo_n "checking return type of signal handlers... " >&6; } -if ${ac_cv_type_signal+:} false; then : - $as_echo_n "(cached) " >&6 + if test "x$ax_cv_check_cflags__Werror__mavx512f__mavx512vl" = x"yes" -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_AVX512_TRUE= + TARGET_HAS_AVX512_FALSE='#' else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include + TARGET_HAS_AVX512_TRUE='#' + TARGET_HAS_AVX512_FALSE= +fi -int -main () -{ -return *(signal (0, 0)) (0) == 1; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_type_signal=int + + if test \( x$target_cpu = xaarch64 -o "x$ax_cv_check_cflags__Werror__mcpu_neon" = x"yes" \) -a "x$enable_portable_target" != "xyes" ; then + TARGET_HAS_NEON_TRUE= + TARGET_HAS_NEON_FALSE='#' else - ac_cv_type_signal=void + TARGET_HAS_NEON_TRUE='#' + TARGET_HAS_NEON_FALSE= fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 -$as_echo "$ac_cv_type_signal" >&6; } -cat >>confdefs.h <<_ACEOF -#define RETSIGTYPE $ac_cv_type_signal -_ACEOF +if test -z "$TARGET_HAS_SSE2_TRUE"; then : -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 -$as_echo_n "checking for uid_t in sys/types.h... " >&6; } -if ${ac_cv_type_uid_t+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include +printf "%s\n" "#define TARGET_HAS_SSE2 1" >>confdefs.h -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "uid_t" >/dev/null 2>&1; then : - ac_cv_type_uid_t=yes -else - ac_cv_type_uid_t=no fi -rm -f conftest* +if test -z "$TARGET_HAS_SSE41_TRUE"; then : + +printf "%s\n" "#define TARGET_HAS_SSE41 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 -$as_echo "$ac_cv_type_uid_t" >&6; } -if test $ac_cv_type_uid_t = no; then +if test -z "$TARGET_HAS_AVX2_TRUE"; then : -$as_echo "#define uid_t int" >>confdefs.h +printf "%s\n" "#define TARGET_HAS_AVX2 1" >>confdefs.h +fi +if test -z "$TARGET_HAS_AVX512_TRUE"; then : -$as_echo "#define gid_t int" >>confdefs.h +printf "%s\n" "#define TARGET_HAS_AVX512 1" >>confdefs.h fi -ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default" -if test "x$ac_cv_have_decl_environ" = xyes; then : - ac_have_decl=1 -else - ac_have_decl=0 +if test -z "$TARGET_HAS_NEON_TRUE"; then : + +printf "%s\n" "#define TARGET_HAS_NEON 1" >>confdefs.h + fi -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_ENVIRON $ac_have_decl -_ACEOF +# Check whether --enable-asan was given. +if test ${enable_asan+y} +then : + enableval=$enable_asan; +fi -for flag in -Wall -Wsign-compare -Wno-stringop-overflow; do - as_CACHEVAR=`$as_echo "ax_cv_check_cflags_-pedantic -Werror_$flag" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 -$as_echo_n "checking whether C compiler accepts $flag... " >&6; } -if eval \${$as_CACHEVAR+:} false; then : - $as_echo_n "(cached) " >&6 -else +HAVE_ASAN=0 +ASAN_CFLAGS="" +ASAN_LIBS="" +if test "x$enable_asan" == "xyes" ; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking location of ASAN library" >&5 +printf %s "checking location of ASAN library... " >&6; } + ASANLIB1=`${CC} -print-file-name=libasan.so` + ASANLIB=`readlink -f "${ASANLIB1}"` + if test -f "$ASANLIB" ; then + HAVE_ASAN=1 + ASAN_CFLAGS="-fsanitize=address -fno-omit-frame-pointer" + ASAN_LIBS="-fsanitize=address" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ASANLIB" >&5 +printf "%s\n" "$ASANLIB" >&6; } + for flag in -fsanitize=address -fno-omit-frame-pointer; do + as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 +printf %s "checking whether C compiler accepts $flag... " >&6; } +if eval test \${$as_CACHEVAR+y} +then : + printf %s "(cached) " >&6 +else $as_nop ax_check_save_flags=$CFLAGS - CFLAGS="$CFLAGS -pedantic -Werror $flag" + CFLAGS="$CFLAGS $flag" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : eval "$as_CACHEVAR=yes" -else +else $as_nop eval "$as_CACHEVAR=no" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CFLAGS=$ax_check_save_flags fi eval ac_res=\$$as_CACHEVAR - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"\"yes\""; then : - -if ${CFLAGS+:} false; then : - if $as_echo " $CFLAGS " | $GREP " $flag " 2>&1 >/dev/null; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } +if eval test \"x\$"$as_CACHEVAR"\" = x"\"yes\"" +then : + +if test ${CFLAGS+y} +then : + if printf "%s\n" " $CFLAGS " | $GREP " $flag " 2>&1 >/dev/null +then : + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 (: CFLAGS already contains $flag) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 +else $as_nop + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 (: CFLAGS="$CFLAGS $flag") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } as_fn_append CFLAGS " $flag" fi -else +else $as_nop CFLAGS=$flag fi -else +else $as_nop : fi done - -if test "x$ax_enable_debug" != "xyes" ; then - CFLAGS="$CFLAGS -O2" + else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not found; disabling ASAN" >&5 +printf "%s\n" "Not found; disabling ASAN" >&6; } + fi fi -# include -lm in the link -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing llrintf" >&5 -$as_echo_n "checking for library containing llrintf... " >&6; } -if ${ac_cv_search_llrintf+:} 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 llrintf (); -int -main () -{ -return llrintf (); - ; - return 0; -} -_ACEOF -for ac_lib in '' m; 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_llrintf=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_llrintf+:} false; then : - break -fi -done -if ${ac_cv_search_llrintf+:} false; then : + if test x$HAVE_ASAN = x1 ; then + HAVE_ASAN_TRUE= + HAVE_ASAN_FALSE='#' else - ac_cv_search_llrintf=no + HAVE_ASAN_TRUE='#' + HAVE_ASAN_FALSE= fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_llrintf" >&5 -$as_echo "$ac_cv_search_llrintf" >&6; } -ac_res=$ac_cv_search_llrintf -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" -else - as_fn_error $? "unable to find the llrintf() function" "$LINENO" 5 -fi + +printf "%s\n" "#define HAVE_ASAN $HAVE_ASAN" >>confdefs.h # check if there's a qsort_r available (musl does not have it) ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r" -if test "x$ac_cv_func_qsort_r" = xyes; then : +if test "x$ac_cv_func_qsort_r" = xyes +then : HAVE_QSORT_R=1 -else +else $as_nop HAVE_QSORT_R=0 fi -cat >>confdefs.h <<_ACEOF -#define HAVE_QSORT_R $HAVE_QSORT_R -_ACEOF +printf "%s\n" "#define HAVE_QSORT_R $HAVE_QSORT_R" >>confdefs.h if test x$HAVE_QSORT_R = x1 ; then HAVE_QSORT_R_TRUE= @@ -18341,17 +19991,17 @@ fi pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBYAML" >&5 -$as_echo_n "checking for LIBYAML... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for yaml-0.1 " >&5 +printf %s "checking for yaml-0.1 ... " >&6; } if test -n "$LIBYAML_CFLAGS"; then pkg_cv_LIBYAML_CFLAGS="$LIBYAML_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" yaml-0.1 \""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" yaml-0.1 \""; } >&5 ($PKG_CONFIG --exists --print-errors " yaml-0.1 ") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBYAML_CFLAGS=`$PKG_CONFIG --cflags " yaml-0.1 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -18365,10 +20015,10 @@ if test -n "$LIBYAML_LIBS"; then pkg_cv_LIBYAML_LIBS="$LIBYAML_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" yaml-0.1 \""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" yaml-0.1 \""; } >&5 ($PKG_CONFIG --exists --print-errors " yaml-0.1 ") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBYAML_LIBS=`$PKG_CONFIG --libs " yaml-0.1 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -18382,8 +20032,8 @@ fi if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -18400,30 +20050,28 @@ fi HAVE_LIBYAML=0 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } HAVE_LIBYAML=0 else LIBYAML_CFLAGS=$pkg_cv_LIBYAML_CFLAGS LIBYAML_LIBS=$pkg_cv_LIBYAML_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } HAVE_LIBYAML=1 fi # update with pkg-config's flags if test "x$HAVE_LIBYAML" != "x1" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to find libyaml; compatibility disabled" >&5 -$as_echo "$as_me: WARNING: failed to find libyaml; compatibility disabled" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: failed to find libyaml; compatibility disabled" >&5 +printf "%s\n" "$as_me: WARNING: failed to find libyaml; compatibility disabled" >&2;} fi -cat >>confdefs.h <<_ACEOF -#define HAVE_LIBYAML $HAVE_LIBYAML -_ACEOF +printf "%s\n" "#define HAVE_LIBYAML $HAVE_LIBYAML" >>confdefs.h if test x$HAVE_LIBYAML = x1 ; then HAVE_LIBYAML_TRUE= @@ -18436,17 +20084,17 @@ fi pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5 -$as_echo_n "checking for CHECK... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for check " >&5 +printf %s "checking for check ... " >&6; } if test -n "$CHECK_CFLAGS"; then pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" check \""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" check \""; } >&5 ($PKG_CONFIG --exists --print-errors " check ") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags " check " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -18460,10 +20108,10 @@ if test -n "$CHECK_LIBS"; then pkg_cv_CHECK_LIBS="$CHECK_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" check \""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" check \""; } >&5 ($PKG_CONFIG --exists --print-errors " check ") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs " check " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -18477,8 +20125,8 @@ fi if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes @@ -18495,14 +20143,14 @@ fi HAVE_CHECK=0 elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } HAVE_CHECK=0 else CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS CHECK_LIBS=$pkg_cv_CHECK_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } HAVE_CHECK=1 fi @@ -18511,9 +20159,7 @@ fi -cat >>confdefs.h <<_ACEOF -#define HAVE_CHECK $HAVE_CHECK -_ACEOF +printf "%s\n" "#define HAVE_CHECK $HAVE_CHECK" >>confdefs.h if test x$HAVE_CHECK = x1 ; then HAVE_CHECK_TRUE= @@ -18525,7 +20171,7 @@ fi HAVE_COMPATIBLE_CHECK=0 -if test "x$HAVE_CHECK" == "x1" ; then +if test "x$HAVE_CHECK" = "x1" ; then save_LIBS="$LIBS" save_CFLAGS="$CFLAGS" LIBS="$LIBS $CHECK_LIBS" @@ -18533,9 +20179,10 @@ if test "x$HAVE_CHECK" == "x1" ; then # check if libcheck has srunner_set_tap (jessie has outdated libcheck) ac_fn_c_check_func "$LINENO" "srunner_set_tap" "ac_cv_func_srunner_set_tap" -if test "x$ac_cv_func_srunner_set_tap" = xyes; then : +if test "x$ac_cv_func_srunner_set_tap" = xyes +then : HAVE_COMPATIBLE_CHECK=1 -else +else $as_nop HAVE_COMPATIBLE_CHECK=0 fi @@ -18546,9 +20193,7 @@ fi -cat >>confdefs.h <<_ACEOF -#define HAVE_COMPATIBLE_CHECK $HAVE_COMPATIBLE_CHECK -_ACEOF +printf "%s\n" "#define HAVE_COMPATIBLE_CHECK $HAVE_COMPATIBLE_CHECK" >>confdefs.h if test x$HAVE_COMPATIBLE_CHECK = x1 ; then HAVE_COMPATIBLE_CHECK_TRUE= @@ -18560,7 +20205,8 @@ fi # Check whether --enable-network was given. -if test "${enable_network+set}" = set; then : +if test ${enable_network+y} +then : enableval=$enable_network; fi @@ -18581,7 +20227,8 @@ fi # Check whether --enable-devmode was given. -if test "${enable_devmode+set}" = set; then : +if test ${enable_devmode+y} +then : enableval=$enable_devmode; fi @@ -18601,19 +20248,18 @@ else fi -cat >>confdefs.h <<_ACEOF -#define HAVE_DEVMODE $HAVE_DEVMODE -_ACEOF +printf "%s\n" "#define HAVE_DEVMODE $HAVE_DEVMODE" >>confdefs.h # check for sphinx # Extract the first word of "sphinx-build", so it can be a program name with args. set dummy sphinx-build; 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_SPHINX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_SPHINX+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $SPHINX in [\\/]* | ?:[\\/]*) ac_cv_path_SPHINX="$SPHINX" # Let the user override the test with a path. @@ -18623,11 +20269,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac 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_SPHINX="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_SPHINX="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -18639,11 +20289,11 @@ esac fi SPHINX=$ac_cv_path_SPHINX if test -n "$SPHINX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINX" >&5 -$as_echo "$SPHINX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SPHINX" >&5 +printf "%s\n" "$SPHINX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -18652,11 +20302,12 @@ HAVE_SPHINX=0 if test "x$SPHINX" != "x" ; then # Extract the first word of "pip3", so it can be a program name with args. set dummy pip3; 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_PIP3+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PIP3+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PIP3 in [\\/]* | ?:[\\/]*) ac_cv_path_PIP3="$PIP3" # Let the user override the test with a path. @@ -18666,11 +20317,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac 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_PIP3="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PIP3="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -18682,59 +20337,59 @@ esac fi PIP3=$ac_cv_path_PIP3 if test -n "$PIP3"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIP3" >&5 -$as_echo "$PIP3" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PIP3" >&5 +printf "%s\n" "$PIP3" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # if both pip3 and sphinx-build are available check for versions if test "x$PIP3" != "x" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking sphinx version" >&5 -$as_echo_n "checking sphinx version... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sphinx version" >&5 +printf %s "checking sphinx version... " >&6; } SPHINX_VERSION=`pip3 2>/dev/null show sphinx | grep -i Version: | cut -d: -f2 | sed -e 's/ //g'` if test "x$SPHINX_VERSION" != "x" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINX_VERSION" >&5 -$as_echo "$SPHINX_VERSION" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SPHINX_VERSION" >&5 +printf "%s\n" "$SPHINX_VERSION" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: N/A" >&5 -$as_echo "N/A" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: N/A" >&5 +printf "%s\n" "N/A" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking sphinx RTD theme version" >&5 -$as_echo_n "checking sphinx RTD theme version... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sphinx RTD theme version" >&5 +printf %s "checking sphinx RTD theme version... " >&6; } SPHINX_RTD_THEME_VERSION=`pip3 2>/dev/null show sphinx_rtd_theme | grep -i Version: | cut -d: -f2 | sed -e 's/ //g'` if test "x$SPHINX_VERSION" != "x" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINX_RTD_THEME_VERSION" >&5 -$as_echo "$SPHINX_RTD_THEME_VERSION" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SPHINX_RTD_THEME_VERSION" >&5 +printf "%s\n" "$SPHINX_RTD_THEME_VERSION" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: N/A" >&5 -$as_echo "N/A" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: N/A" >&5 +printf "%s\n" "N/A" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking sphinx markdown builder version" >&5 -$as_echo_n "checking sphinx markdown builder version... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sphinx markdown builder version" >&5 +printf %s "checking sphinx markdown builder version... " >&6; } SPHINX_MARKDOWN_BUILDER_VERSION=`pip3 2>/dev/null show sphinx-markdown-builder | grep -i Version: | cut -d: -f2 | sed -e 's/ //g'` if test "x$SPHINX_MARKDOWN_BUILDER_VERSION" != "x" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINX_MARKDOWN_BUILDER_VERSION" >&5 -$as_echo "$SPHINX_MARKDOWN_BUILDER_VERSION" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SPHINX_MARKDOWN_BUILDER_VERSION" >&5 +printf "%s\n" "$SPHINX_MARKDOWN_BUILDER_VERSION" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: N/A" >&5 -$as_echo "N/A" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: N/A" >&5 +printf "%s\n" "N/A" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking sphinx linuxdoc version" >&5 -$as_echo_n "checking sphinx linuxdoc version... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sphinx linuxdoc version" >&5 +printf %s "checking sphinx linuxdoc version... " >&6; } SPHINX_LINUXDOC_VERSION=`pip3 2>/dev/null show linuxdoc | grep -i Version: | cut -d: -f2 | sed -e 's/ //g'` if test "x$SPHINX_LINUXDOC_VERSION" != "x" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPHINX_LINUXDOC_VERSION" >&5 -$as_echo "$SPHINX_LINUXDOC_VERSION" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SPHINX_LINUXDOC_VERSION" >&5 +printf "%s\n" "$SPHINX_LINUXDOC_VERSION" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: N/A" >&5 -$as_echo "N/A" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: N/A" >&5 +printf "%s\n" "N/A" >&6; } fi if test "x$SPHINX_VERSION" != "x" -a "x$SPHINX_RTD_THEME_VERSION" != "x" -a "x$SPHINX_MARKDOWN_BUILDER_VERSION" != "x" -a "x$SPHINX_LINUXDOC_VERSION" != "x" ; then @@ -18742,21 +20397,19 @@ $as_echo "N/A" >&6; } fi fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sphinx installation works" >&5 -$as_echo_n "checking whether sphinx installation works... " >&6; } - if test "x$HAVE_SPHINX" == "x1" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sphinx installation works" >&5 +printf %s "checking whether sphinx installation works... " >&6; } + if test "x$HAVE_SPHINX" = "x1" ; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi fi -cat >>confdefs.h <<_ACEOF -#define HAVE_SPHINX $HAVE_SPHINX -_ACEOF +printf "%s\n" "#define HAVE_SPHINX $HAVE_SPHINX" >>confdefs.h if test x$HAVE_SPHINX = x1 ; then HAVE_SPHINX_TRUE= @@ -18770,11 +20423,12 @@ fi # check for git # Extract the first word of "git", so it can be a program name with args. set dummy git; 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_GIT+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_GIT+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $GIT in [\\/]* | ?:[\\/]*) ac_cv_path_GIT="$GIT" # Let the user override the test with a path. @@ -18784,11 +20438,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac 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_GIT="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_GIT="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -18800,11 +20458,11 @@ esac fi GIT=$ac_cv_path_GIT if test -n "$GIT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5 -$as_echo "$GIT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5 +printf "%s\n" "$GIT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -18814,9 +20472,7 @@ else HAVE_GIT=0 fi -cat >>confdefs.h <<_ACEOF -#define HAVE_GIT $HAVE_GIT -_ACEOF +printf "%s\n" "#define HAVE_GIT $HAVE_GIT" >>confdefs.h if test x$HAVE_GIT = x1 ; then HAVE_GIT_TRUE= @@ -18829,36 +20485,37 @@ fi -if test "x$TESTSUITEURL" == "x" ; then +if test "x$TESTSUITEURL" = "x" ; then TESTSUITEURL="https://github.com/yaml/yaml-test-suite" fi -if test "x$TESTSUITECHECKOUT" == "x" ; then +if test "x$TESTSUITECHECKOUT" = "x" ; then TESTSUITECHECKOUT="6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f" fi -if test "x$JSONTESTSUITEURL" == "x" ; then +if test "x$JSONTESTSUITEURL" = "x" ; then JSONTESTSUITEURL="https://github.com/nst/JSONTestSuite" fi -if test "x$JSONTESTSUITECHECKOUT" == "x" ; then +if test "x$JSONTESTSUITECHECKOUT" = "x" ; then JSONTESTSUITECHECKOUT="d64aefb55228d9584d3e5b2433f720ea8fd00c82" fi # check for docker # Extract the first word of "docker", so it can be a program name with args. set dummy docker; 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_DOCKER+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_DOCKER+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $DOCKER in [\\/]* | ?:[\\/]*) ac_cv_path_DOCKER="$DOCKER" # Let the user override the test with a path. @@ -18868,11 +20525,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac 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_DOCKER="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_DOCKER="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -18884,11 +20545,11 @@ esac fi DOCKER=$ac_cv_path_DOCKER if test -n "$DOCKER"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCKER" >&5 -$as_echo "$DOCKER" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOCKER" >&5 +printf "%s\n" "$DOCKER" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -18909,11 +20570,12 @@ fi # check for jq # Extract the first word of "jq", so it can be a program name with args. set dummy jq; 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_JQ+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_JQ+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $JQ in [\\/]* | ?:[\\/]*) ac_cv_path_JQ="$JQ" # Let the user override the test with a path. @@ -18923,11 +20585,15 @@ else for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac 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_JQ="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_JQ="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -18939,11 +20605,11 @@ esac fi JQ=$ac_cv_path_JQ if test -n "$JQ"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JQ" >&5 -$as_echo "$JQ" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $JQ" >&5 +printf "%s\n" "$JQ" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -18953,9 +20619,7 @@ else HAVE_JQ=0 fi -cat >>confdefs.h <<_ACEOF -#define HAVE_JQ $HAVE_JQ -_ACEOF +printf "%s\n" "#define HAVE_JQ $HAVE_JQ" >>confdefs.h if test x$HAVE_JQ = x1 ; then HAVE_JQ_TRUE= @@ -18968,13 +20632,196 @@ fi JQ="$JQ" +# check for libclang + +# Check whether --with-libclang was given. +if test ${with_libclang+y} +then : + withval=$with_libclang; with_libclang="$withval" +else $as_nop + with_libclang=auto +fi + + +HAVE_LIBCLANG=0 +LIBCLANG_CFLAGS="" +LIBCLANG_CPPFLAGS="" +LIBCLANG_LDFLAGS="" +LIBCLANG_LIBS="" +if test "x$with_libclang" != "xno"; then + if test "x$with_libclang" == "xauto"; then + # try to auto detect (llvm 15 down to 8) + check="llvm-config llvm-config-15 llvm-config-14 llvm-config-13 llvm-config-12 llvm-config-11 llvm-config-10" + else + if test "x$with_libclang" == "xlatest"; then + check="llvm-config" + else + check="llvm-config-$with_libclang" + fi + fi + orig_CFLAGS="$CFLAGS" + orig_CPPFLAGS="$CPPFLAGS" + orig_LDFLAGS="$LDFLAGS" + orig_LIBS="$LIBS" + for cfg in $check ; do + # no caching + # Extract the first word of "$cfg", so it can be a program name with args. +set dummy $cfg; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_LLVM_CONFIG+y} +then : + printf %s "(cached) " >&6 +else $as_nop + case $LLVM_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_LLVM_CONFIG="$LLVM_CONFIG" # 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 + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + 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_LLVM_CONFIG="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$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 +LLVM_CONFIG=$ac_cv_path_LLVM_CONFIG +if test -n "$LLVM_CONFIG"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 +printf "%s\n" "$LLVM_CONFIG" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + + if test "x$LLVM_CONFIG" != "x" ; then + LIBCLANG_CFLAGS=`$LLVM_CONFIG --cflags` + LIBCLANG_CPPFLAGS=`$LLVM_CONFIG --cppflags` + LIBCLANG_LDFLAGS=`$LLVM_CONFIG --ldflags` + LIBCLANG_LIBS="-lclang" + CPPFLAGS="$CPPFLAGS $LIBCLANG_CPPFLAGS" + CFLAGS="$CFLAGS $LIBCLANG_CFLAGS" + LDFLAGS="$LDFLAGS $LIBCLANG_LDFLAGS" + LIBS="$LIBS $LIBCLANG_LIBS" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang_createIndex in -lclang" >&5 +printf %s "checking for clang_createIndex in -lclang... " >&6; } +if test ${ac_cv_lib_clang_clang_createIndex+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lclang $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. */ +char clang_createIndex (); +int +main (void) +{ +return clang_createIndex (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_clang_clang_createIndex=yes +else $as_nop + ac_cv_lib_clang_clang_createIndex=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clang_clang_createIndex" >&5 +printf "%s\n" "$ac_cv_lib_clang_clang_createIndex" >&6; } +if test "x$ac_cv_lib_clang_clang_createIndex" = xyes +then : + HAVE_LIBCLANG_LIB=1 +else $as_nop + HAVE_LIBCLANG_LIB=0 +fi + + ac_fn_c_check_header_compile "$LINENO" "clang-c/Index.h" "ac_cv_header_clang_c_Index_h" "$ac_includes_default" +if test "x$ac_cv_header_clang_c_Index_h" = xyes +then : + HAVE_LIBCLANG_HDR=1 +else $as_nop + HAVE_LIBCLANG_HDR=0 +fi + + # if we found it, break out + if test "x$HAVE_LIBCLANG_LIB" = "x1" -a "x$HAVE_LIBCLANG_HDR" = "x1" ; then + HAVE_LIBCLANG=1 + break + fi + $as_unset ac_cv_lib_clang_clang_createIndex $as_unset ac_cv_header_clang_c_Index_h \ + LIBCLANG_CFLAGS LIBCLANG_CPPFLAGS LIBCLANG_LIBS HAVE_LIBCLANG_LIB HAVE_LIBCLANG_HDR + fi + CFLAGS=$orig_CFLAGS + LDFLAGS=$orig_LDFLAGS + LIBS=$orig_LIBS + if test "x$HAVE_LIBCLANG" = "x1"; then + break + fi + $as_unset ac_cv_path_LLVM_CONFIG LLVM_CONFIG + done + CFLAGS=$orig_CFLAGS + CPPFLAGS=$orig_CPPFLAGS + LDFLAGS=$orig_LDFLAGS + LIBS=$orig_LIBS +fi + + + + + + + + +printf "%s\n" "#define HAVE_LIBCLANG $HAVE_LIBCLANG" >>confdefs.h + + if test x$HAVE_LIBCLANG = x1 ; then + HAVE_LIBCLANG_TRUE= + HAVE_LIBCLANG_FALSE='#' +else + HAVE_LIBCLANG_TRUE='#' + HAVE_LIBCLANG_FALSE= +fi + + + +CFLAGS=`echo $CFLAGS | sed -e 's/^ *//'` +CPPFLAGS=`echo $CPPFLAGS | sed -e 's/^ *//'` +LDFLAGS=`echo $LDFLAGS | sed -e 's/^ *//'` + # Shave by default on supported autoconf versions # Check whether --enable-shave was given. -if test "${enable_shave+set}" = set; then : +if test ${enable_shave+y} +then : enableval=$enable_shave; -else +else $as_nop enable_shave=yes fi @@ -18992,11 +20839,12 @@ fi # Extract the first word of "sed", so it can be a program name with args. set dummy sed; 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_SED+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_SED+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$SED"; then ac_cv_prog_SED="$SED" # Let the user override the test. else @@ -19004,11 +20852,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_SED="sed" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -19020,11 +20872,11 @@ fi fi SED=$ac_cv_prog_SED if test -n "$SED"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 -$as_echo "$SED" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 +printf "%s\n" "$SED" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -19075,6 +20927,7 @@ ac_config_files="$ac_config_files build-aux/shave build-aux/shave-libtool Makefi + cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure @@ -19102,8 +20955,8 @@ _ACEOF case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( @@ -19133,15 +20986,15 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; /^ac_cv_env_/b end t clear :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 -$as_echo "$as_me: updating cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +printf "%s\n" "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else @@ -19155,8 +21008,8 @@ $as_echo "$as_me: updating cache $cache_file" >&6;} fi fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 -$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache @@ -19173,7 +21026,7 @@ U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" @@ -19184,14 +21037,14 @@ LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 -$as_echo_n "checking that generated files are newer than configure... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 +printf %s "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 -$as_echo "done" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 +printf "%s\n" "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' @@ -19208,11 +21061,71 @@ 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__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCCAS\" 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 "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then + as_fn_error $? "conditional \"HAVE_STATIC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_PORTABLE_TARGET_TRUE}" && test -z "${HAVE_PORTABLE_TARGET_FALSE}"; then + as_fn_error $? "conditional \"HAVE_PORTABLE_TARGET\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_X86_TRUE}" && test -z "${TARGET_CPU_X86_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_X86\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_X86_64_TRUE}" && test -z "${TARGET_CPU_X86_64_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_X86_64\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_ANY_X86_TRUE}" && test -z "${TARGET_CPU_ANY_X86_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_ANY_X86\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_ARM_TRUE}" && test -z "${TARGET_CPU_ARM_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_ARM\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_ARM64_TRUE}" && test -z "${TARGET_CPU_ARM64_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_ARM64\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_CPU_ANY_ARM_TRUE}" && test -z "${TARGET_CPU_ANY_ARM_FALSE}"; then + as_fn_error $? "conditional \"TARGET_CPU_ANY_ARM\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_SSE2_TRUE}" && test -z "${TARGET_HAS_SSE2_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_SSE2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_SSE41_TRUE}" && test -z "${TARGET_HAS_SSE41_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_SSE41\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_AVX2_TRUE}" && test -z "${TARGET_HAS_AVX2_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_AVX2\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_AVX512_TRUE}" && test -z "${TARGET_HAS_AVX512_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_AVX512\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${TARGET_HAS_NEON_TRUE}" && test -z "${TARGET_HAS_NEON_FALSE}"; then + as_fn_error $? "conditional \"TARGET_HAS_NEON\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${HAVE_ASAN_TRUE}" && test -z "${HAVE_ASAN_FALSE}"; then + as_fn_error $? "conditional \"HAVE_ASAN\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${HAVE_QSORT_R_TRUE}" && test -z "${HAVE_QSORT_R_FALSE}"; then as_fn_error $? "conditional \"HAVE_QSORT_R\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -19253,13 +21166,17 @@ if test -z "${HAVE_JQ_TRUE}" && test -z "${HAVE_JQ_FALSE}"; then as_fn_error $? "conditional \"HAVE_JQ\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${HAVE_LIBCLANG_TRUE}" && test -z "${HAVE_LIBCLANG_FALSE}"; then + as_fn_error $? "conditional \"HAVE_LIBCLANG\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 -$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL @@ -19282,14 +21199,16 @@ cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : +as_nop=: +if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 +then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else +else $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( @@ -19299,46 +21218,46 @@ esac fi + +# Reset variables that may have inherited troublesome values from +# the environment. + +# IFS needs to be set, to space, tab, and newline, in precisely that order. +# (If _AS_PATH_WALK were called with IFS unset, it would have the +# side effect of setting IFS to empty, thus disabling word splitting.) +# Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi +IFS=" "" $as_nl" + +PS1='$ ' +PS2='> ' +PS4='+ ' + +# Ensure predictable behavior from utilities with locale-dependent output. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# We cannot yet rely on "unset" to work, but we need these variables +# to be unset--not just set to an empty or harmless value--now, to +# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct +# also avoids known problems related to "unset" and subshell syntax +# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). +for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH +do eval test \${$as_var+y} \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done + +# Ensure that fds 0, 1, and 2 are open. +if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi +if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then +if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || @@ -19347,13 +21266,6 @@ if test "${PATH_SEPARATOR+set}" != set; then fi -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( @@ -19362,8 +21274,12 @@ case $0 in #(( for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS @@ -19375,30 +21291,10 @@ if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] @@ -19411,13 +21307,14 @@ as_fn_error () as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi - $as_echo "$as_me: error: $2" >&2 + printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error + # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -19444,18 +21341,20 @@ as_fn_unset () { eval $1=; unset $1;} } as_unset=as_fn_unset + # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null +then : eval 'as_fn_append () { eval $1+=\$2 }' -else +else $as_nop as_fn_append () { eval $1=\$$1\$2 @@ -19467,12 +21366,13 @@ fi # as_fn_append # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null +then : eval 'as_fn_arith () { as_val=$(( $* )) }' -else +else $as_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` @@ -19503,7 +21403,7 @@ as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | +printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -19525,6 +21425,10 @@ as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits + +# Determine whether it's possible to make 'echo' print without a newline. +# These variables are no longer used directly by Autoconf, but are AC_SUBSTed +# for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) @@ -19538,6 +21442,12 @@ case `echo -n x` in #((((( ECHO_N='-n';; esac +# For backward compatibility with old third-party macros, we provide +# the shell variables $as_echo and $as_echo_n. New code should use +# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. +as_echo='printf %s\n' +as_echo_n='printf %s' + rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file @@ -19579,7 +21489,7 @@ as_fn_mkdir_p () as_dirs= while :; do case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" @@ -19588,7 +21498,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | +printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -19650,8 +21560,8 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by libfyaml $as_me 0.7.12, which was -generated by GNU Autoconf 2.69. Invocation command line was +This file was extended by libfyaml $as_me 0.9, which was +generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -19713,14 +21623,16 @@ $config_commands Report bugs to ." _ACEOF +ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` +ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -libfyaml config.status 0.7.12 -configured by $0, generated by GNU Autoconf 2.69, +libfyaml config.status 0.9 +configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" -Copyright (C) 2012 Free Software Foundation, Inc. +Copyright (C) 2021 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -19760,15 +21672,15 @@ do -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - $as_echo "$ac_cs_version"; exit ;; + printf "%s\n" "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) - $as_echo "$ac_cs_config"; exit ;; + printf "%s\n" "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" @@ -19776,7 +21688,7 @@ do --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; @@ -19785,7 +21697,7 @@ do as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) - $as_echo "$ac_cs_usage"; exit ;; + printf "%s\n" "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; @@ -19813,7 +21725,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift - \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" @@ -19827,7 +21739,7 @@ exec 5>>config.log sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX - $as_echo "$ac_log" + printf "%s\n" "$ac_log" } >&5 _ACEOF @@ -19835,7 +21747,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" +AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" # The HP-UX ksh and POSIX shell print the target directory to stdout @@ -19845,11 +21757,11 @@ AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' -macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' -macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' @@ -20249,9 +22161,9 @@ done # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands + test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files + test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers + test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree @@ -20587,7 +22499,7 @@ do esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac - case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done @@ -20595,17 +22507,17 @@ do # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` - $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" - { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 -$as_echo "$as_me: creating $ac_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +printf "%s\n" "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) - ac_sed_conf_input=`$as_echo "$configure_input" | + ac_sed_conf_input=`printf "%s\n" "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac @@ -20622,7 +22534,7 @@ $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$ac_file" | +printf "%s\n" X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -20646,9 +22558,9 @@ $as_echo X"$ac_file" | case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; @@ -20710,8 +22622,8 @@ ac_sed_dataroot=' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' @@ -20755,9 +22667,9 @@ test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 -$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" @@ -20773,20 +22685,20 @@ which seems to be undefined. Please make sure it is defined" >&2;} # if test x"$ac_file" != x-; then { - $as_echo "/* $configure_input */" \ + printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then - { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 -$as_echo "$as_me: $ac_file is unchanged" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else - $as_echo "/* $configure_input */" \ + printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi @@ -20806,7 +22718,7 @@ $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$_am_arg" | +printf "%s\n" X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -20826,8 +22738,8 @@ $as_echo X"$_am_arg" | s/.*/./; q'`/stamp-h$_am_stamp_count ;; - :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 -$as_echo "$as_me: executing $ac_file commands" >&6;} + :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +printf "%s\n" "$as_me: executing $ac_file commands" >&6;} ;; esac @@ -20837,29 +22749,35 @@ $as_echo "$as_me: executing $ac_file commands" >&6;} # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. - case $CONFIG_FILES in - *\'*) eval set x "$CONFIG_FILES" ;; - *) set x $CONFIG_FILES ;; - esac + # TODO: see whether this extra hack can be removed once we start + # requiring Autoconf 2.70 or later. + case $CONFIG_FILES in #( + *\'*) : + eval set x "$CONFIG_FILES" ;; #( + *) : + set x $CONFIG_FILES ;; #( + *) : + ;; +esac shift - for mf + # Used to flag and report bootstrapping failures. + am_rc=0 + for am_mf do # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named 'Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line + am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile which includes + # dependency-tracking related rules and includes. + # Grep'ing the whole file directly is not great: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then - dirpart=`$as_dirname -- "$mf" || -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$mf" : 'X\(//\)[^/]' \| \ - X"$mf" : 'X\(//\)$' \| \ - X"$mf" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$mf" | + sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ + || continue + am_dirpart=`$as_dirname -- "$am_mf" || +$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$am_mf" : 'X\(//\)[^/]' \| \ + X"$am_mf" : 'X\(//\)$' \| \ + X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || +printf "%s\n" X"$am_mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -20877,53 +22795,50 @@ $as_echo X"$mf" | q } s/.*/./; q'` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running 'make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "$am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`$as_dirname -- "$file" || -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$file" : 'X\(//\)[^/]' \| \ - X"$file" : 'X\(//\)$' \| \ - X"$file" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ + am_filepart=`$as_basename -- "$am_mf" || +$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ + X"$am_mf" : 'X\(//\)$' \| \ + X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || +printf "%s\n" X/"$am_mf" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } - /^X\(\/\/\)$/{ + /^X\/\(\/\/\)$/{ s//\1/ q } - /^X\(\/\).*/{ + /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` - as_dir=$dirpart/$fdir; as_fn_mkdir_p - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done + { echo "$as_me:$LINENO: cd "$am_dirpart" \ + && sed -e '/# am--include-marker/d' "$am_filepart" \ + | $MAKE -f - am--depfiles" >&5 + (cd "$am_dirpart" \ + && sed -e '/# am--include-marker/d' "$am_filepart" \ + | $MAKE -f - am--depfiles) >&5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } || am_rc=$? done + if test $am_rc -ne 0; then + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "Something went wrong bootstrapping makefile fragments + for automatic dependency tracking. If GNU make was not used, consider + re-running the configure script with MAKE=\"gmake\" (or whatever is + necessary). You can also try re-running configure with the + '--disable-dependency-tracking' option to at least be able to build + the package (albeit without support for automatic dependency tracking). +See \`config.log' for more details" "$LINENO" 5; } + fi + { am_dirpart=; unset am_dirpart;} + { am_filepart=; unset am_filepart;} + { am_mf=; unset am_mf;} + { am_rc=; unset am_rc;} + rm -f conftest-deps.mk } ;; "libtool":C) @@ -20977,6 +22892,10 @@ available_tags='CXX ' # ### BEGIN LIBTOOL CONFIG +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision + # Assembler program. AS=$lt_AS @@ -20986,10 +22905,6 @@ DLLTOOL=$lt_DLLTOOL # Object dumper program. OBJDUMP=$lt_OBJDUMP -# Which release of libtool.m4 was used? -macro_version=$macro_version -macro_revision=$macro_revision - # Whether or not to build shared libraries. build_libtool_libs=$enable_shared @@ -21470,6 +23385,7 @@ _LT_EOF esac + ltmain=$ac_aux_dir/ltmain.sh @@ -21711,7 +23627,7 @@ if test "$no_recursion" != yes; then ;; *) case $ac_arg in - *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append ac_sub_configure_args " '$ac_arg'" ;; esac @@ -21721,7 +23637,7 @@ if test "$no_recursion" != yes; then # in subdir configurations. ac_arg="--prefix=$prefix" case $ac_arg in - *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" @@ -21742,17 +23658,17 @@ if test "$no_recursion" != yes; then test -d "$srcdir/$ac_dir" || continue ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" - $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 - $as_echo "$ac_msg" >&6 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 + printf "%s\n" "$ac_msg" >&6 as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; @@ -21782,17 +23698,15 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" - # Check for guested configure; otherwise get Cygnus style configure. + # Check for configure.gnu first; this name is used for a wrapper for + # Metaconfig's "Configure" on case-insensitive file systems. if test -f "$ac_srcdir/configure.gnu"; then ac_sub_configure=$ac_srcdir/configure.gnu elif test -f "$ac_srcdir/configure"; then ac_sub_configure=$ac_srcdir/configure - elif test -f "$ac_srcdir/configure.in"; then - # This should be Cygnus configure. - ac_sub_configure=$ac_aux_dir/configure else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 -$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 +printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} ac_sub_configure= fi @@ -21805,8 +23719,8 @@ $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 -$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 +printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} # The eval makes quoting arguments work. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || @@ -21817,8 +23731,8 @@ $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cach done fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 -$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi @@ -21832,20 +23746,24 @@ echo " LIBTOOL_VERSION: ${LIBTOOL_VERSION} prefix: ${prefix} C compiler: ${CC} - CFLAGS: ${CFLAGS} Linker: ${LD} + CFLAGS: ${CFLAGS} LDFLAGS: ${LDFLAGS} LIBS: ${LIBS} + HAVE_ASAN: ${HAVE_ASAN} HAVE_CHECK: ${HAVE_CHECK} HAVE_COMPATIBLE_CHECK: ${HAVE_COMPATIBLE_CHECK} HAVE_NETWORK: ${HAVE_NETWORK} HAVE_DEVMODE: ${HAVE_DEVMODE} HAVE_SPHINX: ${HAVE_SPHINX} - GIT: $GIT - DOCKER: $DOCKER + GIT: ${GIT} + DOCKER: ${DOCKER} + HAVE_LIBCLANG: ${HAVE_LIBCLANG} + LIBCLANG_LIBS: ${LIBCLANG_LIBS} TESTSUITEURL: $TESTSUITEURL TESTSUITECHECKOUT: $TESTSUITECHECKOUT JSONTESTSUITEURL: $JSONTESTSUITEURL JSONTESTSUITECHECKOUT: $JSONTESTSUITECHECKOUT " + diff --git a/Sources/Cfyaml/doc/Makefile b/Sources/Cfyaml/doc/Makefile index b7c1519d3..d7535e7bd 100644 --- a/Sources/Cfyaml/doc/Makefile +++ b/Sources/Cfyaml/doc/Makefile @@ -85,8 +85,9 @@ POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : -build_triplet = aarch64-apple-darwin22.2.0 -host_triplet = aarch64-apple-darwin22.2.0 +build_triplet = aarch64-apple-darwin23.4.0 +host_triplet = aarch64-apple-darwin23.4.0 +target_triplet = aarch64-apple-darwin23.4.0 subdir = doc ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_enable_debug.m4 \ @@ -135,30 +136,33 @@ AM_DEFAULT_VERBOSITY = 1 AM_MAKEFLAGS = `test -z $V && echo -s` AR = ar AS = as +ASAN_CFLAGS = +ASAN_LIBS = AUTOCONF = ${SHELL} '/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/missing' autoconf AUTOHEADER = ${SHELL} '/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/missing' autoheader AUTOMAKE = ${SHELL} '/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/missing' automake-1.16 AWK = awk CC = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave cc gcc -CCAS = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave ccas +CCAS = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave ccas gcc +CCASDEPMODE = depmode=gcc3 +CCASFLAGS = CCDEPMODE = depmode=gcc3 -CFLAGS = -Wall -Wsign-compare -O2 +CFLAGS = -D_THREAD_SAFE -pthread -Wall -Wsign-compare -fvisibility=hidden -O2 CHECK_CFLAGS = CHECK_LDFLAGS = CHECK_LIBS = -CPP = gcc -E CPPFLAGS = CSCOPE = cscope CTAGS = ctags -CXX = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave cxx g++ -CXXCPP = g++ -E +CXX = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave cxx g++ -std=gnu++11 +CXXCPP = g++ -std=gnu++11 -E CXXDEPMODE = depmode=gcc3 CXXFLAGS = CYGPATH_W = echo DEFS = -DHAVE_CONFIG_H DEPDIR = .deps -DLLTOOL = dlltool -DOCKER = /usr/local/bin/docker +DLLTOOL = false +DOCKER = /Users/kdubb/.rd/bin/docker DSYMUTIL = dsymutil DUMPBIN = ECHO_C = \c @@ -172,16 +176,19 @@ F77 = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build- FC = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave fc FGREP = /usr/bin/grep -F FILECMD = file -GIT = /opt/homebrew/bin/git +GIT = /usr/bin/git GREP = /usr/bin/grep +HAVE_ASAN = 0 HAVE_CHECK = 0 HAVE_COMPATIBLE_CHECK = 0 HAVE_DEVMODE = 1 +HAVE_LIBCLANG = 0 HAVE_LIBYAML = 1 HAVE_NETWORK = 1 +HAVE_PORTABLE_TARGET = 0 HAVE_QSORT_R = 1 -INCLTDL = -I$(top_srcdir)/libltdl -INSTALL = /usr/bin/install -c +HAVE_STATIC = 1 +INSTALL = /opt/homebrew/bin/ginstall -c INSTALL_DATA = ${INSTALL} -m 644 INSTALL_PROGRAM = ${INSTALL} INSTALL_SCRIPT = ${INSTALL} @@ -192,17 +199,21 @@ JSONTESTSUITEURL = https://github.com/nst/JSONTestSuite LD = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld LDFLAGS = LEX = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave lex -LIBLTDL = $(top_build_prefix)libltdl/libltdl.la +LIBCLANG_CFLAGS = +LIBCLANG_CPPFLAGS = +LIBCLANG_LDFLAGS = +LIBCLANG_LIBS = +LIBLTDL = LIBOBJS = -LIBS = +LIBS = -lpthread LIBTOOL = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave-libtool '$(SHELL) $(top_builddir)/libtool' -LIBTOOL_VERSION = 1:2:0 +LIBTOOL_VERSION = 1:4:2 LIBYAML_CFLAGS = -I/opt/homebrew/Cellar/libyaml/0.2.5/include LIBYAML_LIBS = -L/opt/homebrew/Cellar/libyaml/0.2.5/lib -lyaml LIPO = lipo +LLVM_CONFIG = LN_S = ln -s -LTDLDEPS = $(top_build_prefix)libltdl/libltdl.la -LTDLINCL = -I$(top_srcdir)/libltdl +LTDLINCL = LTLIBOBJS = LT_SYS_LIBRARY_PATH = M4 = /usr/bin/m4 @@ -211,8 +222,8 @@ MAKEFLAGS = -s MAKEINFO = ${SHELL} '/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/missing' makeinfo MANIFEST_TOOL = : MCS = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave mcs -MINOR = 7 -MKDIR_P = .././build-aux/install-sh -c -d +MINOR = 9 +MKDIR_P = /opt/homebrew/bin/gmkdir -p NM = /usr/bin/nm -B NMEDIT = nmedit OBJC = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave objc @@ -223,11 +234,11 @@ OTOOL64 = : PACKAGE = libfyaml PACKAGE_BUGREPORT = pantelis.antoniou@konsulko.com PACKAGE_NAME = libfyaml -PACKAGE_STRING = libfyaml 0.7.12 +PACKAGE_STRING = libfyaml 0.9 PACKAGE_TARNAME = libfyaml PACKAGE_URL = -PACKAGE_VERSION = 0.7.12 -PATCH = 12 +PACKAGE_VERSION = 0.9 +PATCH = PATH_SEPARATOR = : PIP3 = PKG_CONFIG = /opt/homebrew/bin/pkg-config @@ -235,7 +246,7 @@ PKG_CONFIG_LIBDIR = PKG_CONFIG_PATH = PTHREAD_CC = gcc PTHREAD_CFLAGS = -D_THREAD_SAFE -pthread -PTHREAD_LIBS = +PTHREAD_LIBS = -lpthread Q = $(V:1=) RANLIB = ranlib SED = /usr/bin/sed @@ -246,7 +257,7 @@ STRIP = strip TESTSUITECHECKOUT = 6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f TESTSUITEURL = https://github.com/yaml/yaml-test-suite V = @ -VERSION = 0.7.12 +VERSION = 0.9 YACC = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave yacc abs_builddir = /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/doc abs_srcdir = /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/doc @@ -263,10 +274,10 @@ am__tar = $${TAR-tar} chof - "$$tardir" am__untar = $${TAR-tar} xf - ax_pthread_config = bindir = ${exec_prefix}/bin -build = aarch64-apple-darwin22.2.0 +build = aarch64-apple-darwin23.4.0 build_alias = build_cpu = aarch64 -build_os = darwin22.2.0 +build_os = darwin23.4.0 build_vendor = apple builddir = . datadir = ${datarootdir} @@ -274,10 +285,10 @@ datarootdir = ${prefix}/share docdir = ${datarootdir}/doc/${PACKAGE_TARNAME} dvidir = ${docdir} exec_prefix = ${prefix} -host = aarch64-apple-darwin22.2.0 +host = aarch64-apple-darwin23.4.0 host_alias = host_cpu = aarch64 -host_os = darwin22.2.0 +host_os = darwin23.4.0 host_vendor = apple htmldir = ${docdir} includedir = ${prefix}/include @@ -301,7 +312,11 @@ shavedir = /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux srcdir = . subdirs = libltdl sysconfdir = ${prefix}/etc +target = aarch64-apple-darwin23.4.0 target_alias = +target_cpu = aarch64 +target_os = darwin23.4.0 +target_vendor = apple top_build_prefix = ../ top_builddir = .. top_srcdir = .. diff --git a/Sources/Cfyaml/doc/Makefile.in b/Sources/Cfyaml/doc/Makefile.in index 52e684926..26bace457 100644 --- a/Sources/Cfyaml/doc/Makefile.in +++ b/Sources/Cfyaml/doc/Makefile.in @@ -87,6 +87,7 @@ PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ +target_triplet = @target@ subdir = doc ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_enable_debug.m4 \ @@ -135,18 +136,21 @@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AM_MAKEFLAGS = @AM_MAKEFLAGS@ AR = @AR@ AS = @AS@ +ASAN_CFLAGS = @ASAN_CFLAGS@ +ASAN_LIBS = @ASAN_LIBS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCAS = @CCAS@ +CCASDEPMODE = @CCASDEPMODE@ +CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHECK_CFLAGS = @CHECK_CFLAGS@ CHECK_LDFLAGS = @CHECK_LDFLAGS@ CHECK_LIBS = @CHECK_LIBS@ -CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ @@ -174,13 +178,16 @@ FGREP = @FGREP@ FILECMD = @FILECMD@ GIT = @GIT@ GREP = @GREP@ +HAVE_ASAN = @HAVE_ASAN@ HAVE_CHECK = @HAVE_CHECK@ HAVE_COMPATIBLE_CHECK = @HAVE_COMPATIBLE_CHECK@ HAVE_DEVMODE = @HAVE_DEVMODE@ +HAVE_LIBCLANG = @HAVE_LIBCLANG@ HAVE_LIBYAML = @HAVE_LIBYAML@ HAVE_NETWORK = @HAVE_NETWORK@ +HAVE_PORTABLE_TARGET = @HAVE_PORTABLE_TARGET@ HAVE_QSORT_R = @HAVE_QSORT_R@ -INCLTDL = @INCLTDL@ +HAVE_STATIC = @HAVE_STATIC@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ @@ -192,6 +199,10 @@ JSONTESTSUITEURL = @JSONTESTSUITEURL@ LD = @LD@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ +LIBCLANG_CFLAGS = @LIBCLANG_CFLAGS@ +LIBCLANG_CPPFLAGS = @LIBCLANG_CPPFLAGS@ +LIBCLANG_LDFLAGS = @LIBCLANG_LDFLAGS@ +LIBCLANG_LIBS = @LIBCLANG_LIBS@ LIBLTDL = @LIBLTDL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ @@ -200,8 +211,8 @@ LIBTOOL_VERSION = @LIBTOOL_VERSION@ LIBYAML_CFLAGS = @LIBYAML_CFLAGS@ LIBYAML_LIBS = @LIBYAML_LIBS@ LIPO = @LIPO@ +LLVM_CONFIG = @LLVM_CONFIG@ LN_S = @LN_S@ -LTDLDEPS = @LTDLDEPS@ LTDLINCL = @LTDLINCL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ @@ -301,7 +312,11 @@ shavedir = @shavedir@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ +target = @target@ target_alias = @target_alias@ +target_cpu = @target_cpu@ +target_os = @target_os@ +target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ diff --git a/Sources/Cfyaml/include/libfyaml.h b/Sources/Cfyaml/include/libfyaml.h index bf01077f7..e1c03c4ea 100644 --- a/Sources/Cfyaml/include/libfyaml.h +++ b/Sources/Cfyaml/include/libfyaml.h @@ -37,7 +37,7 @@ extern "C" { #include #include #include -#include +#include #if defined (__unix__) || (defined (__APPLE__) && defined (__MACH__)) #include @@ -73,9 +73,11 @@ struct fy_document_iterator; #if defined(__GNUC__) && __GNUC__ >= 4 #define FY_EXPORT __attribute__ ((visibility ("default"))) #define FY_DEPRECATED __attribute__ ((deprecated)) +#define FY_FORMAT(_t, _x, _y) __attribute__ ((format(_t, _x, _y))) #else #define FY_EXPORT /* nothing */ #define FY_DEPRECATED /* nothing */ +#define FY_FORMAT(_t, x, y) /* nothing */ #endif /* make a copy of an allocated string and return it on stack @@ -698,7 +700,8 @@ fy_library_version(void) * Returns: * The error type if greater or equal to zero, FYET_MAX otherwise */ -enum fy_error_type fy_string_to_error_type(const char *str); +enum fy_error_type fy_string_to_error_type(const char *str) + FY_EXPORT; /** * fy_error_type_to_string() - Convert an error type to string @@ -708,7 +711,8 @@ enum fy_error_type fy_string_to_error_type(const char *str); * Returns: * The string value of the error type or the empty string "" on error */ -const char *fy_error_type_to_string(enum fy_error_type type); +const char *fy_error_type_to_string(enum fy_error_type type) + FY_EXPORT; /** * fy_string_to_error_module() - Return the error module from a string @@ -718,7 +722,8 @@ const char *fy_error_type_to_string(enum fy_error_type type); * Returns: * The error type if greater or equal to zero, FYEM_MAX otherwise */ -enum fy_error_module fy_string_to_error_module(const char *str); +enum fy_error_module fy_string_to_error_module(const char *str) + FY_EXPORT; /** * fy_error_module_to_string() - Convert an error module to string @@ -728,7 +733,8 @@ enum fy_error_module fy_string_to_error_module(const char *str); * Returns: * The string value of the error module or the empty string "" on error */ -const char *fy_error_module_to_string(enum fy_error_module module); +const char *fy_error_module_to_string(enum fy_error_module module) + FY_EXPORT; /** * fy_event_is_implicit() - Check whether the given event is an implicit one @@ -988,6 +994,108 @@ bool fy_parser_get_stream_error(struct fy_parser *fyp) FY_EXPORT; +/** + * fy_parser_vlog() - Log using the parsers diagnostics printf style (va_arg) + * + * Output a log on the parser diagnostic output + * + * @fyp: The parser + * @type: The error type + * @fmt: The printf format string + * @ap: The argument list + */ +void +fy_parser_vlog(struct fy_parser *fyp, enum fy_error_type type, const char *fmt, va_list ap) + FY_EXPORT; + +/** + * fy_parser_log() - Log using the parsers diagnostics printf style + * + * Output a report on the parser's diagnostics + * + * @fyp: The parser + * @type: The error type + * @fmt: The printf format string + * @...: The extra arguments + */ +void +fy_parser_log(struct fy_parser *fyp, enum fy_error_type type, const char *fmt, ...) + FY_FORMAT(printf, 3, 4) + FY_EXPORT; + +#ifndef NDEBUG + +#define fy_parser_debug(_fyp, _fmt, ...) \ + fy_parser_log((_fyp), FYET_DEBUG, (_fmt) , ## __VA_ARGS__) +#else + +#define fy_parser_debug(_fyp, _fmt, ...) \ + do { } while(0) + +#endif + +#define fy_parser_info(_fyp, _fmt, ...) \ + fy_parser_log((_fyp), FYET_INFO, (_fmt) , ## __VA_ARGS__) +#define fy_parser_notice(_fyp, _fmt, ...) \ + fy_parser_log((_fyp), FYET_NOTICE, (_fmt) , ## __VA_ARGS__) +#define fy_parser_warning(_fyp, _fmt, ...) \ + fy_parser_log((_fyp), FYET_WARNING, (_fmt) , ## __VA_ARGS__) +#define fy_parser_error(_fyp, _fmt, ...) \ + fy_parser_log((_fyp), FYET_ERROR, (_fmt) , ## __VA_ARGS__) + +/** + * fy_parser_vreport() - Report using the parsers diagnostics printf style and mark token (va_arg) + * + * Output a report on the parser and indicate the token's position + * + * @fyp: The parser + * @type: The error type + * @fyt: The token + * @fmt: The printf format string + * @ap: The argument list + */ +void +fy_parser_vreport(struct fy_parser *fyp, enum fy_error_type type, struct fy_token *fyt, + const char *fmt, va_list ap) + FY_EXPORT; + +/** + * fy_parser_report() - Report using the parsers diagnostics printf style and mark token + * + * Output a report on the parser and indicate the token's position + * + * @fyp: The parser + * @type: The error type + * @fyt: The token + * @fmt: The printf format string + * @..: The extra arguments + */ +void +fy_parser_report(struct fy_parser *fyp, enum fy_error_type type, struct fy_token *fyt, + const char *fmt, ...) + FY_FORMAT(printf, 4, 5) + FY_EXPORT; + +#ifndef NDEBUG + +#define fy_parser_report_debug(_fyp, _fyt, _fmt, ...) \ + fy_parser_report((_fyp), FYET_DEBUG, (_fyt), (_fmt) , ## __VA_ARGS__) +#else + +#define fy_parser_report_debug(_fyp, _fyt, _fmt, ...) \ + do { } while(0) + +#endif + +#define fy_parser_report_info(_fyp, _fyt, _fmt, ...) \ + fy_parser_report((_fyp), FYET_INFO, (_fyt), (_fmt) , ## __VA_ARGS__) +#define fy_parser_report_notice(_fyp, _fyt, _fmt, ...) \ + fy_parser_report((_fyp), FYET_NOTICE, (_fyt), (_fmt) , ## __VA_ARGS__) +#define fy_parser_report_warning(_fyp, _fyt, _fmt, ...) \ + fy_parser_report((_fyp), FYET_WARNING, (_fyt), (_fmt) , ## __VA_ARGS__) +#define fy_parser_report_error(_fyp, _fyt, _fmt, ...) \ + fy_parser_report((_fyp), FYET_ERROR, (_fyt), (_fmt) , ## __VA_ARGS__) + /** * fy_token_scalar_style() - Get the style of a scalar token * @@ -1001,6 +1109,22 @@ enum fy_scalar_style fy_token_scalar_style(struct fy_token *fyt) FY_EXPORT; +/** + * fy_token_scalar_is_null() - Test whether the scalar is null (content) + * + * @fyt: The scalar token to check for NULLity. + * + * Note that this is different than null of the YAML type system. + * It is null as in null content. It is also different than an + * empty scalar. + * + * Returns: + * true if is a null scalar, false otherwise + */ +bool +fy_token_scalar_is_null(struct fy_token *fyt) + FY_EXPORT; + /** * fy_token_get_text() - Get text (and length of it) of a token * @@ -1577,6 +1701,7 @@ enum fy_emitter_write_type { * @FYECF_MODE_JSON_ONELINE: Emit using JSON mode (non type preserving, one line) * @FYECF_MODE_DEJSON: Emit YAML trying to pretify JSON * @FYECF_MODE_PRETTY: Emit YAML that tries to look good + * @FYECF_MODE_MANUAL: Emit YAML respecting all manual style hints (reformats if needed) * @FYECF_DOC_START_MARK_AUTO: Automatically generate document start markers if required * @FYECF_DOC_START_MARK_OFF: Do not generate document start markers * @FYECF_DOC_START_MARK_ON: Always generate document start markers @@ -1622,6 +1747,7 @@ enum fy_emitter_cfg_flags { FYECF_MODE_JSON_ONELINE = FYECF_MODE(6), FYECF_MODE_DEJSON = FYECF_MODE(7), FYECF_MODE_PRETTY = FYECF_MODE(8), + FYECF_MODE_MANUAL = FYECF_MODE(9), FYECF_DOC_START_MARK_AUTO = FYECF_DOC_START_MARK(0), FYECF_DOC_START_MARK_OFF = FYECF_DOC_START_MARK(1), FYECF_DOC_START_MARK_ON = FYECF_DOC_START_MARK(2), @@ -1813,6 +1939,107 @@ int fy_emit_event(struct fy_emitter *emit, struct fy_event *fye) FY_EXPORT; +/** + * fy_emit_vevent() - Queue (and possibly emit) an event using varargs + * + * Queue and output using the emitter. The format is identical to + * the one used in fy_emit_event_vcreate(). + * + * @emit: The emitter to use + * @type: The event type to create + * @ap: The variable argument list pointer. + * + * Returns: + * 0 on success, -1 on error + */ +int +fy_emit_vevent(struct fy_emitter *emit, enum fy_event_type type, va_list ap) + FY_EXPORT; + +/** + * fy_emit_eventf() - Queue (and possibly emit) an event using variable args + * + * Queue and output using the emitter. The format is identical to + * the one used in fy_emit_event_create(). + * + * @emit: The emitter to use + * @type: The event type to create + * @...: The optional extra arguments + * + * Returns: + * 0 on success, -1 on error + */ +int +fy_emit_eventf(struct fy_emitter *emit, enum fy_event_type type, ...) + FY_EXPORT; + +/** + * fy_emit_scalar_write() - Emit a scalar with write semantics + * + * Queue and output using the emitter a scalar using a standard + * write interface. + * + * @emit: The emitter to use + * @style: The scalar style to use + * @anchor: The anchor or NULL + * @tag: The tag or NULL + * @buf: Pointer to the buffer + * @count: The number of bytes to write + * + * Returns: + * 0 on success, -1 on error + */ +int +fy_emit_scalar_write(struct fy_emitter *fye, enum fy_scalar_style style, + const char *anchor, const char *tag, + const char *buf, size_t count) + FY_EXPORT; + +/** + * fy_emit_scalar_vprintf() - Emit a scalar with vprintf semantics + * + * Queue and output using the emitter a scalar using a standard + * vprintf interface. + * + * @emit: The emitter to use + * @style: The scalar style to use + * @anchor: The anchor or NULL + * @tag: The tag or NULL + * @fmt: The printf like format string + * @ap: The argument list + * + * Returns: + * 0 on success, -1 on error + */ +int +fy_emit_scalar_vprintf(struct fy_emitter *fye, enum fy_scalar_style style, + const char *anchor, const char *tag, + const char *fmt, va_list ap) + FY_EXPORT; + +/** + * fy_emit_scalar_printf() - Emit a scalar with printf semantics + * + * Queue and output using the emitter a scalar using a standard + * printf interface. + * + * @emit: The emitter to use + * @style: The scalar style to use + * @anchor: The anchor or NULL + * @tag: The tag or NULL + * @fmt: The printf like format string + * @...: The extra arguments + * + * Returns: + * 0 on success, -1 on error + */ +int +fy_emit_scalar_printf(struct fy_emitter *fye, enum fy_scalar_style style, + const char *anchor, const char *tag, + const char *fmt, ...) + FY_FORMAT(printf, 5, 6) + FY_EXPORT; + /** * fy_emit_event_from_parser() - Queue (and possibly emit) an event * generated by the parser. @@ -2665,7 +2892,7 @@ fy_document_vbuildf(const struct fy_parse_cfg *cfg, */ struct fy_document * fy_document_buildf(const struct fy_parse_cfg *cfg, const char *fmt, ...) - __attribute__((format(printf, 2, 3))) + FY_FORMAT(printf, 2, 3) FY_EXPORT; /** @@ -2700,6 +2927,36 @@ fy_flow_document_build_from_string(const struct fy_parse_cfg *cfg, const char *str, size_t len, size_t *consumed) FY_EXPORT; +/** + * fy_block_document_build_from_string() - Create a document using the provided YAML source. + * + * Create a document parsing the provided string as a YAML source. + * + * The document is a block document, and it terminates when indentation + * appears to do so. + * + * Example of block documents: + * + * this-is-yaml + * foo: bar <- starts here + * baz: + * - 1 + * - 2 + * this-is-yaml-no-more + * + * @cfg: The parse configuration to use or NULL for the default. + * @str: The YAML source to use. + * @len: The length of the string (or -1 if '\0' terminated) + * @consumed: A pointer to the consumed amount + * + * Returns: + * The created document, or NULL on error. + */ +struct fy_document * +fy_block_document_build_from_string(const struct fy_parse_cfg *cfg, + const char *str, size_t len, size_t *consumed) + FY_EXPORT; + /** * fy_document_root() - Return the root node of the document * @@ -2762,6 +3019,36 @@ enum fy_node_style fy_node_get_style(struct fy_node *fyn) FY_EXPORT; +/** + * fy_node_get_start_token() - Get the node start token + * + * Retrieve the node start token. + * + * For scalars, this is the same as the end token. + * + * @fyn: The node + * + * Returns: + * The node start token + */ +struct fy_token * fy_node_get_start_token(struct fy_node *fyn) + FY_EXPORT; + +/** + * fy_node_get_end_token() - Get the node end token + * + * Retrieve the node end token. + * + * For scalars, this is the same as the start token. + * + * @fyn: The node + * + * Returns: + * The node end token + */ + struct fy_token * fy_node_get_end_token(struct fy_node *fyn) + FY_EXPORT; + /** * fy_node_is_scalar() - Check whether the node is a scalar * @@ -3050,7 +3337,7 @@ fy_node_vbuildf(struct fy_document *fyd, const char *fmt, va_list ap) */ struct fy_node * fy_node_buildf(struct fy_document *fyd, const char *fmt, ...) - __attribute__((format(printf, 2, 3))) + FY_FORMAT(printf, 2, 3) FY_EXPORT; /** @@ -3384,8 +3671,8 @@ fy_node_create_vscalarf(struct fy_document *fyd, const char *fmt, va_list ap) */ struct fy_node * fy_node_create_scalarf(struct fy_document *fyd, const char *fmt, ...) - FY_EXPORT - __attribute__((format(printf, 2, 3))); + FY_FORMAT(printf, 2, 3) + FY_EXPORT; /** * fy_node_create_sequence() - Create an empty sequence node. @@ -3437,6 +3724,20 @@ int fy_node_set_tag(struct fy_node *fyn, const char *data, size_t len) FY_EXPORT; +/** + * fy_node_remove_tag() - Remove the tag of node + * + * Remove the tag of a node. + * + * @fyn: The node to remove it's tag. + * + * Returns: + * 0 on success, -1 on error. + */ +int +fy_node_remove_tag(struct fy_node *fyn) + FY_EXPORT; + /** * fy_node_get_tag() - Get the tag of the node * @@ -3631,7 +3932,8 @@ fy_node_sequence_append(struct fy_node *fyn_seq, struct fy_node *fyn) * Returns: * 0 on success, -1 on error */ -int fy_node_sequence_prepend(struct fy_node *fyn_seq, struct fy_node *fyn); +int fy_node_sequence_prepend(struct fy_node *fyn_seq, struct fy_node *fyn) + FY_EXPORT; /** * fy_node_sequence_insert_before() - Insert a node item before another @@ -4219,7 +4521,7 @@ int fy_node_vscanf(struct fy_node *fyn, const char *fmt, va_list ap); */ int fy_node_scanf(struct fy_node *fyn, const char *fmt, ...) - __attribute__((format(scanf, 2, 3))) + FY_FORMAT(scanf, 2, 3) FY_EXPORT; /** @@ -4270,7 +4572,7 @@ fy_document_vscanf(struct fy_document *fyd, const char *fmt, va_list ap) */ int fy_document_scanf(struct fy_document *fyd, const char *fmt, ...) - __attribute__((format(scanf, 2, 3))) + FY_FORMAT(scanf, 2, 3) FY_EXPORT; /** @@ -4566,7 +4868,8 @@ fy_node_set_vanchorf(struct fy_node *fyn, const char *fmt, va_list ap) */ int fy_node_set_anchorf(struct fy_node *fyn, const char *fmt, ...) - FY_EXPORT __attribute__((format(printf, 2, 3))); + FY_FORMAT(printf, 2, 3) + FY_EXPORT; /** * fy_node_remove_anchor() - Remove an anchor @@ -4834,7 +5137,7 @@ fy_node_vreport(struct fy_node *fyn, enum fy_error_type type, void fy_node_report(struct fy_node *fyn, enum fy_error_type type, const char *fmt, ...) - __attribute__((format(printf, 3, 4))) + FY_FORMAT(printf, 3, 4) FY_EXPORT; /** @@ -4885,7 +5188,7 @@ void fy_node_override_report(struct fy_node *fyn, enum fy_error_type type, const char *file, int line, int column, const char *fmt, ...) - __attribute__((format(printf, 6, 7))) + FY_FORMAT(printf, 6, 7) FY_EXPORT; typedef void (*fy_diag_output_fn)(struct fy_diag *diag, void *user, @@ -5164,8 +5467,8 @@ fy_diag_vprintf(struct fy_diag *diag, const char *fmt, va_list ap) */ int fy_diag_printf(struct fy_diag *diag, const char *fmt, ...) - FY_EXPORT - __attribute__((format(printf, 2, 3))); + FY_FORMAT(printf, 2, 3) + FY_EXPORT; /** * struct fy_diag_ctx - The diagnostics context @@ -5231,8 +5534,8 @@ fy_vdiag(struct fy_diag *diag, const struct fy_diag_ctx *fydc, int fy_diagf(struct fy_diag *diag, const struct fy_diag_ctx *fydc, const char *fmt, ...) - FY_EXPORT - __attribute__((format(printf, 3, 4))); + FY_FORMAT(printf, 3, 4) + FY_EXPORT; #define fy_diag_diag(_diag, _level, _fmt, ...) \ ({ \ @@ -5270,58 +5573,58 @@ fy_diagf(struct fy_diag *diag, const struct fy_diag_ctx *fydc, fy_diag_diag((_diag), FYET_ERROR, (_fmt) , ## __VA_ARGS__) /** - * fy_diag_node_vreport() - Report about a node vprintf style using + * fy_diag_token_vreport() - Report about a token vprintf style using * the given diagnostic object * - * Output a report about the given node via the specific - * error type, and using the reporting configuration of the node's + * Output a report about the given token via the specific + * error type, and using the reporting configuration of the token's * document. * * @diag: The diag object - * @fyn: The node + * @fyt: The token * @type: The error type * @fmt: The printf format string * @ap: The argument list */ void -fy_diag_node_vreport(struct fy_diag *diag, struct fy_node *fyn, +fy_diag_token_vreport(struct fy_diag *diag, struct fy_token *fyt, enum fy_error_type type, const char *fmt, va_list ap) FY_EXPORT; /** - * fy_diag_node_report() - Report about a node printf style using + * fy_diag_token_report() - Report about a token printf style using * the given diagnostic object * - * Output a report about the given node via the specific - * error type, and using the reporting configuration of the node's + * Output a report about the given token via the specific + * error type, and using the reporting configuration of the token's * document. * * @diag: The diag object - * @fyn: The node + * @fyt: The token * @type: The error type * @fmt: The printf format string * @...: The extra arguments. */ void -fy_diag_node_report(struct fy_diag *diag, struct fy_node *fyn, +fy_diag_token_report(struct fy_diag *diag, struct fy_token *fye, enum fy_error_type type, const char *fmt, ...) - __attribute__((format(printf, 4, 5))) + FY_FORMAT(printf, 4, 5) FY_EXPORT; /** - * fy_diag_node_override_vreport() - Report about a node vprintf style, + * fy_diag_token_override_vreport() - Report about a token vprintf style, * overriding file, line and column info using * the given diagnostic object * - * Output a report about the given node via the specific - * error type, and using the reporting configuration of the node's + * Output a report about the given token via the specific + * error type, and using the reporting configuration of the token's * document. This method will use the overrides provided in order * to massage the reporting information. * If @file is NULL, no file location will be reported. * If either @line or @column is negative no location will be reported. * * @diag: The diag object - * @fyn: The node + * @fyt: The token * @type: The error type * @file: The file override * @line: The line override @@ -5330,25 +5633,25 @@ fy_diag_node_report(struct fy_diag *diag, struct fy_node *fyn, * @ap: The argument list */ void -fy_diag_node_override_vreport(struct fy_diag *diag, struct fy_node *fyn, +fy_diag_token_override_vreport(struct fy_diag *diag, struct fy_token *fyt, enum fy_error_type type, const char *file, int line, int column, const char *fmt, va_list ap) FY_EXPORT; /** - * fy_diag_node_override_report() - Report about a node printf style, + * fy_diag_token_override_report() - Report about a token printf style, * overriding file, line and column info using * the given diagnostic object * - * Output a report about the given node via the specific - * error type, and using the reporting configuration of the node's + * Output a report about the given token via the specific + * error type, and using the reporting configuration of the token's * document. This method will use the overrides provided in order * to massage the reporting information. * If @file is NULL, no file location will be reported. * If either @line or @column is negative no location will be reported. * * @diag: The diag object - * @fyn: The node + * @fyt: The token * @type: The error type * @file: The file override * @line: The line override @@ -5357,43 +5660,137 @@ fy_diag_node_override_vreport(struct fy_diag *diag, struct fy_node *fyn, * @...: The extra arguments. */ void -fy_diag_node_override_report(struct fy_diag *diag, struct fy_node *fyn, +fy_diag_token_override_report(struct fy_diag *diag, struct fy_token *fyt, enum fy_error_type type, const char *file, int line, int column, const char *fmt, ...) - __attribute__((format(printf, 7, 8))) + FY_FORMAT(printf, 7, 8) FY_EXPORT; /** - * fy_diag_errors_iterate() - Iterate over the errors of a diagnostic object - * - * This method iterates over all the errors collected on the diagnostic object. - * The start of the iteration is signalled by a NULL in \*prevp. + * fy_diag_node_vreport() - Report about a node vprintf style using + * the given diagnostic object * - * @diag: The diagnostic object - * @prevp: The previous result iterator + * Output a report about the given node via the specific + * error type, and using the reporting configuration of the node's + * document. * - * Returns: - * The next errors or NULL when there are not any more. + * @diag: The diag object + * @fyn: The node + * @type: The error type + * @fmt: The printf format string + * @ap: The argument list */ -struct fy_diag_error * -fy_diag_errors_iterate(struct fy_diag *diag, void **prevp) +void +fy_diag_node_vreport(struct fy_diag *diag, struct fy_node *fyn, + enum fy_error_type type, const char *fmt, va_list ap) FY_EXPORT; /** - * enum fy_path_parse_cfg_flags - Path parse configuration flags + * fy_diag_node_report() - Report about a node printf style using + * the given diagnostic object * - * These flags control the operation of the path parse + * Output a report about the given node via the specific + * error type, and using the reporting configuration of the node's + * document. * - * @FYPPCF_QUIET: Quiet, do not output any information messages - * @FYPPCF_DISABLE_RECYCLING: Disable recycling optimization - * @FYPPCF_DISABLE_ACCELERATORS: Disable use of access accelerators (saves memory) + * @diag: The diag object + * @fyn: The node + * @type: The error type + * @fmt: The printf format string + * @...: The extra arguments. */ -enum fy_path_parse_cfg_flags { - FYPPCF_QUIET = FY_BIT(0), - FYPPCF_DISABLE_RECYCLING = FY_BIT(1), - FYPPCF_DISABLE_ACCELERATORS = FY_BIT(2), -}; - +void +fy_diag_node_report(struct fy_diag *diag, struct fy_node *fyn, + enum fy_error_type type, const char *fmt, ...) + FY_FORMAT(printf, 4, 5) + FY_EXPORT; + +/** + * fy_diag_node_override_vreport() - Report about a node vprintf style, + * overriding file, line and column info using + * the given diagnostic object + * + * Output a report about the given node via the specific + * error type, and using the reporting configuration of the node's + * document. This method will use the overrides provided in order + * to massage the reporting information. + * If @file is NULL, no file location will be reported. + * If either @line or @column is negative no location will be reported. + * + * @diag: The diag object + * @fyn: The node + * @type: The error type + * @file: The file override + * @line: The line override + * @column: The column override + * @fmt: The printf format string + * @ap: The argument list + */ +void +fy_diag_node_override_vreport(struct fy_diag *diag, struct fy_node *fyn, + enum fy_error_type type, const char *file, + int line, int column, const char *fmt, va_list ap) + FY_EXPORT; + +/** + * fy_diag_node_override_report() - Report about a node printf style, + * overriding file, line and column info using + * the given diagnostic object + * + * Output a report about the given node via the specific + * error type, and using the reporting configuration of the node's + * document. This method will use the overrides provided in order + * to massage the reporting information. + * If @file is NULL, no file location will be reported. + * If either @line or @column is negative no location will be reported. + * + * @diag: The diag object + * @fyn: The node + * @type: The error type + * @file: The file override + * @line: The line override + * @column: The column override + * @fmt: The printf format string + * @...: The extra arguments. + */ +void +fy_diag_node_override_report(struct fy_diag *diag, struct fy_node *fyn, + enum fy_error_type type, const char *file, + int line, int column, const char *fmt, ...) + FY_FORMAT(printf, 7, 8) + FY_EXPORT; + +/** + * fy_diag_errors_iterate() - Iterate over the errors of a diagnostic object + * + * This method iterates over all the errors collected on the diagnostic object. + * The start of the iteration is signalled by a NULL in \*prevp. + * + * @diag: The diagnostic object + * @prevp: The previous result iterator + * + * Returns: + * The next errors or NULL when there are not any more. + */ +struct fy_diag_error * +fy_diag_errors_iterate(struct fy_diag *diag, void **prevp) + FY_EXPORT; + +/** + * enum fy_path_parse_cfg_flags - Path parse configuration flags + * + * These flags control the operation of the path parse + * + * @FYPPCF_QUIET: Quiet, do not output any information messages + * @FYPPCF_DISABLE_RECYCLING: Disable recycling optimization + * @FYPPCF_DISABLE_ACCELERATORS: Disable use of access accelerators (saves memory) + */ +enum fy_path_parse_cfg_flags { + FYPPCF_QUIET = FY_BIT(0), + FYPPCF_DISABLE_RECYCLING = FY_BIT(1), + FYPPCF_DISABLE_ACCELERATORS = FY_BIT(2), +}; + /** * struct fy_path_parse_cfg - path parser configuration structure. * @@ -5484,7 +5881,8 @@ fy_path_parse_expr_from_string(struct fy_path_parser *fypp, */ struct fy_path_expr * fy_path_expr_build_from_string(const struct fy_path_parse_cfg *pcfg, - const char *str, size_t len); + const char *str, size_t len) + FY_EXPORT; /** * fy_path_expr_free() - Free a path expression @@ -5512,7 +5910,8 @@ fy_path_expr_free(struct fy_path_expr *expr) */ void fy_path_expr_dump(struct fy_path_expr *expr, struct fy_diag *diag, - enum fy_error_type errlevel, int level, const char *banner); + enum fy_error_type errlevel, int level, const char *banner) + FY_EXPORT; /** * fy_path_expr_to_document() - Converts the path expression to a YAML document @@ -6024,6 +6423,26 @@ const char * fy_tag_token_suffix(struct fy_token *fyt, size_t *lenp) FY_EXPORT; +/** + * fy_tag_token_short() - Get the short tag of the tag token + * + * Retrieve the short tag contents. The short tag is the same + * one that will need to be emitted. + * Will fail if token is not a tag token, or if a memory error happens. + * + * @fyt: The tag token out of which the short pointer + * will be returned. + * @lenp: Pointer to a variable that will hold the returned length + * + * Returns: + * A pointer to the text representation of the short tag, while + * @lenp will be assigned the character length of said representation. + * NULL in case of an error. + */ +const char * +fy_tag_token_short(struct fy_token *fyt, size_t *lenp) + FY_EXPORT; + /** * fy_tag_token_handle0() - Get the handle contained in the * tag token as zero terminated string @@ -6043,6 +6462,24 @@ const char * fy_tag_token_handle0(struct fy_token *fyt) FY_EXPORT; +/** + * fy_tag_token_short0() - Get the short tag of the tag token as zero + * terminated string. + * + * Retrieve the short tag contents. The short tag is the same + * one that will need to be emitted. + * Will fail if token is not a tag token, or if a memory error happens. + * + * @fyt: The tag token out of which the short pointer will be returned. + * + * Returns: + * A pointer to the null terminated text representation of the short tag. + * NULL in case of an error. + */ +const char * +fy_tag_token_short0(struct fy_token *fyt) + FY_EXPORT; + /** * fy_tag_token_suffix0() - Get the suffix contained in the * tag token as zero terminated string @@ -6373,6 +6810,23 @@ const struct fy_tag * fy_document_state_tag_directive_iterate(struct fy_document_state *fyds, void **prevp) FY_EXPORT; +/** + * fy_document_state_tag_directives() - Get all the tag directives in a + * malloc'ed array + * + * Return all the tag directives in a dynamically allocated area. + * Must be free()'d when not in use. + * + * @fyds: The document state + * + * Returns: + * An array of fy_tag pointer structures, terminated with a NULL pointer + * NULL on error + */ +struct fy_tag ** +fy_document_state_tag_directives(struct fy_document_state *fyds) + FY_EXPORT; + /** * fy_document_state_tag_is_default() - Test whether the given tag is a default one * @@ -6640,6 +7094,7 @@ fy_emitter_get_document_state(struct fy_emitter *emit) * * @emit: The emitter * @type: The event type to create + * @...: The optional extra arguments * * Returns: * The created event or NULL in case of an error @@ -7106,6 +7561,54 @@ void fy_path_component_set_sequence_user_data(struct fy_path_component *fypc, void *data) FY_EXPORT; +/** + * fy_path_get_parent_user_data() - Return the userdata of the parent collection + * + * @fypp: The path + * + * Returns: + * The user data associated with the parent collection of the path, or NULL if no path + */ +void * +fy_path_get_parent_user_data(struct fy_path *path) + FY_EXPORT; + +/** + * fy_path_set_parent_user_data() - Set the user data associated with the parent collection + * + * Note, no error condition if not a path + * + * @fypp: The path + * @data: The data to set as parent collection data + */ +void +fy_path_set_parent_user_data(struct fy_path *path, void *data) + FY_EXPORT; + +/** + * fy_path_get_last_user_data() - Return the userdata of the last collection + * + * @fypp: The path + * + * Returns: + * The user data associated with the last collection of the path, or NULL if no path + */ +void * +fy_path_get_last_user_data(struct fy_path *path) + FY_EXPORT; + +/** + * fy_path_set_last_user_data() - Set the user data associated with the last collection + * + * Note, no error condition if not a path + * + * @fypp: The path + * @data: The data to set as last collection data + */ +void +fy_path_set_last_user_data(struct fy_path *path, void *data) + FY_EXPORT; + /** * fy_path_last_component() - Get the very last component of a path * @@ -7306,6 +7809,445 @@ bool fy_document_iterator_get_error(struct fy_document_iterator *fydi) FY_EXPORT; +/* + * The libfyaml's push-pull thread implementation + * + */ + +/* opaque types for the user */ +struct fy_thread_pool; +struct fy_thread; +struct fy_work_pool; + +/** + * typedef fy_work_exec_fn - Work exec function + * + * The callback executed on work submission + * + * @arg: The argument to the method + * + */ +typedef void (*fy_work_exec_fn)(void *arg); + +/** + * typedef fy_work_check_fn - Work check function + * + * Work checker function to decide if it's worth to + * offload to a thread. + * + * @arg: The argument to the method + * + * Returns: + * true if it should offload to thread, false otherwise + * + */ +typedef bool (*fy_work_check_fn)(const void *arg); + +/** + * struct fy_thread_work - Work submitted to a thread for execution + * + * @fn: The execution function for this work + * @arg: The argument to the fn + * @wp: Used internally, must be set to NULL on entry + * + * This is the structure describing the work submitted + * to a thread for execution. + */ +struct fy_thread_work { + fy_work_exec_fn fn; + void *arg; + struct fy_work_pool *wp; +}; + +/* + * enum fy_thread_pool_cfg_flags - Thread pool configuration flags + * + * These flags control the operation of the thread pool. + * For now only the steal mode flag is defined. + * + * @FYTPCF_STEAL_MODE: Enable steal mode for the thread pool + */ +enum fy_thread_pool_cfg_flags { + FYTPCF_STEAL_MODE = FY_BIT(0), +}; + +/** + * struct fy_thread_pool_cfg - thread pool configuration structure. + * + * Argument to the fy_thread_pool_create() method. + * + * @flags: Thread pool configuration flags + * @num_threads: Number of threads, if 0 == online CPUs + * @userdata: A userdata pointer + */ +struct fy_thread_pool_cfg { + enum fy_thread_pool_cfg_flags flags; + unsigned int num_threads; + void *userdata; +}; + +/** + * fy_thread_pool_create() - Create a thread pool + * + * Creates a thread pool with its configuration @cfg + * The thread pool may be destroyed by a corresponding call to + * fy_thread_pool_destroy(). + * + * @cfg: The configuration for the thread pool + * + * Returns: + * A pointer to the thread pool or NULL in case of an error. + */ +struct fy_thread_pool * +fy_thread_pool_create(const struct fy_thread_pool_cfg *cfg) + FY_EXPORT; + +/** + * fy_thread_pool_destroy() - Destroy the given thread pool + * + * Destroy a thread pool created earlier via fy_thread_pool_create(). + * Note that this function will block until all threads + * of the pool are destroyed. + * + * @tp: The thread pool to destroy + */ +void +fy_thread_pool_destroy(struct fy_thread_pool *tp) + FY_EXPORT; + +/** + * fy_thread_pool_get_num_threads() - Get the number of threads + * + * Returns the actual number of created threads. + * + * @tp: The thread pool + * + * Returns: + * > 0 for the number of actual threads created, + * -1 on error + */ +int +fy_thread_pool_get_num_threads(struct fy_thread_pool *tp) + FY_EXPORT; + +/** + * fy_thread_pool_get_cfg() - Get the configuration of a thread pool + * + * @tp: The thread pool + * + * Returns: + * The configuration of the thread pool + */ +const struct fy_thread_pool_cfg * +fy_thread_pool_get_cfg(struct fy_thread_pool *tp) + FY_EXPORT; + +/* + * fy_thread_reserve() - Reserve a thread from the pool. + * + * Reserve a thread from the pool and return it. + * Note this is only valid for a non-work stealing thread pool. + * You release the thread again via a call to fy_thread_unreserve. + * + * @tp: The thread pool + * + * Returns: + * A reserved thread if not NULL, NULL if no threads are available. + */ +struct fy_thread * +fy_thread_reserve(struct fy_thread_pool *tp) + FY_EXPORT; + +/* + * fy_thread_unreserve() - Unreserve a previously reserved thread + * + * Unreserve a thread previously reserved via a call to fy_thread_reserve() + * Note this is only valid for a non-work stealing thread pool. + * + * @t: The thread + */ +void +fy_thread_unreserve(struct fy_thread *t) + FY_EXPORT; + +/* + * fy_thread_submit_work() - Submit work for execution + * + * Submit work for execution. If successful the thread + * will start executing the work in parallel with the + * calling thread. You can wait for the thread to + * terminate via a call to fy_thread_wait_work(). + * The thread must have been reserved earlier via fy_thread_reserve() + * + * Note this is only valid for a non-work stealing thread pool. + * + * @t: The thread + * @work: The work + * + * Returns: + * 0 if work has been submitted, -1 otherwise. + */ +int +fy_thread_submit_work(struct fy_thread *t, struct fy_thread_work *work) + FY_EXPORT; + +/* + * fy_thread_wait_work() - Wait for completion of submitted work + * + * Wait until submitted work to the thread has finished. + * Note this is only valid for a non-work stealing thread pool. + * + * @t: The thread + * + * Returns: + * 0 if work finished, -1 on error. + */ +int +fy_thread_wait_work(struct fy_thread *t) + FY_EXPORT; + +/* + * fy_thread_work_join() - Submit works for execution and wait + * + * Submit works for possible parallel execution. If no offloading + * is possible at the time execute in the current context. + * It is possible to use in both stealing and non-stealing mode + * with the difference being that stealing mode is about 30% faster. + * + * @tp: The thread pool + * @works: Pointer to an array of works sized @work_count + * @work_count: The size of the @works array + * @check_fn: Pointer to a check function, or NULL for no checks + */ +void +fy_thread_work_join(struct fy_thread_pool *tp, + struct fy_thread_work *works, size_t work_count, + fy_work_check_fn check_fn) + FY_EXPORT; + +/* + * fy_thread_args_join() - Execute function in parallel using arguments as pointers + * + * Execute @fn possibly in parallel using the threads in the thread pool. + * The arguments of the function are provided by the args array. + * + * @tp: The thread pool + * @fn: The function to execute in parallel + * @check_fn: Pointer to a check function, or NULL for no checks + * @args: An args array sized @count of argument pointers + * @count: The count of the args array items + */ +void +fy_thread_args_join(struct fy_thread_pool *tp, + fy_work_exec_fn, fy_work_check_fn check_fn, + void **args, size_t count) + FY_EXPORT; + +/* + * fy_thread_arg_array_join() - Execute function in parallel using argument array + * + * Execute @fn possibly in parallel using the threads in the thread pool. + * The arguments of the function are provided by the args array. + * + * @tp: The thread pool + * @fn: The function to execute in parallel + * @check_fn: Pointer to a check function, or NULL for no checks + * @args: An args array of @argsize items + * @argsize: The size of each argument array item + * @count: The count of the args array items + */ +void +fy_thread_arg_array_join(struct fy_thread_pool *tp, + fy_work_exec_fn fn, fy_work_check_fn check_fn, + void *args, size_t argsize, size_t count) + FY_EXPORT; + +/* + * fy_thread_arg_array_join() - Execute function in parallel with the same argument + * + * Execute @fn possibly in parallel using the threads in the thread pool. + * The argument of the functions is the same. + * + * @tp: The thread pool + * @fn: The function to execute in parallel + * @arg: The common argument + * @count: The count of executions + */ +void +fy_thread_arg_join(struct fy_thread_pool *tp, + fy_work_exec_fn fn, fy_work_check_fn check_fn, + void *arg, size_t count) + FY_EXPORT; + +/* + * Minimal exposing of internal BLAKE3 implementation + * + */ + +/* BLAKE3 key length */ +#define FY_BLAKE3_KEY_LEN 32 +/* BLAKE3 output length */ +#define FY_BLAKE3_OUT_LEN 32 + +/* opaque BLAKE3 hasher type for the user*/ +struct fy_blake3_hasher; + +/** + * fy_blake3_backend_iterate() - Iterate over the supported BLAKE3 backends + * + * This method iterates over the supported BLAKE3 backends. + * The start of the iteration is signalled by a NULL in \*prevp. + * + * The default backend is always the last in sequence, so for + * example if the order is [ "portable", "sse2", NULL ] the + * default is "sse2". + * + * @prevp: The previous backend pointer, or NULL at start + * + * Returns: + * The next backend or NULL at the end. + */ +const char * +fy_blake3_backend_iterate(const char **prevp) + FY_EXPORT; + +/** + * struct fy_blake3_hasher_cfg - BLAKE3 hasher configuration + * + * Argument to the fy_blake3_hasher_create() method which + * is the fyaml's user facing BLAKE3 API. + * It is very minimal, on purpose, since it's meant to be + * exposing a full blown BLAKE3 API. + * + * @backend: NULL for default, or a specific backend name + * @file_buffer: Use this amount of buffer for buffering, zero for default + * @mmap_min_chunk: Minimum chunk size for mmap case + * @mmap_max_chunk: Maximum chunk size for mmap case + * @no_mmap: Disable mmap for file access + * @key: pointer to a FY_BLAKE3_KEY_LEN area when in keyed mode. + * NULL otherwise. + * @context: pointer to a context when in key derivation mode. + * NULL otherwise. + * @context_len: The size of the context when in key derivation mode. + * 0 otherwise. + * @tp: The thread pool to use, if NULL, create a private one + * @num_threads: Number of threads to use + * - 0 means default: NUM_CPUS * 3 / 2 + * - > 0 specific number of threads + * - -1 disable threading entirely + */ +struct fy_blake3_hasher_cfg { + const char *backend; + size_t file_buffer; + size_t mmap_min_chunk; + size_t mmap_max_chunk; + bool no_mmap; + const uint8_t *key; + const void *context; + size_t context_len; + struct fy_thread_pool *tp; + int num_threads; +}; + +/** + * fy_blake3_hasher_create() - Create a BLAKE3 hasher object. + * + * Creates a BLAKE3 hasher with its configuration @cfg + * The hasher may be destroyed by a corresponding call to + * fy_blake3_hasher_destroy(). + * + * @cfg: The configuration for the BLAKE3 hasher + * + * Returns: + * A pointer to the BLAKE3 hasher or NULL in case of an error. + */ +struct fy_blake3_hasher * +fy_blake3_hasher_create(const struct fy_blake3_hasher_cfg *cfg) + FY_EXPORT; + +/** + * fy_blake3_hasher_destroy() - Destroy the given BLAKE3 hasher + * + * Destroy a BLAKE3 hasher created earlier via fy_blake3_hasher_create(). + * + * @fyh: The BLAKE3 hasher to destroy + */ +void +fy_blake3_hasher_destroy(struct fy_blake3_hasher *fyh) + FY_EXPORT; + +/** + * fy_blake3_hasher_update() - Update the BLAKE3 hasher state with the given input + * + * Updates the BLAKE3 hasher state by hashing the given input. + * + * @fyh: The BLAKE3 hasher + * @input: Pointer to the input + * @input_len: Size of the input in bytes + */ +void +fy_blake3_hasher_update(struct fy_blake3_hasher *fyh, const void *input, size_t input_len) + FY_EXPORT; + +/** + * fy_blake3_hasher_finalize() - Finalize the hash and get output + * + * Finalizes the BLAKE3 hasher and returns the output + * + * @fyh: The BLAKE3 hasher + * + * Returns: + * A pointer to the BLAKE3 output (sized FY_BLAKE3_OUT_LEN), or NULL + * in case of an error. + */ +const uint8_t * +fy_blake3_hasher_finalize(struct fy_blake3_hasher *fyh) + FY_EXPORT; + +/** + * fy_blake3_hasher_reset() - Resets the hasher + * + * Resets the hasher for re-use + * + * @fyh: The BLAKE3 hasher + */ +void +fy_blake3_hasher_reset(struct fy_blake3_hasher *fyh) + FY_EXPORT; + +/** + * fy_blake3_hash() - BLAKE3 hash a memory area + * + * Hash a memory area and return the BLAKE3 output. + * + * @fyh: The BLAKE3 hasher + * @mem: Pointer to the memory to use + * @size: The size of the memory in bytes + * + * Returns: + * A pointer to the BLAKE3 output (sized FY_BLAKE3_OUT_LEN), or NULL + * in case of an error. + */ +const uint8_t * +fy_blake3_hash(struct fy_blake3_hasher *fyh, const void *mem, size_t size) + FY_EXPORT; + +/** + * fy_blake3_hash_file() - BLAKE3 hash a file. + * + * Hash the given file (possibly using mmap) + * + * @fyh: The BLAKE3 hasher + * @filename: The filename + * + * Returns: + * A pointer to the BLAKE3 output (sized FY_BLAKE3_OUT_LEN), or NULL + * in case of an error. + */ +const uint8_t * +fy_blake3_hash_file(struct fy_blake3_hasher *fyh, const char *filename) + FY_EXPORT; + #ifdef __cplusplus } #endif diff --git a/Sources/Cfyaml/libfyaml.pc b/Sources/Cfyaml/libfyaml.pc index b32bb11fa..aa57276ae 100644 --- a/Sources/Cfyaml/libfyaml.pc +++ b/Sources/Cfyaml/libfyaml.pc @@ -5,6 +5,6 @@ includedir=${prefix}/include Name: libfyaml Description: Fancy YAML 1.3 parser library -Version: 0.7.12 -Libs: -L${libdir} -lfyaml -Cflags: -I${includedir} -D_THREAD_SAFE -pthread +Version: 0.9 +Libs: -L${libdir} -lpthread -lfyaml +Cflags: -I${includedir} -D_THREAD_SAFE -pthread diff --git a/Sources/Cfyaml/libfyaml.pc.in b/Sources/Cfyaml/libfyaml.pc.in index cde577a68..3ca5d427f 100644 --- a/Sources/Cfyaml/libfyaml.pc.in +++ b/Sources/Cfyaml/libfyaml.pc.in @@ -6,5 +6,5 @@ includedir=@includedir@ Name: libfyaml Description: Fancy YAML 1.3 parser library Version: @PACKAGE_VERSION@ -Libs: -L${libdir} -lfyaml @PTHREAD_LIBS@ -Cflags: -I${includedir} @PTHREAD_CFLAGS@ +Libs: -L${libdir} @ASAN_LIBS@ @PTHREAD_LIBS@ -lfyaml +Cflags: -I${includedir} @ASAN_CFLAGS@ @PTHREAD_CFLAGS@ diff --git a/Sources/Cfyaml/libtool b/Sources/Cfyaml/libtool index bad1f728d..fadb7d013 100755 --- a/Sources/Cfyaml/libtool +++ b/Sources/Cfyaml/libtool @@ -1,5 +1,5 @@ #! /bin/sh -# Generated automatically by config.status (libfyaml) 0.7.12 +# Generated automatically by config.status (libfyaml) 0.9 # Libtool was configured on host Kevins-Mac-Studio.local: # NOTE: Changes made to this file will be lost: look at ltmain.sh. @@ -37,19 +37,19 @@ available_tags='CXX ' # ### BEGIN LIBTOOL CONFIG +# Which release of libtool.m4 was used? +macro_version=2.4.7 +macro_revision=2.4.7 + # Assembler program. AS="as" # DLL creation program. -DLLTOOL="dlltool" +DLLTOOL="false" # Object dumper program. OBJDUMP="objdump" -# Which release of libtool.m4 was used? -macro_version=2.4.7 -macro_revision=2.4.7 - # Whether or not to build shared libraries. build_libtool_libs=yes @@ -76,13 +76,13 @@ PATH_SEPARATOR=":" # The host system. host_alias= -host=aarch64-apple-darwin22.2.0 -host_os=darwin22.2.0 +host=aarch64-apple-darwin23.4.0 +host_os=darwin23.4.0 # The build system. build_alias= -build=aarch64-apple-darwin22.2.0 -build_os=darwin22.2.0 +build=aarch64-apple-darwin23.4.0 +build_os=darwin23.4.0 # A sed program that does not truncate output. SED="/usr/bin/sed" @@ -174,7 +174,7 @@ lock_old_archive_extraction=yes LTCC="/bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave cc gcc" # LTCC compiler flags. -LTCFLAGS=" -Wall -Wsign-compare -O2" +LTCFLAGS="-D_THREAD_SAFE -pthread -Wall -Wsign-compare -fvisibility=hidden -O2" # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe="/usr/bin/sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*_\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 _\\2 \\2/p' | /usr/bin/sed '/ __gnu_lto/d'" @@ -291,7 +291,7 @@ finish_eval="" hardcode_into_libs=no # Compile-time system search path for libraries. -sys_lib_search_path_spec="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.0 /usr/local/lib" +sys_lib_search_path_spec="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0 /usr/local/lib" # Detected run-time system search path for libraries. sys_lib_dlsearch_path_spec="/usr/local/lib /lib /usr/lib" @@ -366,8 +366,8 @@ old_archive_from_new_cmds="" old_archive_from_expsyms_cmds="" # Commands used to build a shared archive. -archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring \$single_module" -archive_expsym_cmds="/usr/bin/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 \$single_module \$wl-exported_symbols_list,\$output_objdir/\$libname-symbols.expsym" +archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring " +archive_expsym_cmds="/usr/bin/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 \$wl-exported_symbols_list,\$output_objdir/\$libname-symbols.expsym" # Commands used to build a loadable module if different from building # a shared archive. @@ -11966,7 +11966,7 @@ reload_cmds="\$LTCC \$LTCFLAGS -nostdlib \$wl-r -o \$output\$reload_objs" old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs~\$RANLIB \$tool_oldlib" # A language specific compiler. -CC="g++" +CC="g++ -std=gnu++11" # Is the compiler the GNU compiler? with_gcc=yes @@ -12008,8 +12008,8 @@ old_archive_from_new_cmds="" old_archive_from_expsyms_cmds="" # Commands used to build a shared archive. -archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring \$single_module" -archive_expsym_cmds="/usr/bin/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 \$single_module \$wl-exported_symbols_list,\$output_objdir/\$libname-symbols.expsym" +archive_cmds="\$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" +archive_expsym_cmds="/usr/bin/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 \$wl-exported_symbols_list,\$output_objdir/\$libname-symbols.expsym" # Commands used to build a loadable module if different from building # a shared archive. diff --git a/Sources/Cfyaml/src/Makefile b/Sources/Cfyaml/src/Makefile index 31ec9c16a..6d6b61b35 100644 --- a/Sources/Cfyaml/src/Makefile +++ b/Sources/Cfyaml/src/Makefile @@ -17,6 +17,7 @@ + am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ @@ -88,11 +89,33 @@ POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : -build_triplet = aarch64-apple-darwin22.2.0 -host_triplet = aarch64-apple-darwin22.2.0 +build_triplet = aarch64-apple-darwin23.4.0 +host_triplet = aarch64-apple-darwin23.4.0 +target_triplet = aarch64-apple-darwin23.4.0 bin_PROGRAMS = fy-tool$(EXEEXT) -noinst_PROGRAMS = $(am__EXEEXT_1) -am__append_1 = libfyaml-parser +noinst_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) + +# note that each target lib has blake3 compiled again but with a suffix +#am__append_1 = libb3sse2.la +#am__append_2 = libb3sse2.la +#am__append_3 = libb3sse41.la +#am__append_4 = libb3sse41.la +#am__append_5 = libb3avx2.la +#am__append_6 = libb3avx2.la +#am__append_7 = libb3avx512.la +#am__append_8 = libb3avx512.la +am__append_9 = libb3neon.la +#am__append_10 = -mfpu=neon +#am__append_11 = -mfpu=neon +am__append_12 = libb3neon.la + +# libfyaml-parser needs both LIBYAML and static +am__append_13 = libfyaml-parser + +# fy-thread + +# fy-b3sum +am__append_14 = fy-thread fy-b3sum subdir = src ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_enable_debug.m4 \ @@ -112,8 +135,11 @@ CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libdir)" \ "$(DESTDIR)$(includedir)" -am__EXEEXT_1 = libfyaml-parser$(EXEEXT) +am__EXEEXT_1 = \ + libfyaml-parser$(EXEEXT) +am__EXEEXT_2 = fy-thread$(EXEEXT) fy-b3sum$(EXEEXT) PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS) +LIBRARIES = $(noinst_LIBRARIES) am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ @@ -141,28 +167,122 @@ am__uninstall_files_from_dir = { \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } -LTLIBRARIES = $(lib_LTLIBRARIES) -libfyaml_la_LIBADD = +LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES) +libb3avx2_la_LIBADD = +am__libb3avx2_la_SOURCES_DIST = blake3/blake3_avx2.c \ + blake3/blake3_avx2_x86-64_unix.S blake3/blake3.c am__dirstamp = $(am__leading_dot)dirstamp +#am_libb3avx2_la_OBJECTS = \ +# blake3/libb3avx2_la-blake3_avx2.lo \ +# blake3/libb3avx2_la-blake3_avx2_x86-64_unix.lo \ +# blake3/libb3avx2_la-blake3.lo +libb3avx2_la_OBJECTS = $(am_libb3avx2_la_OBJECTS) +AM_V_lt = $(am__v_lt_$(V)) +am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) +am__v_lt_0 = --silent +am__v_lt_1 = +libb3avx2_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libb3avx2_la_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +#am_libb3avx2_la_rpath = +libb3avx512_la_LIBADD = +am__libb3avx512_la_SOURCES_DIST = blake3/blake3_avx512.c \ + blake3/blake3_avx512_x86-64_unix.S blake3/blake3.c +#am_libb3avx512_la_OBJECTS = blake3/libb3avx512_la-blake3_avx512.lo \ +# blake3/libb3avx512_la-blake3_avx512_x86-64_unix.lo \ +# blake3/libb3avx512_la-blake3.lo +libb3avx512_la_OBJECTS = $(am_libb3avx512_la_OBJECTS) +libb3avx512_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(libb3avx512_la_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o \ + $@ +#am_libb3avx512_la_rpath = +libb3neon_la_LIBADD = +am__libb3neon_la_SOURCES_DIST = blake3/blake3_neon.c blake3/blake3.c +am_libb3neon_la_OBJECTS = \ + blake3/libb3neon_la-blake3_neon.lo \ + blake3/libb3neon_la-blake3.lo +libb3neon_la_OBJECTS = $(am_libb3neon_la_OBJECTS) +libb3neon_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libb3neon_la_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +am_libb3neon_la_rpath = +libb3portable_la_LIBADD = +am_libb3portable_la_OBJECTS = \ + blake3/libb3portable_la-blake3_portable.lo \ + blake3/libb3portable_la-blake3.lo +libb3portable_la_OBJECTS = $(am_libb3portable_la_OBJECTS) +libb3portable_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(libb3portable_la_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ + -o $@ +libb3sse2_la_LIBADD = +am__libb3sse2_la_SOURCES_DIST = blake3/blake3_sse2.c \ + blake3/blake3_sse2_x86-64_unix.S blake3/blake3.c +#am_libb3sse2_la_OBJECTS = \ +# blake3/libb3sse2_la-blake3_sse2.lo \ +# blake3/libb3sse2_la-blake3_sse2_x86-64_unix.lo \ +# blake3/libb3sse2_la-blake3.lo +libb3sse2_la_OBJECTS = $(am_libb3sse2_la_OBJECTS) +libb3sse2_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libb3sse2_la_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +#am_libb3sse2_la_rpath = +libb3sse41_la_LIBADD = +am__libb3sse41_la_SOURCES_DIST = blake3/blake3_sse41.c \ + blake3/blake3_sse41_x86-64_unix.S blake3/blake3.c +#am_libb3sse41_la_OBJECTS = \ +# blake3/libb3sse41_la-blake3_sse41.lo \ +# blake3/libb3sse41_la-blake3_sse41_x86-64_unix.lo \ +# blake3/libb3sse41_la-blake3.lo +libb3sse41_la_OBJECTS = $(am_libb3sse41_la_OBJECTS) +libb3sse41_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libb3sse41_la_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +#am_libb3sse41_la_rpath = +libfyaml_la_DEPENDENCIES = libb3portable.la $(am__append_2) \ + $(am__append_4) $(am__append_6) $(am__append_8) \ + $(am__append_12) am_libfyaml_la_OBJECTS = lib/libfyaml_la-fy-parse.lo \ - lib/libfyaml_la-fy-utf8.lo lib/libfyaml_la-fy-types.lo \ - lib/libfyaml_la-fy-diag.lo lib/libfyaml_la-fy-dump.lo \ - lib/libfyaml_la-fy-atom.lo lib/libfyaml_la-fy-ctype.lo \ + lib/libfyaml_la-fy-types.lo lib/libfyaml_la-fy-diag.lo \ + lib/libfyaml_la-fy-dump.lo lib/libfyaml_la-fy-atom.lo \ lib/libfyaml_la-fy-token.lo lib/libfyaml_la-fy-input.lo \ lib/libfyaml_la-fy-docstate.lo lib/libfyaml_la-fy-doc.lo \ lib/libfyaml_la-fy-docbuilder.lo lib/libfyaml_la-fy-emit.lo \ - lib/libfyaml_la-fy-utils.lo lib/libfyaml_la-fy-event.lo \ - xxhash/libfyaml_la-xxhash.lo lib/libfyaml_la-fy-accel.lo \ + lib/libfyaml_la-fy-event.lo lib/libfyaml_la-fy-accel.lo \ lib/libfyaml_la-fy-walk.lo lib/libfyaml_la-fy-path.lo \ - lib/libfyaml_la-fy-composer.lo + lib/libfyaml_la-fy-composer.lo xxhash/libfyaml_la-xxhash.lo \ + util/libfyaml_la-fy-ctype.lo util/libfyaml_la-fy-utf8.lo \ + util/libfyaml_la-fy-utils.lo util/libfyaml_la-fy-blob.lo \ + thread/libfyaml_la-fy-thread.lo \ + blake3/libfyaml_la-blake3_host_state.lo \ + blake3/libfyaml_la-blake3_backend.lo \ + blake3/libfyaml_la-blake3_be_cpusimd.lo \ + blake3/libfyaml_la-fy-blake3.lo libfyaml_la_OBJECTS = $(am_libfyaml_la_OBJECTS) -AM_V_lt = $(am__v_lt_$(V)) -am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) -am__v_lt_0 = --silent -am__v_lt_1 = libfyaml_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libfyaml_la_CFLAGS) \ $(CFLAGS) $(libfyaml_la_LDFLAGS) $(LDFLAGS) -o $@ +am__fy_b3sum_SOURCES_DIST = internal/fy-b3sum.c valgrind/fy-valgrind.h +am_fy_b3sum_OBJECTS = \ + internal/fy_b3sum-fy-b3sum.$(OBJEXT) +fy_b3sum_OBJECTS = $(am_fy_b3sum_OBJECTS) +am__DEPENDENCIES_1 = +fy_b3sum_DEPENDENCIES = $(am__DEPENDENCIES_1) \ + libfyaml.la +fy_b3sum_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(fy_b3sum_CFLAGS) \ + $(CFLAGS) $(fy_b3sum_LDFLAGS) $(LDFLAGS) -o $@ +am__fy_thread_SOURCES_DIST = internal/fy-thread.c \ + valgrind/fy-valgrind.h +am_fy_thread_OBJECTS = \ + internal/fy_thread-fy-thread.$(OBJEXT) +fy_thread_OBJECTS = $(am_fy_thread_OBJECTS) +fy_thread_DEPENDENCIES = $(am__DEPENDENCIES_1) \ + libfyaml.la +fy_thread_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(fy_thread_CFLAGS) \ + $(CFLAGS) $(fy_thread_LDFLAGS) $(LDFLAGS) -o $@ am_fy_tool_OBJECTS = tool/fy_tool-fy-tool.$(OBJEXT) fy_tool_OBJECTS = $(am_fy_tool_OBJECTS) fy_tool_DEPENDENCIES = libfyaml.la @@ -173,9 +293,9 @@ am__libfyaml_parser_SOURCES_DIST = internal/libfyaml-parser.c \ valgrind/fy-valgrind.h am_libfyaml_parser_OBJECTS = internal/libfyaml_parser-libfyaml-parser.$(OBJEXT) libfyaml_parser_OBJECTS = $(am_libfyaml_parser_OBJECTS) -am__DEPENDENCIES_1 = libfyaml_parser_DEPENDENCIES = \ - $(am__DEPENDENCIES_1) libfyaml.la + $(am__DEPENDENCIES_1) \ + libfyaml.la libfyaml_parser_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(libfyaml_parser_CFLAGS) $(CFLAGS) $(libfyaml_parser_LDFLAGS) \ @@ -195,12 +315,32 @@ am__v_at_1 = DEFAULT_INCLUDES = -I. -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp am__maybe_remake_depfiles = depfiles -am__depfiles_remade = \ +am__depfiles_remade = blake3/$(DEPDIR)/libb3avx2_la-blake3.Plo \ + blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2.Plo \ + blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2_x86-64_unix.Plo \ + blake3/$(DEPDIR)/libb3avx512_la-blake3.Plo \ + blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512.Plo \ + blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512_x86-64_unix.Plo \ + blake3/$(DEPDIR)/libb3neon_la-blake3.Plo \ + blake3/$(DEPDIR)/libb3neon_la-blake3_neon.Plo \ + blake3/$(DEPDIR)/libb3portable_la-blake3.Plo \ + blake3/$(DEPDIR)/libb3portable_la-blake3_portable.Plo \ + blake3/$(DEPDIR)/libb3sse2_la-blake3.Plo \ + blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2.Plo \ + blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2_x86-64_unix.Plo \ + blake3/$(DEPDIR)/libb3sse41_la-blake3.Plo \ + blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41.Plo \ + blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41_x86-64_unix.Plo \ + blake3/$(DEPDIR)/libfyaml_la-blake3_backend.Plo \ + blake3/$(DEPDIR)/libfyaml_la-blake3_be_cpusimd.Plo \ + blake3/$(DEPDIR)/libfyaml_la-blake3_host_state.Plo \ + blake3/$(DEPDIR)/libfyaml_la-fy-blake3.Plo \ + internal/$(DEPDIR)/fy_b3sum-fy-b3sum.Po \ + internal/$(DEPDIR)/fy_thread-fy-thread.Po \ internal/$(DEPDIR)/libfyaml_parser-libfyaml-parser.Po \ lib/$(DEPDIR)/libfyaml_la-fy-accel.Plo \ lib/$(DEPDIR)/libfyaml_la-fy-atom.Plo \ lib/$(DEPDIR)/libfyaml_la-fy-composer.Plo \ - lib/$(DEPDIR)/libfyaml_la-fy-ctype.Plo \ lib/$(DEPDIR)/libfyaml_la-fy-diag.Plo \ lib/$(DEPDIR)/libfyaml_la-fy-doc.Plo \ lib/$(DEPDIR)/libfyaml_la-fy-docbuilder.Plo \ @@ -213,12 +353,25 @@ am__depfiles_remade = \ lib/$(DEPDIR)/libfyaml_la-fy-path.Plo \ lib/$(DEPDIR)/libfyaml_la-fy-token.Plo \ lib/$(DEPDIR)/libfyaml_la-fy-types.Plo \ - lib/$(DEPDIR)/libfyaml_la-fy-utf8.Plo \ - lib/$(DEPDIR)/libfyaml_la-fy-utils.Plo \ lib/$(DEPDIR)/libfyaml_la-fy-walk.Plo \ + thread/$(DEPDIR)/libfyaml_la-fy-thread.Plo \ tool/$(DEPDIR)/fy_tool-fy-tool.Po \ + util/$(DEPDIR)/libfyaml_la-fy-blob.Plo \ + util/$(DEPDIR)/libfyaml_la-fy-ctype.Plo \ + util/$(DEPDIR)/libfyaml_la-fy-utf8.Plo \ + util/$(DEPDIR)/libfyaml_la-fy-utils.Plo \ xxhash/$(DEPDIR)/libfyaml_la-xxhash.Plo am__mv = mv -f +CPPASCOMPILE = $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS) +LTCPPASCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CCASFLAGS) $(CCASFLAGS) +AM_V_CPPAS = $(am__v_CPPAS_$(V)) +am__v_CPPAS_ = $(am__v_CPPAS_$(AM_DEFAULT_VERBOSITY)) +am__v_CPPAS_0 = @echo " CPPAS " $@; +am__v_CPPAS_1 = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ @@ -237,10 +390,19 @@ AM_V_CCLD = $(am__v_CCLD_$(V)) am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = -SOURCES = $(libfyaml_la_SOURCES) $(fy_tool_SOURCES) \ +SOURCES = $(libb3avx2_la_SOURCES) $(libb3avx512_la_SOURCES) \ + $(libb3neon_la_SOURCES) $(libb3portable_la_SOURCES) \ + $(libb3sse2_la_SOURCES) $(libb3sse41_la_SOURCES) \ + $(libfyaml_la_SOURCES) $(fy_b3sum_SOURCES) \ + $(fy_thread_SOURCES) $(fy_tool_SOURCES) \ $(libfyaml_parser_SOURCES) -DIST_SOURCES = $(libfyaml_la_SOURCES) $(fy_tool_SOURCES) \ - $(am__libfyaml_parser_SOURCES_DIST) +DIST_SOURCES = $(am__libb3avx2_la_SOURCES_DIST) \ + $(am__libb3avx512_la_SOURCES_DIST) \ + $(am__libb3neon_la_SOURCES_DIST) $(libb3portable_la_SOURCES) \ + $(am__libb3sse2_la_SOURCES_DIST) \ + $(am__libb3sse41_la_SOURCES_DIST) $(libfyaml_la_SOURCES) \ + $(am__fy_b3sum_SOURCES_DIST) $(am__fy_thread_SOURCES_DIST) \ + $(fy_tool_SOURCES) $(am__libfyaml_parser_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ @@ -277,30 +439,33 @@ AM_DEFAULT_VERBOSITY = 1 AM_MAKEFLAGS = `test -z $V && echo -s` AR = ar AS = as +ASAN_CFLAGS = +ASAN_LIBS = AUTOCONF = ${SHELL} '/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/missing' autoconf AUTOHEADER = ${SHELL} '/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/missing' autoheader AUTOMAKE = ${SHELL} '/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/missing' automake-1.16 AWK = awk CC = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave cc gcc -CCAS = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave ccas +CCAS = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave ccas gcc +CCASDEPMODE = depmode=gcc3 +CCASFLAGS = CCDEPMODE = depmode=gcc3 -CFLAGS = -Wall -Wsign-compare -O2 +CFLAGS = -D_THREAD_SAFE -pthread -Wall -Wsign-compare -fvisibility=hidden -O2 CHECK_CFLAGS = CHECK_LDFLAGS = CHECK_LIBS = -CPP = gcc -E CPPFLAGS = CSCOPE = cscope CTAGS = ctags -CXX = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave cxx g++ -CXXCPP = g++ -E +CXX = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave cxx g++ -std=gnu++11 +CXXCPP = g++ -std=gnu++11 -E CXXDEPMODE = depmode=gcc3 CXXFLAGS = CYGPATH_W = echo DEFS = -DHAVE_CONFIG_H DEPDIR = .deps -DLLTOOL = dlltool -DOCKER = /usr/local/bin/docker +DLLTOOL = false +DOCKER = /Users/kdubb/.rd/bin/docker DSYMUTIL = dsymutil DUMPBIN = ECHO_C = \c @@ -314,16 +479,19 @@ F77 = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build- FC = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave fc FGREP = /usr/bin/grep -F FILECMD = file -GIT = /opt/homebrew/bin/git +GIT = /usr/bin/git GREP = /usr/bin/grep +HAVE_ASAN = 0 HAVE_CHECK = 0 HAVE_COMPATIBLE_CHECK = 0 HAVE_DEVMODE = 1 +HAVE_LIBCLANG = 0 HAVE_LIBYAML = 1 HAVE_NETWORK = 1 +HAVE_PORTABLE_TARGET = 0 HAVE_QSORT_R = 1 -INCLTDL = -I$(top_srcdir)/libltdl -INSTALL = /usr/bin/install -c +HAVE_STATIC = 1 +INSTALL = /opt/homebrew/bin/ginstall -c INSTALL_DATA = ${INSTALL} -m 644 INSTALL_PROGRAM = ${INSTALL} INSTALL_SCRIPT = ${INSTALL} @@ -334,17 +502,21 @@ JSONTESTSUITEURL = https://github.com/nst/JSONTestSuite LD = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld LDFLAGS = LEX = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave lex -LIBLTDL = $(top_build_prefix)libltdl/libltdl.la +LIBCLANG_CFLAGS = +LIBCLANG_CPPFLAGS = +LIBCLANG_LDFLAGS = +LIBCLANG_LIBS = +LIBLTDL = LIBOBJS = -LIBS = +LIBS = -lpthread LIBTOOL = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave-libtool '$(SHELL) $(top_builddir)/libtool' -LIBTOOL_VERSION = 1:2:0 +LIBTOOL_VERSION = 1:4:2 LIBYAML_CFLAGS = -I/opt/homebrew/Cellar/libyaml/0.2.5/include LIBYAML_LIBS = -L/opt/homebrew/Cellar/libyaml/0.2.5/lib -lyaml LIPO = lipo +LLVM_CONFIG = LN_S = ln -s -LTDLDEPS = $(top_build_prefix)libltdl/libltdl.la -LTDLINCL = -I$(top_srcdir)/libltdl +LTDLINCL = LTLIBOBJS = LT_SYS_LIBRARY_PATH = M4 = /usr/bin/m4 @@ -353,8 +525,8 @@ MAKEFLAGS = -s MAKEINFO = ${SHELL} '/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/missing' makeinfo MANIFEST_TOOL = : MCS = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave mcs -MINOR = 7 -MKDIR_P = .././build-aux/install-sh -c -d +MINOR = 9 +MKDIR_P = /opt/homebrew/bin/gmkdir -p NM = /usr/bin/nm -B NMEDIT = nmedit OBJC = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave objc @@ -365,11 +537,11 @@ OTOOL64 = : PACKAGE = libfyaml PACKAGE_BUGREPORT = pantelis.antoniou@konsulko.com PACKAGE_NAME = libfyaml -PACKAGE_STRING = libfyaml 0.7.12 +PACKAGE_STRING = libfyaml 0.9 PACKAGE_TARNAME = libfyaml PACKAGE_URL = -PACKAGE_VERSION = 0.7.12 -PATCH = 12 +PACKAGE_VERSION = 0.9 +PATCH = PATH_SEPARATOR = : PIP3 = PKG_CONFIG = /opt/homebrew/bin/pkg-config @@ -377,7 +549,7 @@ PKG_CONFIG_LIBDIR = PKG_CONFIG_PATH = PTHREAD_CC = gcc PTHREAD_CFLAGS = -D_THREAD_SAFE -pthread -PTHREAD_LIBS = +PTHREAD_LIBS = -lpthread Q = $(V:1=) RANLIB = ranlib SED = /usr/bin/sed @@ -388,7 +560,7 @@ STRIP = strip TESTSUITECHECKOUT = 6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f TESTSUITEURL = https://github.com/yaml/yaml-test-suite V = @ -VERSION = 0.7.12 +VERSION = 0.9 YACC = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave yacc abs_builddir = /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/src abs_srcdir = /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/src @@ -405,10 +577,10 @@ am__tar = $${TAR-tar} chof - "$$tardir" am__untar = $${TAR-tar} xf - ax_pthread_config = bindir = ${exec_prefix}/bin -build = aarch64-apple-darwin22.2.0 +build = aarch64-apple-darwin23.4.0 build_alias = build_cpu = aarch64 -build_os = darwin22.2.0 +build_os = darwin23.4.0 build_vendor = apple builddir = . datadir = ${datarootdir} @@ -416,10 +588,10 @@ datarootdir = ${prefix}/share docdir = ${datarootdir}/doc/${PACKAGE_TARNAME} dvidir = ${docdir} exec_prefix = ${prefix} -host = aarch64-apple-darwin22.2.0 +host = aarch64-apple-darwin23.4.0 host_alias = host_cpu = aarch64 -host_os = darwin22.2.0 +host_os = darwin23.4.0 host_vendor = apple htmldir = ${docdir} includedir = ${prefix}/include @@ -443,48 +615,77 @@ shavedir = /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux srcdir = . subdirs = libltdl sysconfdir = ${prefix}/etc +target = aarch64-apple-darwin23.4.0 target_alias = +target_cpu = aarch64 +target_os = darwin23.4.0 +target_vendor = apple top_build_prefix = ../ top_builddir = .. top_srcdir = .. +noinst_LIBRARIES = +lib_LTLIBRARIES = libfyaml.la + +# the portable implementation +noinst_LTLIBRARIES = libb3portable.la $(am__append_1) $(am__append_3) \ + $(am__append_5) $(am__append_7) $(am__append_9) AM_CPPFLAGS = \ -I$(top_srcdir)/src \ -I$(top_srcdir)/include AM_CFLAGS = -lib_LTLIBRARIES = libfyaml.la -libfyaml_la_SOURCES = \ - lib/fy-parse.c lib/fy-parse.h \ - lib/fy-utf8.c lib/fy-utf8.h \ - lib/fy-types.c lib/fy-types.h \ - lib/fy-list.h \ - lib/fy-typelist.h \ - lib/fy-diag.c lib/fy-diag.h \ - lib/fy-dump.c lib/fy-dump.h \ - lib/fy-atom.c lib/fy-atom.h \ - lib/fy-ctype.c lib/fy-ctype.h \ - lib/fy-token.c lib/fy-token.h \ - lib/fy-input.c lib/fy-input.h \ - lib/fy-docstate.c lib/fy-docstate.h \ - lib/fy-doc.c lib/fy-doc.h \ - lib/fy-docbuilder.c lib/fy-docbuilder.h \ - lib/fy-emit.c lib/fy-emit.h lib/fy-emit-accum.h \ - lib/fy-utils.c lib/fy-utils.h \ - lib/fy-event.h lib/fy-event.c \ - xxhash/xxhash.c xxhash/xxhash.h \ - lib/fy-accel.c lib/fy-accel.h \ - lib/fy-walk.c lib/fy-walk.h \ - lib/fy-path.c lib/fy-path.h \ - lib/fy-composer.c lib/fy-composer.h - -libfyaml_la_CPPFLAGS = $(AM_CPPFLAGS) \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/xxhash - +libfyaml_la_SOURCES = lib/fy-parse.c lib/fy-parse.h lib/fy-types.c \ + lib/fy-types.h lib/fy-diag.c lib/fy-diag.h lib/fy-dump.c \ + lib/fy-dump.h lib/fy-atom.c lib/fy-atom.h lib/fy-token.c \ + lib/fy-token.h lib/fy-input.c lib/fy-input.h lib/fy-docstate.c \ + lib/fy-docstate.h lib/fy-doc.c lib/fy-doc.h \ + lib/fy-docbuilder.c lib/fy-docbuilder.h lib/fy-emit.c \ + lib/fy-emit.h lib/fy-emit-accum.h lib/fy-event.h \ + lib/fy-event.c lib/fy-accel.c lib/fy-accel.h lib/fy-walk.c \ + lib/fy-walk.h lib/fy-path.c lib/fy-path.h lib/fy-composer.c \ + lib/fy-composer.h xxhash/xxhash.c xxhash/xxhash.h \ + util/fy-list.h util/fy-typelist.h util/fy-ctype.c \ + util/fy-ctype.h util/fy-utf8.c util/fy-utf8.h util/fy-utils.c \ + util/fy-utils.h util/fy-endian.h util/fy-blob.c util/fy-blob.h \ + util/fy-id.h util/fy-align.h util/fy-bit64.h \ + thread/fy-thread.h thread/fy-thread.c blake3/blake3.h \ + blake3/blake3_impl.h blake3/blake3_internal.h \ + blake3/blake3_host_state.c blake3/blake3_backend.c \ + blake3/blake3_be_cpusimd.c blake3/fy-blake3.c + +# blake3 section +libfyaml_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/src/lib \ + -I$(top_srcdir)/src/xxhash -I$(top_srcdir)/src/util \ + -I$(top_srcdir)/src/thread -I$(top_srcdir)/src/blake3 libfyaml_la_CFLAGS = $(AM_CFLAGS) -libfyaml_la_LDFLAGS = $(AM_LDFLAGS) $(AM_LIBLDFLAGS) \ +libfyaml_la_LDFLAGS = -no-undefined $(AM_LDFLAGS) $(AM_LIBLDFLAGS) \ -version $(LIBTOOL_VERSION) +libfyaml_la_LIBADD = libb3portable.la $(am__append_2) $(am__append_4) \ + $(am__append_6) $(am__append_8) $(am__append_12) +LIBB3_COMMON_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/src/util -I$(top_srcdir)/src/thread +libb3portable_la_SOURCES = blake3/blake3_portable.c blake3/blake3.c +libb3portable_la_CPPFLAGS = $(LIBB3_COMMON_CPPFLAGS) -DHASHER_SUFFIX=portable -DSIMD_DEGREE=1 +libb3portable_la_CFLAGS = $(AM_CPPFLAGS) +#libb3sse2_la_SOURCES = blake3/blake3_sse2.c blake3/blake3_sse2_x86-64_unix.S blake3/blake3.c +#libb3sse2_la_CPPFLAGS = $(LIBB3_COMMON_CPPFLAGS) -msse2 -DHASHER_SUFFIX=sse2 -DSIMD_DEGREE=4 +#libb3sse2_la_CFLAGS = $(AM_CPPFLAGS) -msse2 +#libb3sse41_la_SOURCES = blake3/blake3_sse41.c blake3/blake3_sse41_x86-64_unix.S blake3/blake3.c +#libb3sse41_la_CPPFLAGS = $(LIBB3_COMMON_CPPFLAGS) -msse4.1 -DHASHER_SUFFIX=sse41 -DSIMD_DEGREE=4 +#libb3sse41_la_CFLAGS = $(AM_CPPFLAGS) -msse4.1 +#libb3avx2_la_SOURCES = blake3/blake3_avx2.c blake3/blake3_avx2_x86-64_unix.S blake3/blake3.c +#libb3avx2_la_CPPFLAGS = $(LIBB3_COMMON_CPPFLAGS) -mavx2 -DHASHER_SUFFIX=avx2 -DSIMD_DEGREE=8 +#libb3avx2_la_CFLAGS = $(AM_CPPFLAGS) -mavx2 +#libb3avx512_la_SOURCES = blake3/blake3_avx512.c blake3/blake3_avx512_x86-64_unix.S blake3/blake3.c +#libb3avx512_la_CPPFLAGS = $(LIBB3_COMMON_CPPFLAGS) -mavx512f -mavx512vl -DHASHER_SUFFIX=avx512 -DSIMD_DEGREE=16 +#libb3avx512_la_CFLAGS = $(AM_CPPFLAGS) -mavx512f -mavx512vl +libb3neon_la_SOURCES = blake3/blake3_neon.c blake3/blake3.c +libb3neon_la_CPPFLAGS = \ + $(LIBB3_COMMON_CPPFLAGS) \ + -DHASHER_SUFFIX=neon -DSIMD_DEGREE=4 \ + $(am__append_10) +libb3neon_la_CFLAGS = $(AM_CPPFLAGS) \ + $(am__append_11) libfyaml_parser_SOURCES = \ internal/libfyaml-parser.c \ valgrind/fy-valgrind.h @@ -492,11 +693,42 @@ libfyaml_parser_SOURCES = \ libfyaml_parser_CPPFLAGS = $(AM_CPPFLAGS) \ -I$(top_srcdir)/src/valgrind \ -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/xxhash + -I$(top_srcdir)/src/xxhash \ + -I$(top_srcdir)/src/util \ + -I$(top_srcdir)/src/thread libfyaml_parser_LDADD = $(AM_LDADD) $(LIBYAML_LIBS) libfyaml.la libfyaml_parser_CFLAGS = $(AM_CFLAGS) $(LIBYAML_CFLAGS) -libfyaml_parser_LDFLAGS = $(AM_LDFLAGS) +libfyaml_parser_LDFLAGS = $(AM_LDFLAGS) -static +fy_thread_SOURCES = \ + internal/fy-thread.c \ + valgrind/fy-valgrind.h + +fy_thread_CPPFLAGS = $(AM_CPPFLAGS) \ + -I$(top_srcdir)/src/valgrind \ + -I$(top_srcdir)/src/lib \ + -I$(top_srcdir)/src/xxhash \ + -I$(top_srcdir)/src/util \ + -I$(top_srcdir)/src/thread + +fy_thread_LDADD = $(AM_LDADD) $(LIBYAML_LIBS) libfyaml.la +fy_thread_CFLAGS = $(AM_CFLAGS) $(LIBYAML_CFLAGS) +fy_thread_LDFLAGS = $(AM_LDFLAGS) -static +fy_b3sum_SOURCES = \ + internal/fy-b3sum.c \ + valgrind/fy-valgrind.h + +fy_b3sum_CPPFLAGS = $(AM_CPPFLAGS) \ + -I$(top_srcdir)/src/valgrind \ + -I$(top_srcdir)/src/lib \ + -I$(top_srcdir)/src/xxhash \ + -I$(top_srcdir)/src/util \ + -I$(top_srcdir)/src/thread \ + -I$(top_srcdir)/src/blake3 + +fy_b3sum_LDADD = $(AM_LDADD) $(LIBYAML_LIBS) libfyaml.la +fy_b3sum_CFLAGS = $(AM_CFLAGS) $(LIBYAML_CFLAGS) +fy_b3sum_LDFLAGS = $(AM_LDFLAGS) -static fy_tool_SOURCES = \ tool/fy-tool.c \ valgrind/fy-valgrind.h @@ -511,7 +743,7 @@ include_HEADERS = \ all: all-am .SUFFIXES: -.SUFFIXES: .c .lo .o .obj +.SUFFIXES: .S .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ @@ -600,6 +832,9 @@ clean-noinstPROGRAMS: echo " rm -f" $$list; \ rm -f $$list +clean-noinstLIBRARIES: + -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) + install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ @@ -634,6 +869,73 @@ clean-libLTLIBRARIES: echo rm -f $${locs}; \ rm -f $${locs}; \ } + +clean-noinstLTLIBRARIES: + -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) + @list='$(noinst_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}; \ + } +blake3/$(am__dirstamp): + @$(MKDIR_P) blake3 + @: > blake3/$(am__dirstamp) +blake3/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) blake3/$(DEPDIR) + @: > blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libb3avx2_la-blake3_avx2.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libb3avx2_la-blake3_avx2_x86-64_unix.lo: \ + blake3/$(am__dirstamp) blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libb3avx2_la-blake3.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) + +libb3avx2.la: $(libb3avx2_la_OBJECTS) $(libb3avx2_la_DEPENDENCIES) $(EXTRA_libb3avx2_la_DEPENDENCIES) + $(AM_V_CCLD)$(libb3avx2_la_LINK) $(am_libb3avx2_la_rpath) $(libb3avx2_la_OBJECTS) $(libb3avx2_la_LIBADD) $(LIBS) +blake3/libb3avx512_la-blake3_avx512.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libb3avx512_la-blake3_avx512_x86-64_unix.lo: \ + blake3/$(am__dirstamp) blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libb3avx512_la-blake3.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) + +libb3avx512.la: $(libb3avx512_la_OBJECTS) $(libb3avx512_la_DEPENDENCIES) $(EXTRA_libb3avx512_la_DEPENDENCIES) + $(AM_V_CCLD)$(libb3avx512_la_LINK) $(am_libb3avx512_la_rpath) $(libb3avx512_la_OBJECTS) $(libb3avx512_la_LIBADD) $(LIBS) +blake3/libb3neon_la-blake3_neon.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libb3neon_la-blake3.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) + +libb3neon.la: $(libb3neon_la_OBJECTS) $(libb3neon_la_DEPENDENCIES) $(EXTRA_libb3neon_la_DEPENDENCIES) + $(AM_V_CCLD)$(libb3neon_la_LINK) $(am_libb3neon_la_rpath) $(libb3neon_la_OBJECTS) $(libb3neon_la_LIBADD) $(LIBS) +blake3/libb3portable_la-blake3_portable.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libb3portable_la-blake3.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) + +libb3portable.la: $(libb3portable_la_OBJECTS) $(libb3portable_la_DEPENDENCIES) $(EXTRA_libb3portable_la_DEPENDENCIES) + $(AM_V_CCLD)$(libb3portable_la_LINK) $(libb3portable_la_OBJECTS) $(libb3portable_la_LIBADD) $(LIBS) +blake3/libb3sse2_la-blake3_sse2.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libb3sse2_la-blake3_sse2_x86-64_unix.lo: \ + blake3/$(am__dirstamp) blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libb3sse2_la-blake3.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) + +libb3sse2.la: $(libb3sse2_la_OBJECTS) $(libb3sse2_la_DEPENDENCIES) $(EXTRA_libb3sse2_la_DEPENDENCIES) + $(AM_V_CCLD)$(libb3sse2_la_LINK) $(am_libb3sse2_la_rpath) $(libb3sse2_la_OBJECTS) $(libb3sse2_la_LIBADD) $(LIBS) +blake3/libb3sse41_la-blake3_sse41.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libb3sse41_la-blake3_sse41_x86-64_unix.lo: \ + blake3/$(am__dirstamp) blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libb3sse41_la-blake3.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) + +libb3sse41.la: $(libb3sse41_la_OBJECTS) $(libb3sse41_la_DEPENDENCIES) $(EXTRA_libb3sse41_la_DEPENDENCIES) + $(AM_V_CCLD)$(libb3sse41_la_LINK) $(am_libb3sse41_la_rpath) $(libb3sse41_la_OBJECTS) $(libb3sse41_la_LIBADD) $(LIBS) lib/$(am__dirstamp): @$(MKDIR_P) lib @: > lib/$(am__dirstamp) @@ -642,8 +944,6 @@ lib/$(DEPDIR)/$(am__dirstamp): @: > lib/$(DEPDIR)/$(am__dirstamp) lib/libfyaml_la-fy-parse.lo: lib/$(am__dirstamp) \ lib/$(DEPDIR)/$(am__dirstamp) -lib/libfyaml_la-fy-utf8.lo: lib/$(am__dirstamp) \ - lib/$(DEPDIR)/$(am__dirstamp) lib/libfyaml_la-fy-types.lo: lib/$(am__dirstamp) \ lib/$(DEPDIR)/$(am__dirstamp) lib/libfyaml_la-fy-diag.lo: lib/$(am__dirstamp) \ @@ -652,8 +952,6 @@ lib/libfyaml_la-fy-dump.lo: lib/$(am__dirstamp) \ lib/$(DEPDIR)/$(am__dirstamp) lib/libfyaml_la-fy-atom.lo: lib/$(am__dirstamp) \ lib/$(DEPDIR)/$(am__dirstamp) -lib/libfyaml_la-fy-ctype.lo: lib/$(am__dirstamp) \ - lib/$(DEPDIR)/$(am__dirstamp) lib/libfyaml_la-fy-token.lo: lib/$(am__dirstamp) \ lib/$(DEPDIR)/$(am__dirstamp) lib/libfyaml_la-fy-input.lo: lib/$(am__dirstamp) \ @@ -666,18 +964,8 @@ lib/libfyaml_la-fy-docbuilder.lo: lib/$(am__dirstamp) \ lib/$(DEPDIR)/$(am__dirstamp) lib/libfyaml_la-fy-emit.lo: lib/$(am__dirstamp) \ lib/$(DEPDIR)/$(am__dirstamp) -lib/libfyaml_la-fy-utils.lo: lib/$(am__dirstamp) \ - lib/$(DEPDIR)/$(am__dirstamp) lib/libfyaml_la-fy-event.lo: lib/$(am__dirstamp) \ lib/$(DEPDIR)/$(am__dirstamp) -xxhash/$(am__dirstamp): - @$(MKDIR_P) xxhash - @: > xxhash/$(am__dirstamp) -xxhash/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) xxhash/$(DEPDIR) - @: > xxhash/$(DEPDIR)/$(am__dirstamp) -xxhash/libfyaml_la-xxhash.lo: xxhash/$(am__dirstamp) \ - xxhash/$(DEPDIR)/$(am__dirstamp) lib/libfyaml_la-fy-accel.lo: lib/$(am__dirstamp) \ lib/$(DEPDIR)/$(am__dirstamp) lib/libfyaml_la-fy-walk.lo: lib/$(am__dirstamp) \ @@ -686,9 +974,65 @@ lib/libfyaml_la-fy-path.lo: lib/$(am__dirstamp) \ lib/$(DEPDIR)/$(am__dirstamp) lib/libfyaml_la-fy-composer.lo: lib/$(am__dirstamp) \ lib/$(DEPDIR)/$(am__dirstamp) +xxhash/$(am__dirstamp): + @$(MKDIR_P) xxhash + @: > xxhash/$(am__dirstamp) +xxhash/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) xxhash/$(DEPDIR) + @: > xxhash/$(DEPDIR)/$(am__dirstamp) +xxhash/libfyaml_la-xxhash.lo: xxhash/$(am__dirstamp) \ + xxhash/$(DEPDIR)/$(am__dirstamp) +util/$(am__dirstamp): + @$(MKDIR_P) util + @: > util/$(am__dirstamp) +util/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) util/$(DEPDIR) + @: > util/$(DEPDIR)/$(am__dirstamp) +util/libfyaml_la-fy-ctype.lo: util/$(am__dirstamp) \ + util/$(DEPDIR)/$(am__dirstamp) +util/libfyaml_la-fy-utf8.lo: util/$(am__dirstamp) \ + util/$(DEPDIR)/$(am__dirstamp) +util/libfyaml_la-fy-utils.lo: util/$(am__dirstamp) \ + util/$(DEPDIR)/$(am__dirstamp) +util/libfyaml_la-fy-blob.lo: util/$(am__dirstamp) \ + util/$(DEPDIR)/$(am__dirstamp) +thread/$(am__dirstamp): + @$(MKDIR_P) thread + @: > thread/$(am__dirstamp) +thread/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) thread/$(DEPDIR) + @: > thread/$(DEPDIR)/$(am__dirstamp) +thread/libfyaml_la-fy-thread.lo: thread/$(am__dirstamp) \ + thread/$(DEPDIR)/$(am__dirstamp) +blake3/libfyaml_la-blake3_host_state.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libfyaml_la-blake3_backend.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libfyaml_la-blake3_be_cpusimd.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libfyaml_la-fy-blake3.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) libfyaml.la: $(libfyaml_la_OBJECTS) $(libfyaml_la_DEPENDENCIES) $(EXTRA_libfyaml_la_DEPENDENCIES) $(AM_V_CCLD)$(libfyaml_la_LINK) -rpath $(libdir) $(libfyaml_la_OBJECTS) $(libfyaml_la_LIBADD) $(LIBS) +internal/$(am__dirstamp): + @$(MKDIR_P) internal + @: > internal/$(am__dirstamp) +internal/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) internal/$(DEPDIR) + @: > internal/$(DEPDIR)/$(am__dirstamp) +internal/fy_b3sum-fy-b3sum.$(OBJEXT): internal/$(am__dirstamp) \ + internal/$(DEPDIR)/$(am__dirstamp) + +fy-b3sum$(EXEEXT): $(fy_b3sum_OBJECTS) $(fy_b3sum_DEPENDENCIES) $(EXTRA_fy_b3sum_DEPENDENCIES) + @rm -f fy-b3sum$(EXEEXT) + $(AM_V_CCLD)$(fy_b3sum_LINK) $(fy_b3sum_OBJECTS) $(fy_b3sum_LDADD) $(LIBS) +internal/fy_thread-fy-thread.$(OBJEXT): internal/$(am__dirstamp) \ + internal/$(DEPDIR)/$(am__dirstamp) + +fy-thread$(EXEEXT): $(fy_thread_OBJECTS) $(fy_thread_DEPENDENCIES) $(EXTRA_fy_thread_DEPENDENCIES) + @rm -f fy-thread$(EXEEXT) + $(AM_V_CCLD)$(fy_thread_LINK) $(fy_thread_OBJECTS) $(fy_thread_LDADD) $(LIBS) tool/$(am__dirstamp): @$(MKDIR_P) tool @: > tool/$(am__dirstamp) @@ -701,12 +1045,6 @@ tool/fy_tool-fy-tool.$(OBJEXT): tool/$(am__dirstamp) \ fy-tool$(EXEEXT): $(fy_tool_OBJECTS) $(fy_tool_DEPENDENCIES) $(EXTRA_fy_tool_DEPENDENCIES) @rm -f fy-tool$(EXEEXT) $(AM_V_CCLD)$(fy_tool_LINK) $(fy_tool_OBJECTS) $(fy_tool_LDADD) $(LIBS) -internal/$(am__dirstamp): - @$(MKDIR_P) internal - @: > internal/$(am__dirstamp) -internal/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) internal/$(DEPDIR) - @: > internal/$(DEPDIR)/$(am__dirstamp) internal/libfyaml_parser-libfyaml-parser.$(OBJEXT): \ internal/$(am__dirstamp) internal/$(DEPDIR)/$(am__dirstamp) @@ -716,21 +1054,48 @@ libfyaml-parser$(EXEEXT): $(libfyaml_parser_OBJECTS) $(libfyaml_parser_DEPENDENC mostlyclean-compile: -rm -f *.$(OBJEXT) + -rm -f blake3/*.$(OBJEXT) + -rm -f blake3/*.lo -rm -f internal/*.$(OBJEXT) -rm -f lib/*.$(OBJEXT) -rm -f lib/*.lo + -rm -f thread/*.$(OBJEXT) + -rm -f thread/*.lo -rm -f tool/*.$(OBJEXT) + -rm -f util/*.$(OBJEXT) + -rm -f util/*.lo -rm -f xxhash/*.$(OBJEXT) -rm -f xxhash/*.lo distclean-compile: -rm -f *.tab.c +include blake3/$(DEPDIR)/libb3avx2_la-blake3.Plo # am--include-marker +include blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2.Plo # am--include-marker +include blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2_x86-64_unix.Plo # am--include-marker +include blake3/$(DEPDIR)/libb3avx512_la-blake3.Plo # am--include-marker +include blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512.Plo # am--include-marker +include blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512_x86-64_unix.Plo # am--include-marker +include blake3/$(DEPDIR)/libb3neon_la-blake3.Plo # am--include-marker +include blake3/$(DEPDIR)/libb3neon_la-blake3_neon.Plo # am--include-marker +include blake3/$(DEPDIR)/libb3portable_la-blake3.Plo # am--include-marker +include blake3/$(DEPDIR)/libb3portable_la-blake3_portable.Plo # am--include-marker +include blake3/$(DEPDIR)/libb3sse2_la-blake3.Plo # am--include-marker +include blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2.Plo # am--include-marker +include blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2_x86-64_unix.Plo # am--include-marker +include blake3/$(DEPDIR)/libb3sse41_la-blake3.Plo # am--include-marker +include blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41.Plo # am--include-marker +include blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41_x86-64_unix.Plo # am--include-marker +include blake3/$(DEPDIR)/libfyaml_la-blake3_backend.Plo # am--include-marker +include blake3/$(DEPDIR)/libfyaml_la-blake3_be_cpusimd.Plo # am--include-marker +include blake3/$(DEPDIR)/libfyaml_la-blake3_host_state.Plo # am--include-marker +include blake3/$(DEPDIR)/libfyaml_la-fy-blake3.Plo # am--include-marker +include internal/$(DEPDIR)/fy_b3sum-fy-b3sum.Po # am--include-marker +include internal/$(DEPDIR)/fy_thread-fy-thread.Po # am--include-marker include internal/$(DEPDIR)/libfyaml_parser-libfyaml-parser.Po # am--include-marker include lib/$(DEPDIR)/libfyaml_la-fy-accel.Plo # am--include-marker include lib/$(DEPDIR)/libfyaml_la-fy-atom.Plo # am--include-marker include lib/$(DEPDIR)/libfyaml_la-fy-composer.Plo # am--include-marker -include lib/$(DEPDIR)/libfyaml_la-fy-ctype.Plo # am--include-marker include lib/$(DEPDIR)/libfyaml_la-fy-diag.Plo # am--include-marker include lib/$(DEPDIR)/libfyaml_la-fy-doc.Plo # am--include-marker include lib/$(DEPDIR)/libfyaml_la-fy-docbuilder.Plo # am--include-marker @@ -743,10 +1108,13 @@ include lib/$(DEPDIR)/libfyaml_la-fy-parse.Plo # am--include-marker include lib/$(DEPDIR)/libfyaml_la-fy-path.Plo # am--include-marker include lib/$(DEPDIR)/libfyaml_la-fy-token.Plo # am--include-marker include lib/$(DEPDIR)/libfyaml_la-fy-types.Plo # am--include-marker -include lib/$(DEPDIR)/libfyaml_la-fy-utf8.Plo # am--include-marker -include lib/$(DEPDIR)/libfyaml_la-fy-utils.Plo # am--include-marker include lib/$(DEPDIR)/libfyaml_la-fy-walk.Plo # am--include-marker +include thread/$(DEPDIR)/libfyaml_la-fy-thread.Plo # am--include-marker include tool/$(DEPDIR)/fy_tool-fy-tool.Po # am--include-marker +include util/$(DEPDIR)/libfyaml_la-fy-blob.Plo # am--include-marker +include util/$(DEPDIR)/libfyaml_la-fy-ctype.Plo # am--include-marker +include util/$(DEPDIR)/libfyaml_la-fy-utf8.Plo # am--include-marker +include util/$(DEPDIR)/libfyaml_la-fy-utils.Plo # am--include-marker include xxhash/$(DEPDIR)/libfyaml_la-xxhash.Plo # am--include-marker $(am__depfiles_remade): @@ -755,6 +1123,58 @@ $(am__depfiles_remade): am--depfiles: $(am__depfiles_remade) +.S.o: + $(AM_V_CPPAS)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ + $(CPPASCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ + $(am__mv) $$depbase.Tpo $$depbase.Po +# $(AM_V_CPPAS)source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) \ +# $(AM_V_CPPAS_no)$(CPPASCOMPILE) -c -o $@ $< + +.S.obj: + $(AM_V_CPPAS)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ + $(CPPASCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ + $(am__mv) $$depbase.Tpo $$depbase.Po +# $(AM_V_CPPAS)source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) \ +# $(AM_V_CPPAS_no)$(CPPASCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.S.lo: + $(AM_V_CPPAS)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ + $(LTCPPASCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ + $(am__mv) $$depbase.Tpo $$depbase.Plo +# $(AM_V_CPPAS)source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) \ +# $(AM_V_CPPAS_no)$(LTCPPASCOMPILE) -c -o $@ $< + +blake3/libb3avx2_la-blake3_avx2_x86-64_unix.lo: blake3/blake3_avx2_x86-64_unix.S + $(AM_V_CPPAS)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3avx2_la_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS) -MT blake3/libb3avx2_la-blake3_avx2_x86-64_unix.lo -MD -MP -MF blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2_x86-64_unix.Tpo -c -o blake3/libb3avx2_la-blake3_avx2_x86-64_unix.lo `test -f 'blake3/blake3_avx2_x86-64_unix.S' || echo '$(srcdir)/'`blake3/blake3_avx2_x86-64_unix.S + $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2_x86-64_unix.Tpo blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2_x86-64_unix.Plo +# $(AM_V_CPPAS)source='blake3/blake3_avx2_x86-64_unix.S' object='blake3/libb3avx2_la-blake3_avx2_x86-64_unix.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) \ +# $(AM_V_CPPAS_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3avx2_la_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o blake3/libb3avx2_la-blake3_avx2_x86-64_unix.lo `test -f 'blake3/blake3_avx2_x86-64_unix.S' || echo '$(srcdir)/'`blake3/blake3_avx2_x86-64_unix.S + +blake3/libb3avx512_la-blake3_avx512_x86-64_unix.lo: blake3/blake3_avx512_x86-64_unix.S + $(AM_V_CPPAS)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3avx512_la_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS) -MT blake3/libb3avx512_la-blake3_avx512_x86-64_unix.lo -MD -MP -MF blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512_x86-64_unix.Tpo -c -o blake3/libb3avx512_la-blake3_avx512_x86-64_unix.lo `test -f 'blake3/blake3_avx512_x86-64_unix.S' || echo '$(srcdir)/'`blake3/blake3_avx512_x86-64_unix.S + $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512_x86-64_unix.Tpo blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512_x86-64_unix.Plo +# $(AM_V_CPPAS)source='blake3/blake3_avx512_x86-64_unix.S' object='blake3/libb3avx512_la-blake3_avx512_x86-64_unix.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) \ +# $(AM_V_CPPAS_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3avx512_la_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o blake3/libb3avx512_la-blake3_avx512_x86-64_unix.lo `test -f 'blake3/blake3_avx512_x86-64_unix.S' || echo '$(srcdir)/'`blake3/blake3_avx512_x86-64_unix.S + +blake3/libb3sse2_la-blake3_sse2_x86-64_unix.lo: blake3/blake3_sse2_x86-64_unix.S + $(AM_V_CPPAS)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3sse2_la_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS) -MT blake3/libb3sse2_la-blake3_sse2_x86-64_unix.lo -MD -MP -MF blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2_x86-64_unix.Tpo -c -o blake3/libb3sse2_la-blake3_sse2_x86-64_unix.lo `test -f 'blake3/blake3_sse2_x86-64_unix.S' || echo '$(srcdir)/'`blake3/blake3_sse2_x86-64_unix.S + $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2_x86-64_unix.Tpo blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2_x86-64_unix.Plo +# $(AM_V_CPPAS)source='blake3/blake3_sse2_x86-64_unix.S' object='blake3/libb3sse2_la-blake3_sse2_x86-64_unix.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) \ +# $(AM_V_CPPAS_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3sse2_la_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o blake3/libb3sse2_la-blake3_sse2_x86-64_unix.lo `test -f 'blake3/blake3_sse2_x86-64_unix.S' || echo '$(srcdir)/'`blake3/blake3_sse2_x86-64_unix.S + +blake3/libb3sse41_la-blake3_sse41_x86-64_unix.lo: blake3/blake3_sse41_x86-64_unix.S + $(AM_V_CPPAS)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3sse41_la_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS) -MT blake3/libb3sse41_la-blake3_sse41_x86-64_unix.lo -MD -MP -MF blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41_x86-64_unix.Tpo -c -o blake3/libb3sse41_la-blake3_sse41_x86-64_unix.lo `test -f 'blake3/blake3_sse41_x86-64_unix.S' || echo '$(srcdir)/'`blake3/blake3_sse41_x86-64_unix.S + $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41_x86-64_unix.Tpo blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41_x86-64_unix.Plo +# $(AM_V_CPPAS)source='blake3/blake3_sse41_x86-64_unix.S' object='blake3/libb3sse41_la-blake3_sse41_x86-64_unix.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) \ +# $(AM_V_CPPAS_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3sse41_la_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o blake3/libb3sse41_la-blake3_sse41_x86-64_unix.lo `test -f 'blake3/blake3_sse41_x86-64_unix.S' || echo '$(srcdir)/'`blake3/blake3_sse41_x86-64_unix.S + .c.o: $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ @@ -779,6 +1199,90 @@ am--depfiles: $(am__depfiles_remade) # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ # $(AM_V_CC_no)$(LTCOMPILE) -c -o $@ $< +blake3/libb3avx2_la-blake3_avx2.lo: blake3/blake3_avx2.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3avx2_la_CPPFLAGS) $(CPPFLAGS) $(libb3avx2_la_CFLAGS) $(CFLAGS) -MT blake3/libb3avx2_la-blake3_avx2.lo -MD -MP -MF blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2.Tpo -c -o blake3/libb3avx2_la-blake3_avx2.lo `test -f 'blake3/blake3_avx2.c' || echo '$(srcdir)/'`blake3/blake3_avx2.c + $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2.Tpo blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2.Plo +# $(AM_V_CC)source='blake3/blake3_avx2.c' object='blake3/libb3avx2_la-blake3_avx2.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3avx2_la_CPPFLAGS) $(CPPFLAGS) $(libb3avx2_la_CFLAGS) $(CFLAGS) -c -o blake3/libb3avx2_la-blake3_avx2.lo `test -f 'blake3/blake3_avx2.c' || echo '$(srcdir)/'`blake3/blake3_avx2.c + +blake3/libb3avx2_la-blake3.lo: blake3/blake3.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3avx2_la_CPPFLAGS) $(CPPFLAGS) $(libb3avx2_la_CFLAGS) $(CFLAGS) -MT blake3/libb3avx2_la-blake3.lo -MD -MP -MF blake3/$(DEPDIR)/libb3avx2_la-blake3.Tpo -c -o blake3/libb3avx2_la-blake3.lo `test -f 'blake3/blake3.c' || echo '$(srcdir)/'`blake3/blake3.c + $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3avx2_la-blake3.Tpo blake3/$(DEPDIR)/libb3avx2_la-blake3.Plo +# $(AM_V_CC)source='blake3/blake3.c' object='blake3/libb3avx2_la-blake3.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3avx2_la_CPPFLAGS) $(CPPFLAGS) $(libb3avx2_la_CFLAGS) $(CFLAGS) -c -o blake3/libb3avx2_la-blake3.lo `test -f 'blake3/blake3.c' || echo '$(srcdir)/'`blake3/blake3.c + +blake3/libb3avx512_la-blake3_avx512.lo: blake3/blake3_avx512.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3avx512_la_CPPFLAGS) $(CPPFLAGS) $(libb3avx512_la_CFLAGS) $(CFLAGS) -MT blake3/libb3avx512_la-blake3_avx512.lo -MD -MP -MF blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512.Tpo -c -o blake3/libb3avx512_la-blake3_avx512.lo `test -f 'blake3/blake3_avx512.c' || echo '$(srcdir)/'`blake3/blake3_avx512.c + $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512.Tpo blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512.Plo +# $(AM_V_CC)source='blake3/blake3_avx512.c' object='blake3/libb3avx512_la-blake3_avx512.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3avx512_la_CPPFLAGS) $(CPPFLAGS) $(libb3avx512_la_CFLAGS) $(CFLAGS) -c -o blake3/libb3avx512_la-blake3_avx512.lo `test -f 'blake3/blake3_avx512.c' || echo '$(srcdir)/'`blake3/blake3_avx512.c + +blake3/libb3avx512_la-blake3.lo: blake3/blake3.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3avx512_la_CPPFLAGS) $(CPPFLAGS) $(libb3avx512_la_CFLAGS) $(CFLAGS) -MT blake3/libb3avx512_la-blake3.lo -MD -MP -MF blake3/$(DEPDIR)/libb3avx512_la-blake3.Tpo -c -o blake3/libb3avx512_la-blake3.lo `test -f 'blake3/blake3.c' || echo '$(srcdir)/'`blake3/blake3.c + $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3avx512_la-blake3.Tpo blake3/$(DEPDIR)/libb3avx512_la-blake3.Plo +# $(AM_V_CC)source='blake3/blake3.c' object='blake3/libb3avx512_la-blake3.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3avx512_la_CPPFLAGS) $(CPPFLAGS) $(libb3avx512_la_CFLAGS) $(CFLAGS) -c -o blake3/libb3avx512_la-blake3.lo `test -f 'blake3/blake3.c' || echo '$(srcdir)/'`blake3/blake3.c + +blake3/libb3neon_la-blake3_neon.lo: blake3/blake3_neon.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3neon_la_CPPFLAGS) $(CPPFLAGS) $(libb3neon_la_CFLAGS) $(CFLAGS) -MT blake3/libb3neon_la-blake3_neon.lo -MD -MP -MF blake3/$(DEPDIR)/libb3neon_la-blake3_neon.Tpo -c -o blake3/libb3neon_la-blake3_neon.lo `test -f 'blake3/blake3_neon.c' || echo '$(srcdir)/'`blake3/blake3_neon.c + $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3neon_la-blake3_neon.Tpo blake3/$(DEPDIR)/libb3neon_la-blake3_neon.Plo +# $(AM_V_CC)source='blake3/blake3_neon.c' object='blake3/libb3neon_la-blake3_neon.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3neon_la_CPPFLAGS) $(CPPFLAGS) $(libb3neon_la_CFLAGS) $(CFLAGS) -c -o blake3/libb3neon_la-blake3_neon.lo `test -f 'blake3/blake3_neon.c' || echo '$(srcdir)/'`blake3/blake3_neon.c + +blake3/libb3neon_la-blake3.lo: blake3/blake3.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3neon_la_CPPFLAGS) $(CPPFLAGS) $(libb3neon_la_CFLAGS) $(CFLAGS) -MT blake3/libb3neon_la-blake3.lo -MD -MP -MF blake3/$(DEPDIR)/libb3neon_la-blake3.Tpo -c -o blake3/libb3neon_la-blake3.lo `test -f 'blake3/blake3.c' || echo '$(srcdir)/'`blake3/blake3.c + $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3neon_la-blake3.Tpo blake3/$(DEPDIR)/libb3neon_la-blake3.Plo +# $(AM_V_CC)source='blake3/blake3.c' object='blake3/libb3neon_la-blake3.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3neon_la_CPPFLAGS) $(CPPFLAGS) $(libb3neon_la_CFLAGS) $(CFLAGS) -c -o blake3/libb3neon_la-blake3.lo `test -f 'blake3/blake3.c' || echo '$(srcdir)/'`blake3/blake3.c + +blake3/libb3portable_la-blake3_portable.lo: blake3/blake3_portable.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3portable_la_CPPFLAGS) $(CPPFLAGS) $(libb3portable_la_CFLAGS) $(CFLAGS) -MT blake3/libb3portable_la-blake3_portable.lo -MD -MP -MF blake3/$(DEPDIR)/libb3portable_la-blake3_portable.Tpo -c -o blake3/libb3portable_la-blake3_portable.lo `test -f 'blake3/blake3_portable.c' || echo '$(srcdir)/'`blake3/blake3_portable.c + $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3portable_la-blake3_portable.Tpo blake3/$(DEPDIR)/libb3portable_la-blake3_portable.Plo +# $(AM_V_CC)source='blake3/blake3_portable.c' object='blake3/libb3portable_la-blake3_portable.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3portable_la_CPPFLAGS) $(CPPFLAGS) $(libb3portable_la_CFLAGS) $(CFLAGS) -c -o blake3/libb3portable_la-blake3_portable.lo `test -f 'blake3/blake3_portable.c' || echo '$(srcdir)/'`blake3/blake3_portable.c + +blake3/libb3portable_la-blake3.lo: blake3/blake3.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3portable_la_CPPFLAGS) $(CPPFLAGS) $(libb3portable_la_CFLAGS) $(CFLAGS) -MT blake3/libb3portable_la-blake3.lo -MD -MP -MF blake3/$(DEPDIR)/libb3portable_la-blake3.Tpo -c -o blake3/libb3portable_la-blake3.lo `test -f 'blake3/blake3.c' || echo '$(srcdir)/'`blake3/blake3.c + $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3portable_la-blake3.Tpo blake3/$(DEPDIR)/libb3portable_la-blake3.Plo +# $(AM_V_CC)source='blake3/blake3.c' object='blake3/libb3portable_la-blake3.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3portable_la_CPPFLAGS) $(CPPFLAGS) $(libb3portable_la_CFLAGS) $(CFLAGS) -c -o blake3/libb3portable_la-blake3.lo `test -f 'blake3/blake3.c' || echo '$(srcdir)/'`blake3/blake3.c + +blake3/libb3sse2_la-blake3_sse2.lo: blake3/blake3_sse2.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3sse2_la_CPPFLAGS) $(CPPFLAGS) $(libb3sse2_la_CFLAGS) $(CFLAGS) -MT blake3/libb3sse2_la-blake3_sse2.lo -MD -MP -MF blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2.Tpo -c -o blake3/libb3sse2_la-blake3_sse2.lo `test -f 'blake3/blake3_sse2.c' || echo '$(srcdir)/'`blake3/blake3_sse2.c + $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2.Tpo blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2.Plo +# $(AM_V_CC)source='blake3/blake3_sse2.c' object='blake3/libb3sse2_la-blake3_sse2.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3sse2_la_CPPFLAGS) $(CPPFLAGS) $(libb3sse2_la_CFLAGS) $(CFLAGS) -c -o blake3/libb3sse2_la-blake3_sse2.lo `test -f 'blake3/blake3_sse2.c' || echo '$(srcdir)/'`blake3/blake3_sse2.c + +blake3/libb3sse2_la-blake3.lo: blake3/blake3.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3sse2_la_CPPFLAGS) $(CPPFLAGS) $(libb3sse2_la_CFLAGS) $(CFLAGS) -MT blake3/libb3sse2_la-blake3.lo -MD -MP -MF blake3/$(DEPDIR)/libb3sse2_la-blake3.Tpo -c -o blake3/libb3sse2_la-blake3.lo `test -f 'blake3/blake3.c' || echo '$(srcdir)/'`blake3/blake3.c + $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3sse2_la-blake3.Tpo blake3/$(DEPDIR)/libb3sse2_la-blake3.Plo +# $(AM_V_CC)source='blake3/blake3.c' object='blake3/libb3sse2_la-blake3.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3sse2_la_CPPFLAGS) $(CPPFLAGS) $(libb3sse2_la_CFLAGS) $(CFLAGS) -c -o blake3/libb3sse2_la-blake3.lo `test -f 'blake3/blake3.c' || echo '$(srcdir)/'`blake3/blake3.c + +blake3/libb3sse41_la-blake3_sse41.lo: blake3/blake3_sse41.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3sse41_la_CPPFLAGS) $(CPPFLAGS) $(libb3sse41_la_CFLAGS) $(CFLAGS) -MT blake3/libb3sse41_la-blake3_sse41.lo -MD -MP -MF blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41.Tpo -c -o blake3/libb3sse41_la-blake3_sse41.lo `test -f 'blake3/blake3_sse41.c' || echo '$(srcdir)/'`blake3/blake3_sse41.c + $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41.Tpo blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41.Plo +# $(AM_V_CC)source='blake3/blake3_sse41.c' object='blake3/libb3sse41_la-blake3_sse41.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3sse41_la_CPPFLAGS) $(CPPFLAGS) $(libb3sse41_la_CFLAGS) $(CFLAGS) -c -o blake3/libb3sse41_la-blake3_sse41.lo `test -f 'blake3/blake3_sse41.c' || echo '$(srcdir)/'`blake3/blake3_sse41.c + +blake3/libb3sse41_la-blake3.lo: blake3/blake3.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3sse41_la_CPPFLAGS) $(CPPFLAGS) $(libb3sse41_la_CFLAGS) $(CFLAGS) -MT blake3/libb3sse41_la-blake3.lo -MD -MP -MF blake3/$(DEPDIR)/libb3sse41_la-blake3.Tpo -c -o blake3/libb3sse41_la-blake3.lo `test -f 'blake3/blake3.c' || echo '$(srcdir)/'`blake3/blake3.c + $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3sse41_la-blake3.Tpo blake3/$(DEPDIR)/libb3sse41_la-blake3.Plo +# $(AM_V_CC)source='blake3/blake3.c' object='blake3/libb3sse41_la-blake3.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3sse41_la_CPPFLAGS) $(CPPFLAGS) $(libb3sse41_la_CFLAGS) $(CFLAGS) -c -o blake3/libb3sse41_la-blake3.lo `test -f 'blake3/blake3.c' || echo '$(srcdir)/'`blake3/blake3.c + lib/libfyaml_la-fy-parse.lo: lib/fy-parse.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT lib/libfyaml_la-fy-parse.lo -MD -MP -MF lib/$(DEPDIR)/libfyaml_la-fy-parse.Tpo -c -o lib/libfyaml_la-fy-parse.lo `test -f 'lib/fy-parse.c' || echo '$(srcdir)/'`lib/fy-parse.c $(AM_V_at)$(am__mv) lib/$(DEPDIR)/libfyaml_la-fy-parse.Tpo lib/$(DEPDIR)/libfyaml_la-fy-parse.Plo @@ -786,13 +1290,6 @@ lib/libfyaml_la-fy-parse.lo: lib/fy-parse.c # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ # $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o lib/libfyaml_la-fy-parse.lo `test -f 'lib/fy-parse.c' || echo '$(srcdir)/'`lib/fy-parse.c -lib/libfyaml_la-fy-utf8.lo: lib/fy-utf8.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT lib/libfyaml_la-fy-utf8.lo -MD -MP -MF lib/$(DEPDIR)/libfyaml_la-fy-utf8.Tpo -c -o lib/libfyaml_la-fy-utf8.lo `test -f 'lib/fy-utf8.c' || echo '$(srcdir)/'`lib/fy-utf8.c - $(AM_V_at)$(am__mv) lib/$(DEPDIR)/libfyaml_la-fy-utf8.Tpo lib/$(DEPDIR)/libfyaml_la-fy-utf8.Plo -# $(AM_V_CC)source='lib/fy-utf8.c' object='lib/libfyaml_la-fy-utf8.lo' libtool=yes \ -# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ -# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o lib/libfyaml_la-fy-utf8.lo `test -f 'lib/fy-utf8.c' || echo '$(srcdir)/'`lib/fy-utf8.c - lib/libfyaml_la-fy-types.lo: lib/fy-types.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT lib/libfyaml_la-fy-types.lo -MD -MP -MF lib/$(DEPDIR)/libfyaml_la-fy-types.Tpo -c -o lib/libfyaml_la-fy-types.lo `test -f 'lib/fy-types.c' || echo '$(srcdir)/'`lib/fy-types.c $(AM_V_at)$(am__mv) lib/$(DEPDIR)/libfyaml_la-fy-types.Tpo lib/$(DEPDIR)/libfyaml_la-fy-types.Plo @@ -821,13 +1318,6 @@ lib/libfyaml_la-fy-atom.lo: lib/fy-atom.c # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ # $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o lib/libfyaml_la-fy-atom.lo `test -f 'lib/fy-atom.c' || echo '$(srcdir)/'`lib/fy-atom.c -lib/libfyaml_la-fy-ctype.lo: lib/fy-ctype.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT lib/libfyaml_la-fy-ctype.lo -MD -MP -MF lib/$(DEPDIR)/libfyaml_la-fy-ctype.Tpo -c -o lib/libfyaml_la-fy-ctype.lo `test -f 'lib/fy-ctype.c' || echo '$(srcdir)/'`lib/fy-ctype.c - $(AM_V_at)$(am__mv) lib/$(DEPDIR)/libfyaml_la-fy-ctype.Tpo lib/$(DEPDIR)/libfyaml_la-fy-ctype.Plo -# $(AM_V_CC)source='lib/fy-ctype.c' object='lib/libfyaml_la-fy-ctype.lo' libtool=yes \ -# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ -# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o lib/libfyaml_la-fy-ctype.lo `test -f 'lib/fy-ctype.c' || echo '$(srcdir)/'`lib/fy-ctype.c - lib/libfyaml_la-fy-token.lo: lib/fy-token.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT lib/libfyaml_la-fy-token.lo -MD -MP -MF lib/$(DEPDIR)/libfyaml_la-fy-token.Tpo -c -o lib/libfyaml_la-fy-token.lo `test -f 'lib/fy-token.c' || echo '$(srcdir)/'`lib/fy-token.c $(AM_V_at)$(am__mv) lib/$(DEPDIR)/libfyaml_la-fy-token.Tpo lib/$(DEPDIR)/libfyaml_la-fy-token.Plo @@ -870,13 +1360,6 @@ lib/libfyaml_la-fy-emit.lo: lib/fy-emit.c # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ # $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o lib/libfyaml_la-fy-emit.lo `test -f 'lib/fy-emit.c' || echo '$(srcdir)/'`lib/fy-emit.c -lib/libfyaml_la-fy-utils.lo: lib/fy-utils.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT lib/libfyaml_la-fy-utils.lo -MD -MP -MF lib/$(DEPDIR)/libfyaml_la-fy-utils.Tpo -c -o lib/libfyaml_la-fy-utils.lo `test -f 'lib/fy-utils.c' || echo '$(srcdir)/'`lib/fy-utils.c - $(AM_V_at)$(am__mv) lib/$(DEPDIR)/libfyaml_la-fy-utils.Tpo lib/$(DEPDIR)/libfyaml_la-fy-utils.Plo -# $(AM_V_CC)source='lib/fy-utils.c' object='lib/libfyaml_la-fy-utils.lo' libtool=yes \ -# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ -# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o lib/libfyaml_la-fy-utils.lo `test -f 'lib/fy-utils.c' || echo '$(srcdir)/'`lib/fy-utils.c - lib/libfyaml_la-fy-event.lo: lib/fy-event.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT lib/libfyaml_la-fy-event.lo -MD -MP -MF lib/$(DEPDIR)/libfyaml_la-fy-event.Tpo -c -o lib/libfyaml_la-fy-event.lo `test -f 'lib/fy-event.c' || echo '$(srcdir)/'`lib/fy-event.c $(AM_V_at)$(am__mv) lib/$(DEPDIR)/libfyaml_la-fy-event.Tpo lib/$(DEPDIR)/libfyaml_la-fy-event.Plo @@ -884,13 +1367,6 @@ lib/libfyaml_la-fy-event.lo: lib/fy-event.c # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ # $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o lib/libfyaml_la-fy-event.lo `test -f 'lib/fy-event.c' || echo '$(srcdir)/'`lib/fy-event.c -xxhash/libfyaml_la-xxhash.lo: xxhash/xxhash.c - $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT xxhash/libfyaml_la-xxhash.lo -MD -MP -MF xxhash/$(DEPDIR)/libfyaml_la-xxhash.Tpo -c -o xxhash/libfyaml_la-xxhash.lo `test -f 'xxhash/xxhash.c' || echo '$(srcdir)/'`xxhash/xxhash.c - $(AM_V_at)$(am__mv) xxhash/$(DEPDIR)/libfyaml_la-xxhash.Tpo xxhash/$(DEPDIR)/libfyaml_la-xxhash.Plo -# $(AM_V_CC)source='xxhash/xxhash.c' object='xxhash/libfyaml_la-xxhash.lo' libtool=yes \ -# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ -# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o xxhash/libfyaml_la-xxhash.lo `test -f 'xxhash/xxhash.c' || echo '$(srcdir)/'`xxhash/xxhash.c - lib/libfyaml_la-fy-accel.lo: lib/fy-accel.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT lib/libfyaml_la-fy-accel.lo -MD -MP -MF lib/$(DEPDIR)/libfyaml_la-fy-accel.Tpo -c -o lib/libfyaml_la-fy-accel.lo `test -f 'lib/fy-accel.c' || echo '$(srcdir)/'`lib/fy-accel.c $(AM_V_at)$(am__mv) lib/$(DEPDIR)/libfyaml_la-fy-accel.Tpo lib/$(DEPDIR)/libfyaml_la-fy-accel.Plo @@ -919,6 +1395,104 @@ lib/libfyaml_la-fy-composer.lo: lib/fy-composer.c # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ # $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o lib/libfyaml_la-fy-composer.lo `test -f 'lib/fy-composer.c' || echo '$(srcdir)/'`lib/fy-composer.c +xxhash/libfyaml_la-xxhash.lo: xxhash/xxhash.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT xxhash/libfyaml_la-xxhash.lo -MD -MP -MF xxhash/$(DEPDIR)/libfyaml_la-xxhash.Tpo -c -o xxhash/libfyaml_la-xxhash.lo `test -f 'xxhash/xxhash.c' || echo '$(srcdir)/'`xxhash/xxhash.c + $(AM_V_at)$(am__mv) xxhash/$(DEPDIR)/libfyaml_la-xxhash.Tpo xxhash/$(DEPDIR)/libfyaml_la-xxhash.Plo +# $(AM_V_CC)source='xxhash/xxhash.c' object='xxhash/libfyaml_la-xxhash.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o xxhash/libfyaml_la-xxhash.lo `test -f 'xxhash/xxhash.c' || echo '$(srcdir)/'`xxhash/xxhash.c + +util/libfyaml_la-fy-ctype.lo: util/fy-ctype.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT util/libfyaml_la-fy-ctype.lo -MD -MP -MF util/$(DEPDIR)/libfyaml_la-fy-ctype.Tpo -c -o util/libfyaml_la-fy-ctype.lo `test -f 'util/fy-ctype.c' || echo '$(srcdir)/'`util/fy-ctype.c + $(AM_V_at)$(am__mv) util/$(DEPDIR)/libfyaml_la-fy-ctype.Tpo util/$(DEPDIR)/libfyaml_la-fy-ctype.Plo +# $(AM_V_CC)source='util/fy-ctype.c' object='util/libfyaml_la-fy-ctype.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o util/libfyaml_la-fy-ctype.lo `test -f 'util/fy-ctype.c' || echo '$(srcdir)/'`util/fy-ctype.c + +util/libfyaml_la-fy-utf8.lo: util/fy-utf8.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT util/libfyaml_la-fy-utf8.lo -MD -MP -MF util/$(DEPDIR)/libfyaml_la-fy-utf8.Tpo -c -o util/libfyaml_la-fy-utf8.lo `test -f 'util/fy-utf8.c' || echo '$(srcdir)/'`util/fy-utf8.c + $(AM_V_at)$(am__mv) util/$(DEPDIR)/libfyaml_la-fy-utf8.Tpo util/$(DEPDIR)/libfyaml_la-fy-utf8.Plo +# $(AM_V_CC)source='util/fy-utf8.c' object='util/libfyaml_la-fy-utf8.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o util/libfyaml_la-fy-utf8.lo `test -f 'util/fy-utf8.c' || echo '$(srcdir)/'`util/fy-utf8.c + +util/libfyaml_la-fy-utils.lo: util/fy-utils.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT util/libfyaml_la-fy-utils.lo -MD -MP -MF util/$(DEPDIR)/libfyaml_la-fy-utils.Tpo -c -o util/libfyaml_la-fy-utils.lo `test -f 'util/fy-utils.c' || echo '$(srcdir)/'`util/fy-utils.c + $(AM_V_at)$(am__mv) util/$(DEPDIR)/libfyaml_la-fy-utils.Tpo util/$(DEPDIR)/libfyaml_la-fy-utils.Plo +# $(AM_V_CC)source='util/fy-utils.c' object='util/libfyaml_la-fy-utils.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o util/libfyaml_la-fy-utils.lo `test -f 'util/fy-utils.c' || echo '$(srcdir)/'`util/fy-utils.c + +util/libfyaml_la-fy-blob.lo: util/fy-blob.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT util/libfyaml_la-fy-blob.lo -MD -MP -MF util/$(DEPDIR)/libfyaml_la-fy-blob.Tpo -c -o util/libfyaml_la-fy-blob.lo `test -f 'util/fy-blob.c' || echo '$(srcdir)/'`util/fy-blob.c + $(AM_V_at)$(am__mv) util/$(DEPDIR)/libfyaml_la-fy-blob.Tpo util/$(DEPDIR)/libfyaml_la-fy-blob.Plo +# $(AM_V_CC)source='util/fy-blob.c' object='util/libfyaml_la-fy-blob.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o util/libfyaml_la-fy-blob.lo `test -f 'util/fy-blob.c' || echo '$(srcdir)/'`util/fy-blob.c + +thread/libfyaml_la-fy-thread.lo: thread/fy-thread.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT thread/libfyaml_la-fy-thread.lo -MD -MP -MF thread/$(DEPDIR)/libfyaml_la-fy-thread.Tpo -c -o thread/libfyaml_la-fy-thread.lo `test -f 'thread/fy-thread.c' || echo '$(srcdir)/'`thread/fy-thread.c + $(AM_V_at)$(am__mv) thread/$(DEPDIR)/libfyaml_la-fy-thread.Tpo thread/$(DEPDIR)/libfyaml_la-fy-thread.Plo +# $(AM_V_CC)source='thread/fy-thread.c' object='thread/libfyaml_la-fy-thread.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o thread/libfyaml_la-fy-thread.lo `test -f 'thread/fy-thread.c' || echo '$(srcdir)/'`thread/fy-thread.c + +blake3/libfyaml_la-blake3_host_state.lo: blake3/blake3_host_state.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT blake3/libfyaml_la-blake3_host_state.lo -MD -MP -MF blake3/$(DEPDIR)/libfyaml_la-blake3_host_state.Tpo -c -o blake3/libfyaml_la-blake3_host_state.lo `test -f 'blake3/blake3_host_state.c' || echo '$(srcdir)/'`blake3/blake3_host_state.c + $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libfyaml_la-blake3_host_state.Tpo blake3/$(DEPDIR)/libfyaml_la-blake3_host_state.Plo +# $(AM_V_CC)source='blake3/blake3_host_state.c' object='blake3/libfyaml_la-blake3_host_state.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o blake3/libfyaml_la-blake3_host_state.lo `test -f 'blake3/blake3_host_state.c' || echo '$(srcdir)/'`blake3/blake3_host_state.c + +blake3/libfyaml_la-blake3_backend.lo: blake3/blake3_backend.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT blake3/libfyaml_la-blake3_backend.lo -MD -MP -MF blake3/$(DEPDIR)/libfyaml_la-blake3_backend.Tpo -c -o blake3/libfyaml_la-blake3_backend.lo `test -f 'blake3/blake3_backend.c' || echo '$(srcdir)/'`blake3/blake3_backend.c + $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libfyaml_la-blake3_backend.Tpo blake3/$(DEPDIR)/libfyaml_la-blake3_backend.Plo +# $(AM_V_CC)source='blake3/blake3_backend.c' object='blake3/libfyaml_la-blake3_backend.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o blake3/libfyaml_la-blake3_backend.lo `test -f 'blake3/blake3_backend.c' || echo '$(srcdir)/'`blake3/blake3_backend.c + +blake3/libfyaml_la-blake3_be_cpusimd.lo: blake3/blake3_be_cpusimd.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT blake3/libfyaml_la-blake3_be_cpusimd.lo -MD -MP -MF blake3/$(DEPDIR)/libfyaml_la-blake3_be_cpusimd.Tpo -c -o blake3/libfyaml_la-blake3_be_cpusimd.lo `test -f 'blake3/blake3_be_cpusimd.c' || echo '$(srcdir)/'`blake3/blake3_be_cpusimd.c + $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libfyaml_la-blake3_be_cpusimd.Tpo blake3/$(DEPDIR)/libfyaml_la-blake3_be_cpusimd.Plo +# $(AM_V_CC)source='blake3/blake3_be_cpusimd.c' object='blake3/libfyaml_la-blake3_be_cpusimd.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o blake3/libfyaml_la-blake3_be_cpusimd.lo `test -f 'blake3/blake3_be_cpusimd.c' || echo '$(srcdir)/'`blake3/blake3_be_cpusimd.c + +blake3/libfyaml_la-fy-blake3.lo: blake3/fy-blake3.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT blake3/libfyaml_la-fy-blake3.lo -MD -MP -MF blake3/$(DEPDIR)/libfyaml_la-fy-blake3.Tpo -c -o blake3/libfyaml_la-fy-blake3.lo `test -f 'blake3/fy-blake3.c' || echo '$(srcdir)/'`blake3/fy-blake3.c + $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libfyaml_la-fy-blake3.Tpo blake3/$(DEPDIR)/libfyaml_la-fy-blake3.Plo +# $(AM_V_CC)source='blake3/fy-blake3.c' object='blake3/libfyaml_la-fy-blake3.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o blake3/libfyaml_la-fy-blake3.lo `test -f 'blake3/fy-blake3.c' || echo '$(srcdir)/'`blake3/fy-blake3.c + +internal/fy_b3sum-fy-b3sum.o: internal/fy-b3sum.c + $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fy_b3sum_CPPFLAGS) $(CPPFLAGS) $(fy_b3sum_CFLAGS) $(CFLAGS) -MT internal/fy_b3sum-fy-b3sum.o -MD -MP -MF internal/$(DEPDIR)/fy_b3sum-fy-b3sum.Tpo -c -o internal/fy_b3sum-fy-b3sum.o `test -f 'internal/fy-b3sum.c' || echo '$(srcdir)/'`internal/fy-b3sum.c + $(AM_V_at)$(am__mv) internal/$(DEPDIR)/fy_b3sum-fy-b3sum.Tpo internal/$(DEPDIR)/fy_b3sum-fy-b3sum.Po +# $(AM_V_CC)source='internal/fy-b3sum.c' object='internal/fy_b3sum-fy-b3sum.o' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fy_b3sum_CPPFLAGS) $(CPPFLAGS) $(fy_b3sum_CFLAGS) $(CFLAGS) -c -o internal/fy_b3sum-fy-b3sum.o `test -f 'internal/fy-b3sum.c' || echo '$(srcdir)/'`internal/fy-b3sum.c + +internal/fy_b3sum-fy-b3sum.obj: internal/fy-b3sum.c + $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fy_b3sum_CPPFLAGS) $(CPPFLAGS) $(fy_b3sum_CFLAGS) $(CFLAGS) -MT internal/fy_b3sum-fy-b3sum.obj -MD -MP -MF internal/$(DEPDIR)/fy_b3sum-fy-b3sum.Tpo -c -o internal/fy_b3sum-fy-b3sum.obj `if test -f 'internal/fy-b3sum.c'; then $(CYGPATH_W) 'internal/fy-b3sum.c'; else $(CYGPATH_W) '$(srcdir)/internal/fy-b3sum.c'; fi` + $(AM_V_at)$(am__mv) internal/$(DEPDIR)/fy_b3sum-fy-b3sum.Tpo internal/$(DEPDIR)/fy_b3sum-fy-b3sum.Po +# $(AM_V_CC)source='internal/fy-b3sum.c' object='internal/fy_b3sum-fy-b3sum.obj' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fy_b3sum_CPPFLAGS) $(CPPFLAGS) $(fy_b3sum_CFLAGS) $(CFLAGS) -c -o internal/fy_b3sum-fy-b3sum.obj `if test -f 'internal/fy-b3sum.c'; then $(CYGPATH_W) 'internal/fy-b3sum.c'; else $(CYGPATH_W) '$(srcdir)/internal/fy-b3sum.c'; fi` + +internal/fy_thread-fy-thread.o: internal/fy-thread.c + $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fy_thread_CPPFLAGS) $(CPPFLAGS) $(fy_thread_CFLAGS) $(CFLAGS) -MT internal/fy_thread-fy-thread.o -MD -MP -MF internal/$(DEPDIR)/fy_thread-fy-thread.Tpo -c -o internal/fy_thread-fy-thread.o `test -f 'internal/fy-thread.c' || echo '$(srcdir)/'`internal/fy-thread.c + $(AM_V_at)$(am__mv) internal/$(DEPDIR)/fy_thread-fy-thread.Tpo internal/$(DEPDIR)/fy_thread-fy-thread.Po +# $(AM_V_CC)source='internal/fy-thread.c' object='internal/fy_thread-fy-thread.o' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fy_thread_CPPFLAGS) $(CPPFLAGS) $(fy_thread_CFLAGS) $(CFLAGS) -c -o internal/fy_thread-fy-thread.o `test -f 'internal/fy-thread.c' || echo '$(srcdir)/'`internal/fy-thread.c + +internal/fy_thread-fy-thread.obj: internal/fy-thread.c + $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fy_thread_CPPFLAGS) $(CPPFLAGS) $(fy_thread_CFLAGS) $(CFLAGS) -MT internal/fy_thread-fy-thread.obj -MD -MP -MF internal/$(DEPDIR)/fy_thread-fy-thread.Tpo -c -o internal/fy_thread-fy-thread.obj `if test -f 'internal/fy-thread.c'; then $(CYGPATH_W) 'internal/fy-thread.c'; else $(CYGPATH_W) '$(srcdir)/internal/fy-thread.c'; fi` + $(AM_V_at)$(am__mv) internal/$(DEPDIR)/fy_thread-fy-thread.Tpo internal/$(DEPDIR)/fy_thread-fy-thread.Po +# $(AM_V_CC)source='internal/fy-thread.c' object='internal/fy_thread-fy-thread.obj' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fy_thread_CPPFLAGS) $(CPPFLAGS) $(fy_thread_CFLAGS) $(CFLAGS) -c -o internal/fy_thread-fy-thread.obj `if test -f 'internal/fy-thread.c'; then $(CYGPATH_W) 'internal/fy-thread.c'; else $(CYGPATH_W) '$(srcdir)/internal/fy-thread.c'; fi` + tool/fy_tool-fy-tool.o: tool/fy-tool.c $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fy_tool_CPPFLAGS) $(CPPFLAGS) $(fy_tool_CFLAGS) $(CFLAGS) -MT tool/fy_tool-fy-tool.o -MD -MP -MF tool/$(DEPDIR)/fy_tool-fy-tool.Tpo -c -o tool/fy_tool-fy-tool.o `test -f 'tool/fy-tool.c' || echo '$(srcdir)/'`tool/fy-tool.c $(AM_V_at)$(am__mv) tool/$(DEPDIR)/fy_tool-fy-tool.Tpo tool/$(DEPDIR)/fy_tool-fy-tool.Po @@ -952,7 +1526,10 @@ mostlyclean-libtool: clean-libtool: -rm -rf .libs _libs + -rm -rf blake3/.libs blake3/_libs -rm -rf lib/.libs lib/_libs + -rm -rf thread/.libs thread/_libs + -rm -rf util/.libs util/_libs -rm -rf xxhash/.libs xxhash/_libs install-includeHEADERS: $(include_HEADERS) @$(NORMAL_INSTALL) @@ -1068,7 +1645,7 @@ distdir-am: $(DISTFILES) done check-am: all-am check: check-am -all-am: Makefile $(PROGRAMS) $(LTLIBRARIES) $(HEADERS) +all-am: Makefile $(PROGRAMS) $(LIBRARIES) $(LTLIBRARIES) $(HEADERS) install-binPROGRAMS: install-libLTLIBRARIES installdirs: @@ -1101,12 +1678,18 @@ 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) + -rm -f blake3/$(DEPDIR)/$(am__dirstamp) + -rm -f blake3/$(am__dirstamp) -rm -f internal/$(DEPDIR)/$(am__dirstamp) -rm -f internal/$(am__dirstamp) -rm -f lib/$(DEPDIR)/$(am__dirstamp) -rm -f lib/$(am__dirstamp) + -rm -f thread/$(DEPDIR)/$(am__dirstamp) + -rm -f thread/$(am__dirstamp) -rm -f tool/$(DEPDIR)/$(am__dirstamp) -rm -f tool/$(am__dirstamp) + -rm -f util/$(DEPDIR)/$(am__dirstamp) + -rm -f util/$(am__dirstamp) -rm -f xxhash/$(DEPDIR)/$(am__dirstamp) -rm -f xxhash/$(am__dirstamp) @@ -1116,14 +1699,36 @@ maintainer-clean-generic: clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \ - clean-libtool clean-noinstPROGRAMS mostlyclean-am + clean-libtool clean-noinstLIBRARIES clean-noinstLTLIBRARIES \ + clean-noinstPROGRAMS mostlyclean-am distclean: distclean-am - -rm -f internal/$(DEPDIR)/libfyaml_parser-libfyaml-parser.Po + -rm -f blake3/$(DEPDIR)/libb3avx2_la-blake3.Plo + -rm -f blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2.Plo + -rm -f blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2_x86-64_unix.Plo + -rm -f blake3/$(DEPDIR)/libb3avx512_la-blake3.Plo + -rm -f blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512.Plo + -rm -f blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512_x86-64_unix.Plo + -rm -f blake3/$(DEPDIR)/libb3neon_la-blake3.Plo + -rm -f blake3/$(DEPDIR)/libb3neon_la-blake3_neon.Plo + -rm -f blake3/$(DEPDIR)/libb3portable_la-blake3.Plo + -rm -f blake3/$(DEPDIR)/libb3portable_la-blake3_portable.Plo + -rm -f blake3/$(DEPDIR)/libb3sse2_la-blake3.Plo + -rm -f blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2.Plo + -rm -f blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2_x86-64_unix.Plo + -rm -f blake3/$(DEPDIR)/libb3sse41_la-blake3.Plo + -rm -f blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41.Plo + -rm -f blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41_x86-64_unix.Plo + -rm -f blake3/$(DEPDIR)/libfyaml_la-blake3_backend.Plo + -rm -f blake3/$(DEPDIR)/libfyaml_la-blake3_be_cpusimd.Plo + -rm -f blake3/$(DEPDIR)/libfyaml_la-blake3_host_state.Plo + -rm -f blake3/$(DEPDIR)/libfyaml_la-fy-blake3.Plo + -rm -f internal/$(DEPDIR)/fy_b3sum-fy-b3sum.Po + -rm -f internal/$(DEPDIR)/fy_thread-fy-thread.Po + -rm -f internal/$(DEPDIR)/libfyaml_parser-libfyaml-parser.Po -rm -f lib/$(DEPDIR)/libfyaml_la-fy-accel.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-atom.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-composer.Plo - -rm -f lib/$(DEPDIR)/libfyaml_la-fy-ctype.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-diag.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-doc.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-docbuilder.Plo @@ -1136,10 +1741,13 @@ distclean: distclean-am -rm -f lib/$(DEPDIR)/libfyaml_la-fy-path.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-token.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-types.Plo - -rm -f lib/$(DEPDIR)/libfyaml_la-fy-utf8.Plo - -rm -f lib/$(DEPDIR)/libfyaml_la-fy-utils.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-walk.Plo + -rm -f thread/$(DEPDIR)/libfyaml_la-fy-thread.Plo -rm -f tool/$(DEPDIR)/fy_tool-fy-tool.Po + -rm -f util/$(DEPDIR)/libfyaml_la-fy-blob.Plo + -rm -f util/$(DEPDIR)/libfyaml_la-fy-ctype.Plo + -rm -f util/$(DEPDIR)/libfyaml_la-fy-utf8.Plo + -rm -f util/$(DEPDIR)/libfyaml_la-fy-utils.Plo -rm -f xxhash/$(DEPDIR)/libfyaml_la-xxhash.Plo -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ @@ -1211,11 +1819,32 @@ install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am - -rm -f internal/$(DEPDIR)/libfyaml_parser-libfyaml-parser.Po + -rm -f blake3/$(DEPDIR)/libb3avx2_la-blake3.Plo + -rm -f blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2.Plo + -rm -f blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2_x86-64_unix.Plo + -rm -f blake3/$(DEPDIR)/libb3avx512_la-blake3.Plo + -rm -f blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512.Plo + -rm -f blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512_x86-64_unix.Plo + -rm -f blake3/$(DEPDIR)/libb3neon_la-blake3.Plo + -rm -f blake3/$(DEPDIR)/libb3neon_la-blake3_neon.Plo + -rm -f blake3/$(DEPDIR)/libb3portable_la-blake3.Plo + -rm -f blake3/$(DEPDIR)/libb3portable_la-blake3_portable.Plo + -rm -f blake3/$(DEPDIR)/libb3sse2_la-blake3.Plo + -rm -f blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2.Plo + -rm -f blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2_x86-64_unix.Plo + -rm -f blake3/$(DEPDIR)/libb3sse41_la-blake3.Plo + -rm -f blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41.Plo + -rm -f blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41_x86-64_unix.Plo + -rm -f blake3/$(DEPDIR)/libfyaml_la-blake3_backend.Plo + -rm -f blake3/$(DEPDIR)/libfyaml_la-blake3_be_cpusimd.Plo + -rm -f blake3/$(DEPDIR)/libfyaml_la-blake3_host_state.Plo + -rm -f blake3/$(DEPDIR)/libfyaml_la-fy-blake3.Plo + -rm -f internal/$(DEPDIR)/fy_b3sum-fy-b3sum.Po + -rm -f internal/$(DEPDIR)/fy_thread-fy-thread.Po + -rm -f internal/$(DEPDIR)/libfyaml_parser-libfyaml-parser.Po -rm -f lib/$(DEPDIR)/libfyaml_la-fy-accel.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-atom.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-composer.Plo - -rm -f lib/$(DEPDIR)/libfyaml_la-fy-ctype.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-diag.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-doc.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-docbuilder.Plo @@ -1228,10 +1857,13 @@ maintainer-clean: maintainer-clean-am -rm -f lib/$(DEPDIR)/libfyaml_la-fy-path.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-token.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-types.Plo - -rm -f lib/$(DEPDIR)/libfyaml_la-fy-utf8.Plo - -rm -f lib/$(DEPDIR)/libfyaml_la-fy-utils.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-walk.Plo + -rm -f thread/$(DEPDIR)/libfyaml_la-fy-thread.Plo -rm -f tool/$(DEPDIR)/fy_tool-fy-tool.Po + -rm -f util/$(DEPDIR)/libfyaml_la-fy-blob.Plo + -rm -f util/$(DEPDIR)/libfyaml_la-fy-ctype.Plo + -rm -f util/$(DEPDIR)/libfyaml_la-fy-utf8.Plo + -rm -f util/$(DEPDIR)/libfyaml_la-fy-utils.Plo -rm -f xxhash/$(DEPDIR)/libfyaml_la-xxhash.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic @@ -1257,24 +1889,25 @@ uninstall-am: uninstall-binPROGRAMS uninstall-includeHEADERS \ .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \ - clean-libtool clean-noinstPROGRAMS cscopelist-am ctags \ - ctags-am distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distdir doc-clean-am \ - doc-clean-local doc-help-am doc-help-local doc-html-am \ - doc-html-local doc-latexpdf-am doc-latexpdf-local doc-man-am \ - doc-man-local doc-markdown-am doc-markdown-local dvi dvi-am \ - html html-am info info-am install install-am \ - install-binPROGRAMS install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-exec-hook \ - install-html install-html-am install-includeHEADERS \ - 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-binPROGRAMS uninstall-hook \ - uninstall-includeHEADERS uninstall-libLTLIBRARIES + clean-libtool clean-noinstLIBRARIES clean-noinstLTLIBRARIES \ + clean-noinstPROGRAMS cscopelist-am ctags ctags-am distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir doc-clean-am doc-clean-local \ + doc-help-am doc-help-local doc-html-am doc-html-local \ + doc-latexpdf-am doc-latexpdf-local doc-man-am doc-man-local \ + doc-markdown-am doc-markdown-local dvi dvi-am html html-am \ + info info-am install install-am install-binPROGRAMS \ + install-data install-data-am install-dvi install-dvi-am \ + install-exec install-exec-am install-exec-hook install-html \ + install-html-am install-includeHEADERS 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-binPROGRAMS \ + uninstall-hook uninstall-includeHEADERS \ + uninstall-libLTLIBRARIES .PRECIOUS: Makefile diff --git a/Sources/Cfyaml/src/Makefile.am b/Sources/Cfyaml/src/Makefile.am index 9c06116e9..141209fa1 100644 --- a/Sources/Cfyaml/src/Makefile.am +++ b/Sources/Cfyaml/src/Makefile.am @@ -1,44 +1,122 @@ +bin_PROGRAMS = +noinst_PROGRAMS = +noinst_LIBRARIES = +lib_LTLIBRARIES = +noinst_LTLIBRARIES = + AM_CPPFLAGS = \ -I$(top_srcdir)/src \ -I$(top_srcdir)/include AM_CFLAGS = -lib_LTLIBRARIES = libfyaml.la +lib_LTLIBRARIES += libfyaml.la libfyaml_la_SOURCES = \ lib/fy-parse.c lib/fy-parse.h \ - lib/fy-utf8.c lib/fy-utf8.h \ lib/fy-types.c lib/fy-types.h \ - lib/fy-list.h \ - lib/fy-typelist.h \ lib/fy-diag.c lib/fy-diag.h \ lib/fy-dump.c lib/fy-dump.h \ lib/fy-atom.c lib/fy-atom.h \ - lib/fy-ctype.c lib/fy-ctype.h \ lib/fy-token.c lib/fy-token.h \ lib/fy-input.c lib/fy-input.h \ lib/fy-docstate.c lib/fy-docstate.h \ lib/fy-doc.c lib/fy-doc.h \ lib/fy-docbuilder.c lib/fy-docbuilder.h \ lib/fy-emit.c lib/fy-emit.h lib/fy-emit-accum.h \ - lib/fy-utils.c lib/fy-utils.h \ lib/fy-event.h lib/fy-event.c \ - xxhash/xxhash.c xxhash/xxhash.h \ lib/fy-accel.c lib/fy-accel.h \ lib/fy-walk.c lib/fy-walk.h \ lib/fy-path.c lib/fy-path.h \ - lib/fy-composer.c lib/fy-composer.h + lib/fy-composer.c lib/fy-composer.h \ + xxhash/xxhash.c xxhash/xxhash.h \ + util/fy-list.h \ + util/fy-typelist.h \ + util/fy-ctype.c util/fy-ctype.h \ + util/fy-utf8.c util/fy-utf8.h \ + util/fy-utils.c util/fy-utils.h \ + util/fy-endian.h \ + util/fy-blob.c util/fy-blob.h \ + util/fy-id.h \ + util/fy-align.h \ + util/fy-bit64.h \ + thread/fy-thread.h thread/fy-thread.c libfyaml_la_CPPFLAGS = $(AM_CPPFLAGS) \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/xxhash + -I$(top_srcdir)/src/lib \ + -I$(top_srcdir)/src/xxhash \ + -I$(top_srcdir)/src/util \ + -I$(top_srcdir)/src/thread libfyaml_la_CFLAGS = $(AM_CFLAGS) -libfyaml_la_LDFLAGS = $(AM_LDFLAGS) $(AM_LIBLDFLAGS) \ +libfyaml_la_LDFLAGS = -no-undefined $(AM_LDFLAGS) $(AM_LIBLDFLAGS) \ -version $(LIBTOOL_VERSION) +libfyaml_la_LIBADD = -bin_PROGRAMS = -noinst_PROGRAMS = +# blake3 section +libfyaml_la_CPPFLAGS += -I$(top_srcdir)/src/blake3 +libfyaml_la_SOURCES += blake3/blake3.h \ + blake3/blake3_impl.h \ + blake3/blake3_internal.h \ + blake3/blake3_host_state.c \ + blake3/blake3_backend.c \ + blake3/blake3_be_cpusimd.c \ + blake3/fy-blake3.c + +LIBB3_COMMON_CPPFLAGS=$(AM_CPPFLAGS) -I$(top_srcdir)/src/util -I$(top_srcdir)/src/thread + +# the portable implementation +noinst_LTLIBRARIES += libb3portable.la +libb3portable_la_SOURCES = blake3/blake3_portable.c blake3/blake3.c +libb3portable_la_CPPFLAGS = $(LIBB3_COMMON_CPPFLAGS) -DHASHER_SUFFIX=portable -DSIMD_DEGREE=1 +libb3portable_la_CFLAGS = $(AM_CPPFLAGS) +libfyaml_la_LIBADD += libb3portable.la + +# note that each target lib has blake3 compiled again but with a suffix +if TARGET_HAS_SSE2 +noinst_LTLIBRARIES += libb3sse2.la +libb3sse2_la_SOURCES = blake3/blake3_sse2.c blake3/blake3_sse2_x86-64_unix.S blake3/blake3.c +libb3sse2_la_CPPFLAGS = $(LIBB3_COMMON_CPPFLAGS) -msse2 -DHASHER_SUFFIX=sse2 -DSIMD_DEGREE=4 +libb3sse2_la_CFLAGS = $(AM_CPPFLAGS) -msse2 +libfyaml_la_LIBADD += libb3sse2.la +endif + +if TARGET_HAS_SSE41 +noinst_LTLIBRARIES += libb3sse41.la +libb3sse41_la_SOURCES = blake3/blake3_sse41.c blake3/blake3_sse41_x86-64_unix.S blake3/blake3.c +libb3sse41_la_CPPFLAGS = $(LIBB3_COMMON_CPPFLAGS) -msse4.1 -DHASHER_SUFFIX=sse41 -DSIMD_DEGREE=4 +libb3sse41_la_CFLAGS = $(AM_CPPFLAGS) -msse4.1 +libfyaml_la_LIBADD += libb3sse41.la +endif + +if TARGET_HAS_AVX2 +noinst_LTLIBRARIES += libb3avx2.la +libb3avx2_la_SOURCES = blake3/blake3_avx2.c blake3/blake3_avx2_x86-64_unix.S blake3/blake3.c +libb3avx2_la_CPPFLAGS = $(LIBB3_COMMON_CPPFLAGS) -mavx2 -DHASHER_SUFFIX=avx2 -DSIMD_DEGREE=8 +libb3avx2_la_CFLAGS = $(AM_CPPFLAGS) -mavx2 +libfyaml_la_LIBADD += libb3avx2.la +endif + +if TARGET_HAS_AVX512 +noinst_LTLIBRARIES += libb3avx512.la +libb3avx512_la_SOURCES = blake3/blake3_avx512.c blake3/blake3_avx512_x86-64_unix.S blake3/blake3.c +libb3avx512_la_CPPFLAGS = $(LIBB3_COMMON_CPPFLAGS) -mavx512f -mavx512vl -DHASHER_SUFFIX=avx512 -DSIMD_DEGREE=16 +libb3avx512_la_CFLAGS = $(AM_CPPFLAGS) -mavx512f -mavx512vl +libfyaml_la_LIBADD += libb3avx512.la +endif + +if TARGET_HAS_NEON +noinst_LTLIBRARIES += libb3neon.la +libb3neon_la_SOURCES = blake3/blake3_neon.c blake3/blake3.c +libb3neon_la_CPPFLAGS = $(LIBB3_COMMON_CPPFLAGS) -DHASHER_SUFFIX=neon -DSIMD_DEGREE=4 +libb3neon_la_CFLAGS = $(AM_CPPFLAGS) +if TARGET_CPU_ARM +libb3neon_la_CPPFLAGS += -mfpu=neon +libb3neon_la_CFLAGS += -mfpu=neon +endif +libfyaml_la_LIBADD += libb3neon.la +endif +# libfyaml-parser needs both LIBYAML and static if HAVE_LIBYAML +if HAVE_STATIC noinst_PROGRAMS += libfyaml-parser @@ -49,11 +127,57 @@ libfyaml_parser_SOURCES = \ libfyaml_parser_CPPFLAGS = $(AM_CPPFLAGS) \ -I$(top_srcdir)/src/valgrind \ -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/xxhash + -I$(top_srcdir)/src/xxhash \ + -I$(top_srcdir)/src/util \ + -I$(top_srcdir)/src/thread libfyaml_parser_LDADD = $(AM_LDADD) $(LIBYAML_LIBS) libfyaml.la libfyaml_parser_CFLAGS = $(AM_CFLAGS) $(LIBYAML_CFLAGS) -libfyaml_parser_LDFLAGS = $(AM_LDFLAGS) +libfyaml_parser_LDFLAGS = $(AM_LDFLAGS) -static +endif +endif + +# fy-thread +if HAVE_STATIC + +noinst_PROGRAMS += fy-thread + +fy_thread_SOURCES = \ + internal/fy-thread.c \ + valgrind/fy-valgrind.h + +fy_thread_CPPFLAGS = $(AM_CPPFLAGS) \ + -I$(top_srcdir)/src/valgrind \ + -I$(top_srcdir)/src/lib \ + -I$(top_srcdir)/src/xxhash \ + -I$(top_srcdir)/src/util \ + -I$(top_srcdir)/src/thread +fy_thread_LDADD = $(AM_LDADD) $(LIBYAML_LIBS) libfyaml.la +fy_thread_CFLAGS = $(AM_CFLAGS) $(LIBYAML_CFLAGS) + +fy_thread_LDFLAGS = $(AM_LDFLAGS) -static +endif + +# fy-b3sum +if HAVE_STATIC + +noinst_PROGRAMS += fy-b3sum + +fy_b3sum_SOURCES = \ + internal/fy-b3sum.c \ + valgrind/fy-valgrind.h + +fy_b3sum_CPPFLAGS = $(AM_CPPFLAGS) \ + -I$(top_srcdir)/src/valgrind \ + -I$(top_srcdir)/src/lib \ + -I$(top_srcdir)/src/xxhash \ + -I$(top_srcdir)/src/util \ + -I$(top_srcdir)/src/thread \ + -I$(top_srcdir)/src/blake3 +fy_b3sum_LDADD = $(AM_LDADD) $(LIBYAML_LIBS) libfyaml.la +fy_b3sum_CFLAGS = $(AM_CFLAGS) $(LIBYAML_CFLAGS) + +fy_b3sum_LDFLAGS = $(AM_LDFLAGS) -static endif bin_PROGRAMS += fy-tool diff --git a/Sources/Cfyaml/src/Makefile.in b/Sources/Cfyaml/src/Makefile.in index 12973bb8e..af9524317 100644 --- a/Sources/Cfyaml/src/Makefile.in +++ b/Sources/Cfyaml/src/Makefile.in @@ -16,6 +16,7 @@ + VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ @@ -90,9 +91,31 @@ PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ +target_triplet = @target@ bin_PROGRAMS = fy-tool$(EXEEXT) -noinst_PROGRAMS = $(am__EXEEXT_1) -@HAVE_LIBYAML_TRUE@am__append_1 = libfyaml-parser +noinst_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) + +# note that each target lib has blake3 compiled again but with a suffix +@TARGET_HAS_SSE2_TRUE@am__append_1 = libb3sse2.la +@TARGET_HAS_SSE2_TRUE@am__append_2 = libb3sse2.la +@TARGET_HAS_SSE41_TRUE@am__append_3 = libb3sse41.la +@TARGET_HAS_SSE41_TRUE@am__append_4 = libb3sse41.la +@TARGET_HAS_AVX2_TRUE@am__append_5 = libb3avx2.la +@TARGET_HAS_AVX2_TRUE@am__append_6 = libb3avx2.la +@TARGET_HAS_AVX512_TRUE@am__append_7 = libb3avx512.la +@TARGET_HAS_AVX512_TRUE@am__append_8 = libb3avx512.la +@TARGET_HAS_NEON_TRUE@am__append_9 = libb3neon.la +@TARGET_CPU_ARM_TRUE@@TARGET_HAS_NEON_TRUE@am__append_10 = -mfpu=neon +@TARGET_CPU_ARM_TRUE@@TARGET_HAS_NEON_TRUE@am__append_11 = -mfpu=neon +@TARGET_HAS_NEON_TRUE@am__append_12 = libb3neon.la + +# libfyaml-parser needs both LIBYAML and static +@HAVE_LIBYAML_TRUE@@HAVE_STATIC_TRUE@am__append_13 = libfyaml-parser + +# fy-thread + +# fy-b3sum +@HAVE_STATIC_TRUE@am__append_14 = fy-thread fy-b3sum subdir = src ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_enable_debug.m4 \ @@ -112,8 +135,11 @@ CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libdir)" \ "$(DESTDIR)$(includedir)" -@HAVE_LIBYAML_TRUE@am__EXEEXT_1 = libfyaml-parser$(EXEEXT) +@HAVE_LIBYAML_TRUE@@HAVE_STATIC_TRUE@am__EXEEXT_1 = \ +@HAVE_LIBYAML_TRUE@@HAVE_STATIC_TRUE@ libfyaml-parser$(EXEEXT) +@HAVE_STATIC_TRUE@am__EXEEXT_2 = fy-thread$(EXEEXT) fy-b3sum$(EXEEXT) PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS) +LIBRARIES = $(noinst_LIBRARIES) am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ @@ -141,28 +167,122 @@ am__uninstall_files_from_dir = { \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } -LTLIBRARIES = $(lib_LTLIBRARIES) -libfyaml_la_LIBADD = +LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES) +libb3avx2_la_LIBADD = +am__libb3avx2_la_SOURCES_DIST = blake3/blake3_avx2.c \ + blake3/blake3_avx2_x86-64_unix.S blake3/blake3.c am__dirstamp = $(am__leading_dot)dirstamp +@TARGET_HAS_AVX2_TRUE@am_libb3avx2_la_OBJECTS = \ +@TARGET_HAS_AVX2_TRUE@ blake3/libb3avx2_la-blake3_avx2.lo \ +@TARGET_HAS_AVX2_TRUE@ blake3/libb3avx2_la-blake3_avx2_x86-64_unix.lo \ +@TARGET_HAS_AVX2_TRUE@ blake3/libb3avx2_la-blake3.lo +libb3avx2_la_OBJECTS = $(am_libb3avx2_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 = +libb3avx2_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libb3avx2_la_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +@TARGET_HAS_AVX2_TRUE@am_libb3avx2_la_rpath = +libb3avx512_la_LIBADD = +am__libb3avx512_la_SOURCES_DIST = blake3/blake3_avx512.c \ + blake3/blake3_avx512_x86-64_unix.S blake3/blake3.c +@TARGET_HAS_AVX512_TRUE@am_libb3avx512_la_OBJECTS = blake3/libb3avx512_la-blake3_avx512.lo \ +@TARGET_HAS_AVX512_TRUE@ blake3/libb3avx512_la-blake3_avx512_x86-64_unix.lo \ +@TARGET_HAS_AVX512_TRUE@ blake3/libb3avx512_la-blake3.lo +libb3avx512_la_OBJECTS = $(am_libb3avx512_la_OBJECTS) +libb3avx512_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(libb3avx512_la_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o \ + $@ +@TARGET_HAS_AVX512_TRUE@am_libb3avx512_la_rpath = +libb3neon_la_LIBADD = +am__libb3neon_la_SOURCES_DIST = blake3/blake3_neon.c blake3/blake3.c +@TARGET_HAS_NEON_TRUE@am_libb3neon_la_OBJECTS = \ +@TARGET_HAS_NEON_TRUE@ blake3/libb3neon_la-blake3_neon.lo \ +@TARGET_HAS_NEON_TRUE@ blake3/libb3neon_la-blake3.lo +libb3neon_la_OBJECTS = $(am_libb3neon_la_OBJECTS) +libb3neon_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libb3neon_la_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +@TARGET_HAS_NEON_TRUE@am_libb3neon_la_rpath = +libb3portable_la_LIBADD = +am_libb3portable_la_OBJECTS = \ + blake3/libb3portable_la-blake3_portable.lo \ + blake3/libb3portable_la-blake3.lo +libb3portable_la_OBJECTS = $(am_libb3portable_la_OBJECTS) +libb3portable_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(libb3portable_la_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ + -o $@ +libb3sse2_la_LIBADD = +am__libb3sse2_la_SOURCES_DIST = blake3/blake3_sse2.c \ + blake3/blake3_sse2_x86-64_unix.S blake3/blake3.c +@TARGET_HAS_SSE2_TRUE@am_libb3sse2_la_OBJECTS = \ +@TARGET_HAS_SSE2_TRUE@ blake3/libb3sse2_la-blake3_sse2.lo \ +@TARGET_HAS_SSE2_TRUE@ blake3/libb3sse2_la-blake3_sse2_x86-64_unix.lo \ +@TARGET_HAS_SSE2_TRUE@ blake3/libb3sse2_la-blake3.lo +libb3sse2_la_OBJECTS = $(am_libb3sse2_la_OBJECTS) +libb3sse2_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libb3sse2_la_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +@TARGET_HAS_SSE2_TRUE@am_libb3sse2_la_rpath = +libb3sse41_la_LIBADD = +am__libb3sse41_la_SOURCES_DIST = blake3/blake3_sse41.c \ + blake3/blake3_sse41_x86-64_unix.S blake3/blake3.c +@TARGET_HAS_SSE41_TRUE@am_libb3sse41_la_OBJECTS = \ +@TARGET_HAS_SSE41_TRUE@ blake3/libb3sse41_la-blake3_sse41.lo \ +@TARGET_HAS_SSE41_TRUE@ blake3/libb3sse41_la-blake3_sse41_x86-64_unix.lo \ +@TARGET_HAS_SSE41_TRUE@ blake3/libb3sse41_la-blake3.lo +libb3sse41_la_OBJECTS = $(am_libb3sse41_la_OBJECTS) +libb3sse41_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libb3sse41_la_CFLAGS) \ + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +@TARGET_HAS_SSE41_TRUE@am_libb3sse41_la_rpath = +libfyaml_la_DEPENDENCIES = libb3portable.la $(am__append_2) \ + $(am__append_4) $(am__append_6) $(am__append_8) \ + $(am__append_12) am_libfyaml_la_OBJECTS = lib/libfyaml_la-fy-parse.lo \ - lib/libfyaml_la-fy-utf8.lo lib/libfyaml_la-fy-types.lo \ - lib/libfyaml_la-fy-diag.lo lib/libfyaml_la-fy-dump.lo \ - lib/libfyaml_la-fy-atom.lo lib/libfyaml_la-fy-ctype.lo \ + lib/libfyaml_la-fy-types.lo lib/libfyaml_la-fy-diag.lo \ + lib/libfyaml_la-fy-dump.lo lib/libfyaml_la-fy-atom.lo \ lib/libfyaml_la-fy-token.lo lib/libfyaml_la-fy-input.lo \ lib/libfyaml_la-fy-docstate.lo lib/libfyaml_la-fy-doc.lo \ lib/libfyaml_la-fy-docbuilder.lo lib/libfyaml_la-fy-emit.lo \ - lib/libfyaml_la-fy-utils.lo lib/libfyaml_la-fy-event.lo \ - xxhash/libfyaml_la-xxhash.lo lib/libfyaml_la-fy-accel.lo \ + lib/libfyaml_la-fy-event.lo lib/libfyaml_la-fy-accel.lo \ lib/libfyaml_la-fy-walk.lo lib/libfyaml_la-fy-path.lo \ - lib/libfyaml_la-fy-composer.lo + lib/libfyaml_la-fy-composer.lo xxhash/libfyaml_la-xxhash.lo \ + util/libfyaml_la-fy-ctype.lo util/libfyaml_la-fy-utf8.lo \ + util/libfyaml_la-fy-utils.lo util/libfyaml_la-fy-blob.lo \ + thread/libfyaml_la-fy-thread.lo \ + blake3/libfyaml_la-blake3_host_state.lo \ + blake3/libfyaml_la-blake3_backend.lo \ + blake3/libfyaml_la-blake3_be_cpusimd.lo \ + blake3/libfyaml_la-fy-blake3.lo libfyaml_la_OBJECTS = $(am_libfyaml_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 = libfyaml_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libfyaml_la_CFLAGS) \ $(CFLAGS) $(libfyaml_la_LDFLAGS) $(LDFLAGS) -o $@ +am__fy_b3sum_SOURCES_DIST = internal/fy-b3sum.c valgrind/fy-valgrind.h +@HAVE_STATIC_TRUE@am_fy_b3sum_OBJECTS = \ +@HAVE_STATIC_TRUE@ internal/fy_b3sum-fy-b3sum.$(OBJEXT) +fy_b3sum_OBJECTS = $(am_fy_b3sum_OBJECTS) +am__DEPENDENCIES_1 = +@HAVE_STATIC_TRUE@fy_b3sum_DEPENDENCIES = $(am__DEPENDENCIES_1) \ +@HAVE_STATIC_TRUE@ libfyaml.la +fy_b3sum_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(fy_b3sum_CFLAGS) \ + $(CFLAGS) $(fy_b3sum_LDFLAGS) $(LDFLAGS) -o $@ +am__fy_thread_SOURCES_DIST = internal/fy-thread.c \ + valgrind/fy-valgrind.h +@HAVE_STATIC_TRUE@am_fy_thread_OBJECTS = \ +@HAVE_STATIC_TRUE@ internal/fy_thread-fy-thread.$(OBJEXT) +fy_thread_OBJECTS = $(am_fy_thread_OBJECTS) +@HAVE_STATIC_TRUE@fy_thread_DEPENDENCIES = $(am__DEPENDENCIES_1) \ +@HAVE_STATIC_TRUE@ libfyaml.la +fy_thread_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(fy_thread_CFLAGS) \ + $(CFLAGS) $(fy_thread_LDFLAGS) $(LDFLAGS) -o $@ am_fy_tool_OBJECTS = tool/fy_tool-fy-tool.$(OBJEXT) fy_tool_OBJECTS = $(am_fy_tool_OBJECTS) fy_tool_DEPENDENCIES = libfyaml.la @@ -171,11 +291,11 @@ fy_tool_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(CFLAGS) $(fy_tool_LDFLAGS) $(LDFLAGS) -o $@ am__libfyaml_parser_SOURCES_DIST = internal/libfyaml-parser.c \ valgrind/fy-valgrind.h -@HAVE_LIBYAML_TRUE@am_libfyaml_parser_OBJECTS = internal/libfyaml_parser-libfyaml-parser.$(OBJEXT) +@HAVE_LIBYAML_TRUE@@HAVE_STATIC_TRUE@am_libfyaml_parser_OBJECTS = internal/libfyaml_parser-libfyaml-parser.$(OBJEXT) libfyaml_parser_OBJECTS = $(am_libfyaml_parser_OBJECTS) -am__DEPENDENCIES_1 = -@HAVE_LIBYAML_TRUE@libfyaml_parser_DEPENDENCIES = \ -@HAVE_LIBYAML_TRUE@ $(am__DEPENDENCIES_1) libfyaml.la +@HAVE_LIBYAML_TRUE@@HAVE_STATIC_TRUE@libfyaml_parser_DEPENDENCIES = \ +@HAVE_LIBYAML_TRUE@@HAVE_STATIC_TRUE@ $(am__DEPENDENCIES_1) \ +@HAVE_LIBYAML_TRUE@@HAVE_STATIC_TRUE@ libfyaml.la libfyaml_parser_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(libfyaml_parser_CFLAGS) $(CFLAGS) $(libfyaml_parser_LDFLAGS) \ @@ -195,12 +315,32 @@ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp am__maybe_remake_depfiles = depfiles -am__depfiles_remade = \ +am__depfiles_remade = blake3/$(DEPDIR)/libb3avx2_la-blake3.Plo \ + blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2.Plo \ + blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2_x86-64_unix.Plo \ + blake3/$(DEPDIR)/libb3avx512_la-blake3.Plo \ + blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512.Plo \ + blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512_x86-64_unix.Plo \ + blake3/$(DEPDIR)/libb3neon_la-blake3.Plo \ + blake3/$(DEPDIR)/libb3neon_la-blake3_neon.Plo \ + blake3/$(DEPDIR)/libb3portable_la-blake3.Plo \ + blake3/$(DEPDIR)/libb3portable_la-blake3_portable.Plo \ + blake3/$(DEPDIR)/libb3sse2_la-blake3.Plo \ + blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2.Plo \ + blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2_x86-64_unix.Plo \ + blake3/$(DEPDIR)/libb3sse41_la-blake3.Plo \ + blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41.Plo \ + blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41_x86-64_unix.Plo \ + blake3/$(DEPDIR)/libfyaml_la-blake3_backend.Plo \ + blake3/$(DEPDIR)/libfyaml_la-blake3_be_cpusimd.Plo \ + blake3/$(DEPDIR)/libfyaml_la-blake3_host_state.Plo \ + blake3/$(DEPDIR)/libfyaml_la-fy-blake3.Plo \ + internal/$(DEPDIR)/fy_b3sum-fy-b3sum.Po \ + internal/$(DEPDIR)/fy_thread-fy-thread.Po \ internal/$(DEPDIR)/libfyaml_parser-libfyaml-parser.Po \ lib/$(DEPDIR)/libfyaml_la-fy-accel.Plo \ lib/$(DEPDIR)/libfyaml_la-fy-atom.Plo \ lib/$(DEPDIR)/libfyaml_la-fy-composer.Plo \ - lib/$(DEPDIR)/libfyaml_la-fy-ctype.Plo \ lib/$(DEPDIR)/libfyaml_la-fy-diag.Plo \ lib/$(DEPDIR)/libfyaml_la-fy-doc.Plo \ lib/$(DEPDIR)/libfyaml_la-fy-docbuilder.Plo \ @@ -213,12 +353,25 @@ am__depfiles_remade = \ lib/$(DEPDIR)/libfyaml_la-fy-path.Plo \ lib/$(DEPDIR)/libfyaml_la-fy-token.Plo \ lib/$(DEPDIR)/libfyaml_la-fy-types.Plo \ - lib/$(DEPDIR)/libfyaml_la-fy-utf8.Plo \ - lib/$(DEPDIR)/libfyaml_la-fy-utils.Plo \ lib/$(DEPDIR)/libfyaml_la-fy-walk.Plo \ + thread/$(DEPDIR)/libfyaml_la-fy-thread.Plo \ tool/$(DEPDIR)/fy_tool-fy-tool.Po \ + util/$(DEPDIR)/libfyaml_la-fy-blob.Plo \ + util/$(DEPDIR)/libfyaml_la-fy-ctype.Plo \ + util/$(DEPDIR)/libfyaml_la-fy-utf8.Plo \ + util/$(DEPDIR)/libfyaml_la-fy-utils.Plo \ xxhash/$(DEPDIR)/libfyaml_la-xxhash.Plo am__mv = mv -f +CPPASCOMPILE = $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS) +LTCPPASCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CCASFLAGS) $(CCASFLAGS) +AM_V_CPPAS = $(am__v_CPPAS_@AM_V@) +am__v_CPPAS_ = $(am__v_CPPAS_@AM_DEFAULT_V@) +am__v_CPPAS_0 = @echo " CPPAS " $@; +am__v_CPPAS_1 = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ @@ -237,10 +390,19 @@ 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 = $(libfyaml_la_SOURCES) $(fy_tool_SOURCES) \ +SOURCES = $(libb3avx2_la_SOURCES) $(libb3avx512_la_SOURCES) \ + $(libb3neon_la_SOURCES) $(libb3portable_la_SOURCES) \ + $(libb3sse2_la_SOURCES) $(libb3sse41_la_SOURCES) \ + $(libfyaml_la_SOURCES) $(fy_b3sum_SOURCES) \ + $(fy_thread_SOURCES) $(fy_tool_SOURCES) \ $(libfyaml_parser_SOURCES) -DIST_SOURCES = $(libfyaml_la_SOURCES) $(fy_tool_SOURCES) \ - $(am__libfyaml_parser_SOURCES_DIST) +DIST_SOURCES = $(am__libb3avx2_la_SOURCES_DIST) \ + $(am__libb3avx512_la_SOURCES_DIST) \ + $(am__libb3neon_la_SOURCES_DIST) $(libb3portable_la_SOURCES) \ + $(am__libb3sse2_la_SOURCES_DIST) \ + $(am__libb3sse41_la_SOURCES_DIST) $(libfyaml_la_SOURCES) \ + $(am__fy_b3sum_SOURCES_DIST) $(am__fy_thread_SOURCES_DIST) \ + $(fy_tool_SOURCES) $(am__libfyaml_parser_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ @@ -277,18 +439,21 @@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AM_MAKEFLAGS = @AM_MAKEFLAGS@ AR = @AR@ AS = @AS@ +ASAN_CFLAGS = @ASAN_CFLAGS@ +ASAN_LIBS = @ASAN_LIBS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCAS = @CCAS@ +CCASDEPMODE = @CCASDEPMODE@ +CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHECK_CFLAGS = @CHECK_CFLAGS@ CHECK_LDFLAGS = @CHECK_LDFLAGS@ CHECK_LIBS = @CHECK_LIBS@ -CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ @@ -316,13 +481,16 @@ FGREP = @FGREP@ FILECMD = @FILECMD@ GIT = @GIT@ GREP = @GREP@ +HAVE_ASAN = @HAVE_ASAN@ HAVE_CHECK = @HAVE_CHECK@ HAVE_COMPATIBLE_CHECK = @HAVE_COMPATIBLE_CHECK@ HAVE_DEVMODE = @HAVE_DEVMODE@ +HAVE_LIBCLANG = @HAVE_LIBCLANG@ HAVE_LIBYAML = @HAVE_LIBYAML@ HAVE_NETWORK = @HAVE_NETWORK@ +HAVE_PORTABLE_TARGET = @HAVE_PORTABLE_TARGET@ HAVE_QSORT_R = @HAVE_QSORT_R@ -INCLTDL = @INCLTDL@ +HAVE_STATIC = @HAVE_STATIC@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ @@ -334,6 +502,10 @@ JSONTESTSUITEURL = @JSONTESTSUITEURL@ LD = @LD@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ +LIBCLANG_CFLAGS = @LIBCLANG_CFLAGS@ +LIBCLANG_CPPFLAGS = @LIBCLANG_CPPFLAGS@ +LIBCLANG_LDFLAGS = @LIBCLANG_LDFLAGS@ +LIBCLANG_LIBS = @LIBCLANG_LIBS@ LIBLTDL = @LIBLTDL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ @@ -342,8 +514,8 @@ LIBTOOL_VERSION = @LIBTOOL_VERSION@ LIBYAML_CFLAGS = @LIBYAML_CFLAGS@ LIBYAML_LIBS = @LIBYAML_LIBS@ LIPO = @LIPO@ +LLVM_CONFIG = @LLVM_CONFIG@ LN_S = @LN_S@ -LTDLDEPS = @LTDLDEPS@ LTDLINCL = @LTDLINCL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ @@ -443,60 +615,120 @@ shavedir = @shavedir@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ +target = @target@ target_alias = @target_alias@ +target_cpu = @target_cpu@ +target_os = @target_os@ +target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ +noinst_LIBRARIES = +lib_LTLIBRARIES = libfyaml.la + +# the portable implementation +noinst_LTLIBRARIES = libb3portable.la $(am__append_1) $(am__append_3) \ + $(am__append_5) $(am__append_7) $(am__append_9) AM_CPPFLAGS = \ -I$(top_srcdir)/src \ -I$(top_srcdir)/include AM_CFLAGS = -lib_LTLIBRARIES = libfyaml.la -libfyaml_la_SOURCES = \ - lib/fy-parse.c lib/fy-parse.h \ - lib/fy-utf8.c lib/fy-utf8.h \ - lib/fy-types.c lib/fy-types.h \ - lib/fy-list.h \ - lib/fy-typelist.h \ - lib/fy-diag.c lib/fy-diag.h \ - lib/fy-dump.c lib/fy-dump.h \ - lib/fy-atom.c lib/fy-atom.h \ - lib/fy-ctype.c lib/fy-ctype.h \ - lib/fy-token.c lib/fy-token.h \ - lib/fy-input.c lib/fy-input.h \ - lib/fy-docstate.c lib/fy-docstate.h \ - lib/fy-doc.c lib/fy-doc.h \ - lib/fy-docbuilder.c lib/fy-docbuilder.h \ - lib/fy-emit.c lib/fy-emit.h lib/fy-emit-accum.h \ - lib/fy-utils.c lib/fy-utils.h \ - lib/fy-event.h lib/fy-event.c \ - xxhash/xxhash.c xxhash/xxhash.h \ - lib/fy-accel.c lib/fy-accel.h \ - lib/fy-walk.c lib/fy-walk.h \ - lib/fy-path.c lib/fy-path.h \ - lib/fy-composer.c lib/fy-composer.h - -libfyaml_la_CPPFLAGS = $(AM_CPPFLAGS) \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/xxhash - +libfyaml_la_SOURCES = lib/fy-parse.c lib/fy-parse.h lib/fy-types.c \ + lib/fy-types.h lib/fy-diag.c lib/fy-diag.h lib/fy-dump.c \ + lib/fy-dump.h lib/fy-atom.c lib/fy-atom.h lib/fy-token.c \ + lib/fy-token.h lib/fy-input.c lib/fy-input.h lib/fy-docstate.c \ + lib/fy-docstate.h lib/fy-doc.c lib/fy-doc.h \ + lib/fy-docbuilder.c lib/fy-docbuilder.h lib/fy-emit.c \ + lib/fy-emit.h lib/fy-emit-accum.h lib/fy-event.h \ + lib/fy-event.c lib/fy-accel.c lib/fy-accel.h lib/fy-walk.c \ + lib/fy-walk.h lib/fy-path.c lib/fy-path.h lib/fy-composer.c \ + lib/fy-composer.h xxhash/xxhash.c xxhash/xxhash.h \ + util/fy-list.h util/fy-typelist.h util/fy-ctype.c \ + util/fy-ctype.h util/fy-utf8.c util/fy-utf8.h util/fy-utils.c \ + util/fy-utils.h util/fy-endian.h util/fy-blob.c util/fy-blob.h \ + util/fy-id.h util/fy-align.h util/fy-bit64.h \ + thread/fy-thread.h thread/fy-thread.c blake3/blake3.h \ + blake3/blake3_impl.h blake3/blake3_internal.h \ + blake3/blake3_host_state.c blake3/blake3_backend.c \ + blake3/blake3_be_cpusimd.c blake3/fy-blake3.c + +# blake3 section +libfyaml_la_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/src/lib \ + -I$(top_srcdir)/src/xxhash -I$(top_srcdir)/src/util \ + -I$(top_srcdir)/src/thread -I$(top_srcdir)/src/blake3 libfyaml_la_CFLAGS = $(AM_CFLAGS) -libfyaml_la_LDFLAGS = $(AM_LDFLAGS) $(AM_LIBLDFLAGS) \ +libfyaml_la_LDFLAGS = -no-undefined $(AM_LDFLAGS) $(AM_LIBLDFLAGS) \ -version $(LIBTOOL_VERSION) -@HAVE_LIBYAML_TRUE@libfyaml_parser_SOURCES = \ -@HAVE_LIBYAML_TRUE@ internal/libfyaml-parser.c \ -@HAVE_LIBYAML_TRUE@ valgrind/fy-valgrind.h - -@HAVE_LIBYAML_TRUE@libfyaml_parser_CPPFLAGS = $(AM_CPPFLAGS) \ -@HAVE_LIBYAML_TRUE@ -I$(top_srcdir)/src/valgrind \ -@HAVE_LIBYAML_TRUE@ -I$(top_srcdir)/src/lib \ -@HAVE_LIBYAML_TRUE@ -I$(top_srcdir)/src/xxhash - -@HAVE_LIBYAML_TRUE@libfyaml_parser_LDADD = $(AM_LDADD) $(LIBYAML_LIBS) libfyaml.la -@HAVE_LIBYAML_TRUE@libfyaml_parser_CFLAGS = $(AM_CFLAGS) $(LIBYAML_CFLAGS) -@HAVE_LIBYAML_TRUE@libfyaml_parser_LDFLAGS = $(AM_LDFLAGS) +libfyaml_la_LIBADD = libb3portable.la $(am__append_2) $(am__append_4) \ + $(am__append_6) $(am__append_8) $(am__append_12) +LIBB3_COMMON_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/src/util -I$(top_srcdir)/src/thread +libb3portable_la_SOURCES = blake3/blake3_portable.c blake3/blake3.c +libb3portable_la_CPPFLAGS = $(LIBB3_COMMON_CPPFLAGS) -DHASHER_SUFFIX=portable -DSIMD_DEGREE=1 +libb3portable_la_CFLAGS = $(AM_CPPFLAGS) +@TARGET_HAS_SSE2_TRUE@libb3sse2_la_SOURCES = blake3/blake3_sse2.c blake3/blake3_sse2_x86-64_unix.S blake3/blake3.c +@TARGET_HAS_SSE2_TRUE@libb3sse2_la_CPPFLAGS = $(LIBB3_COMMON_CPPFLAGS) -msse2 -DHASHER_SUFFIX=sse2 -DSIMD_DEGREE=4 +@TARGET_HAS_SSE2_TRUE@libb3sse2_la_CFLAGS = $(AM_CPPFLAGS) -msse2 +@TARGET_HAS_SSE41_TRUE@libb3sse41_la_SOURCES = blake3/blake3_sse41.c blake3/blake3_sse41_x86-64_unix.S blake3/blake3.c +@TARGET_HAS_SSE41_TRUE@libb3sse41_la_CPPFLAGS = $(LIBB3_COMMON_CPPFLAGS) -msse4.1 -DHASHER_SUFFIX=sse41 -DSIMD_DEGREE=4 +@TARGET_HAS_SSE41_TRUE@libb3sse41_la_CFLAGS = $(AM_CPPFLAGS) -msse4.1 +@TARGET_HAS_AVX2_TRUE@libb3avx2_la_SOURCES = blake3/blake3_avx2.c blake3/blake3_avx2_x86-64_unix.S blake3/blake3.c +@TARGET_HAS_AVX2_TRUE@libb3avx2_la_CPPFLAGS = $(LIBB3_COMMON_CPPFLAGS) -mavx2 -DHASHER_SUFFIX=avx2 -DSIMD_DEGREE=8 +@TARGET_HAS_AVX2_TRUE@libb3avx2_la_CFLAGS = $(AM_CPPFLAGS) -mavx2 +@TARGET_HAS_AVX512_TRUE@libb3avx512_la_SOURCES = blake3/blake3_avx512.c blake3/blake3_avx512_x86-64_unix.S blake3/blake3.c +@TARGET_HAS_AVX512_TRUE@libb3avx512_la_CPPFLAGS = $(LIBB3_COMMON_CPPFLAGS) -mavx512f -mavx512vl -DHASHER_SUFFIX=avx512 -DSIMD_DEGREE=16 +@TARGET_HAS_AVX512_TRUE@libb3avx512_la_CFLAGS = $(AM_CPPFLAGS) -mavx512f -mavx512vl +@TARGET_HAS_NEON_TRUE@libb3neon_la_SOURCES = blake3/blake3_neon.c blake3/blake3.c +@TARGET_HAS_NEON_TRUE@libb3neon_la_CPPFLAGS = \ +@TARGET_HAS_NEON_TRUE@ $(LIBB3_COMMON_CPPFLAGS) \ +@TARGET_HAS_NEON_TRUE@ -DHASHER_SUFFIX=neon -DSIMD_DEGREE=4 \ +@TARGET_HAS_NEON_TRUE@ $(am__append_10) +@TARGET_HAS_NEON_TRUE@libb3neon_la_CFLAGS = $(AM_CPPFLAGS) \ +@TARGET_HAS_NEON_TRUE@ $(am__append_11) +@HAVE_LIBYAML_TRUE@@HAVE_STATIC_TRUE@libfyaml_parser_SOURCES = \ +@HAVE_LIBYAML_TRUE@@HAVE_STATIC_TRUE@ internal/libfyaml-parser.c \ +@HAVE_LIBYAML_TRUE@@HAVE_STATIC_TRUE@ valgrind/fy-valgrind.h + +@HAVE_LIBYAML_TRUE@@HAVE_STATIC_TRUE@libfyaml_parser_CPPFLAGS = $(AM_CPPFLAGS) \ +@HAVE_LIBYAML_TRUE@@HAVE_STATIC_TRUE@ -I$(top_srcdir)/src/valgrind \ +@HAVE_LIBYAML_TRUE@@HAVE_STATIC_TRUE@ -I$(top_srcdir)/src/lib \ +@HAVE_LIBYAML_TRUE@@HAVE_STATIC_TRUE@ -I$(top_srcdir)/src/xxhash \ +@HAVE_LIBYAML_TRUE@@HAVE_STATIC_TRUE@ -I$(top_srcdir)/src/util \ +@HAVE_LIBYAML_TRUE@@HAVE_STATIC_TRUE@ -I$(top_srcdir)/src/thread + +@HAVE_LIBYAML_TRUE@@HAVE_STATIC_TRUE@libfyaml_parser_LDADD = $(AM_LDADD) $(LIBYAML_LIBS) libfyaml.la +@HAVE_LIBYAML_TRUE@@HAVE_STATIC_TRUE@libfyaml_parser_CFLAGS = $(AM_CFLAGS) $(LIBYAML_CFLAGS) +@HAVE_LIBYAML_TRUE@@HAVE_STATIC_TRUE@libfyaml_parser_LDFLAGS = $(AM_LDFLAGS) -static +@HAVE_STATIC_TRUE@fy_thread_SOURCES = \ +@HAVE_STATIC_TRUE@ internal/fy-thread.c \ +@HAVE_STATIC_TRUE@ valgrind/fy-valgrind.h + +@HAVE_STATIC_TRUE@fy_thread_CPPFLAGS = $(AM_CPPFLAGS) \ +@HAVE_STATIC_TRUE@ -I$(top_srcdir)/src/valgrind \ +@HAVE_STATIC_TRUE@ -I$(top_srcdir)/src/lib \ +@HAVE_STATIC_TRUE@ -I$(top_srcdir)/src/xxhash \ +@HAVE_STATIC_TRUE@ -I$(top_srcdir)/src/util \ +@HAVE_STATIC_TRUE@ -I$(top_srcdir)/src/thread + +@HAVE_STATIC_TRUE@fy_thread_LDADD = $(AM_LDADD) $(LIBYAML_LIBS) libfyaml.la +@HAVE_STATIC_TRUE@fy_thread_CFLAGS = $(AM_CFLAGS) $(LIBYAML_CFLAGS) +@HAVE_STATIC_TRUE@fy_thread_LDFLAGS = $(AM_LDFLAGS) -static +@HAVE_STATIC_TRUE@fy_b3sum_SOURCES = \ +@HAVE_STATIC_TRUE@ internal/fy-b3sum.c \ +@HAVE_STATIC_TRUE@ valgrind/fy-valgrind.h + +@HAVE_STATIC_TRUE@fy_b3sum_CPPFLAGS = $(AM_CPPFLAGS) \ +@HAVE_STATIC_TRUE@ -I$(top_srcdir)/src/valgrind \ +@HAVE_STATIC_TRUE@ -I$(top_srcdir)/src/lib \ +@HAVE_STATIC_TRUE@ -I$(top_srcdir)/src/xxhash \ +@HAVE_STATIC_TRUE@ -I$(top_srcdir)/src/util \ +@HAVE_STATIC_TRUE@ -I$(top_srcdir)/src/thread \ +@HAVE_STATIC_TRUE@ -I$(top_srcdir)/src/blake3 + +@HAVE_STATIC_TRUE@fy_b3sum_LDADD = $(AM_LDADD) $(LIBYAML_LIBS) libfyaml.la +@HAVE_STATIC_TRUE@fy_b3sum_CFLAGS = $(AM_CFLAGS) $(LIBYAML_CFLAGS) +@HAVE_STATIC_TRUE@fy_b3sum_LDFLAGS = $(AM_LDFLAGS) -static fy_tool_SOURCES = \ tool/fy-tool.c \ valgrind/fy-valgrind.h @@ -511,7 +743,7 @@ include_HEADERS = \ all: all-am .SUFFIXES: -.SUFFIXES: .c .lo .o .obj +.SUFFIXES: .S .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ @@ -600,6 +832,9 @@ clean-noinstPROGRAMS: echo " rm -f" $$list; \ rm -f $$list +clean-noinstLIBRARIES: + -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) + install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ @@ -634,6 +869,73 @@ clean-libLTLIBRARIES: echo rm -f $${locs}; \ rm -f $${locs}; \ } + +clean-noinstLTLIBRARIES: + -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) + @list='$(noinst_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}; \ + } +blake3/$(am__dirstamp): + @$(MKDIR_P) blake3 + @: > blake3/$(am__dirstamp) +blake3/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) blake3/$(DEPDIR) + @: > blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libb3avx2_la-blake3_avx2.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libb3avx2_la-blake3_avx2_x86-64_unix.lo: \ + blake3/$(am__dirstamp) blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libb3avx2_la-blake3.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) + +libb3avx2.la: $(libb3avx2_la_OBJECTS) $(libb3avx2_la_DEPENDENCIES) $(EXTRA_libb3avx2_la_DEPENDENCIES) + $(AM_V_CCLD)$(libb3avx2_la_LINK) $(am_libb3avx2_la_rpath) $(libb3avx2_la_OBJECTS) $(libb3avx2_la_LIBADD) $(LIBS) +blake3/libb3avx512_la-blake3_avx512.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libb3avx512_la-blake3_avx512_x86-64_unix.lo: \ + blake3/$(am__dirstamp) blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libb3avx512_la-blake3.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) + +libb3avx512.la: $(libb3avx512_la_OBJECTS) $(libb3avx512_la_DEPENDENCIES) $(EXTRA_libb3avx512_la_DEPENDENCIES) + $(AM_V_CCLD)$(libb3avx512_la_LINK) $(am_libb3avx512_la_rpath) $(libb3avx512_la_OBJECTS) $(libb3avx512_la_LIBADD) $(LIBS) +blake3/libb3neon_la-blake3_neon.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libb3neon_la-blake3.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) + +libb3neon.la: $(libb3neon_la_OBJECTS) $(libb3neon_la_DEPENDENCIES) $(EXTRA_libb3neon_la_DEPENDENCIES) + $(AM_V_CCLD)$(libb3neon_la_LINK) $(am_libb3neon_la_rpath) $(libb3neon_la_OBJECTS) $(libb3neon_la_LIBADD) $(LIBS) +blake3/libb3portable_la-blake3_portable.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libb3portable_la-blake3.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) + +libb3portable.la: $(libb3portable_la_OBJECTS) $(libb3portable_la_DEPENDENCIES) $(EXTRA_libb3portable_la_DEPENDENCIES) + $(AM_V_CCLD)$(libb3portable_la_LINK) $(libb3portable_la_OBJECTS) $(libb3portable_la_LIBADD) $(LIBS) +blake3/libb3sse2_la-blake3_sse2.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libb3sse2_la-blake3_sse2_x86-64_unix.lo: \ + blake3/$(am__dirstamp) blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libb3sse2_la-blake3.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) + +libb3sse2.la: $(libb3sse2_la_OBJECTS) $(libb3sse2_la_DEPENDENCIES) $(EXTRA_libb3sse2_la_DEPENDENCIES) + $(AM_V_CCLD)$(libb3sse2_la_LINK) $(am_libb3sse2_la_rpath) $(libb3sse2_la_OBJECTS) $(libb3sse2_la_LIBADD) $(LIBS) +blake3/libb3sse41_la-blake3_sse41.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libb3sse41_la-blake3_sse41_x86-64_unix.lo: \ + blake3/$(am__dirstamp) blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libb3sse41_la-blake3.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) + +libb3sse41.la: $(libb3sse41_la_OBJECTS) $(libb3sse41_la_DEPENDENCIES) $(EXTRA_libb3sse41_la_DEPENDENCIES) + $(AM_V_CCLD)$(libb3sse41_la_LINK) $(am_libb3sse41_la_rpath) $(libb3sse41_la_OBJECTS) $(libb3sse41_la_LIBADD) $(LIBS) lib/$(am__dirstamp): @$(MKDIR_P) lib @: > lib/$(am__dirstamp) @@ -642,8 +944,6 @@ lib/$(DEPDIR)/$(am__dirstamp): @: > lib/$(DEPDIR)/$(am__dirstamp) lib/libfyaml_la-fy-parse.lo: lib/$(am__dirstamp) \ lib/$(DEPDIR)/$(am__dirstamp) -lib/libfyaml_la-fy-utf8.lo: lib/$(am__dirstamp) \ - lib/$(DEPDIR)/$(am__dirstamp) lib/libfyaml_la-fy-types.lo: lib/$(am__dirstamp) \ lib/$(DEPDIR)/$(am__dirstamp) lib/libfyaml_la-fy-diag.lo: lib/$(am__dirstamp) \ @@ -652,8 +952,6 @@ lib/libfyaml_la-fy-dump.lo: lib/$(am__dirstamp) \ lib/$(DEPDIR)/$(am__dirstamp) lib/libfyaml_la-fy-atom.lo: lib/$(am__dirstamp) \ lib/$(DEPDIR)/$(am__dirstamp) -lib/libfyaml_la-fy-ctype.lo: lib/$(am__dirstamp) \ - lib/$(DEPDIR)/$(am__dirstamp) lib/libfyaml_la-fy-token.lo: lib/$(am__dirstamp) \ lib/$(DEPDIR)/$(am__dirstamp) lib/libfyaml_la-fy-input.lo: lib/$(am__dirstamp) \ @@ -666,18 +964,8 @@ lib/libfyaml_la-fy-docbuilder.lo: lib/$(am__dirstamp) \ lib/$(DEPDIR)/$(am__dirstamp) lib/libfyaml_la-fy-emit.lo: lib/$(am__dirstamp) \ lib/$(DEPDIR)/$(am__dirstamp) -lib/libfyaml_la-fy-utils.lo: lib/$(am__dirstamp) \ - lib/$(DEPDIR)/$(am__dirstamp) lib/libfyaml_la-fy-event.lo: lib/$(am__dirstamp) \ lib/$(DEPDIR)/$(am__dirstamp) -xxhash/$(am__dirstamp): - @$(MKDIR_P) xxhash - @: > xxhash/$(am__dirstamp) -xxhash/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) xxhash/$(DEPDIR) - @: > xxhash/$(DEPDIR)/$(am__dirstamp) -xxhash/libfyaml_la-xxhash.lo: xxhash/$(am__dirstamp) \ - xxhash/$(DEPDIR)/$(am__dirstamp) lib/libfyaml_la-fy-accel.lo: lib/$(am__dirstamp) \ lib/$(DEPDIR)/$(am__dirstamp) lib/libfyaml_la-fy-walk.lo: lib/$(am__dirstamp) \ @@ -686,9 +974,65 @@ lib/libfyaml_la-fy-path.lo: lib/$(am__dirstamp) \ lib/$(DEPDIR)/$(am__dirstamp) lib/libfyaml_la-fy-composer.lo: lib/$(am__dirstamp) \ lib/$(DEPDIR)/$(am__dirstamp) +xxhash/$(am__dirstamp): + @$(MKDIR_P) xxhash + @: > xxhash/$(am__dirstamp) +xxhash/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) xxhash/$(DEPDIR) + @: > xxhash/$(DEPDIR)/$(am__dirstamp) +xxhash/libfyaml_la-xxhash.lo: xxhash/$(am__dirstamp) \ + xxhash/$(DEPDIR)/$(am__dirstamp) +util/$(am__dirstamp): + @$(MKDIR_P) util + @: > util/$(am__dirstamp) +util/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) util/$(DEPDIR) + @: > util/$(DEPDIR)/$(am__dirstamp) +util/libfyaml_la-fy-ctype.lo: util/$(am__dirstamp) \ + util/$(DEPDIR)/$(am__dirstamp) +util/libfyaml_la-fy-utf8.lo: util/$(am__dirstamp) \ + util/$(DEPDIR)/$(am__dirstamp) +util/libfyaml_la-fy-utils.lo: util/$(am__dirstamp) \ + util/$(DEPDIR)/$(am__dirstamp) +util/libfyaml_la-fy-blob.lo: util/$(am__dirstamp) \ + util/$(DEPDIR)/$(am__dirstamp) +thread/$(am__dirstamp): + @$(MKDIR_P) thread + @: > thread/$(am__dirstamp) +thread/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) thread/$(DEPDIR) + @: > thread/$(DEPDIR)/$(am__dirstamp) +thread/libfyaml_la-fy-thread.lo: thread/$(am__dirstamp) \ + thread/$(DEPDIR)/$(am__dirstamp) +blake3/libfyaml_la-blake3_host_state.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libfyaml_la-blake3_backend.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libfyaml_la-blake3_be_cpusimd.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) +blake3/libfyaml_la-fy-blake3.lo: blake3/$(am__dirstamp) \ + blake3/$(DEPDIR)/$(am__dirstamp) libfyaml.la: $(libfyaml_la_OBJECTS) $(libfyaml_la_DEPENDENCIES) $(EXTRA_libfyaml_la_DEPENDENCIES) $(AM_V_CCLD)$(libfyaml_la_LINK) -rpath $(libdir) $(libfyaml_la_OBJECTS) $(libfyaml_la_LIBADD) $(LIBS) +internal/$(am__dirstamp): + @$(MKDIR_P) internal + @: > internal/$(am__dirstamp) +internal/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) internal/$(DEPDIR) + @: > internal/$(DEPDIR)/$(am__dirstamp) +internal/fy_b3sum-fy-b3sum.$(OBJEXT): internal/$(am__dirstamp) \ + internal/$(DEPDIR)/$(am__dirstamp) + +fy-b3sum$(EXEEXT): $(fy_b3sum_OBJECTS) $(fy_b3sum_DEPENDENCIES) $(EXTRA_fy_b3sum_DEPENDENCIES) + @rm -f fy-b3sum$(EXEEXT) + $(AM_V_CCLD)$(fy_b3sum_LINK) $(fy_b3sum_OBJECTS) $(fy_b3sum_LDADD) $(LIBS) +internal/fy_thread-fy-thread.$(OBJEXT): internal/$(am__dirstamp) \ + internal/$(DEPDIR)/$(am__dirstamp) + +fy-thread$(EXEEXT): $(fy_thread_OBJECTS) $(fy_thread_DEPENDENCIES) $(EXTRA_fy_thread_DEPENDENCIES) + @rm -f fy-thread$(EXEEXT) + $(AM_V_CCLD)$(fy_thread_LINK) $(fy_thread_OBJECTS) $(fy_thread_LDADD) $(LIBS) tool/$(am__dirstamp): @$(MKDIR_P) tool @: > tool/$(am__dirstamp) @@ -701,12 +1045,6 @@ tool/fy_tool-fy-tool.$(OBJEXT): tool/$(am__dirstamp) \ fy-tool$(EXEEXT): $(fy_tool_OBJECTS) $(fy_tool_DEPENDENCIES) $(EXTRA_fy_tool_DEPENDENCIES) @rm -f fy-tool$(EXEEXT) $(AM_V_CCLD)$(fy_tool_LINK) $(fy_tool_OBJECTS) $(fy_tool_LDADD) $(LIBS) -internal/$(am__dirstamp): - @$(MKDIR_P) internal - @: > internal/$(am__dirstamp) -internal/$(DEPDIR)/$(am__dirstamp): - @$(MKDIR_P) internal/$(DEPDIR) - @: > internal/$(DEPDIR)/$(am__dirstamp) internal/libfyaml_parser-libfyaml-parser.$(OBJEXT): \ internal/$(am__dirstamp) internal/$(DEPDIR)/$(am__dirstamp) @@ -716,21 +1054,48 @@ libfyaml-parser$(EXEEXT): $(libfyaml_parser_OBJECTS) $(libfyaml_parser_DEPENDENC mostlyclean-compile: -rm -f *.$(OBJEXT) + -rm -f blake3/*.$(OBJEXT) + -rm -f blake3/*.lo -rm -f internal/*.$(OBJEXT) -rm -f lib/*.$(OBJEXT) -rm -f lib/*.lo + -rm -f thread/*.$(OBJEXT) + -rm -f thread/*.lo -rm -f tool/*.$(OBJEXT) + -rm -f util/*.$(OBJEXT) + -rm -f util/*.lo -rm -f xxhash/*.$(OBJEXT) -rm -f xxhash/*.lo distclean-compile: -rm -f *.tab.c +@AMDEP_TRUE@@am__include@ @am__quote@blake3/$(DEPDIR)/libb3avx2_la-blake3.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2_x86-64_unix.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@blake3/$(DEPDIR)/libb3avx512_la-blake3.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512_x86-64_unix.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@blake3/$(DEPDIR)/libb3neon_la-blake3.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@blake3/$(DEPDIR)/libb3neon_la-blake3_neon.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@blake3/$(DEPDIR)/libb3portable_la-blake3.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@blake3/$(DEPDIR)/libb3portable_la-blake3_portable.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@blake3/$(DEPDIR)/libb3sse2_la-blake3.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2_x86-64_unix.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@blake3/$(DEPDIR)/libb3sse41_la-blake3.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41_x86-64_unix.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@blake3/$(DEPDIR)/libfyaml_la-blake3_backend.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@blake3/$(DEPDIR)/libfyaml_la-blake3_be_cpusimd.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@blake3/$(DEPDIR)/libfyaml_la-blake3_host_state.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@blake3/$(DEPDIR)/libfyaml_la-fy-blake3.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@internal/$(DEPDIR)/fy_b3sum-fy-b3sum.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@internal/$(DEPDIR)/fy_thread-fy-thread.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@internal/$(DEPDIR)/libfyaml_parser-libfyaml-parser.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/libfyaml_la-fy-accel.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/libfyaml_la-fy-atom.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/libfyaml_la-fy-composer.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/libfyaml_la-fy-ctype.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/libfyaml_la-fy-diag.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/libfyaml_la-fy-doc.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/libfyaml_la-fy-docbuilder.Plo@am__quote@ # am--include-marker @@ -743,10 +1108,13 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/libfyaml_la-fy-path.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/libfyaml_la-fy-token.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/libfyaml_la-fy-types.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/libfyaml_la-fy-utf8.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/libfyaml_la-fy-utils.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@lib/$(DEPDIR)/libfyaml_la-fy-walk.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@thread/$(DEPDIR)/libfyaml_la-fy-thread.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@tool/$(DEPDIR)/fy_tool-fy-tool.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@util/$(DEPDIR)/libfyaml_la-fy-blob.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@util/$(DEPDIR)/libfyaml_la-fy-ctype.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@util/$(DEPDIR)/libfyaml_la-fy-utf8.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@util/$(DEPDIR)/libfyaml_la-fy-utils.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@xxhash/$(DEPDIR)/libfyaml_la-xxhash.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @@ -755,6 +1123,58 @@ $(am__depfiles_remade): am--depfiles: $(am__depfiles_remade) +.S.o: +@am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCCAS_TRUE@ $(CPPASCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCCAS_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(CPPASCOMPILE) -c -o $@ $< + +.S.obj: +@am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCCAS_TRUE@ $(CPPASCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCCAS_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(CPPASCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.S.lo: +@am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ +@am__fastdepCCAS_TRUE@ $(LTCPPASCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCCAS_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(LTCPPASCOMPILE) -c -o $@ $< + +blake3/libb3avx2_la-blake3_avx2_x86-64_unix.lo: blake3/blake3_avx2_x86-64_unix.S +@am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3avx2_la_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS) -MT blake3/libb3avx2_la-blake3_avx2_x86-64_unix.lo -MD -MP -MF blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2_x86-64_unix.Tpo -c -o blake3/libb3avx2_la-blake3_avx2_x86-64_unix.lo `test -f 'blake3/blake3_avx2_x86-64_unix.S' || echo '$(srcdir)/'`blake3/blake3_avx2_x86-64_unix.S +@am__fastdepCCAS_TRUE@ $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2_x86-64_unix.Tpo blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2_x86-64_unix.Plo +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='blake3/blake3_avx2_x86-64_unix.S' object='blake3/libb3avx2_la-blake3_avx2_x86-64_unix.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3avx2_la_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o blake3/libb3avx2_la-blake3_avx2_x86-64_unix.lo `test -f 'blake3/blake3_avx2_x86-64_unix.S' || echo '$(srcdir)/'`blake3/blake3_avx2_x86-64_unix.S + +blake3/libb3avx512_la-blake3_avx512_x86-64_unix.lo: blake3/blake3_avx512_x86-64_unix.S +@am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3avx512_la_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS) -MT blake3/libb3avx512_la-blake3_avx512_x86-64_unix.lo -MD -MP -MF blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512_x86-64_unix.Tpo -c -o blake3/libb3avx512_la-blake3_avx512_x86-64_unix.lo `test -f 'blake3/blake3_avx512_x86-64_unix.S' || echo '$(srcdir)/'`blake3/blake3_avx512_x86-64_unix.S +@am__fastdepCCAS_TRUE@ $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512_x86-64_unix.Tpo blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512_x86-64_unix.Plo +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='blake3/blake3_avx512_x86-64_unix.S' object='blake3/libb3avx512_la-blake3_avx512_x86-64_unix.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3avx512_la_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o blake3/libb3avx512_la-blake3_avx512_x86-64_unix.lo `test -f 'blake3/blake3_avx512_x86-64_unix.S' || echo '$(srcdir)/'`blake3/blake3_avx512_x86-64_unix.S + +blake3/libb3sse2_la-blake3_sse2_x86-64_unix.lo: blake3/blake3_sse2_x86-64_unix.S +@am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3sse2_la_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS) -MT blake3/libb3sse2_la-blake3_sse2_x86-64_unix.lo -MD -MP -MF blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2_x86-64_unix.Tpo -c -o blake3/libb3sse2_la-blake3_sse2_x86-64_unix.lo `test -f 'blake3/blake3_sse2_x86-64_unix.S' || echo '$(srcdir)/'`blake3/blake3_sse2_x86-64_unix.S +@am__fastdepCCAS_TRUE@ $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2_x86-64_unix.Tpo blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2_x86-64_unix.Plo +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='blake3/blake3_sse2_x86-64_unix.S' object='blake3/libb3sse2_la-blake3_sse2_x86-64_unix.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3sse2_la_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o blake3/libb3sse2_la-blake3_sse2_x86-64_unix.lo `test -f 'blake3/blake3_sse2_x86-64_unix.S' || echo '$(srcdir)/'`blake3/blake3_sse2_x86-64_unix.S + +blake3/libb3sse41_la-blake3_sse41_x86-64_unix.lo: blake3/blake3_sse41_x86-64_unix.S +@am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3sse41_la_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS) -MT blake3/libb3sse41_la-blake3_sse41_x86-64_unix.lo -MD -MP -MF blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41_x86-64_unix.Tpo -c -o blake3/libb3sse41_la-blake3_sse41_x86-64_unix.lo `test -f 'blake3/blake3_sse41_x86-64_unix.S' || echo '$(srcdir)/'`blake3/blake3_sse41_x86-64_unix.S +@am__fastdepCCAS_TRUE@ $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41_x86-64_unix.Tpo blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41_x86-64_unix.Plo +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='blake3/blake3_sse41_x86-64_unix.S' object='blake3/libb3sse41_la-blake3_sse41_x86-64_unix.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3sse41_la_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS) -c -o blake3/libb3sse41_la-blake3_sse41_x86-64_unix.lo `test -f 'blake3/blake3_sse41_x86-64_unix.S' || echo '$(srcdir)/'`blake3/blake3_sse41_x86-64_unix.S + .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ @@ -779,6 +1199,90 @@ am--depfiles: $(am__depfiles_remade) @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< +blake3/libb3avx2_la-blake3_avx2.lo: blake3/blake3_avx2.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3avx2_la_CPPFLAGS) $(CPPFLAGS) $(libb3avx2_la_CFLAGS) $(CFLAGS) -MT blake3/libb3avx2_la-blake3_avx2.lo -MD -MP -MF blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2.Tpo -c -o blake3/libb3avx2_la-blake3_avx2.lo `test -f 'blake3/blake3_avx2.c' || echo '$(srcdir)/'`blake3/blake3_avx2.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2.Tpo blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='blake3/blake3_avx2.c' object='blake3/libb3avx2_la-blake3_avx2.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3avx2_la_CPPFLAGS) $(CPPFLAGS) $(libb3avx2_la_CFLAGS) $(CFLAGS) -c -o blake3/libb3avx2_la-blake3_avx2.lo `test -f 'blake3/blake3_avx2.c' || echo '$(srcdir)/'`blake3/blake3_avx2.c + +blake3/libb3avx2_la-blake3.lo: blake3/blake3.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3avx2_la_CPPFLAGS) $(CPPFLAGS) $(libb3avx2_la_CFLAGS) $(CFLAGS) -MT blake3/libb3avx2_la-blake3.lo -MD -MP -MF blake3/$(DEPDIR)/libb3avx2_la-blake3.Tpo -c -o blake3/libb3avx2_la-blake3.lo `test -f 'blake3/blake3.c' || echo '$(srcdir)/'`blake3/blake3.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3avx2_la-blake3.Tpo blake3/$(DEPDIR)/libb3avx2_la-blake3.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='blake3/blake3.c' object='blake3/libb3avx2_la-blake3.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3avx2_la_CPPFLAGS) $(CPPFLAGS) $(libb3avx2_la_CFLAGS) $(CFLAGS) -c -o blake3/libb3avx2_la-blake3.lo `test -f 'blake3/blake3.c' || echo '$(srcdir)/'`blake3/blake3.c + +blake3/libb3avx512_la-blake3_avx512.lo: blake3/blake3_avx512.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3avx512_la_CPPFLAGS) $(CPPFLAGS) $(libb3avx512_la_CFLAGS) $(CFLAGS) -MT blake3/libb3avx512_la-blake3_avx512.lo -MD -MP -MF blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512.Tpo -c -o blake3/libb3avx512_la-blake3_avx512.lo `test -f 'blake3/blake3_avx512.c' || echo '$(srcdir)/'`blake3/blake3_avx512.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512.Tpo blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='blake3/blake3_avx512.c' object='blake3/libb3avx512_la-blake3_avx512.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3avx512_la_CPPFLAGS) $(CPPFLAGS) $(libb3avx512_la_CFLAGS) $(CFLAGS) -c -o blake3/libb3avx512_la-blake3_avx512.lo `test -f 'blake3/blake3_avx512.c' || echo '$(srcdir)/'`blake3/blake3_avx512.c + +blake3/libb3avx512_la-blake3.lo: blake3/blake3.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3avx512_la_CPPFLAGS) $(CPPFLAGS) $(libb3avx512_la_CFLAGS) $(CFLAGS) -MT blake3/libb3avx512_la-blake3.lo -MD -MP -MF blake3/$(DEPDIR)/libb3avx512_la-blake3.Tpo -c -o blake3/libb3avx512_la-blake3.lo `test -f 'blake3/blake3.c' || echo '$(srcdir)/'`blake3/blake3.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3avx512_la-blake3.Tpo blake3/$(DEPDIR)/libb3avx512_la-blake3.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='blake3/blake3.c' object='blake3/libb3avx512_la-blake3.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3avx512_la_CPPFLAGS) $(CPPFLAGS) $(libb3avx512_la_CFLAGS) $(CFLAGS) -c -o blake3/libb3avx512_la-blake3.lo `test -f 'blake3/blake3.c' || echo '$(srcdir)/'`blake3/blake3.c + +blake3/libb3neon_la-blake3_neon.lo: blake3/blake3_neon.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3neon_la_CPPFLAGS) $(CPPFLAGS) $(libb3neon_la_CFLAGS) $(CFLAGS) -MT blake3/libb3neon_la-blake3_neon.lo -MD -MP -MF blake3/$(DEPDIR)/libb3neon_la-blake3_neon.Tpo -c -o blake3/libb3neon_la-blake3_neon.lo `test -f 'blake3/blake3_neon.c' || echo '$(srcdir)/'`blake3/blake3_neon.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3neon_la-blake3_neon.Tpo blake3/$(DEPDIR)/libb3neon_la-blake3_neon.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='blake3/blake3_neon.c' object='blake3/libb3neon_la-blake3_neon.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3neon_la_CPPFLAGS) $(CPPFLAGS) $(libb3neon_la_CFLAGS) $(CFLAGS) -c -o blake3/libb3neon_la-blake3_neon.lo `test -f 'blake3/blake3_neon.c' || echo '$(srcdir)/'`blake3/blake3_neon.c + +blake3/libb3neon_la-blake3.lo: blake3/blake3.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3neon_la_CPPFLAGS) $(CPPFLAGS) $(libb3neon_la_CFLAGS) $(CFLAGS) -MT blake3/libb3neon_la-blake3.lo -MD -MP -MF blake3/$(DEPDIR)/libb3neon_la-blake3.Tpo -c -o blake3/libb3neon_la-blake3.lo `test -f 'blake3/blake3.c' || echo '$(srcdir)/'`blake3/blake3.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3neon_la-blake3.Tpo blake3/$(DEPDIR)/libb3neon_la-blake3.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='blake3/blake3.c' object='blake3/libb3neon_la-blake3.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3neon_la_CPPFLAGS) $(CPPFLAGS) $(libb3neon_la_CFLAGS) $(CFLAGS) -c -o blake3/libb3neon_la-blake3.lo `test -f 'blake3/blake3.c' || echo '$(srcdir)/'`blake3/blake3.c + +blake3/libb3portable_la-blake3_portable.lo: blake3/blake3_portable.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3portable_la_CPPFLAGS) $(CPPFLAGS) $(libb3portable_la_CFLAGS) $(CFLAGS) -MT blake3/libb3portable_la-blake3_portable.lo -MD -MP -MF blake3/$(DEPDIR)/libb3portable_la-blake3_portable.Tpo -c -o blake3/libb3portable_la-blake3_portable.lo `test -f 'blake3/blake3_portable.c' || echo '$(srcdir)/'`blake3/blake3_portable.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3portable_la-blake3_portable.Tpo blake3/$(DEPDIR)/libb3portable_la-blake3_portable.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='blake3/blake3_portable.c' object='blake3/libb3portable_la-blake3_portable.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3portable_la_CPPFLAGS) $(CPPFLAGS) $(libb3portable_la_CFLAGS) $(CFLAGS) -c -o blake3/libb3portable_la-blake3_portable.lo `test -f 'blake3/blake3_portable.c' || echo '$(srcdir)/'`blake3/blake3_portable.c + +blake3/libb3portable_la-blake3.lo: blake3/blake3.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3portable_la_CPPFLAGS) $(CPPFLAGS) $(libb3portable_la_CFLAGS) $(CFLAGS) -MT blake3/libb3portable_la-blake3.lo -MD -MP -MF blake3/$(DEPDIR)/libb3portable_la-blake3.Tpo -c -o blake3/libb3portable_la-blake3.lo `test -f 'blake3/blake3.c' || echo '$(srcdir)/'`blake3/blake3.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3portable_la-blake3.Tpo blake3/$(DEPDIR)/libb3portable_la-blake3.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='blake3/blake3.c' object='blake3/libb3portable_la-blake3.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3portable_la_CPPFLAGS) $(CPPFLAGS) $(libb3portable_la_CFLAGS) $(CFLAGS) -c -o blake3/libb3portable_la-blake3.lo `test -f 'blake3/blake3.c' || echo '$(srcdir)/'`blake3/blake3.c + +blake3/libb3sse2_la-blake3_sse2.lo: blake3/blake3_sse2.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3sse2_la_CPPFLAGS) $(CPPFLAGS) $(libb3sse2_la_CFLAGS) $(CFLAGS) -MT blake3/libb3sse2_la-blake3_sse2.lo -MD -MP -MF blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2.Tpo -c -o blake3/libb3sse2_la-blake3_sse2.lo `test -f 'blake3/blake3_sse2.c' || echo '$(srcdir)/'`blake3/blake3_sse2.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2.Tpo blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='blake3/blake3_sse2.c' object='blake3/libb3sse2_la-blake3_sse2.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3sse2_la_CPPFLAGS) $(CPPFLAGS) $(libb3sse2_la_CFLAGS) $(CFLAGS) -c -o blake3/libb3sse2_la-blake3_sse2.lo `test -f 'blake3/blake3_sse2.c' || echo '$(srcdir)/'`blake3/blake3_sse2.c + +blake3/libb3sse2_la-blake3.lo: blake3/blake3.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3sse2_la_CPPFLAGS) $(CPPFLAGS) $(libb3sse2_la_CFLAGS) $(CFLAGS) -MT blake3/libb3sse2_la-blake3.lo -MD -MP -MF blake3/$(DEPDIR)/libb3sse2_la-blake3.Tpo -c -o blake3/libb3sse2_la-blake3.lo `test -f 'blake3/blake3.c' || echo '$(srcdir)/'`blake3/blake3.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3sse2_la-blake3.Tpo blake3/$(DEPDIR)/libb3sse2_la-blake3.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='blake3/blake3.c' object='blake3/libb3sse2_la-blake3.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3sse2_la_CPPFLAGS) $(CPPFLAGS) $(libb3sse2_la_CFLAGS) $(CFLAGS) -c -o blake3/libb3sse2_la-blake3.lo `test -f 'blake3/blake3.c' || echo '$(srcdir)/'`blake3/blake3.c + +blake3/libb3sse41_la-blake3_sse41.lo: blake3/blake3_sse41.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3sse41_la_CPPFLAGS) $(CPPFLAGS) $(libb3sse41_la_CFLAGS) $(CFLAGS) -MT blake3/libb3sse41_la-blake3_sse41.lo -MD -MP -MF blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41.Tpo -c -o blake3/libb3sse41_la-blake3_sse41.lo `test -f 'blake3/blake3_sse41.c' || echo '$(srcdir)/'`blake3/blake3_sse41.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41.Tpo blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='blake3/blake3_sse41.c' object='blake3/libb3sse41_la-blake3_sse41.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3sse41_la_CPPFLAGS) $(CPPFLAGS) $(libb3sse41_la_CFLAGS) $(CFLAGS) -c -o blake3/libb3sse41_la-blake3_sse41.lo `test -f 'blake3/blake3_sse41.c' || echo '$(srcdir)/'`blake3/blake3_sse41.c + +blake3/libb3sse41_la-blake3.lo: blake3/blake3.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3sse41_la_CPPFLAGS) $(CPPFLAGS) $(libb3sse41_la_CFLAGS) $(CFLAGS) -MT blake3/libb3sse41_la-blake3.lo -MD -MP -MF blake3/$(DEPDIR)/libb3sse41_la-blake3.Tpo -c -o blake3/libb3sse41_la-blake3.lo `test -f 'blake3/blake3.c' || echo '$(srcdir)/'`blake3/blake3.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libb3sse41_la-blake3.Tpo blake3/$(DEPDIR)/libb3sse41_la-blake3.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='blake3/blake3.c' object='blake3/libb3sse41_la-blake3.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libb3sse41_la_CPPFLAGS) $(CPPFLAGS) $(libb3sse41_la_CFLAGS) $(CFLAGS) -c -o blake3/libb3sse41_la-blake3.lo `test -f 'blake3/blake3.c' || echo '$(srcdir)/'`blake3/blake3.c + lib/libfyaml_la-fy-parse.lo: lib/fy-parse.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT lib/libfyaml_la-fy-parse.lo -MD -MP -MF lib/$(DEPDIR)/libfyaml_la-fy-parse.Tpo -c -o lib/libfyaml_la-fy-parse.lo `test -f 'lib/fy-parse.c' || echo '$(srcdir)/'`lib/fy-parse.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) lib/$(DEPDIR)/libfyaml_la-fy-parse.Tpo lib/$(DEPDIR)/libfyaml_la-fy-parse.Plo @@ -786,13 +1290,6 @@ lib/libfyaml_la-fy-parse.lo: lib/fy-parse.c @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o lib/libfyaml_la-fy-parse.lo `test -f 'lib/fy-parse.c' || echo '$(srcdir)/'`lib/fy-parse.c -lib/libfyaml_la-fy-utf8.lo: lib/fy-utf8.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT lib/libfyaml_la-fy-utf8.lo -MD -MP -MF lib/$(DEPDIR)/libfyaml_la-fy-utf8.Tpo -c -o lib/libfyaml_la-fy-utf8.lo `test -f 'lib/fy-utf8.c' || echo '$(srcdir)/'`lib/fy-utf8.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) lib/$(DEPDIR)/libfyaml_la-fy-utf8.Tpo lib/$(DEPDIR)/libfyaml_la-fy-utf8.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='lib/fy-utf8.c' object='lib/libfyaml_la-fy-utf8.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o lib/libfyaml_la-fy-utf8.lo `test -f 'lib/fy-utf8.c' || echo '$(srcdir)/'`lib/fy-utf8.c - lib/libfyaml_la-fy-types.lo: lib/fy-types.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT lib/libfyaml_la-fy-types.lo -MD -MP -MF lib/$(DEPDIR)/libfyaml_la-fy-types.Tpo -c -o lib/libfyaml_la-fy-types.lo `test -f 'lib/fy-types.c' || echo '$(srcdir)/'`lib/fy-types.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) lib/$(DEPDIR)/libfyaml_la-fy-types.Tpo lib/$(DEPDIR)/libfyaml_la-fy-types.Plo @@ -821,13 +1318,6 @@ lib/libfyaml_la-fy-atom.lo: lib/fy-atom.c @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o lib/libfyaml_la-fy-atom.lo `test -f 'lib/fy-atom.c' || echo '$(srcdir)/'`lib/fy-atom.c -lib/libfyaml_la-fy-ctype.lo: lib/fy-ctype.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT lib/libfyaml_la-fy-ctype.lo -MD -MP -MF lib/$(DEPDIR)/libfyaml_la-fy-ctype.Tpo -c -o lib/libfyaml_la-fy-ctype.lo `test -f 'lib/fy-ctype.c' || echo '$(srcdir)/'`lib/fy-ctype.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) lib/$(DEPDIR)/libfyaml_la-fy-ctype.Tpo lib/$(DEPDIR)/libfyaml_la-fy-ctype.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='lib/fy-ctype.c' object='lib/libfyaml_la-fy-ctype.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o lib/libfyaml_la-fy-ctype.lo `test -f 'lib/fy-ctype.c' || echo '$(srcdir)/'`lib/fy-ctype.c - lib/libfyaml_la-fy-token.lo: lib/fy-token.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT lib/libfyaml_la-fy-token.lo -MD -MP -MF lib/$(DEPDIR)/libfyaml_la-fy-token.Tpo -c -o lib/libfyaml_la-fy-token.lo `test -f 'lib/fy-token.c' || echo '$(srcdir)/'`lib/fy-token.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) lib/$(DEPDIR)/libfyaml_la-fy-token.Tpo lib/$(DEPDIR)/libfyaml_la-fy-token.Plo @@ -870,13 +1360,6 @@ lib/libfyaml_la-fy-emit.lo: lib/fy-emit.c @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o lib/libfyaml_la-fy-emit.lo `test -f 'lib/fy-emit.c' || echo '$(srcdir)/'`lib/fy-emit.c -lib/libfyaml_la-fy-utils.lo: lib/fy-utils.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT lib/libfyaml_la-fy-utils.lo -MD -MP -MF lib/$(DEPDIR)/libfyaml_la-fy-utils.Tpo -c -o lib/libfyaml_la-fy-utils.lo `test -f 'lib/fy-utils.c' || echo '$(srcdir)/'`lib/fy-utils.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) lib/$(DEPDIR)/libfyaml_la-fy-utils.Tpo lib/$(DEPDIR)/libfyaml_la-fy-utils.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='lib/fy-utils.c' object='lib/libfyaml_la-fy-utils.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o lib/libfyaml_la-fy-utils.lo `test -f 'lib/fy-utils.c' || echo '$(srcdir)/'`lib/fy-utils.c - lib/libfyaml_la-fy-event.lo: lib/fy-event.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT lib/libfyaml_la-fy-event.lo -MD -MP -MF lib/$(DEPDIR)/libfyaml_la-fy-event.Tpo -c -o lib/libfyaml_la-fy-event.lo `test -f 'lib/fy-event.c' || echo '$(srcdir)/'`lib/fy-event.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) lib/$(DEPDIR)/libfyaml_la-fy-event.Tpo lib/$(DEPDIR)/libfyaml_la-fy-event.Plo @@ -884,13 +1367,6 @@ lib/libfyaml_la-fy-event.lo: lib/fy-event.c @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o lib/libfyaml_la-fy-event.lo `test -f 'lib/fy-event.c' || echo '$(srcdir)/'`lib/fy-event.c -xxhash/libfyaml_la-xxhash.lo: xxhash/xxhash.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT xxhash/libfyaml_la-xxhash.lo -MD -MP -MF xxhash/$(DEPDIR)/libfyaml_la-xxhash.Tpo -c -o xxhash/libfyaml_la-xxhash.lo `test -f 'xxhash/xxhash.c' || echo '$(srcdir)/'`xxhash/xxhash.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) xxhash/$(DEPDIR)/libfyaml_la-xxhash.Tpo xxhash/$(DEPDIR)/libfyaml_la-xxhash.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xxhash/xxhash.c' object='xxhash/libfyaml_la-xxhash.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o xxhash/libfyaml_la-xxhash.lo `test -f 'xxhash/xxhash.c' || echo '$(srcdir)/'`xxhash/xxhash.c - lib/libfyaml_la-fy-accel.lo: lib/fy-accel.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT lib/libfyaml_la-fy-accel.lo -MD -MP -MF lib/$(DEPDIR)/libfyaml_la-fy-accel.Tpo -c -o lib/libfyaml_la-fy-accel.lo `test -f 'lib/fy-accel.c' || echo '$(srcdir)/'`lib/fy-accel.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) lib/$(DEPDIR)/libfyaml_la-fy-accel.Tpo lib/$(DEPDIR)/libfyaml_la-fy-accel.Plo @@ -919,6 +1395,104 @@ lib/libfyaml_la-fy-composer.lo: lib/fy-composer.c @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o lib/libfyaml_la-fy-composer.lo `test -f 'lib/fy-composer.c' || echo '$(srcdir)/'`lib/fy-composer.c +xxhash/libfyaml_la-xxhash.lo: xxhash/xxhash.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT xxhash/libfyaml_la-xxhash.lo -MD -MP -MF xxhash/$(DEPDIR)/libfyaml_la-xxhash.Tpo -c -o xxhash/libfyaml_la-xxhash.lo `test -f 'xxhash/xxhash.c' || echo '$(srcdir)/'`xxhash/xxhash.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) xxhash/$(DEPDIR)/libfyaml_la-xxhash.Tpo xxhash/$(DEPDIR)/libfyaml_la-xxhash.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xxhash/xxhash.c' object='xxhash/libfyaml_la-xxhash.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o xxhash/libfyaml_la-xxhash.lo `test -f 'xxhash/xxhash.c' || echo '$(srcdir)/'`xxhash/xxhash.c + +util/libfyaml_la-fy-ctype.lo: util/fy-ctype.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT util/libfyaml_la-fy-ctype.lo -MD -MP -MF util/$(DEPDIR)/libfyaml_la-fy-ctype.Tpo -c -o util/libfyaml_la-fy-ctype.lo `test -f 'util/fy-ctype.c' || echo '$(srcdir)/'`util/fy-ctype.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) util/$(DEPDIR)/libfyaml_la-fy-ctype.Tpo util/$(DEPDIR)/libfyaml_la-fy-ctype.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='util/fy-ctype.c' object='util/libfyaml_la-fy-ctype.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o util/libfyaml_la-fy-ctype.lo `test -f 'util/fy-ctype.c' || echo '$(srcdir)/'`util/fy-ctype.c + +util/libfyaml_la-fy-utf8.lo: util/fy-utf8.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT util/libfyaml_la-fy-utf8.lo -MD -MP -MF util/$(DEPDIR)/libfyaml_la-fy-utf8.Tpo -c -o util/libfyaml_la-fy-utf8.lo `test -f 'util/fy-utf8.c' || echo '$(srcdir)/'`util/fy-utf8.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) util/$(DEPDIR)/libfyaml_la-fy-utf8.Tpo util/$(DEPDIR)/libfyaml_la-fy-utf8.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='util/fy-utf8.c' object='util/libfyaml_la-fy-utf8.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o util/libfyaml_la-fy-utf8.lo `test -f 'util/fy-utf8.c' || echo '$(srcdir)/'`util/fy-utf8.c + +util/libfyaml_la-fy-utils.lo: util/fy-utils.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT util/libfyaml_la-fy-utils.lo -MD -MP -MF util/$(DEPDIR)/libfyaml_la-fy-utils.Tpo -c -o util/libfyaml_la-fy-utils.lo `test -f 'util/fy-utils.c' || echo '$(srcdir)/'`util/fy-utils.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) util/$(DEPDIR)/libfyaml_la-fy-utils.Tpo util/$(DEPDIR)/libfyaml_la-fy-utils.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='util/fy-utils.c' object='util/libfyaml_la-fy-utils.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o util/libfyaml_la-fy-utils.lo `test -f 'util/fy-utils.c' || echo '$(srcdir)/'`util/fy-utils.c + +util/libfyaml_la-fy-blob.lo: util/fy-blob.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT util/libfyaml_la-fy-blob.lo -MD -MP -MF util/$(DEPDIR)/libfyaml_la-fy-blob.Tpo -c -o util/libfyaml_la-fy-blob.lo `test -f 'util/fy-blob.c' || echo '$(srcdir)/'`util/fy-blob.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) util/$(DEPDIR)/libfyaml_la-fy-blob.Tpo util/$(DEPDIR)/libfyaml_la-fy-blob.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='util/fy-blob.c' object='util/libfyaml_la-fy-blob.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o util/libfyaml_la-fy-blob.lo `test -f 'util/fy-blob.c' || echo '$(srcdir)/'`util/fy-blob.c + +thread/libfyaml_la-fy-thread.lo: thread/fy-thread.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT thread/libfyaml_la-fy-thread.lo -MD -MP -MF thread/$(DEPDIR)/libfyaml_la-fy-thread.Tpo -c -o thread/libfyaml_la-fy-thread.lo `test -f 'thread/fy-thread.c' || echo '$(srcdir)/'`thread/fy-thread.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) thread/$(DEPDIR)/libfyaml_la-fy-thread.Tpo thread/$(DEPDIR)/libfyaml_la-fy-thread.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='thread/fy-thread.c' object='thread/libfyaml_la-fy-thread.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o thread/libfyaml_la-fy-thread.lo `test -f 'thread/fy-thread.c' || echo '$(srcdir)/'`thread/fy-thread.c + +blake3/libfyaml_la-blake3_host_state.lo: blake3/blake3_host_state.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT blake3/libfyaml_la-blake3_host_state.lo -MD -MP -MF blake3/$(DEPDIR)/libfyaml_la-blake3_host_state.Tpo -c -o blake3/libfyaml_la-blake3_host_state.lo `test -f 'blake3/blake3_host_state.c' || echo '$(srcdir)/'`blake3/blake3_host_state.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libfyaml_la-blake3_host_state.Tpo blake3/$(DEPDIR)/libfyaml_la-blake3_host_state.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='blake3/blake3_host_state.c' object='blake3/libfyaml_la-blake3_host_state.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o blake3/libfyaml_la-blake3_host_state.lo `test -f 'blake3/blake3_host_state.c' || echo '$(srcdir)/'`blake3/blake3_host_state.c + +blake3/libfyaml_la-blake3_backend.lo: blake3/blake3_backend.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT blake3/libfyaml_la-blake3_backend.lo -MD -MP -MF blake3/$(DEPDIR)/libfyaml_la-blake3_backend.Tpo -c -o blake3/libfyaml_la-blake3_backend.lo `test -f 'blake3/blake3_backend.c' || echo '$(srcdir)/'`blake3/blake3_backend.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libfyaml_la-blake3_backend.Tpo blake3/$(DEPDIR)/libfyaml_la-blake3_backend.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='blake3/blake3_backend.c' object='blake3/libfyaml_la-blake3_backend.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o blake3/libfyaml_la-blake3_backend.lo `test -f 'blake3/blake3_backend.c' || echo '$(srcdir)/'`blake3/blake3_backend.c + +blake3/libfyaml_la-blake3_be_cpusimd.lo: blake3/blake3_be_cpusimd.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT blake3/libfyaml_la-blake3_be_cpusimd.lo -MD -MP -MF blake3/$(DEPDIR)/libfyaml_la-blake3_be_cpusimd.Tpo -c -o blake3/libfyaml_la-blake3_be_cpusimd.lo `test -f 'blake3/blake3_be_cpusimd.c' || echo '$(srcdir)/'`blake3/blake3_be_cpusimd.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libfyaml_la-blake3_be_cpusimd.Tpo blake3/$(DEPDIR)/libfyaml_la-blake3_be_cpusimd.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='blake3/blake3_be_cpusimd.c' object='blake3/libfyaml_la-blake3_be_cpusimd.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o blake3/libfyaml_la-blake3_be_cpusimd.lo `test -f 'blake3/blake3_be_cpusimd.c' || echo '$(srcdir)/'`blake3/blake3_be_cpusimd.c + +blake3/libfyaml_la-fy-blake3.lo: blake3/fy-blake3.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -MT blake3/libfyaml_la-fy-blake3.lo -MD -MP -MF blake3/$(DEPDIR)/libfyaml_la-fy-blake3.Tpo -c -o blake3/libfyaml_la-fy-blake3.lo `test -f 'blake3/fy-blake3.c' || echo '$(srcdir)/'`blake3/fy-blake3.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) blake3/$(DEPDIR)/libfyaml_la-fy-blake3.Tpo blake3/$(DEPDIR)/libfyaml_la-fy-blake3.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='blake3/fy-blake3.c' object='blake3/libfyaml_la-fy-blake3.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_la_CPPFLAGS) $(CPPFLAGS) $(libfyaml_la_CFLAGS) $(CFLAGS) -c -o blake3/libfyaml_la-fy-blake3.lo `test -f 'blake3/fy-blake3.c' || echo '$(srcdir)/'`blake3/fy-blake3.c + +internal/fy_b3sum-fy-b3sum.o: internal/fy-b3sum.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fy_b3sum_CPPFLAGS) $(CPPFLAGS) $(fy_b3sum_CFLAGS) $(CFLAGS) -MT internal/fy_b3sum-fy-b3sum.o -MD -MP -MF internal/$(DEPDIR)/fy_b3sum-fy-b3sum.Tpo -c -o internal/fy_b3sum-fy-b3sum.o `test -f 'internal/fy-b3sum.c' || echo '$(srcdir)/'`internal/fy-b3sum.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) internal/$(DEPDIR)/fy_b3sum-fy-b3sum.Tpo internal/$(DEPDIR)/fy_b3sum-fy-b3sum.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='internal/fy-b3sum.c' object='internal/fy_b3sum-fy-b3sum.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fy_b3sum_CPPFLAGS) $(CPPFLAGS) $(fy_b3sum_CFLAGS) $(CFLAGS) -c -o internal/fy_b3sum-fy-b3sum.o `test -f 'internal/fy-b3sum.c' || echo '$(srcdir)/'`internal/fy-b3sum.c + +internal/fy_b3sum-fy-b3sum.obj: internal/fy-b3sum.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fy_b3sum_CPPFLAGS) $(CPPFLAGS) $(fy_b3sum_CFLAGS) $(CFLAGS) -MT internal/fy_b3sum-fy-b3sum.obj -MD -MP -MF internal/$(DEPDIR)/fy_b3sum-fy-b3sum.Tpo -c -o internal/fy_b3sum-fy-b3sum.obj `if test -f 'internal/fy-b3sum.c'; then $(CYGPATH_W) 'internal/fy-b3sum.c'; else $(CYGPATH_W) '$(srcdir)/internal/fy-b3sum.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) internal/$(DEPDIR)/fy_b3sum-fy-b3sum.Tpo internal/$(DEPDIR)/fy_b3sum-fy-b3sum.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='internal/fy-b3sum.c' object='internal/fy_b3sum-fy-b3sum.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fy_b3sum_CPPFLAGS) $(CPPFLAGS) $(fy_b3sum_CFLAGS) $(CFLAGS) -c -o internal/fy_b3sum-fy-b3sum.obj `if test -f 'internal/fy-b3sum.c'; then $(CYGPATH_W) 'internal/fy-b3sum.c'; else $(CYGPATH_W) '$(srcdir)/internal/fy-b3sum.c'; fi` + +internal/fy_thread-fy-thread.o: internal/fy-thread.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fy_thread_CPPFLAGS) $(CPPFLAGS) $(fy_thread_CFLAGS) $(CFLAGS) -MT internal/fy_thread-fy-thread.o -MD -MP -MF internal/$(DEPDIR)/fy_thread-fy-thread.Tpo -c -o internal/fy_thread-fy-thread.o `test -f 'internal/fy-thread.c' || echo '$(srcdir)/'`internal/fy-thread.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) internal/$(DEPDIR)/fy_thread-fy-thread.Tpo internal/$(DEPDIR)/fy_thread-fy-thread.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='internal/fy-thread.c' object='internal/fy_thread-fy-thread.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fy_thread_CPPFLAGS) $(CPPFLAGS) $(fy_thread_CFLAGS) $(CFLAGS) -c -o internal/fy_thread-fy-thread.o `test -f 'internal/fy-thread.c' || echo '$(srcdir)/'`internal/fy-thread.c + +internal/fy_thread-fy-thread.obj: internal/fy-thread.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fy_thread_CPPFLAGS) $(CPPFLAGS) $(fy_thread_CFLAGS) $(CFLAGS) -MT internal/fy_thread-fy-thread.obj -MD -MP -MF internal/$(DEPDIR)/fy_thread-fy-thread.Tpo -c -o internal/fy_thread-fy-thread.obj `if test -f 'internal/fy-thread.c'; then $(CYGPATH_W) 'internal/fy-thread.c'; else $(CYGPATH_W) '$(srcdir)/internal/fy-thread.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) internal/$(DEPDIR)/fy_thread-fy-thread.Tpo internal/$(DEPDIR)/fy_thread-fy-thread.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='internal/fy-thread.c' object='internal/fy_thread-fy-thread.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fy_thread_CPPFLAGS) $(CPPFLAGS) $(fy_thread_CFLAGS) $(CFLAGS) -c -o internal/fy_thread-fy-thread.obj `if test -f 'internal/fy-thread.c'; then $(CYGPATH_W) 'internal/fy-thread.c'; else $(CYGPATH_W) '$(srcdir)/internal/fy-thread.c'; fi` + tool/fy_tool-fy-tool.o: tool/fy-tool.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(fy_tool_CPPFLAGS) $(CPPFLAGS) $(fy_tool_CFLAGS) $(CFLAGS) -MT tool/fy_tool-fy-tool.o -MD -MP -MF tool/$(DEPDIR)/fy_tool-fy-tool.Tpo -c -o tool/fy_tool-fy-tool.o `test -f 'tool/fy-tool.c' || echo '$(srcdir)/'`tool/fy-tool.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) tool/$(DEPDIR)/fy_tool-fy-tool.Tpo tool/$(DEPDIR)/fy_tool-fy-tool.Po @@ -952,7 +1526,10 @@ mostlyclean-libtool: clean-libtool: -rm -rf .libs _libs + -rm -rf blake3/.libs blake3/_libs -rm -rf lib/.libs lib/_libs + -rm -rf thread/.libs thread/_libs + -rm -rf util/.libs util/_libs -rm -rf xxhash/.libs xxhash/_libs install-includeHEADERS: $(include_HEADERS) @$(NORMAL_INSTALL) @@ -1068,7 +1645,7 @@ distdir-am: $(DISTFILES) done check-am: all-am check: check-am -all-am: Makefile $(PROGRAMS) $(LTLIBRARIES) $(HEADERS) +all-am: Makefile $(PROGRAMS) $(LIBRARIES) $(LTLIBRARIES) $(HEADERS) install-binPROGRAMS: install-libLTLIBRARIES installdirs: @@ -1101,12 +1678,18 @@ 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) + -rm -f blake3/$(DEPDIR)/$(am__dirstamp) + -rm -f blake3/$(am__dirstamp) -rm -f internal/$(DEPDIR)/$(am__dirstamp) -rm -f internal/$(am__dirstamp) -rm -f lib/$(DEPDIR)/$(am__dirstamp) -rm -f lib/$(am__dirstamp) + -rm -f thread/$(DEPDIR)/$(am__dirstamp) + -rm -f thread/$(am__dirstamp) -rm -f tool/$(DEPDIR)/$(am__dirstamp) -rm -f tool/$(am__dirstamp) + -rm -f util/$(DEPDIR)/$(am__dirstamp) + -rm -f util/$(am__dirstamp) -rm -f xxhash/$(DEPDIR)/$(am__dirstamp) -rm -f xxhash/$(am__dirstamp) @@ -1116,14 +1699,36 @@ maintainer-clean-generic: clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \ - clean-libtool clean-noinstPROGRAMS mostlyclean-am + clean-libtool clean-noinstLIBRARIES clean-noinstLTLIBRARIES \ + clean-noinstPROGRAMS mostlyclean-am distclean: distclean-am - -rm -f internal/$(DEPDIR)/libfyaml_parser-libfyaml-parser.Po + -rm -f blake3/$(DEPDIR)/libb3avx2_la-blake3.Plo + -rm -f blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2.Plo + -rm -f blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2_x86-64_unix.Plo + -rm -f blake3/$(DEPDIR)/libb3avx512_la-blake3.Plo + -rm -f blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512.Plo + -rm -f blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512_x86-64_unix.Plo + -rm -f blake3/$(DEPDIR)/libb3neon_la-blake3.Plo + -rm -f blake3/$(DEPDIR)/libb3neon_la-blake3_neon.Plo + -rm -f blake3/$(DEPDIR)/libb3portable_la-blake3.Plo + -rm -f blake3/$(DEPDIR)/libb3portable_la-blake3_portable.Plo + -rm -f blake3/$(DEPDIR)/libb3sse2_la-blake3.Plo + -rm -f blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2.Plo + -rm -f blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2_x86-64_unix.Plo + -rm -f blake3/$(DEPDIR)/libb3sse41_la-blake3.Plo + -rm -f blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41.Plo + -rm -f blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41_x86-64_unix.Plo + -rm -f blake3/$(DEPDIR)/libfyaml_la-blake3_backend.Plo + -rm -f blake3/$(DEPDIR)/libfyaml_la-blake3_be_cpusimd.Plo + -rm -f blake3/$(DEPDIR)/libfyaml_la-blake3_host_state.Plo + -rm -f blake3/$(DEPDIR)/libfyaml_la-fy-blake3.Plo + -rm -f internal/$(DEPDIR)/fy_b3sum-fy-b3sum.Po + -rm -f internal/$(DEPDIR)/fy_thread-fy-thread.Po + -rm -f internal/$(DEPDIR)/libfyaml_parser-libfyaml-parser.Po -rm -f lib/$(DEPDIR)/libfyaml_la-fy-accel.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-atom.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-composer.Plo - -rm -f lib/$(DEPDIR)/libfyaml_la-fy-ctype.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-diag.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-doc.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-docbuilder.Plo @@ -1136,10 +1741,13 @@ distclean: distclean-am -rm -f lib/$(DEPDIR)/libfyaml_la-fy-path.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-token.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-types.Plo - -rm -f lib/$(DEPDIR)/libfyaml_la-fy-utf8.Plo - -rm -f lib/$(DEPDIR)/libfyaml_la-fy-utils.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-walk.Plo + -rm -f thread/$(DEPDIR)/libfyaml_la-fy-thread.Plo -rm -f tool/$(DEPDIR)/fy_tool-fy-tool.Po + -rm -f util/$(DEPDIR)/libfyaml_la-fy-blob.Plo + -rm -f util/$(DEPDIR)/libfyaml_la-fy-ctype.Plo + -rm -f util/$(DEPDIR)/libfyaml_la-fy-utf8.Plo + -rm -f util/$(DEPDIR)/libfyaml_la-fy-utils.Plo -rm -f xxhash/$(DEPDIR)/libfyaml_la-xxhash.Plo -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ @@ -1211,11 +1819,32 @@ install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am - -rm -f internal/$(DEPDIR)/libfyaml_parser-libfyaml-parser.Po + -rm -f blake3/$(DEPDIR)/libb3avx2_la-blake3.Plo + -rm -f blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2.Plo + -rm -f blake3/$(DEPDIR)/libb3avx2_la-blake3_avx2_x86-64_unix.Plo + -rm -f blake3/$(DEPDIR)/libb3avx512_la-blake3.Plo + -rm -f blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512.Plo + -rm -f blake3/$(DEPDIR)/libb3avx512_la-blake3_avx512_x86-64_unix.Plo + -rm -f blake3/$(DEPDIR)/libb3neon_la-blake3.Plo + -rm -f blake3/$(DEPDIR)/libb3neon_la-blake3_neon.Plo + -rm -f blake3/$(DEPDIR)/libb3portable_la-blake3.Plo + -rm -f blake3/$(DEPDIR)/libb3portable_la-blake3_portable.Plo + -rm -f blake3/$(DEPDIR)/libb3sse2_la-blake3.Plo + -rm -f blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2.Plo + -rm -f blake3/$(DEPDIR)/libb3sse2_la-blake3_sse2_x86-64_unix.Plo + -rm -f blake3/$(DEPDIR)/libb3sse41_la-blake3.Plo + -rm -f blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41.Plo + -rm -f blake3/$(DEPDIR)/libb3sse41_la-blake3_sse41_x86-64_unix.Plo + -rm -f blake3/$(DEPDIR)/libfyaml_la-blake3_backend.Plo + -rm -f blake3/$(DEPDIR)/libfyaml_la-blake3_be_cpusimd.Plo + -rm -f blake3/$(DEPDIR)/libfyaml_la-blake3_host_state.Plo + -rm -f blake3/$(DEPDIR)/libfyaml_la-fy-blake3.Plo + -rm -f internal/$(DEPDIR)/fy_b3sum-fy-b3sum.Po + -rm -f internal/$(DEPDIR)/fy_thread-fy-thread.Po + -rm -f internal/$(DEPDIR)/libfyaml_parser-libfyaml-parser.Po -rm -f lib/$(DEPDIR)/libfyaml_la-fy-accel.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-atom.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-composer.Plo - -rm -f lib/$(DEPDIR)/libfyaml_la-fy-ctype.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-diag.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-doc.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-docbuilder.Plo @@ -1228,10 +1857,13 @@ maintainer-clean: maintainer-clean-am -rm -f lib/$(DEPDIR)/libfyaml_la-fy-path.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-token.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-types.Plo - -rm -f lib/$(DEPDIR)/libfyaml_la-fy-utf8.Plo - -rm -f lib/$(DEPDIR)/libfyaml_la-fy-utils.Plo -rm -f lib/$(DEPDIR)/libfyaml_la-fy-walk.Plo + -rm -f thread/$(DEPDIR)/libfyaml_la-fy-thread.Plo -rm -f tool/$(DEPDIR)/fy_tool-fy-tool.Po + -rm -f util/$(DEPDIR)/libfyaml_la-fy-blob.Plo + -rm -f util/$(DEPDIR)/libfyaml_la-fy-ctype.Plo + -rm -f util/$(DEPDIR)/libfyaml_la-fy-utf8.Plo + -rm -f util/$(DEPDIR)/libfyaml_la-fy-utils.Plo -rm -f xxhash/$(DEPDIR)/libfyaml_la-xxhash.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic @@ -1257,24 +1889,25 @@ uninstall-am: uninstall-binPROGRAMS uninstall-includeHEADERS \ .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \ - clean-libtool clean-noinstPROGRAMS cscopelist-am ctags \ - ctags-am distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distdir doc-clean-am \ - doc-clean-local doc-help-am doc-help-local doc-html-am \ - doc-html-local doc-latexpdf-am doc-latexpdf-local doc-man-am \ - doc-man-local doc-markdown-am doc-markdown-local dvi dvi-am \ - html html-am info info-am install install-am \ - install-binPROGRAMS install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-exec-hook \ - install-html install-html-am install-includeHEADERS \ - 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-binPROGRAMS uninstall-hook \ - uninstall-includeHEADERS uninstall-libLTLIBRARIES + clean-libtool clean-noinstLIBRARIES clean-noinstLTLIBRARIES \ + clean-noinstPROGRAMS cscopelist-am ctags ctags-am distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir doc-clean-am doc-clean-local \ + doc-help-am doc-help-local doc-html-am doc-html-local \ + doc-latexpdf-am doc-latexpdf-local doc-man-am doc-man-local \ + doc-markdown-am doc-markdown-local dvi dvi-am html html-am \ + info info-am install install-am install-binPROGRAMS \ + install-data install-data-am install-dvi install-dvi-am \ + install-exec install-exec-am install-exec-hook install-html \ + install-html-am install-includeHEADERS 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-binPROGRAMS \ + uninstall-hook uninstall-includeHEADERS \ + uninstall-libLTLIBRARIES .PRECIOUS: Makefile diff --git a/Sources/Cfyaml/src/lib/.deps/libfyaml_la-fy-ctype.Plo b/Sources/Cfyaml/src/blake3/.deps/libb3avx2_la-blake3.Plo similarity index 100% rename from Sources/Cfyaml/src/lib/.deps/libfyaml_la-fy-ctype.Plo rename to Sources/Cfyaml/src/blake3/.deps/libb3avx2_la-blake3.Plo diff --git a/Sources/Cfyaml/src/lib/.deps/libfyaml_la-fy-utf8.Plo b/Sources/Cfyaml/src/blake3/.deps/libb3avx2_la-blake3_avx2.Plo similarity index 100% rename from Sources/Cfyaml/src/lib/.deps/libfyaml_la-fy-utf8.Plo rename to Sources/Cfyaml/src/blake3/.deps/libb3avx2_la-blake3_avx2.Plo diff --git a/Sources/Cfyaml/src/lib/.deps/libfyaml_la-fy-utils.Plo b/Sources/Cfyaml/src/blake3/.deps/libb3avx2_la-blake3_avx2_x86-64_unix.Plo similarity index 100% rename from Sources/Cfyaml/src/lib/.deps/libfyaml_la-fy-utils.Plo rename to Sources/Cfyaml/src/blake3/.deps/libb3avx2_la-blake3_avx2_x86-64_unix.Plo diff --git a/Sources/Cfyaml/src/blake3/.deps/libb3avx512_la-blake3.Plo b/Sources/Cfyaml/src/blake3/.deps/libb3avx512_la-blake3.Plo new file mode 100644 index 000000000..9ce06a81e --- /dev/null +++ b/Sources/Cfyaml/src/blake3/.deps/libb3avx512_la-blake3.Plo @@ -0,0 +1 @@ +# dummy diff --git a/Sources/Cfyaml/src/blake3/.deps/libb3avx512_la-blake3_avx512.Plo b/Sources/Cfyaml/src/blake3/.deps/libb3avx512_la-blake3_avx512.Plo new file mode 100644 index 000000000..9ce06a81e --- /dev/null +++ b/Sources/Cfyaml/src/blake3/.deps/libb3avx512_la-blake3_avx512.Plo @@ -0,0 +1 @@ +# dummy diff --git a/Sources/Cfyaml/src/blake3/.deps/libb3avx512_la-blake3_avx512_x86-64_unix.Plo b/Sources/Cfyaml/src/blake3/.deps/libb3avx512_la-blake3_avx512_x86-64_unix.Plo new file mode 100644 index 000000000..9ce06a81e --- /dev/null +++ b/Sources/Cfyaml/src/blake3/.deps/libb3avx512_la-blake3_avx512_x86-64_unix.Plo @@ -0,0 +1 @@ +# dummy diff --git a/Sources/Cfyaml/src/blake3/.deps/libb3neon_la-blake3.Plo b/Sources/Cfyaml/src/blake3/.deps/libb3neon_la-blake3.Plo new file mode 100644 index 000000000..9ce06a81e --- /dev/null +++ b/Sources/Cfyaml/src/blake3/.deps/libb3neon_la-blake3.Plo @@ -0,0 +1 @@ +# dummy diff --git a/Sources/Cfyaml/src/blake3/.deps/libb3neon_la-blake3_neon.Plo b/Sources/Cfyaml/src/blake3/.deps/libb3neon_la-blake3_neon.Plo new file mode 100644 index 000000000..9ce06a81e --- /dev/null +++ b/Sources/Cfyaml/src/blake3/.deps/libb3neon_la-blake3_neon.Plo @@ -0,0 +1 @@ +# dummy diff --git a/Sources/Cfyaml/src/blake3/.deps/libb3portable_la-blake3.Plo b/Sources/Cfyaml/src/blake3/.deps/libb3portable_la-blake3.Plo new file mode 100644 index 000000000..9ce06a81e --- /dev/null +++ b/Sources/Cfyaml/src/blake3/.deps/libb3portable_la-blake3.Plo @@ -0,0 +1 @@ +# dummy diff --git a/Sources/Cfyaml/src/blake3/.deps/libb3portable_la-blake3_portable.Plo b/Sources/Cfyaml/src/blake3/.deps/libb3portable_la-blake3_portable.Plo new file mode 100644 index 000000000..9ce06a81e --- /dev/null +++ b/Sources/Cfyaml/src/blake3/.deps/libb3portable_la-blake3_portable.Plo @@ -0,0 +1 @@ +# dummy diff --git a/Sources/Cfyaml/src/blake3/.deps/libb3sse2_la-blake3.Plo b/Sources/Cfyaml/src/blake3/.deps/libb3sse2_la-blake3.Plo new file mode 100644 index 000000000..9ce06a81e --- /dev/null +++ b/Sources/Cfyaml/src/blake3/.deps/libb3sse2_la-blake3.Plo @@ -0,0 +1 @@ +# dummy diff --git a/Sources/Cfyaml/src/blake3/.deps/libb3sse2_la-blake3_sse2.Plo b/Sources/Cfyaml/src/blake3/.deps/libb3sse2_la-blake3_sse2.Plo new file mode 100644 index 000000000..9ce06a81e --- /dev/null +++ b/Sources/Cfyaml/src/blake3/.deps/libb3sse2_la-blake3_sse2.Plo @@ -0,0 +1 @@ +# dummy diff --git a/Sources/Cfyaml/src/blake3/.deps/libb3sse2_la-blake3_sse2_x86-64_unix.Plo b/Sources/Cfyaml/src/blake3/.deps/libb3sse2_la-blake3_sse2_x86-64_unix.Plo new file mode 100644 index 000000000..9ce06a81e --- /dev/null +++ b/Sources/Cfyaml/src/blake3/.deps/libb3sse2_la-blake3_sse2_x86-64_unix.Plo @@ -0,0 +1 @@ +# dummy diff --git a/Sources/Cfyaml/src/blake3/.deps/libb3sse41_la-blake3.Plo b/Sources/Cfyaml/src/blake3/.deps/libb3sse41_la-blake3.Plo new file mode 100644 index 000000000..9ce06a81e --- /dev/null +++ b/Sources/Cfyaml/src/blake3/.deps/libb3sse41_la-blake3.Plo @@ -0,0 +1 @@ +# dummy diff --git a/Sources/Cfyaml/src/blake3/.deps/libb3sse41_la-blake3_sse41.Plo b/Sources/Cfyaml/src/blake3/.deps/libb3sse41_la-blake3_sse41.Plo new file mode 100644 index 000000000..9ce06a81e --- /dev/null +++ b/Sources/Cfyaml/src/blake3/.deps/libb3sse41_la-blake3_sse41.Plo @@ -0,0 +1 @@ +# dummy diff --git a/Sources/Cfyaml/src/blake3/.deps/libb3sse41_la-blake3_sse41_x86-64_unix.Plo b/Sources/Cfyaml/src/blake3/.deps/libb3sse41_la-blake3_sse41_x86-64_unix.Plo new file mode 100644 index 000000000..9ce06a81e --- /dev/null +++ b/Sources/Cfyaml/src/blake3/.deps/libb3sse41_la-blake3_sse41_x86-64_unix.Plo @@ -0,0 +1 @@ +# dummy diff --git a/Sources/Cfyaml/src/blake3/.deps/libfyaml_la-blake3_backend.Plo b/Sources/Cfyaml/src/blake3/.deps/libfyaml_la-blake3_backend.Plo new file mode 100644 index 000000000..9ce06a81e --- /dev/null +++ b/Sources/Cfyaml/src/blake3/.deps/libfyaml_la-blake3_backend.Plo @@ -0,0 +1 @@ +# dummy diff --git a/Sources/Cfyaml/src/blake3/.deps/libfyaml_la-blake3_be_cpusimd.Plo b/Sources/Cfyaml/src/blake3/.deps/libfyaml_la-blake3_be_cpusimd.Plo new file mode 100644 index 000000000..9ce06a81e --- /dev/null +++ b/Sources/Cfyaml/src/blake3/.deps/libfyaml_la-blake3_be_cpusimd.Plo @@ -0,0 +1 @@ +# dummy diff --git a/Sources/Cfyaml/src/blake3/.deps/libfyaml_la-blake3_host_state.Plo b/Sources/Cfyaml/src/blake3/.deps/libfyaml_la-blake3_host_state.Plo new file mode 100644 index 000000000..9ce06a81e --- /dev/null +++ b/Sources/Cfyaml/src/blake3/.deps/libfyaml_la-blake3_host_state.Plo @@ -0,0 +1 @@ +# dummy diff --git a/Sources/Cfyaml/src/blake3/.deps/libfyaml_la-fy-blake3.Plo b/Sources/Cfyaml/src/blake3/.deps/libfyaml_la-fy-blake3.Plo new file mode 100644 index 000000000..9ce06a81e --- /dev/null +++ b/Sources/Cfyaml/src/blake3/.deps/libfyaml_la-fy-blake3.Plo @@ -0,0 +1 @@ +# dummy diff --git a/Sources/Cfyaml/src/blake3/blake3.c b/Sources/Cfyaml/src/blake3/blake3.c new file mode 100644 index 000000000..ff1bbd51e --- /dev/null +++ b/Sources/Cfyaml/src/blake3/blake3.c @@ -0,0 +1,741 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include +#include +#include +#include + +#include "blake3.h" +#include "blake3_impl.h" +#include "blake3_internal.h" + +#include "fy-thread.h" + +// GCC gets confused sometimes +#ifdef GCC_DISABLE_WSTRING_OP_OVERREAD +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstringop-overread" +#endif + +#undef HASHER_OP +#ifdef HASHER_SUFFIX +// two levels of indirection required +#define __HASHER_OP(_name, _sfx) _name ##_ ## _sfx +#define _HASHER_OP(_name, _sfx) __HASHER_OP(_name, _sfx) +#define HASHER_OP(_name) _HASHER_OP(_name, HASHER_SUFFIX) +#else +#define HASHER_OP(_name) _name +#endif + +#ifndef SIMD_DEGREE +#define SIMD_DEGREE (hs->simd_degree) +#endif + +#ifndef SIMD_DEGREE_OR_2 +#define SIMD_DEGREE_OR_2 (SIMD_DEGREE >= 2 ? SIMD_DEGREE : 2) +#endif + +// keep the same naming +#define MAX_SIMD_DEGREE SIMD_DEGREE +#define MAX_SIMD_DEGREE_OR_2 SIMD_DEGREE_OR_2 +#define blake3_simd_degree() SIMD_DEGREE + +// rename to keep the same +#define blake3_compress_in_place hasher->hs->compress_in_place +#define blake3_compress_xof hasher->hs->compress_xof +#define blake3_hash_many self->hs->hash_many + +INLINE void chunk_state_init(blake3_chunk_state *self, const uint32_t key[8], + uint8_t flags) { + memcpy(self->cv, key, BLAKE3_KEY_LEN); + self->chunk_counter = 0; + self->buf_len = 0; + self->blocks_compressed = 0; + self->flags = flags; +} + +INLINE void chunk_state_reset(blake3_chunk_state *self, const uint32_t key[8], + uint64_t chunk_counter) { + memcpy(self->cv, key, BLAKE3_KEY_LEN); + self->chunk_counter = chunk_counter; + self->blocks_compressed = 0; + self->buf_len = 0; +} + +INLINE size_t chunk_state_len(const blake3_chunk_state *self) { + return (BLAKE3_BLOCK_LEN * (size_t)self->blocks_compressed) + + ((size_t)self->buf_len); +} + +INLINE size_t chunk_state_fill_buf(blake3_chunk_state *self, + const uint8_t *input, size_t input_len) { + size_t take = BLAKE3_BLOCK_LEN - ((size_t)self->buf_len); + if (take > input_len) { + take = input_len; + } + uint8_t *dest = self->buf + ((size_t)self->buf_len); + memcpy(dest, input, take); + self->buf_len += (uint8_t)take; + return take; +} + +INLINE uint8_t chunk_state_maybe_start_flag(const blake3_chunk_state *self) { + if (self->blocks_compressed == 0) { + return CHUNK_START; + } else { + return 0; + } +} + +typedef struct { + uint32_t input_cv[8] BLAKE3_ALIGN; + uint8_t block[BLAKE3_BLOCK_LEN] BLAKE3_ALIGN; + uint64_t counter; + uint8_t block_len; + uint8_t flags; +} output_t; + +INLINE output_t make_output(const uint32_t input_cv[BLAKE3_OUT_WORDS], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, + uint8_t flags) { + output_t ret; + memcpy(ret.input_cv, input_cv, BLAKE3_OUT_LEN); + memcpy(ret.block, block, block_len); + ret.block_len = block_len; + ret.counter = counter; + ret.flags = flags; + return ret; +} + +// Chaining values within a given chunk (specifically the compress_in_place +// interface) are represented as words. This avoids unnecessary bytes<->words +// conversion overhead in the portable implementation. However, the hash_many +// interface handles both user input and parent node blocks, so it accepts +// bytes. For that reason, chaining values in the CV stack are represented as +// bytes. +INLINE void output_chaining_value(const blake3_hasher *hasher, output_t *self, uint8_t cv[BLAKE3_OUT_LEN]) { + uint32_t cv_words[BLAKE3_OUT_WORDS] BLAKE3_ALIGN; + memcpy(cv_words, self->input_cv, BLAKE3_OUT_LEN); + memset(self->block + self->block_len, 0, BLAKE3_BLOCK_LEN - self->block_len); + blake3_compress_in_place(cv_words, self->block, self->block_len, + self->counter, self->flags); + store_cv_words(cv, cv_words); +} + +INLINE void output_root_bytes(const blake3_hasher *hasher, output_t *self, uint64_t seek, uint8_t *out, + size_t out_len) { + uint64_t output_block_counter = seek / 64; + size_t offset_within_block = seek % 64; + uint8_t wide_buf[64] BLAKE3_ALIGN; + while (out_len > 0) { + memset(self->block + self->block_len, 0, BLAKE3_BLOCK_LEN - self->block_len); + blake3_compress_xof(self->input_cv, self->block, self->block_len, + output_block_counter, self->flags | ROOT, wide_buf); + size_t available_bytes = 64 - offset_within_block; + size_t memcpy_len; + if (out_len > available_bytes) { + memcpy_len = available_bytes; + } else { + memcpy_len = out_len; + } + memcpy(out, wide_buf + offset_within_block, memcpy_len); + out += memcpy_len; + out_len -= memcpy_len; + output_block_counter += 1; + offset_within_block = 0; + } +} + +INLINE void chunk_state_update(blake3_hasher *hasher, blake3_chunk_state *self, const uint8_t *input, + size_t input_len) { + if (self->buf_len > 0) { + size_t take = chunk_state_fill_buf(self, input, input_len); + input += take; + input_len -= take; + if (input_len > 0) { + blake3_compress_in_place( + self->cv, self->buf, BLAKE3_BLOCK_LEN, self->chunk_counter, + self->flags | chunk_state_maybe_start_flag(self)); + self->blocks_compressed += 1; + self->buf_len = 0; + } + } + + while (input_len > BLAKE3_BLOCK_LEN) { + blake3_compress_in_place(self->cv, input, BLAKE3_BLOCK_LEN, + self->chunk_counter, + self->flags | chunk_state_maybe_start_flag(self)); + self->blocks_compressed += 1; + input += BLAKE3_BLOCK_LEN; + input_len -= BLAKE3_BLOCK_LEN; + } + + size_t take = chunk_state_fill_buf(self, input, input_len); + input += take; + input_len -= take; +} + +INLINE output_t chunk_state_output(const blake3_chunk_state *self) { + uint8_t block_flags = + self->flags | chunk_state_maybe_start_flag(self) | CHUNK_END; + return make_output(self->cv, self->buf, self->buf_len, self->chunk_counter, + block_flags); +} + +INLINE output_t parent_output(const uint8_t block[BLAKE3_BLOCK_LEN], + const uint32_t key[8], uint8_t flags) { + return make_output(key, block, BLAKE3_BLOCK_LEN, 0, flags | PARENT); +} + +// Given some input larger than one chunk, return the number of bytes that +// should go in the left subtree. This is the largest power-of-2 number of +// chunks that leaves at least 1 byte for the right subtree. +INLINE size_t left_len(size_t content_len) { + // Subtract 1 to reserve at least one byte for the right side. content_len + // should always be greater than BLAKE3_CHUNK_LEN. + size_t full_chunks = (content_len - 1) / BLAKE3_CHUNK_LEN; + return round_down_to_power_of_2(full_chunks) * BLAKE3_CHUNK_LEN; +} + +// Use SIMD parallelism to hash up to MAX_SIMD_DEGREE chunks at the same time +// on a single thread. Write out the chunk chaining values and return the +// number of chunks hashed. These chunks are never the root and never empty; +// those cases use a different codepath. +INLINE size_t compress_chunks_parallel(blake3_hasher *self, + const uint8_t *input, size_t input_len, + const uint32_t key[8], + uint64_t chunk_counter, uint8_t flags, + uint8_t *out) { +#if defined(BLAKE3_TESTING) + assert(0 < input_len); + assert(input_len <= MAX_SIMD_DEGREE * BLAKE3_CHUNK_LEN); +#endif + + const uint8_t *chunks_array[MAX_SIMD_DEGREE]; + size_t input_position = 0; + size_t chunks_array_len = 0; + while (input_len - input_position >= BLAKE3_CHUNK_LEN) { + chunks_array[chunks_array_len] = &input[input_position]; + input_position += BLAKE3_CHUNK_LEN; + chunks_array_len += 1; + } + size_t i = chunks_array_len; + while (i < MAX_SIMD_DEGREE) + chunks_array[i++] = NULL; + + blake3_hash_many(chunks_array, chunks_array_len, + BLAKE3_CHUNK_LEN / BLAKE3_BLOCK_LEN, key, chunk_counter, + true, flags, CHUNK_START, CHUNK_END, out); + + // Hash the remaining partial chunk, if there is one. Note that the empty + // chunk (meaning the empty message) is a different codepath. + if (input_len > input_position) { + uint64_t counter = chunk_counter + (uint64_t)chunks_array_len; + blake3_chunk_state chunk_state; + chunk_state_init(&chunk_state, key, flags); + chunk_state.chunk_counter = counter; + chunk_state_update(self, &chunk_state, &input[input_position], + input_len - input_position); + output_t output = chunk_state_output(&chunk_state); + output_chaining_value(self, &output, &out[chunks_array_len * BLAKE3_OUT_LEN]); + return chunks_array_len + 1; + } else { + return chunks_array_len; + } +} + +// Use SIMD parallelism to hash up to MAX_SIMD_DEGREE parents at the same time +// on a single thread. Write out the parent chaining values and return the +// number of parents hashed. (If there's an odd input chaining value left over, +// return it as an additional output.) These parents are never the root and +// never empty; those cases use a different codepath. +INLINE size_t compress_parents_parallel(blake3_hasher *self, + const uint8_t *child_chaining_values, + size_t num_chaining_values, + const uint32_t key[8], uint8_t flags, + uint8_t *out) { +#if defined(BLAKE3_TESTING) + assert(2 <= num_chaining_values); + assert(num_chaining_values <= 2 * MAX_SIMD_DEGREE_OR_2); +#endif + + const uint8_t *parents_array[MAX_SIMD_DEGREE_OR_2]; + size_t parents_array_len = 0; + while (num_chaining_values - (2 * parents_array_len) >= 2) { + parents_array[parents_array_len] = + &child_chaining_values[2 * parents_array_len * BLAKE3_OUT_LEN]; + parents_array_len += 1; + } + + blake3_hash_many(parents_array, parents_array_len, 1, key, + 0, // Parents always use counter 0. + false, flags | PARENT, + 0, // Parents have no start flags. + 0, // Parents have no end flags. + out); + + // If there's an odd child left over, it becomes an output. + if (num_chaining_values > 2 * parents_array_len) { + memcpy(&out[parents_array_len * BLAKE3_OUT_LEN], + &child_chaining_values[2 * parents_array_len * BLAKE3_OUT_LEN], + BLAKE3_OUT_LEN); + return parents_array_len + 1; + } else { + return parents_array_len; + } +} + +static size_t blake3_compress_subtree_wide(blake3_hasher *self, + const uint8_t *input, + size_t input_len, + const uint32_t key[8], + uint64_t chunk_counter, + uint8_t flags, uint8_t *out); + +static bool blake3_compress_subtree_wide_work_check(const void *arg) { + const blake3_compress_subtree_state *s = arg; + + /* only off-load to thread if we have enough input */ + return s->input_len >= s->self->hs->mt_degree * BLAKE3_CHUNK_LEN; +} + +static void blake3_compress_subtree_wide_thread(void *arg) { + blake3_compress_subtree_state *s = arg; + + s->n = blake3_compress_subtree_wide(s->self, + s->input, s->input_len, + s->key, + s->chunk_counter, + s->flags, + s->out); +} + +// The wide helper function returns (writes out) an array of chaining values +// and returns the length of that array. The number of chaining values returned +// is the dynamically detected SIMD degree, at most MAX_SIMD_DEGREE. Or fewer, +// if the input is shorter than that many chunks. The reason for maintaining a +// wide array of chaining values going back up the tree, is to allow the +// implementation to hash as many parents in parallel as possible. +// +// As a special case when the SIMD degree is 1, this function will still return +// at least 2 outputs. This guarantees that this function doesn't perform the +// root compression. (If it did, it would use the wrong flags, and also we +// wouldn't be able to implement extendable output.) Note that this function is +// not used when the whole input is only 1 chunk long; that's a different +// codepath. +// +// Why not just have the caller split the input on the first update(), instead +// of implementing this special rule? Because we don't want to limit SIMD or +// multi-threading parallelism for that update(). +static size_t blake3_compress_subtree_wide(blake3_hasher *self, const uint8_t *input, + size_t input_len, + const uint32_t key[8], + uint64_t chunk_counter, + uint8_t flags, uint8_t *out) { + // Note that the single chunk case does *not* bump the SIMD degree up to 2 + // when it is 1. If this implementation adds multi-threading in the future, + // this gives us the option of multi-threading even the 2-chunk case, which + // can help performance on smaller platforms. + if (input_len <= blake3_simd_degree() * BLAKE3_CHUNK_LEN) { + return compress_chunks_parallel(self, input, input_len, key, chunk_counter, flags, + out); + } + + // With more than simd_degree chunks, we need to recurse. Start by dividing + // the input into left and right subtrees. (Note that this is only optimal + // as long as the SIMD degree is a power of 2. If we ever get a SIMD degree + // of 3 or something, we'll need a more complicated strategy.) + size_t left_input_len = left_len(input_len); + size_t right_input_len = input_len - left_input_len; + const uint8_t *right_input = &input[left_input_len]; + uint64_t right_chunk_counter = + chunk_counter + (uint64_t)(left_input_len / BLAKE3_CHUNK_LEN); + + // Make space for the child outputs. Here we use MAX_SIMD_DEGREE_OR_2 to + // account for the special case of returning 2 outputs when the SIMD degree + // is 1. + uint8_t cv_array[2 * MAX_SIMD_DEGREE_OR_2 * BLAKE3_OUT_LEN]; + size_t degree = blake3_simd_degree(); + if (left_input_len > BLAKE3_CHUNK_LEN && degree == 1) { + // The special case: We always use a degree of at least two, to make + // sure there are two outputs. Except, as noted above, at the chunk + // level, where we allow degree=1. (Note that the 1-chunk-input case is + // a different codepath.) + degree = 2; + } + uint8_t *right_cvs = &cv_array[degree * BLAKE3_OUT_LEN]; + + // Recurse + size_t left_n, right_n; + if (self->hs->cfg.no_mthread) { + left_n = blake3_compress_subtree_wide(self, input, left_input_len, key, + chunk_counter, flags, cv_array); + right_n = blake3_compress_subtree_wide(self, right_input, right_input_len, key, + right_chunk_counter, flags, right_cvs); + } else { + + // this is the multi-threaded implementation + blake3_compress_subtree_state states[2]; + + /* common */ + states[0].self = states[1].self = self; + states[0].key = states[1].key = key; + states[0].flags = states[1].flags = flags; + states[0].n = states[1].n = 0; + + /* left */ + states[0].input = input; + states[0].input_len = left_input_len; + states[0].chunk_counter = chunk_counter; + states[0].out = cv_array; + + /* right */ + states[1].input = right_input; + states[1].input_len = right_input_len; + states[1].chunk_counter = right_chunk_counter; + states[1].out = right_cvs; + + fy_thread_arg_array_join(self->hs->tp, + blake3_compress_subtree_wide_thread, + blake3_compress_subtree_wide_work_check, + states, sizeof(states[0]), 2); + + left_n = states[0].n; + right_n = states[1].n; + } + + // The special case again. If SIMD_DEGREE=1, then we'll have left_n=1 and + // right_n=1. Rather than compressing them into a single output, return + // them directly, to make sure we always have at least two outputs. + if (left_n == 1) { + memcpy(out, cv_array, 2 * BLAKE3_OUT_LEN); + return 2; + } + + // Otherwise, do one layer of parent node compression. + size_t num_chaining_values = left_n + right_n; + return compress_parents_parallel(self, cv_array, num_chaining_values, key, flags, + out); +} + +// Hash a subtree with compress_subtree_wide(), and then condense the resulting +// list of chaining values down to a single parent node. Don't compress that +// last parent node, however. Instead, return its message bytes (the +// concatenated chaining values of its children). This is necessary when the +// first call to update() supplies a complete subtree, because the topmost +// parent node of that subtree could end up being the root. It's also necessary +// for extended output in the general case. +// +// As with compress_subtree_wide(), this function is not used on inputs of 1 +// chunk or less. That's a different codepath. +INLINE void compress_subtree_to_parent_node(blake3_hasher *self, + const uint8_t *input, size_t input_len, const uint32_t key[8], + uint64_t chunk_counter, uint8_t flags, uint8_t out[2 * BLAKE3_OUT_LEN]) { +#if defined(BLAKE3_TESTING) + assert(input_len > BLAKE3_CHUNK_LEN); +#endif + + uint8_t cv_array[MAX_SIMD_DEGREE_OR_2 * BLAKE3_OUT_LEN]; + size_t num_cvs = blake3_compress_subtree_wide(self, input, input_len, key, + chunk_counter, flags, cv_array); + assert(num_cvs <= MAX_SIMD_DEGREE_OR_2); + + // If MAX_SIMD_DEGREE is greater than 2 and there's enough input, + // compress_subtree_wide() returns more than 2 chaining values. Condense + // them into 2 by forming parent nodes repeatedly. + uint8_t out_array[MAX_SIMD_DEGREE_OR_2 * BLAKE3_OUT_LEN / 2]; + // The second half of this loop condition is always true, and we just + // asserted it above. But GCC can't tell that it's always true, and if NDEBUG + // is set on platforms where MAX_SIMD_DEGREE_OR_2 == 2, GCC emits spurious + // warnings here. GCC 8.5 is particularly sensitive, so if you're changing + // this code, test it against that version. + while (num_cvs > 2 && num_cvs <= MAX_SIMD_DEGREE_OR_2) { + num_cvs = + compress_parents_parallel(self, cv_array, num_cvs, key, flags, out_array); + memcpy(cv_array, out_array, num_cvs * BLAKE3_OUT_LEN); + } + memcpy(out, cv_array, 2 * BLAKE3_OUT_LEN); +} + +INLINE void hasher_init_base(blake3_host_state *hs, blake3_hasher *self, const uint32_t key[8], + uint8_t flags) { + memset(self, 0, sizeof(*self)); + self->hs = hs; + memcpy(self->key, key, BLAKE3_KEY_LEN); + chunk_state_init(&self->chunk, key, flags); + self->cv_stack_len = 0; +} + +static const uint32_t IV[8] BLAKE3_ALIGN = { + B3_IV_0, B3_IV_1, B3_IV_2, B3_IV_3, + B3_IV_4, B3_IV_5, B3_IV_6, B3_IV_7, +}; + +void HASHER_OP(blake3_hasher_init) (blake3_host_state *hs, blake3_hasher *self) { hasher_init_base(hs, self, IV, 0); } + +void HASHER_OP(blake3_hasher_init_keyed) (blake3_host_state *hs, blake3_hasher *self, + const uint8_t key[BLAKE3_KEY_LEN]) { + uint32_t key_words[8] BLAKE3_ALIGN; + load_key_words(key, key_words); + hasher_init_base(hs, self, key_words, KEYED_HASH); +} + +void HASHER_OP(blake3_hasher_init_derive_key_raw) (blake3_host_state *hs, blake3_hasher *self, const void *context, + size_t context_len) { + blake3_hasher context_hasher; + hasher_init_base(hs, &context_hasher, IV, DERIVE_KEY_CONTEXT); + blake3_hasher_update(&context_hasher, context, context_len); + uint8_t context_key[BLAKE3_KEY_LEN]; + blake3_hasher_finalize(&context_hasher, context_key, BLAKE3_KEY_LEN); + uint32_t context_key_words[8]; + load_key_words(context_key, context_key_words); + hasher_init_base(hs, self, context_key_words, DERIVE_KEY_MATERIAL); +} + +void HASHER_OP(blake3_hasher_init_derive_key) (blake3_host_state *hs, blake3_hasher *self, const char *context) { + blake3_hasher_init_derive_key_raw(hs, self, context, strlen(context)); +} + +// As described in hasher_push_cv() below, we do "lazy merging", delaying +// merges until right before the next CV is about to be added. This is +// different from the reference implementation. Another difference is that we +// aren't always merging 1 chunk at a time. Instead, each CV might represent +// any power-of-two number of chunks, as long as the smaller-above-larger stack +// order is maintained. Instead of the "count the trailing 0-bits" algorithm +// described in the spec, we use a "count the total number of 1-bits" variant +// that doesn't require us to retain the subtree size of the CV on top of the +// stack. The principle is the same: each CV that should remain in the stack is +// represented by a 1-bit in the total number of chunks (or bytes) so far. +INLINE void hasher_merge_cv_stack(blake3_hasher *self, uint64_t total_len) { + size_t post_merge_stack_len = (size_t)popcnt(total_len); + while (self->cv_stack_len > post_merge_stack_len) { + uint8_t *parent_node = + &self->cv_stack[(self->cv_stack_len - 2) * BLAKE3_OUT_LEN]; + output_t output = parent_output(parent_node, self->key, self->chunk.flags); + output_chaining_value(self, &output, parent_node); + self->cv_stack_len -= 1; + } +} + +// In reference_impl.rs, we merge the new CV with existing CVs from the stack +// before pushing it. We can do that because we know more input is coming, so +// we know none of the merges are root. +// +// This setting is different. We want to feed as much input as possible to +// compress_subtree_wide(), without setting aside anything for the chunk_state. +// If the user gives us 64 KiB, we want to parallelize over all 64 KiB at once +// as a single subtree, if at all possible. +// +// This leads to two problems: +// 1) This 64 KiB input might be the only call that ever gets made to update. +// In this case, the root node of the 64 KiB subtree would be the root node +// of the whole tree, and it would need to be ROOT finalized. We can't +// compress it until we know. +// 2) This 64 KiB input might complete a larger tree, whose root node is +// similarly going to be the the root of the whole tree. For example, maybe +// we have 196 KiB (that is, 128 + 64) hashed so far. We can't compress the +// node at the root of the 256 KiB subtree until we know how to finalize it. +// +// The second problem is solved with "lazy merging". That is, when we're about +// to add a CV to the stack, we don't merge it with anything first, as the +// reference impl does. Instead we do merges using the *previous* CV that was +// added, which is sitting on top of the stack, and we put the new CV +// (unmerged) on top of the stack afterwards. This guarantees that we never +// merge the root node until finalize(). +// +// Solving the first problem requires an additional tool, +// compress_subtree_to_parent_node(). That function always returns the top +// *two* chaining values of the subtree it's compressing. We then do lazy +// merging with each of them separately, so that the second CV will always +// remain unmerged. (That also helps us support extendable output when we're +// hashing an input all-at-once.) +INLINE void hasher_push_cv(blake3_hasher *self, uint8_t new_cv[BLAKE3_OUT_LEN], + uint64_t chunk_counter) { + hasher_merge_cv_stack(self, chunk_counter); + memcpy(&self->cv_stack[self->cv_stack_len * BLAKE3_OUT_LEN], new_cv, + BLAKE3_OUT_LEN); + self->cv_stack_len += 1; +} + +void HASHER_OP(blake3_hasher_update) (blake3_hasher *self, const void *input, + size_t input_len) { + // Explicitly checking for zero avoids causing UB by passing a null pointer + // to memcpy. This comes up in practice with things like: + // std::vector v; + // blake3_hasher_update(&hasher, v.data(), v.size()); + if (input_len == 0) { + return; + } + + const uint8_t *input_bytes = (const uint8_t *)input; + + // If we have some partial chunk bytes in the internal chunk_state, we need + // to finish that chunk first. + if (chunk_state_len(&self->chunk) > 0) { + size_t take = BLAKE3_CHUNK_LEN - chunk_state_len(&self->chunk); + if (take > input_len) { + take = input_len; + } + chunk_state_update(self, &self->chunk, input_bytes, take); + input_bytes += take; + input_len -= take; + // If we've filled the current chunk and there's more coming, finalize this + // chunk and proceed. In this case we know it's not the root. + if (input_len > 0) { + output_t output = chunk_state_output(&self->chunk); + uint8_t chunk_cv[32] BLAKE3_ALIGN; + output_chaining_value(self, &output, chunk_cv); + hasher_push_cv(self, chunk_cv, self->chunk.chunk_counter); + chunk_state_reset(&self->chunk, self->key, self->chunk.chunk_counter + 1); + } else { + return; + } + } + + // Now the chunk_state is clear, and we have more input. If there's more than + // a single chunk (so, definitely not the root chunk), hash the largest whole + // subtree we can, with the full benefits of SIMD (and maybe in the future, + // multi-threading) parallelism. Two restrictions: + // - The subtree has to be a power-of-2 number of chunks. Only subtrees along + // the right edge can be incomplete, and we don't know where the right edge + // is going to be until we get to finalize(). + // - The subtree must evenly divide the total number of chunks up until this + // point (if total is not 0). If the current incomplete subtree is only + // waiting for 1 more chunk, we can't hash a subtree of 4 chunks. We have + // to complete the current subtree first. + // Because we might need to break up the input to form powers of 2, or to + // evenly divide what we already have, this part runs in a loop. + while (input_len > BLAKE3_CHUNK_LEN) { + size_t subtree_len = round_down_to_power_of_2(input_len); + uint64_t count_so_far = self->chunk.chunk_counter * BLAKE3_CHUNK_LEN; + // Shrink the subtree_len until it evenly divides the count so far. We know + // that subtree_len itself is a power of 2, so we can use a bitmasking + // trick instead of an actual remainder operation. (Note that if the caller + // consistently passes power-of-2 inputs of the same size, as is hopefully + // typical, this loop condition will always fail, and subtree_len will + // always be the full length of the input.) + // + // An aside: We don't have to shrink subtree_len quite this much. For + // example, if count_so_far is 1, we could pass 2 chunks to + // compress_subtree_to_parent_node. Since we'll get 2 CVs back, we'll still + // get the right answer in the end, and we might get to use 2-way SIMD + // parallelism. The problem with this optimization, is that it gets us + // stuck always hashing 2 chunks. The total number of chunks will remain + // odd, and we'll never graduate to higher degrees of parallelism. See + // https://github.com/BLAKE3-team/BLAKE3/issues/69. + while ((((uint64_t)(subtree_len - 1)) & count_so_far) != 0) { + subtree_len /= 2; + } + // The shrunken subtree_len might now be 1 chunk long. If so, hash that one + // chunk by itself. Otherwise, compress the subtree into a pair of CVs. + uint64_t subtree_chunks = subtree_len / BLAKE3_CHUNK_LEN; + if (subtree_len <= BLAKE3_CHUNK_LEN) { + blake3_chunk_state chunk_state; + chunk_state_init(&chunk_state, self->key, self->chunk.flags); + chunk_state.chunk_counter = self->chunk.chunk_counter; + chunk_state_update(self, &chunk_state, input_bytes, subtree_len); + output_t output = chunk_state_output(&chunk_state); + uint8_t cv[BLAKE3_OUT_LEN] BLAKE3_ALIGN; + output_chaining_value(self, &output, cv); + hasher_push_cv(self, cv, chunk_state.chunk_counter); + } else { + // This is the high-performance happy path, though getting here depends + // on the caller giving us a long enough input. + uint8_t cv_pair[2 * BLAKE3_OUT_LEN] BLAKE3_ALIGN; + compress_subtree_to_parent_node(self, input_bytes, subtree_len, self->key, + self->chunk.chunk_counter, + self->chunk.flags, cv_pair); + hasher_push_cv(self, cv_pair, self->chunk.chunk_counter); + hasher_push_cv(self, &cv_pair[BLAKE3_OUT_LEN], + self->chunk.chunk_counter + (subtree_chunks / 2)); + } + self->chunk.chunk_counter += subtree_chunks; + input_bytes += subtree_len; + input_len -= subtree_len; + } + + // If there's any remaining input less than a full chunk, add it to the chunk + // state. In that case, also do a final merge loop to make sure the subtree + // stack doesn't contain any unmerged pairs. The remaining input means we + // know these merges are non-root. This merge loop isn't strictly necessary + // here, because hasher_push_chunk_cv already does its own merge loop, but it + // simplifies blake3_hasher_finalize below. + if (input_len > 0) { + chunk_state_update(self, &self->chunk, input_bytes, input_len); + hasher_merge_cv_stack(self, self->chunk.chunk_counter); + } +} + +void HASHER_OP(blake3_hasher_finalize_seek) (const blake3_hasher *self, uint64_t seek, + uint8_t *out, size_t out_len) { + // Explicitly checking for zero avoids causing UB by passing a null pointer + // to memcpy. This comes up in practice with things like: + // std::vector v; + // blake3_hasher_finalize(&hasher, v.data(), v.size()); + if (out_len == 0) { + return; + } + + // If the subtree stack is empty, then the current chunk is the root. + if (self->cv_stack_len == 0) { + output_t output = chunk_state_output(&self->chunk); + output_root_bytes(self, &output, seek, out, out_len); + return; + } + // If there are any bytes in the chunk state, finalize that chunk and do a + // roll-up merge between that chunk hash and every subtree in the stack. In + // this case, the extra merge loop at the end of blake3_hasher_update + // guarantees that none of the subtrees in the stack need to be merged with + // each other first. Otherwise, if there are no bytes in the chunk state, + // then the top of the stack is a chunk hash, and we start the merge from + // that. + output_t output; + size_t cvs_remaining; + if (chunk_state_len(&self->chunk) > 0) { + cvs_remaining = self->cv_stack_len; + output = chunk_state_output(&self->chunk); + } else { + // There are always at least 2 CVs in the stack in this case. + cvs_remaining = self->cv_stack_len - 2; + output = parent_output(&self->cv_stack[cvs_remaining * 32], self->key, + self->chunk.flags); + } + while (cvs_remaining > 0) { + cvs_remaining -= 1; + uint8_t parent_block[BLAKE3_BLOCK_LEN] BLAKE3_ALIGN; + memcpy(parent_block, &self->cv_stack[cvs_remaining * 32], 32); + output_chaining_value(self, &output, &parent_block[32]); + output = parent_output(parent_block, self->key, self->chunk.flags); + } + output_root_bytes(self, &output, seek, out, out_len); +} + +void HASHER_OP(blake3_hasher_finalize) (const blake3_hasher *self, uint8_t *out, + size_t out_len) { + HASHER_OP(blake3_hasher_finalize_seek) (self, 0, out, out_len); +} + +void HASHER_OP(blake3_hasher_reset) (blake3_hasher *self) { + chunk_state_reset(&self->chunk, self->key, 0); + self->cv_stack_len = 0; +} +#ifdef GCC_DISABLE_WSTRING_OP_OVERREAD +#pragma GCC diagnostic pop +#endif + +const blake3_hasher_ops HASHER_OP(blake3_hasher_op) = { + .hasher_init = HASHER_OP(blake3_hasher_init), + .hasher_init_keyed = HASHER_OP(blake3_hasher_init_keyed), + .hasher_init_derive_key = HASHER_OP(blake3_hasher_init_derive_key), + .hasher_init_derive_key_raw = HASHER_OP(blake3_hasher_init_derive_key_raw), + .hasher_update = HASHER_OP(blake3_hasher_update), + .hasher_finalize = HASHER_OP(blake3_hasher_finalize), + .hasher_finalize_seek = HASHER_OP(blake3_hasher_finalize_seek), + .hasher_reset = HASHER_OP(blake3_hasher_reset), +}; diff --git a/Sources/Cfyaml/src/blake3/blake3.h b/Sources/Cfyaml/src/blake3/blake3.h new file mode 100644 index 000000000..e13d1141b --- /dev/null +++ b/Sources/Cfyaml/src/blake3/blake3.h @@ -0,0 +1,164 @@ +#ifndef BLAKE3_H +#define BLAKE3_H + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include + +#define BLAKE3_VERSION_STRING "1.4.1" + +#define BLAKE3_KEY_LEN 32 +#define BLAKE3_KEY_WORDS (BLAKE3_KEY_LEN / 4) // words are 4 bytes +#define BLAKE3_OUT_LEN 32 +#define BLAKE3_OUT_WORDS (BLAKE3_OUT_LEN / 4) // words are 4 bytes +#define BLAKE3_BLOCK_LEN 64 +#define BLAKE3_CHUNK_LEN 1024 + +struct blake_host_state; +struct blake_hasher; + +const char *blake3_version(void); + +/* NOTE: maximum supported backends is 64 + * and backends are ordered by reverse order + * of preference. + * + * PORTABLE is always available and is the fall-back. + */ + +typedef enum { + + /* just the portable implementation */ + B3BID_PORTABLE, + + /* x86 */ + B3BID_SSE2, + B3BID_SSE2_ASM, + B3BID_SSE41, + B3BID_SSE41_ASM, + B3BID_AVX2, + B3BID_AVX2_ASM, + B3BID_AVX512, + B3BID_AVX512_ASM, + + /* arm */ + B3BID_NEON, + + /* gpu */ + B3BID_VULKAN, + B3BID_OPENCL, + B3BID_CUDA, + + /* CPU simd (experimental) */ + B3BID_CPUSIMD, + +} blake3_backend_id; + +#define B3BID_COUNT (B3BID_CPUSIMD+1) +#define B3BID_INVALID ((blake3_backend_id)-1) + +#define B3BF_BIT(_x) ((uint64_t)1 << (_x)) + +#define B3BF_PORTABLE B3BF_BIT(B3BID_PORTABLE) + +#define B3BF_SSE2 B3BF_BIT(B3BID_SSE2) +#define B3BF_SSE2_ASM B3BF_BIT(B3BID_SSE2_ASM) +#define B3BF_SSE41 B3BF_BIT(B3BID_SSE41) +#define B3BF_SSE41_ASM B3BF_BIT(B3BID_SSE41_ASM) +#define B3BF_AVX2 B3BF_BIT(B3BID_AVX2) +#define B3BF_AVX2_ASM B3BF_BIT(B3BID_AVX2_ASM) +#define B3BF_AVX512 B3BF_BIT(B3BID_AVX512) +#define B3BF_AVX512_ASM B3BF_BIT(B3BID_AVX512_ASM) + +#define B3BF_NEON B3BF_BIT(B3BID_NEON) + +#define B3BF_VULKAN B3BF_BIT(B3BID_VULKAN) +#define B3BF_OPENCL B3BF_BIT(B3BID_OPENCL) +#define B3BF_CUDA B3BF_BIT(B3BID_CUDA) + +#define B3BF_CPUSIMD B3BF_BIT(B3BID_CPUSIMD) + +uint64_t blake3_get_supported_backends(void); +uint64_t blake3_get_detected_backends(void); +uint64_t blake3_get_selectable_backends(void); + +typedef enum { + B3FID_HASH_MANY, + B3FID_COMPRESS_XOF, + B3FID_COMPRESS_IN_PLACE, +} blake3_func_id; + +#define B3FID_COUNT (B3FID_COMPRESS_IN_PLACE+1) +#define B3FID_INVALID ((blake3_func_id)-1) + +#define B3FF_BIT(_x) ((uint64_t)1 << (_x)) + +#define B3FF_HASH_MANY B3FF_BIT(B3FID_HASH_MANY) +#define B3FF_COMPRESS_XOF B3FF_BIT(B3FID_COMPRESS_XOF) +#define B3FF_COMPRESS_IN_PLACE B3FF_BIT(B3FID_COMPRESS_IN_PLACE) + +typedef struct blake3_backend_info { + blake3_backend_id id; + const char *name; + const char *description; + unsigned int simd_degree; + uint64_t funcs; +} blake3_backend_info; + +const blake3_backend_info *blake3_get_backend_info(blake3_backend_id id); + +typedef struct blake3_host_config { + bool debug; + bool no_mthread; + bool no_mmap; + unsigned int num_threads; + unsigned int mt_degree; // number of chunks to be worth spinning up a thread + const char *backend; // backend selection string, or NULL for default + size_t file_io_bufsz; // buffer size when doing file I/O + size_t mmap_min_chunk; // minimum chunk size for mmap + size_t mmap_max_chunk; // maximum chunk size for mmap + struct fy_thread_pool *tp; // use this thread pool instead of spinning one up +} blake3_host_config; + +struct blake3_host_state *blake3_host_state_create(const blake3_host_config *cfg); +void blake3_host_state_destroy(struct blake3_host_state *hs); + +struct blake3_hasher *blake3_hasher_create(struct blake3_host_state *hs, const uint8_t *key, const void *context, size_t context_len); +void blake3_hasher_destroy(struct blake3_hasher *self); + +/* simple optimized method for file hashing */ +int blake3_hash_file(struct blake3_hasher *hasher, const char *filename, uint8_t output[BLAKE3_OUT_LEN]); +void blake3_hash(struct blake3_hasher *hasher, const void *mem, size_t size, uint8_t output[BLAKE3_OUT_LEN]); + +/* experimental CPUSIMD enable */ +int blake3_backend_cpusimd_setup(unsigned int num_cpus, unsigned int mult_fact); +void blake3_backend_cpusimd_cleanup(void); + +void blake3_hasher_init(struct blake3_host_state *hs, struct blake3_hasher *self); +void blake3_hasher_init_keyed(struct blake3_host_state *hs, struct blake3_hasher *self, const uint8_t key[BLAKE3_KEY_LEN]); +void blake3_hasher_init_derive_key(struct blake3_host_state *hs, struct blake3_hasher *self, const char *context); +void blake3_hasher_init_derive_key_raw(struct blake3_host_state *hs, struct blake3_hasher *self, const void *context, size_t context_len); + +void blake3_hasher_update(struct blake3_hasher *self, const void *input, size_t input_len); +void blake3_hasher_finalize(const struct blake3_hasher *self, uint8_t *out, size_t out_len); +void blake3_hasher_finalize_seek(const struct blake3_hasher *self, uint64_t seek, uint8_t *out, size_t out_len); +void blake3_hasher_reset(struct blake3_hasher *self); + +typedef struct blake3_hasher_ops { + void (*hasher_init)(struct blake3_host_state *hs, struct blake3_hasher *self); + void (*hasher_init_keyed)(struct blake3_host_state *hs, struct blake3_hasher *self, const uint8_t key[BLAKE3_KEY_LEN]); + void (*hasher_init_derive_key)(struct blake3_host_state *hs, struct blake3_hasher *self, const char *context); + void (*hasher_init_derive_key_raw)(struct blake3_host_state *hs, struct blake3_hasher *self, const void *context, size_t context_len); + + void (*hasher_update)(struct blake3_hasher *self, const void *input, size_t input_len); + void (*hasher_finalize)(const struct blake3_hasher *self, uint8_t *out, size_t out_len); + void (*hasher_finalize_seek)(const struct blake3_hasher *self, uint64_t seek, uint8_t *out, size_t out_len); + void (*hasher_reset)(struct blake3_hasher *self); +} blake3_hasher_ops; + +#endif /* BLAKE3_H */ diff --git a/Sources/Cfyaml/src/blake3/blake3_avx2.c b/Sources/Cfyaml/src/blake3/blake3_avx2.c new file mode 100644 index 000000000..8d5b427ab --- /dev/null +++ b/Sources/Cfyaml/src/blake3/blake3_avx2.c @@ -0,0 +1,333 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "blake3_impl.h" + +#include + +/* define it here instead of the header */ +static const uint8_t MSG_SCHEDULE[7][16] = { B3_MSG_SCHEDULE_DEF }; + +#define DEGREE 8 + +INLINE __m256i loadu(const uint8_t src[32]) { + return _mm256_loadu_si256((const __m256i *)src); +} + +INLINE void storeu(__m256i src, uint8_t dest[16]) { + _mm256_storeu_si256((__m256i *)dest, src); +} + +INLINE __m256i addv(__m256i a, __m256i b) { return _mm256_add_epi32(a, b); } + +// Note that clang-format doesn't like the name "xor" for some reason. +INLINE __m256i xorv(__m256i a, __m256i b) { return _mm256_xor_si256(a, b); } + +INLINE __m256i set1(uint32_t x) { return _mm256_set1_epi32((int32_t)x); } + +INLINE __m256i rot16(__m256i x) { + return _mm256_shuffle_epi8( + x, _mm256_set_epi8(13, 12, 15, 14, 9, 8, 11, 10, 5, 4, 7, 6, 1, 0, 3, 2, + 13, 12, 15, 14, 9, 8, 11, 10, 5, 4, 7, 6, 1, 0, 3, 2)); +} + +INLINE __m256i rot12(__m256i x) { + return _mm256_or_si256(_mm256_srli_epi32(x, 12), _mm256_slli_epi32(x, 32 - 12)); +} + +INLINE __m256i rot8(__m256i x) { + return _mm256_shuffle_epi8( + x, _mm256_set_epi8(12, 15, 14, 13, 8, 11, 10, 9, 4, 7, 6, 5, 0, 3, 2, 1, + 12, 15, 14, 13, 8, 11, 10, 9, 4, 7, 6, 5, 0, 3, 2, 1)); +} + +INLINE __m256i rot7(__m256i x) { + return _mm256_or_si256(_mm256_srli_epi32(x, 7), _mm256_slli_epi32(x, 32 - 7)); +} + +INLINE void round_fn(__m256i v[16], __m256i m[16], size_t r) { + v[0] = addv(v[0], m[(size_t)MSG_SCHEDULE[r][0]]); + v[1] = addv(v[1], m[(size_t)MSG_SCHEDULE[r][2]]); + v[2] = addv(v[2], m[(size_t)MSG_SCHEDULE[r][4]]); + v[3] = addv(v[3], m[(size_t)MSG_SCHEDULE[r][6]]); + v[0] = addv(v[0], v[4]); + v[1] = addv(v[1], v[5]); + v[2] = addv(v[2], v[6]); + v[3] = addv(v[3], v[7]); + v[12] = xorv(v[12], v[0]); + v[13] = xorv(v[13], v[1]); + v[14] = xorv(v[14], v[2]); + v[15] = xorv(v[15], v[3]); + v[12] = rot16(v[12]); + v[13] = rot16(v[13]); + v[14] = rot16(v[14]); + v[15] = rot16(v[15]); + v[8] = addv(v[8], v[12]); + v[9] = addv(v[9], v[13]); + v[10] = addv(v[10], v[14]); + v[11] = addv(v[11], v[15]); + v[4] = xorv(v[4], v[8]); + v[5] = xorv(v[5], v[9]); + v[6] = xorv(v[6], v[10]); + v[7] = xorv(v[7], v[11]); + v[4] = rot12(v[4]); + v[5] = rot12(v[5]); + v[6] = rot12(v[6]); + v[7] = rot12(v[7]); + v[0] = addv(v[0], m[(size_t)MSG_SCHEDULE[r][1]]); + v[1] = addv(v[1], m[(size_t)MSG_SCHEDULE[r][3]]); + v[2] = addv(v[2], m[(size_t)MSG_SCHEDULE[r][5]]); + v[3] = addv(v[3], m[(size_t)MSG_SCHEDULE[r][7]]); + v[0] = addv(v[0], v[4]); + v[1] = addv(v[1], v[5]); + v[2] = addv(v[2], v[6]); + v[3] = addv(v[3], v[7]); + v[12] = xorv(v[12], v[0]); + v[13] = xorv(v[13], v[1]); + v[14] = xorv(v[14], v[2]); + v[15] = xorv(v[15], v[3]); + v[12] = rot8(v[12]); + v[13] = rot8(v[13]); + v[14] = rot8(v[14]); + v[15] = rot8(v[15]); + v[8] = addv(v[8], v[12]); + v[9] = addv(v[9], v[13]); + v[10] = addv(v[10], v[14]); + v[11] = addv(v[11], v[15]); + v[4] = xorv(v[4], v[8]); + v[5] = xorv(v[5], v[9]); + v[6] = xorv(v[6], v[10]); + v[7] = xorv(v[7], v[11]); + v[4] = rot7(v[4]); + v[5] = rot7(v[5]); + v[6] = rot7(v[6]); + v[7] = rot7(v[7]); + + v[0] = addv(v[0], m[(size_t)MSG_SCHEDULE[r][8]]); + v[1] = addv(v[1], m[(size_t)MSG_SCHEDULE[r][10]]); + v[2] = addv(v[2], m[(size_t)MSG_SCHEDULE[r][12]]); + v[3] = addv(v[3], m[(size_t)MSG_SCHEDULE[r][14]]); + v[0] = addv(v[0], v[5]); + v[1] = addv(v[1], v[6]); + v[2] = addv(v[2], v[7]); + v[3] = addv(v[3], v[4]); + v[15] = xorv(v[15], v[0]); + v[12] = xorv(v[12], v[1]); + v[13] = xorv(v[13], v[2]); + v[14] = xorv(v[14], v[3]); + v[15] = rot16(v[15]); + v[12] = rot16(v[12]); + v[13] = rot16(v[13]); + v[14] = rot16(v[14]); + v[10] = addv(v[10], v[15]); + v[11] = addv(v[11], v[12]); + v[8] = addv(v[8], v[13]); + v[9] = addv(v[9], v[14]); + v[5] = xorv(v[5], v[10]); + v[6] = xorv(v[6], v[11]); + v[7] = xorv(v[7], v[8]); + v[4] = xorv(v[4], v[9]); + v[5] = rot12(v[5]); + v[6] = rot12(v[6]); + v[7] = rot12(v[7]); + v[4] = rot12(v[4]); + v[0] = addv(v[0], m[(size_t)MSG_SCHEDULE[r][9]]); + v[1] = addv(v[1], m[(size_t)MSG_SCHEDULE[r][11]]); + v[2] = addv(v[2], m[(size_t)MSG_SCHEDULE[r][13]]); + v[3] = addv(v[3], m[(size_t)MSG_SCHEDULE[r][15]]); + v[0] = addv(v[0], v[5]); + v[1] = addv(v[1], v[6]); + v[2] = addv(v[2], v[7]); + v[3] = addv(v[3], v[4]); + v[15] = xorv(v[15], v[0]); + v[12] = xorv(v[12], v[1]); + v[13] = xorv(v[13], v[2]); + v[14] = xorv(v[14], v[3]); + v[15] = rot8(v[15]); + v[12] = rot8(v[12]); + v[13] = rot8(v[13]); + v[14] = rot8(v[14]); + v[10] = addv(v[10], v[15]); + v[11] = addv(v[11], v[12]); + v[8] = addv(v[8], v[13]); + v[9] = addv(v[9], v[14]); + v[5] = xorv(v[5], v[10]); + v[6] = xorv(v[6], v[11]); + v[7] = xorv(v[7], v[8]); + v[4] = xorv(v[4], v[9]); + v[5] = rot7(v[5]); + v[6] = rot7(v[6]); + v[7] = rot7(v[7]); + v[4] = rot7(v[4]); +} + +INLINE void transpose_vecs(__m256i vecs[DEGREE]) { + // Interleave 32-bit lanes. The low unpack is lanes 00/11/44/55, and the high + // is 22/33/66/77. + __m256i ab_0145 = _mm256_unpacklo_epi32(vecs[0], vecs[1]); + __m256i ab_2367 = _mm256_unpackhi_epi32(vecs[0], vecs[1]); + __m256i cd_0145 = _mm256_unpacklo_epi32(vecs[2], vecs[3]); + __m256i cd_2367 = _mm256_unpackhi_epi32(vecs[2], vecs[3]); + __m256i ef_0145 = _mm256_unpacklo_epi32(vecs[4], vecs[5]); + __m256i ef_2367 = _mm256_unpackhi_epi32(vecs[4], vecs[5]); + __m256i gh_0145 = _mm256_unpacklo_epi32(vecs[6], vecs[7]); + __m256i gh_2367 = _mm256_unpackhi_epi32(vecs[6], vecs[7]); + + // Interleave 64-bit lanes. The low unpack is lanes 00/22 and the high is + // 11/33. + __m256i abcd_04 = _mm256_unpacklo_epi64(ab_0145, cd_0145); + __m256i abcd_15 = _mm256_unpackhi_epi64(ab_0145, cd_0145); + __m256i abcd_26 = _mm256_unpacklo_epi64(ab_2367, cd_2367); + __m256i abcd_37 = _mm256_unpackhi_epi64(ab_2367, cd_2367); + __m256i efgh_04 = _mm256_unpacklo_epi64(ef_0145, gh_0145); + __m256i efgh_15 = _mm256_unpackhi_epi64(ef_0145, gh_0145); + __m256i efgh_26 = _mm256_unpacklo_epi64(ef_2367, gh_2367); + __m256i efgh_37 = _mm256_unpackhi_epi64(ef_2367, gh_2367); + + // Interleave 128-bit lanes. + vecs[0] = _mm256_permute2x128_si256(abcd_04, efgh_04, 0x20); + vecs[1] = _mm256_permute2x128_si256(abcd_15, efgh_15, 0x20); + vecs[2] = _mm256_permute2x128_si256(abcd_26, efgh_26, 0x20); + vecs[3] = _mm256_permute2x128_si256(abcd_37, efgh_37, 0x20); + vecs[4] = _mm256_permute2x128_si256(abcd_04, efgh_04, 0x31); + vecs[5] = _mm256_permute2x128_si256(abcd_15, efgh_15, 0x31); + vecs[6] = _mm256_permute2x128_si256(abcd_26, efgh_26, 0x31); + vecs[7] = _mm256_permute2x128_si256(abcd_37, efgh_37, 0x31); +} + +INLINE void transpose_msg_vecs(const uint8_t *const *inputs, + size_t block_offset, __m256i out[16]) { + out[0] = loadu(&inputs[0][block_offset + 0 * sizeof(__m256i)]); + out[1] = loadu(&inputs[1][block_offset + 0 * sizeof(__m256i)]); + out[2] = loadu(&inputs[2][block_offset + 0 * sizeof(__m256i)]); + out[3] = loadu(&inputs[3][block_offset + 0 * sizeof(__m256i)]); + out[4] = loadu(&inputs[4][block_offset + 0 * sizeof(__m256i)]); + out[5] = loadu(&inputs[5][block_offset + 0 * sizeof(__m256i)]); + out[6] = loadu(&inputs[6][block_offset + 0 * sizeof(__m256i)]); + out[7] = loadu(&inputs[7][block_offset + 0 * sizeof(__m256i)]); + out[8] = loadu(&inputs[0][block_offset + 1 * sizeof(__m256i)]); + out[9] = loadu(&inputs[1][block_offset + 1 * sizeof(__m256i)]); + out[10] = loadu(&inputs[2][block_offset + 1 * sizeof(__m256i)]); + out[11] = loadu(&inputs[3][block_offset + 1 * sizeof(__m256i)]); + out[12] = loadu(&inputs[4][block_offset + 1 * sizeof(__m256i)]); + out[13] = loadu(&inputs[5][block_offset + 1 * sizeof(__m256i)]); + out[14] = loadu(&inputs[6][block_offset + 1 * sizeof(__m256i)]); + out[15] = loadu(&inputs[7][block_offset + 1 * sizeof(__m256i)]); + for (size_t i = 0; i < 8; ++i) { + _mm_prefetch((const void *)&inputs[i][block_offset + 256], _MM_HINT_T0); + } + transpose_vecs(&out[0]); + transpose_vecs(&out[8]); +} + +INLINE void load_counters(uint64_t counter, bool increment_counter, + __m256i *out_lo, __m256i *out_hi) { + const __m256i mask = _mm256_set1_epi32(-(int32_t)increment_counter); + const __m256i add0 = _mm256_set_epi32(7, 6, 5, 4, 3, 2, 1, 0); + const __m256i add1 = _mm256_and_si256(mask, add0); + __m256i l = _mm256_add_epi32(_mm256_set1_epi32((int32_t)counter), add1); + __m256i carry = _mm256_cmpgt_epi32(_mm256_xor_si256(add1, _mm256_set1_epi32(0x80000000)), + _mm256_xor_si256( l, _mm256_set1_epi32(0x80000000))); + __m256i h = _mm256_sub_epi32(_mm256_set1_epi32((int32_t)(counter >> 32)), carry); + *out_lo = l; + *out_hi = h; +} + +static +void blake3_hash8_avx2(const uint8_t *const *inputs, size_t blocks, + const uint32_t key[8], uint64_t counter, + bool increment_counter, uint8_t flags, + uint8_t flags_start, uint8_t flags_end, uint8_t *out) { + __m256i h_vecs[8] = { + set1(key[0]), set1(key[1]), set1(key[2]), set1(key[3]), + set1(key[4]), set1(key[5]), set1(key[6]), set1(key[7]), + }; + __m256i counter_low_vec, counter_high_vec; + load_counters(counter, increment_counter, &counter_low_vec, + &counter_high_vec); + uint8_t block_flags = flags | flags_start; + + for (size_t block = 0; block < blocks; block++) { + if (block + 1 == blocks) { + block_flags |= flags_end; + } + __m256i block_len_vec = set1(BLAKE3_BLOCK_LEN); + __m256i block_flags_vec = set1(block_flags); + __m256i msg_vecs[16]; + transpose_msg_vecs(inputs, block * BLAKE3_BLOCK_LEN, msg_vecs); + + __m256i v[16] = { + h_vecs[0], h_vecs[1], h_vecs[2], h_vecs[3], + h_vecs[4], h_vecs[5], h_vecs[6], h_vecs[7], + set1(B3_IV_0), set1(B3_IV_1), set1(B3_IV_2), set1(B3_IV_3), + counter_low_vec, counter_high_vec, block_len_vec, block_flags_vec, + }; + round_fn(v, msg_vecs, 0); + round_fn(v, msg_vecs, 1); + round_fn(v, msg_vecs, 2); + round_fn(v, msg_vecs, 3); + round_fn(v, msg_vecs, 4); + round_fn(v, msg_vecs, 5); + round_fn(v, msg_vecs, 6); + h_vecs[0] = xorv(v[0], v[8]); + h_vecs[1] = xorv(v[1], v[9]); + h_vecs[2] = xorv(v[2], v[10]); + h_vecs[3] = xorv(v[3], v[11]); + h_vecs[4] = xorv(v[4], v[12]); + h_vecs[5] = xorv(v[5], v[13]); + h_vecs[6] = xorv(v[6], v[14]); + h_vecs[7] = xorv(v[7], v[15]); + + block_flags = flags; + } + + transpose_vecs(h_vecs); + storeu(h_vecs[0], &out[0 * sizeof(__m256i)]); + storeu(h_vecs[1], &out[1 * sizeof(__m256i)]); + storeu(h_vecs[2], &out[2 * sizeof(__m256i)]); + storeu(h_vecs[3], &out[3 * sizeof(__m256i)]); + storeu(h_vecs[4], &out[4 * sizeof(__m256i)]); + storeu(h_vecs[5], &out[5 * sizeof(__m256i)]); + storeu(h_vecs[6], &out[6 * sizeof(__m256i)]); + storeu(h_vecs[7], &out[7 * sizeof(__m256i)]); +} + +#if !defined(BLAKE3_NO_SSE41) +void blake3_hash_many_sse41(const uint8_t *const *inputs, size_t num_inputs, + size_t blocks, const uint32_t key[8], + uint64_t counter, bool increment_counter, + uint8_t flags, uint8_t flags_start, + uint8_t flags_end, uint8_t *out); +#else +void blake3_hash_many_portable(const uint8_t *const *inputs, size_t num_inputs, + size_t blocks, const uint32_t key[8], + uint64_t counter, bool increment_counter, + uint8_t flags, uint8_t flags_start, + uint8_t flags_end, uint8_t *out); +#endif + +void blake3_hash_many_avx2(const uint8_t *const *inputs, size_t num_inputs, + size_t blocks, const uint32_t key[8], + uint64_t counter, bool increment_counter, + uint8_t flags, uint8_t flags_start, + uint8_t flags_end, uint8_t *out) { + while (num_inputs >= DEGREE) { + blake3_hash8_avx2(inputs, blocks, key, counter, increment_counter, flags, + flags_start, flags_end, out); + if (increment_counter) { + counter += DEGREE; + } + inputs += DEGREE; + num_inputs -= DEGREE; + out = &out[DEGREE * BLAKE3_OUT_LEN]; + } +#if !defined(BLAKE3_NO_SSE41) + blake3_hash_many_sse41(inputs, num_inputs, blocks, key, counter, + increment_counter, flags, flags_start, flags_end, out); +#else + blake3_hash_many_portable(inputs, num_inputs, blocks, key, counter, + increment_counter, flags, flags_start, flags_end, + out); +#endif +} diff --git a/Sources/Cfyaml/src/blake3/blake3_avx2_x86-64_unix.S b/Sources/Cfyaml/src/blake3/blake3_avx2_x86-64_unix.S new file mode 100644 index 000000000..29729ec87 --- /dev/null +++ b/Sources/Cfyaml/src/blake3/blake3_avx2_x86-64_unix.S @@ -0,0 +1,1815 @@ +#if defined(__ELF__) && defined(__linux__) +.section .note.GNU-stack,"",%progbits +#endif + +#if defined(__ELF__) && defined(__CET__) && defined(__has_include) +#if __has_include() +#include +#endif +#endif + +#if !defined(_CET_ENDBR) +#define _CET_ENDBR +#endif + +.intel_syntax noprefix +.global _blake3_hash_many_avx2_asm +.global blake3_hash_many_avx2_asm +#ifdef __APPLE__ +.text +#else +.section .text +#endif + .p2align 6 +_blake3_hash_many_avx2_asm: +blake3_hash_many_avx2_asm: + _CET_ENDBR + push r15 + push r14 + push r13 + push r12 + push rbx + push rbp + mov rbp, rsp + sub rsp, 680 + and rsp, 0xFFFFFFFFFFFFFFC0 + neg r9d + vmovd xmm0, r9d + vpbroadcastd ymm0, xmm0 + vmovdqa ymmword ptr [rsp+0x280], ymm0 + vpand ymm1, ymm0, ymmword ptr [ADD0+rip] + vpand ymm2, ymm0, ymmword ptr [ADD1+rip] + vmovdqa ymmword ptr [rsp+0x220], ymm2 + vmovd xmm2, r8d + vpbroadcastd ymm2, xmm2 + vpaddd ymm2, ymm2, ymm1 + vmovdqa ymmword ptr [rsp+0x240], ymm2 + vpxor ymm1, ymm1, ymmword ptr [CMP_MSB_MASK+rip] + vpxor ymm2, ymm2, ymmword ptr [CMP_MSB_MASK+rip] + vpcmpgtd ymm2, ymm1, ymm2 + shr r8, 32 + vmovd xmm3, r8d + vpbroadcastd ymm3, xmm3 + vpsubd ymm3, ymm3, ymm2 + vmovdqa ymmword ptr [rsp+0x260], ymm3 + shl rdx, 6 + mov qword ptr [rsp+0x2A0], rdx + cmp rsi, 8 + jc 3f +2: + vpbroadcastd ymm0, dword ptr [rcx] + vpbroadcastd ymm1, dword ptr [rcx+0x4] + vpbroadcastd ymm2, dword ptr [rcx+0x8] + vpbroadcastd ymm3, dword ptr [rcx+0xC] + vpbroadcastd ymm4, dword ptr [rcx+0x10] + vpbroadcastd ymm5, dword ptr [rcx+0x14] + vpbroadcastd ymm6, dword ptr [rcx+0x18] + vpbroadcastd ymm7, dword ptr [rcx+0x1C] + mov r8, qword ptr [rdi] + mov r9, qword ptr [rdi+0x8] + mov r10, qword ptr [rdi+0x10] + mov r11, qword ptr [rdi+0x18] + mov r12, qword ptr [rdi+0x20] + mov r13, qword ptr [rdi+0x28] + mov r14, qword ptr [rdi+0x30] + mov r15, qword ptr [rdi+0x38] + movzx eax, byte ptr [rbp+0x38] + movzx ebx, byte ptr [rbp+0x40] + or eax, ebx + xor edx, edx +.p2align 5 +9: + movzx ebx, byte ptr [rbp+0x48] + or ebx, eax + add rdx, 64 + cmp rdx, qword ptr [rsp+0x2A0] + cmove eax, ebx + mov dword ptr [rsp+0x200], eax + vmovups xmm8, xmmword ptr [r8+rdx-0x40] + vinsertf128 ymm8, ymm8, xmmword ptr [r12+rdx-0x40], 0x01 + vmovups xmm9, xmmword ptr [r9+rdx-0x40] + vinsertf128 ymm9, ymm9, xmmword ptr [r13+rdx-0x40], 0x01 + vunpcklpd ymm12, ymm8, ymm9 + vunpckhpd ymm13, ymm8, ymm9 + vmovups xmm10, xmmword ptr [r10+rdx-0x40] + vinsertf128 ymm10, ymm10, xmmword ptr [r14+rdx-0x40], 0x01 + vmovups xmm11, xmmword ptr [r11+rdx-0x40] + vinsertf128 ymm11, ymm11, xmmword ptr [r15+rdx-0x40], 0x01 + vunpcklpd ymm14, ymm10, ymm11 + vunpckhpd ymm15, ymm10, ymm11 + vshufps ymm8, ymm12, ymm14, 136 + vmovaps ymmword ptr [rsp], ymm8 + vshufps ymm9, ymm12, ymm14, 221 + vmovaps ymmword ptr [rsp+0x20], ymm9 + vshufps ymm10, ymm13, ymm15, 136 + vmovaps ymmword ptr [rsp+0x40], ymm10 + vshufps ymm11, ymm13, ymm15, 221 + vmovaps ymmword ptr [rsp+0x60], ymm11 + vmovups xmm8, xmmword ptr [r8+rdx-0x30] + vinsertf128 ymm8, ymm8, xmmword ptr [r12+rdx-0x30], 0x01 + vmovups xmm9, xmmword ptr [r9+rdx-0x30] + vinsertf128 ymm9, ymm9, xmmword ptr [r13+rdx-0x30], 0x01 + vunpcklpd ymm12, ymm8, ymm9 + vunpckhpd ymm13, ymm8, ymm9 + vmovups xmm10, xmmword ptr [r10+rdx-0x30] + vinsertf128 ymm10, ymm10, xmmword ptr [r14+rdx-0x30], 0x01 + vmovups xmm11, xmmword ptr [r11+rdx-0x30] + vinsertf128 ymm11, ymm11, xmmword ptr [r15+rdx-0x30], 0x01 + vunpcklpd ymm14, ymm10, ymm11 + vunpckhpd ymm15, ymm10, ymm11 + vshufps ymm8, ymm12, ymm14, 136 + vmovaps ymmword ptr [rsp+0x80], ymm8 + vshufps ymm9, ymm12, ymm14, 221 + vmovaps ymmword ptr [rsp+0xA0], ymm9 + vshufps ymm10, ymm13, ymm15, 136 + vmovaps ymmword ptr [rsp+0xC0], ymm10 + vshufps ymm11, ymm13, ymm15, 221 + vmovaps ymmword ptr [rsp+0xE0], ymm11 + vmovups xmm8, xmmword ptr [r8+rdx-0x20] + vinsertf128 ymm8, ymm8, xmmword ptr [r12+rdx-0x20], 0x01 + vmovups xmm9, xmmword ptr [r9+rdx-0x20] + vinsertf128 ymm9, ymm9, xmmword ptr [r13+rdx-0x20], 0x01 + vunpcklpd ymm12, ymm8, ymm9 + vunpckhpd ymm13, ymm8, ymm9 + vmovups xmm10, xmmword ptr [r10+rdx-0x20] + vinsertf128 ymm10, ymm10, xmmword ptr [r14+rdx-0x20], 0x01 + vmovups xmm11, xmmword ptr [r11+rdx-0x20] + vinsertf128 ymm11, ymm11, xmmword ptr [r15+rdx-0x20], 0x01 + vunpcklpd ymm14, ymm10, ymm11 + vunpckhpd ymm15, ymm10, ymm11 + vshufps ymm8, ymm12, ymm14, 136 + vmovaps ymmword ptr [rsp+0x100], ymm8 + vshufps ymm9, ymm12, ymm14, 221 + vmovaps ymmword ptr [rsp+0x120], ymm9 + vshufps ymm10, ymm13, ymm15, 136 + vmovaps ymmword ptr [rsp+0x140], ymm10 + vshufps ymm11, ymm13, ymm15, 221 + vmovaps ymmword ptr [rsp+0x160], ymm11 + vmovups xmm8, xmmword ptr [r8+rdx-0x10] + vinsertf128 ymm8, ymm8, xmmword ptr [r12+rdx-0x10], 0x01 + vmovups xmm9, xmmword ptr [r9+rdx-0x10] + vinsertf128 ymm9, ymm9, xmmword ptr [r13+rdx-0x10], 0x01 + vunpcklpd ymm12, ymm8, ymm9 + vunpckhpd ymm13, ymm8, ymm9 + vmovups xmm10, xmmword ptr [r10+rdx-0x10] + vinsertf128 ymm10, ymm10, xmmword ptr [r14+rdx-0x10], 0x01 + vmovups xmm11, xmmword ptr [r11+rdx-0x10] + vinsertf128 ymm11, ymm11, xmmword ptr [r15+rdx-0x10], 0x01 + vunpcklpd ymm14, ymm10, ymm11 + vunpckhpd ymm15, ymm10, ymm11 + vshufps ymm8, ymm12, ymm14, 136 + vmovaps ymmword ptr [rsp+0x180], ymm8 + vshufps ymm9, ymm12, ymm14, 221 + vmovaps ymmword ptr [rsp+0x1A0], ymm9 + vshufps ymm10, ymm13, ymm15, 136 + vmovaps ymmword ptr [rsp+0x1C0], ymm10 + vshufps ymm11, ymm13, ymm15, 221 + vmovaps ymmword ptr [rsp+0x1E0], ymm11 + vpbroadcastd ymm15, dword ptr [rsp+0x200] + prefetcht0 [r8+rdx+0x80] + prefetcht0 [r12+rdx+0x80] + prefetcht0 [r9+rdx+0x80] + prefetcht0 [r13+rdx+0x80] + prefetcht0 [r10+rdx+0x80] + prefetcht0 [r14+rdx+0x80] + prefetcht0 [r11+rdx+0x80] + prefetcht0 [r15+rdx+0x80] + vpaddd ymm0, ymm0, ymmword ptr [rsp] + vpaddd ymm1, ymm1, ymmword ptr [rsp+0x40] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0x80] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0xC0] + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxor ymm12, ymm0, ymmword ptr [rsp+0x240] + vpxor ymm13, ymm1, ymmword ptr [rsp+0x260] + vpxor ymm14, ymm2, ymmword ptr [BLAKE3_BLOCK_LEN+rip] + vpxor ymm15, ymm3, ymm15 + vbroadcasti128 ymm8, xmmword ptr [ROT16+rip] + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpshufb ymm15, ymm15, ymm8 + vpaddd ymm8, ymm12, ymmword ptr [BLAKE3_IV_0+rip] + vpaddd ymm9, ymm13, ymmword ptr [BLAKE3_IV_1+rip] + vpaddd ymm10, ymm14, ymmword ptr [BLAKE3_IV_2+rip] + vpaddd ymm11, ymm15, ymmword ptr [BLAKE3_IV_3+rip] + vpxor ymm4, ymm4, ymm8 + vpxor ymm5, ymm5, ymm9 + vpxor ymm6, ymm6, ymm10 + vpxor ymm7, ymm7, ymm11 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm4, 12 + vpslld ymm4, ymm4, 20 + vpor ymm4, ymm4, ymm8 + vpsrld ymm8, ymm5, 12 + vpslld ymm5, ymm5, 20 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 12 + vpslld ymm6, ymm6, 20 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 12 + vpslld ymm7, ymm7, 20 + vpor ymm7, ymm7, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0x20] + vpaddd ymm1, ymm1, ymmword ptr [rsp+0x60] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0xA0] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0xE0] + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxor ymm12, ymm12, ymm0 + vpxor ymm13, ymm13, ymm1 + vpxor ymm14, ymm14, ymm2 + vpxor ymm15, ymm15, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT8+rip] + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpshufb ymm15, ymm15, ymm8 + vpaddd ymm8, ymm12, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxor ymm4, ymm4, ymm8 + vpxor ymm5, ymm5, ymm9 + vpxor ymm6, ymm6, ymm10 + vpxor ymm7, ymm7, ymm11 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm4, 7 + vpslld ymm4, ymm4, 25 + vpor ymm4, ymm4, ymm8 + vpsrld ymm8, ymm5, 7 + vpslld ymm5, ymm5, 25 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 7 + vpslld ymm6, ymm6, 25 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 7 + vpslld ymm7, ymm7, 25 + vpor ymm7, ymm7, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0x100] + vpaddd ymm1, ymm1, ymmword ptr [rsp+0x140] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0x180] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0x1C0] + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxor ymm15, ymm15, ymm0 + vpxor ymm12, ymm12, ymm1 + vpxor ymm13, ymm13, ymm2 + vpxor ymm14, ymm14, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT16+rip] + vpshufb ymm15, ymm15, ymm8 + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm13, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm14 + vpxor ymm5, ymm5, ymm10 + vpxor ymm6, ymm6, ymm11 + vpxor ymm7, ymm7, ymm8 + vpxor ymm4, ymm4, ymm9 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm5, 12 + vpslld ymm5, ymm5, 20 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 12 + vpslld ymm6, ymm6, 20 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 12 + vpslld ymm7, ymm7, 20 + vpor ymm7, ymm7, ymm8 + vpsrld ymm8, ymm4, 12 + vpslld ymm4, ymm4, 20 + vpor ymm4, ymm4, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0x120] + vpaddd ymm1, ymm1, ymmword ptr [rsp+0x160] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0x1A0] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0x1E0] + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxor ymm15, ymm15, ymm0 + vpxor ymm12, ymm12, ymm1 + vpxor ymm13, ymm13, ymm2 + vpxor ymm14, ymm14, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT8+rip] + vpshufb ymm15, ymm15, ymm8 + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm13, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm14 + vpxor ymm5, ymm5, ymm10 + vpxor ymm6, ymm6, ymm11 + vpxor ymm7, ymm7, ymm8 + vpxor ymm4, ymm4, ymm9 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm5, 7 + vpslld ymm5, ymm5, 25 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 7 + vpslld ymm6, ymm6, 25 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 7 + vpslld ymm7, ymm7, 25 + vpor ymm7, ymm7, ymm8 + vpsrld ymm8, ymm4, 7 + vpslld ymm4, ymm4, 25 + vpor ymm4, ymm4, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0x40] + vpaddd ymm1, ymm1, ymmword ptr [rsp+0x60] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0xE0] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0x80] + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxor ymm12, ymm12, ymm0 + vpxor ymm13, ymm13, ymm1 + vpxor ymm14, ymm14, ymm2 + vpxor ymm15, ymm15, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT16+rip] + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpshufb ymm15, ymm15, ymm8 + vpaddd ymm8, ymm12, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxor ymm4, ymm4, ymm8 + vpxor ymm5, ymm5, ymm9 + vpxor ymm6, ymm6, ymm10 + vpxor ymm7, ymm7, ymm11 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm4, 12 + vpslld ymm4, ymm4, 20 + vpor ymm4, ymm4, ymm8 + vpsrld ymm8, ymm5, 12 + vpslld ymm5, ymm5, 20 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 12 + vpslld ymm6, ymm6, 20 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 12 + vpslld ymm7, ymm7, 20 + vpor ymm7, ymm7, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0xC0] + vpaddd ymm1, ymm1, ymmword ptr [rsp+0x140] + vpaddd ymm2, ymm2, ymmword ptr [rsp] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0x1A0] + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxor ymm12, ymm12, ymm0 + vpxor ymm13, ymm13, ymm1 + vpxor ymm14, ymm14, ymm2 + vpxor ymm15, ymm15, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT8+rip] + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpshufb ymm15, ymm15, ymm8 + vpaddd ymm8, ymm12, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxor ymm4, ymm4, ymm8 + vpxor ymm5, ymm5, ymm9 + vpxor ymm6, ymm6, ymm10 + vpxor ymm7, ymm7, ymm11 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm4, 7 + vpslld ymm4, ymm4, 25 + vpor ymm4, ymm4, ymm8 + vpsrld ymm8, ymm5, 7 + vpslld ymm5, ymm5, 25 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 7 + vpslld ymm6, ymm6, 25 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 7 + vpslld ymm7, ymm7, 25 + vpor ymm7, ymm7, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0x20] + vpaddd ymm1, ymm1, ymmword ptr [rsp+0x180] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0x120] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0x1E0] + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxor ymm15, ymm15, ymm0 + vpxor ymm12, ymm12, ymm1 + vpxor ymm13, ymm13, ymm2 + vpxor ymm14, ymm14, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT16+rip] + vpshufb ymm15, ymm15, ymm8 + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm13, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm14 + vpxor ymm5, ymm5, ymm10 + vpxor ymm6, ymm6, ymm11 + vpxor ymm7, ymm7, ymm8 + vpxor ymm4, ymm4, ymm9 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm5, 12 + vpslld ymm5, ymm5, 20 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 12 + vpslld ymm6, ymm6, 20 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 12 + vpslld ymm7, ymm7, 20 + vpor ymm7, ymm7, ymm8 + vpsrld ymm8, ymm4, 12 + vpslld ymm4, ymm4, 20 + vpor ymm4, ymm4, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0x160] + vpaddd ymm1, ymm1, ymmword ptr [rsp+0xA0] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0x1C0] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0x100] + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxor ymm15, ymm15, ymm0 + vpxor ymm12, ymm12, ymm1 + vpxor ymm13, ymm13, ymm2 + vpxor ymm14, ymm14, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT8+rip] + vpshufb ymm15, ymm15, ymm8 + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm13, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm14 + vpxor ymm5, ymm5, ymm10 + vpxor ymm6, ymm6, ymm11 + vpxor ymm7, ymm7, ymm8 + vpxor ymm4, ymm4, ymm9 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm5, 7 + vpslld ymm5, ymm5, 25 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 7 + vpslld ymm6, ymm6, 25 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 7 + vpslld ymm7, ymm7, 25 + vpor ymm7, ymm7, ymm8 + vpsrld ymm8, ymm4, 7 + vpslld ymm4, ymm4, 25 + vpor ymm4, ymm4, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0x60] + vpaddd ymm1, ymm1, ymmword ptr [rsp+0x140] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0x1A0] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0xE0] + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxor ymm12, ymm12, ymm0 + vpxor ymm13, ymm13, ymm1 + vpxor ymm14, ymm14, ymm2 + vpxor ymm15, ymm15, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT16+rip] + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpshufb ymm15, ymm15, ymm8 + vpaddd ymm8, ymm12, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxor ymm4, ymm4, ymm8 + vpxor ymm5, ymm5, ymm9 + vpxor ymm6, ymm6, ymm10 + vpxor ymm7, ymm7, ymm11 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm4, 12 + vpslld ymm4, ymm4, 20 + vpor ymm4, ymm4, ymm8 + vpsrld ymm8, ymm5, 12 + vpslld ymm5, ymm5, 20 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 12 + vpslld ymm6, ymm6, 20 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 12 + vpslld ymm7, ymm7, 20 + vpor ymm7, ymm7, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0x80] + vpaddd ymm1, ymm1, ymmword ptr [rsp+0x180] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0x40] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0x1C0] + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxor ymm12, ymm12, ymm0 + vpxor ymm13, ymm13, ymm1 + vpxor ymm14, ymm14, ymm2 + vpxor ymm15, ymm15, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT8+rip] + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpshufb ymm15, ymm15, ymm8 + vpaddd ymm8, ymm12, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxor ymm4, ymm4, ymm8 + vpxor ymm5, ymm5, ymm9 + vpxor ymm6, ymm6, ymm10 + vpxor ymm7, ymm7, ymm11 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm4, 7 + vpslld ymm4, ymm4, 25 + vpor ymm4, ymm4, ymm8 + vpsrld ymm8, ymm5, 7 + vpslld ymm5, ymm5, 25 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 7 + vpslld ymm6, ymm6, 25 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 7 + vpslld ymm7, ymm7, 25 + vpor ymm7, ymm7, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0xC0] + vpaddd ymm1, ymm1, ymmword ptr [rsp+0x120] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0x160] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0x100] + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxor ymm15, ymm15, ymm0 + vpxor ymm12, ymm12, ymm1 + vpxor ymm13, ymm13, ymm2 + vpxor ymm14, ymm14, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT16+rip] + vpshufb ymm15, ymm15, ymm8 + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm13, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm14 + vpxor ymm5, ymm5, ymm10 + vpxor ymm6, ymm6, ymm11 + vpxor ymm7, ymm7, ymm8 + vpxor ymm4, ymm4, ymm9 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm5, 12 + vpslld ymm5, ymm5, 20 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 12 + vpslld ymm6, ymm6, 20 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 12 + vpslld ymm7, ymm7, 20 + vpor ymm7, ymm7, ymm8 + vpsrld ymm8, ymm4, 12 + vpslld ymm4, ymm4, 20 + vpor ymm4, ymm4, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0xA0] + vpaddd ymm1, ymm1, ymmword ptr [rsp] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0x1E0] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0x20] + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxor ymm15, ymm15, ymm0 + vpxor ymm12, ymm12, ymm1 + vpxor ymm13, ymm13, ymm2 + vpxor ymm14, ymm14, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT8+rip] + vpshufb ymm15, ymm15, ymm8 + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm13, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm14 + vpxor ymm5, ymm5, ymm10 + vpxor ymm6, ymm6, ymm11 + vpxor ymm7, ymm7, ymm8 + vpxor ymm4, ymm4, ymm9 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm5, 7 + vpslld ymm5, ymm5, 25 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 7 + vpslld ymm6, ymm6, 25 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 7 + vpslld ymm7, ymm7, 25 + vpor ymm7, ymm7, ymm8 + vpsrld ymm8, ymm4, 7 + vpslld ymm4, ymm4, 25 + vpor ymm4, ymm4, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0x140] + vpaddd ymm1, ymm1, ymmword ptr [rsp+0x180] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0x1C0] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0x1A0] + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxor ymm12, ymm12, ymm0 + vpxor ymm13, ymm13, ymm1 + vpxor ymm14, ymm14, ymm2 + vpxor ymm15, ymm15, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT16+rip] + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpshufb ymm15, ymm15, ymm8 + vpaddd ymm8, ymm12, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxor ymm4, ymm4, ymm8 + vpxor ymm5, ymm5, ymm9 + vpxor ymm6, ymm6, ymm10 + vpxor ymm7, ymm7, ymm11 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm4, 12 + vpslld ymm4, ymm4, 20 + vpor ymm4, ymm4, ymm8 + vpsrld ymm8, ymm5, 12 + vpslld ymm5, ymm5, 20 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 12 + vpslld ymm6, ymm6, 20 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 12 + vpslld ymm7, ymm7, 20 + vpor ymm7, ymm7, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0xE0] + vpaddd ymm1, ymm1, ymmword ptr [rsp+0x120] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0x60] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0x1E0] + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxor ymm12, ymm12, ymm0 + vpxor ymm13, ymm13, ymm1 + vpxor ymm14, ymm14, ymm2 + vpxor ymm15, ymm15, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT8+rip] + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpshufb ymm15, ymm15, ymm8 + vpaddd ymm8, ymm12, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxor ymm4, ymm4, ymm8 + vpxor ymm5, ymm5, ymm9 + vpxor ymm6, ymm6, ymm10 + vpxor ymm7, ymm7, ymm11 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm4, 7 + vpslld ymm4, ymm4, 25 + vpor ymm4, ymm4, ymm8 + vpsrld ymm8, ymm5, 7 + vpslld ymm5, ymm5, 25 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 7 + vpslld ymm6, ymm6, 25 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 7 + vpslld ymm7, ymm7, 25 + vpor ymm7, ymm7, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0x80] + vpaddd ymm1, ymm1, ymmword ptr [rsp+0x160] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0xA0] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0x20] + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxor ymm15, ymm15, ymm0 + vpxor ymm12, ymm12, ymm1 + vpxor ymm13, ymm13, ymm2 + vpxor ymm14, ymm14, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT16+rip] + vpshufb ymm15, ymm15, ymm8 + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm13, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm14 + vpxor ymm5, ymm5, ymm10 + vpxor ymm6, ymm6, ymm11 + vpxor ymm7, ymm7, ymm8 + vpxor ymm4, ymm4, ymm9 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm5, 12 + vpslld ymm5, ymm5, 20 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 12 + vpslld ymm6, ymm6, 20 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 12 + vpslld ymm7, ymm7, 20 + vpor ymm7, ymm7, ymm8 + vpsrld ymm8, ymm4, 12 + vpslld ymm4, ymm4, 20 + vpor ymm4, ymm4, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp] + vpaddd ymm1, ymm1, ymmword ptr [rsp+0x40] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0x100] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0xC0] + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxor ymm15, ymm15, ymm0 + vpxor ymm12, ymm12, ymm1 + vpxor ymm13, ymm13, ymm2 + vpxor ymm14, ymm14, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT8+rip] + vpshufb ymm15, ymm15, ymm8 + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm13, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm14 + vpxor ymm5, ymm5, ymm10 + vpxor ymm6, ymm6, ymm11 + vpxor ymm7, ymm7, ymm8 + vpxor ymm4, ymm4, ymm9 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm5, 7 + vpslld ymm5, ymm5, 25 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 7 + vpslld ymm6, ymm6, 25 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 7 + vpslld ymm7, ymm7, 25 + vpor ymm7, ymm7, ymm8 + vpsrld ymm8, ymm4, 7 + vpslld ymm4, ymm4, 25 + vpor ymm4, ymm4, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0x180] + vpaddd ymm1, ymm1, ymmword ptr [rsp+0x120] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0x1E0] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0x1C0] + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxor ymm12, ymm12, ymm0 + vpxor ymm13, ymm13, ymm1 + vpxor ymm14, ymm14, ymm2 + vpxor ymm15, ymm15, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT16+rip] + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpshufb ymm15, ymm15, ymm8 + vpaddd ymm8, ymm12, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxor ymm4, ymm4, ymm8 + vpxor ymm5, ymm5, ymm9 + vpxor ymm6, ymm6, ymm10 + vpxor ymm7, ymm7, ymm11 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm4, 12 + vpslld ymm4, ymm4, 20 + vpor ymm4, ymm4, ymm8 + vpsrld ymm8, ymm5, 12 + vpslld ymm5, ymm5, 20 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 12 + vpslld ymm6, ymm6, 20 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 12 + vpslld ymm7, ymm7, 20 + vpor ymm7, ymm7, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0x1A0] + vpaddd ymm1, ymm1, ymmword ptr [rsp+0x160] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0x140] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0x100] + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxor ymm12, ymm12, ymm0 + vpxor ymm13, ymm13, ymm1 + vpxor ymm14, ymm14, ymm2 + vpxor ymm15, ymm15, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT8+rip] + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpshufb ymm15, ymm15, ymm8 + vpaddd ymm8, ymm12, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxor ymm4, ymm4, ymm8 + vpxor ymm5, ymm5, ymm9 + vpxor ymm6, ymm6, ymm10 + vpxor ymm7, ymm7, ymm11 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm4, 7 + vpslld ymm4, ymm4, 25 + vpor ymm4, ymm4, ymm8 + vpsrld ymm8, ymm5, 7 + vpslld ymm5, ymm5, 25 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 7 + vpslld ymm6, ymm6, 25 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 7 + vpslld ymm7, ymm7, 25 + vpor ymm7, ymm7, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0xE0] + vpaddd ymm1, ymm1, ymmword ptr [rsp+0xA0] + vpaddd ymm2, ymm2, ymmword ptr [rsp] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0xC0] + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxor ymm15, ymm15, ymm0 + vpxor ymm12, ymm12, ymm1 + vpxor ymm13, ymm13, ymm2 + vpxor ymm14, ymm14, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT16+rip] + vpshufb ymm15, ymm15, ymm8 + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm13, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm14 + vpxor ymm5, ymm5, ymm10 + vpxor ymm6, ymm6, ymm11 + vpxor ymm7, ymm7, ymm8 + vpxor ymm4, ymm4, ymm9 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm5, 12 + vpslld ymm5, ymm5, 20 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 12 + vpslld ymm6, ymm6, 20 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 12 + vpslld ymm7, ymm7, 20 + vpor ymm7, ymm7, ymm8 + vpsrld ymm8, ymm4, 12 + vpslld ymm4, ymm4, 20 + vpor ymm4, ymm4, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0x40] + vpaddd ymm1, ymm1, ymmword ptr [rsp+0x60] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0x20] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0x80] + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxor ymm15, ymm15, ymm0 + vpxor ymm12, ymm12, ymm1 + vpxor ymm13, ymm13, ymm2 + vpxor ymm14, ymm14, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT8+rip] + vpshufb ymm15, ymm15, ymm8 + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm13, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm14 + vpxor ymm5, ymm5, ymm10 + vpxor ymm6, ymm6, ymm11 + vpxor ymm7, ymm7, ymm8 + vpxor ymm4, ymm4, ymm9 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm5, 7 + vpslld ymm5, ymm5, 25 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 7 + vpslld ymm6, ymm6, 25 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 7 + vpslld ymm7, ymm7, 25 + vpor ymm7, ymm7, ymm8 + vpsrld ymm8, ymm4, 7 + vpslld ymm4, ymm4, 25 + vpor ymm4, ymm4, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0x120] + vpaddd ymm1, ymm1, ymmword ptr [rsp+0x160] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0x100] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0x1E0] + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxor ymm12, ymm12, ymm0 + vpxor ymm13, ymm13, ymm1 + vpxor ymm14, ymm14, ymm2 + vpxor ymm15, ymm15, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT16+rip] + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpshufb ymm15, ymm15, ymm8 + vpaddd ymm8, ymm12, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxor ymm4, ymm4, ymm8 + vpxor ymm5, ymm5, ymm9 + vpxor ymm6, ymm6, ymm10 + vpxor ymm7, ymm7, ymm11 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm4, 12 + vpslld ymm4, ymm4, 20 + vpor ymm4, ymm4, ymm8 + vpsrld ymm8, ymm5, 12 + vpslld ymm5, ymm5, 20 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 12 + vpslld ymm6, ymm6, 20 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 12 + vpslld ymm7, ymm7, 20 + vpor ymm7, ymm7, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0x1C0] + vpaddd ymm1, ymm1, ymmword ptr [rsp+0xA0] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0x180] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0x20] + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxor ymm12, ymm12, ymm0 + vpxor ymm13, ymm13, ymm1 + vpxor ymm14, ymm14, ymm2 + vpxor ymm15, ymm15, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT8+rip] + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpshufb ymm15, ymm15, ymm8 + vpaddd ymm8, ymm12, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxor ymm4, ymm4, ymm8 + vpxor ymm5, ymm5, ymm9 + vpxor ymm6, ymm6, ymm10 + vpxor ymm7, ymm7, ymm11 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm4, 7 + vpslld ymm4, ymm4, 25 + vpor ymm4, ymm4, ymm8 + vpsrld ymm8, ymm5, 7 + vpslld ymm5, ymm5, 25 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 7 + vpslld ymm6, ymm6, 25 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 7 + vpslld ymm7, ymm7, 25 + vpor ymm7, ymm7, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0x1A0] + vpaddd ymm1, ymm1, ymmword ptr [rsp] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0x40] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0x80] + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxor ymm15, ymm15, ymm0 + vpxor ymm12, ymm12, ymm1 + vpxor ymm13, ymm13, ymm2 + vpxor ymm14, ymm14, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT16+rip] + vpshufb ymm15, ymm15, ymm8 + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm13, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm14 + vpxor ymm5, ymm5, ymm10 + vpxor ymm6, ymm6, ymm11 + vpxor ymm7, ymm7, ymm8 + vpxor ymm4, ymm4, ymm9 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm5, 12 + vpslld ymm5, ymm5, 20 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 12 + vpslld ymm6, ymm6, 20 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 12 + vpslld ymm7, ymm7, 20 + vpor ymm7, ymm7, ymm8 + vpsrld ymm8, ymm4, 12 + vpslld ymm4, ymm4, 20 + vpor ymm4, ymm4, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0x60] + vpaddd ymm1, ymm1, ymmword ptr [rsp+0x140] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0xC0] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0xE0] + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxor ymm15, ymm15, ymm0 + vpxor ymm12, ymm12, ymm1 + vpxor ymm13, ymm13, ymm2 + vpxor ymm14, ymm14, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT8+rip] + vpshufb ymm15, ymm15, ymm8 + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm13, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm14 + vpxor ymm5, ymm5, ymm10 + vpxor ymm6, ymm6, ymm11 + vpxor ymm7, ymm7, ymm8 + vpxor ymm4, ymm4, ymm9 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm5, 7 + vpslld ymm5, ymm5, 25 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 7 + vpslld ymm6, ymm6, 25 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 7 + vpslld ymm7, ymm7, 25 + vpor ymm7, ymm7, ymm8 + vpsrld ymm8, ymm4, 7 + vpslld ymm4, ymm4, 25 + vpor ymm4, ymm4, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0x160] + vpaddd ymm1, ymm1, ymmword ptr [rsp+0xA0] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0x20] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0x100] + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxor ymm12, ymm12, ymm0 + vpxor ymm13, ymm13, ymm1 + vpxor ymm14, ymm14, ymm2 + vpxor ymm15, ymm15, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT16+rip] + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpshufb ymm15, ymm15, ymm8 + vpaddd ymm8, ymm12, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxor ymm4, ymm4, ymm8 + vpxor ymm5, ymm5, ymm9 + vpxor ymm6, ymm6, ymm10 + vpxor ymm7, ymm7, ymm11 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm4, 12 + vpslld ymm4, ymm4, 20 + vpor ymm4, ymm4, ymm8 + vpsrld ymm8, ymm5, 12 + vpslld ymm5, ymm5, 20 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 12 + vpslld ymm6, ymm6, 20 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 12 + vpslld ymm7, ymm7, 20 + vpor ymm7, ymm7, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0x1E0] + vpaddd ymm1, ymm1, ymmword ptr [rsp] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0x120] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0xC0] + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxor ymm12, ymm12, ymm0 + vpxor ymm13, ymm13, ymm1 + vpxor ymm14, ymm14, ymm2 + vpxor ymm15, ymm15, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT8+rip] + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpshufb ymm15, ymm15, ymm8 + vpaddd ymm8, ymm12, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxor ymm4, ymm4, ymm8 + vpxor ymm5, ymm5, ymm9 + vpxor ymm6, ymm6, ymm10 + vpxor ymm7, ymm7, ymm11 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm4, 7 + vpslld ymm4, ymm4, 25 + vpor ymm4, ymm4, ymm8 + vpsrld ymm8, ymm5, 7 + vpslld ymm5, ymm5, 25 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 7 + vpslld ymm6, ymm6, 25 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 7 + vpslld ymm7, ymm7, 25 + vpor ymm7, ymm7, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0x1C0] + vpaddd ymm1, ymm1, ymmword ptr [rsp+0x40] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0x60] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0xE0] + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxor ymm15, ymm15, ymm0 + vpxor ymm12, ymm12, ymm1 + vpxor ymm13, ymm13, ymm2 + vpxor ymm14, ymm14, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT16+rip] + vpshufb ymm15, ymm15, ymm8 + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm13, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm14 + vpxor ymm5, ymm5, ymm10 + vpxor ymm6, ymm6, ymm11 + vpxor ymm7, ymm7, ymm8 + vpxor ymm4, ymm4, ymm9 + vmovdqa ymmword ptr [rsp+0x200], ymm8 + vpsrld ymm8, ymm5, 12 + vpslld ymm5, ymm5, 20 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 12 + vpslld ymm6, ymm6, 20 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 12 + vpslld ymm7, ymm7, 20 + vpor ymm7, ymm7, ymm8 + vpsrld ymm8, ymm4, 12 + vpslld ymm4, ymm4, 20 + vpor ymm4, ymm4, ymm8 + vpaddd ymm0, ymm0, ymmword ptr [rsp+0x140] + vpaddd ymm1, ymm1, ymmword ptr [rsp+0x180] + vpaddd ymm2, ymm2, ymmword ptr [rsp+0x80] + vpaddd ymm3, ymm3, ymmword ptr [rsp+0x1A0] + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxor ymm15, ymm15, ymm0 + vpxor ymm12, ymm12, ymm1 + vpxor ymm13, ymm13, ymm2 + vpxor ymm14, ymm14, ymm3 + vbroadcasti128 ymm8, xmmword ptr [ROT8+rip] + vpshufb ymm15, ymm15, ymm8 + vpshufb ymm12, ymm12, ymm8 + vpshufb ymm13, ymm13, ymm8 + vpshufb ymm14, ymm14, ymm8 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm13, ymmword ptr [rsp+0x200] + vpaddd ymm9, ymm9, ymm14 + vpxor ymm5, ymm5, ymm10 + vpxor ymm6, ymm6, ymm11 + vpxor ymm7, ymm7, ymm8 + vpxor ymm4, ymm4, ymm9 + vpxor ymm0, ymm0, ymm8 + vpxor ymm1, ymm1, ymm9 + vpxor ymm2, ymm2, ymm10 + vpxor ymm3, ymm3, ymm11 + vpsrld ymm8, ymm5, 7 + vpslld ymm5, ymm5, 25 + vpor ymm5, ymm5, ymm8 + vpsrld ymm8, ymm6, 7 + vpslld ymm6, ymm6, 25 + vpor ymm6, ymm6, ymm8 + vpsrld ymm8, ymm7, 7 + vpslld ymm7, ymm7, 25 + vpor ymm7, ymm7, ymm8 + vpsrld ymm8, ymm4, 7 + vpslld ymm4, ymm4, 25 + vpor ymm4, ymm4, ymm8 + vpxor ymm4, ymm4, ymm12 + vpxor ymm5, ymm5, ymm13 + vpxor ymm6, ymm6, ymm14 + vpxor ymm7, ymm7, ymm15 + movzx eax, byte ptr [rbp+0x38] + jne 9b + mov rbx, qword ptr [rbp+0x50] + vunpcklps ymm8, ymm0, ymm1 + vunpcklps ymm9, ymm2, ymm3 + vunpckhps ymm10, ymm0, ymm1 + vunpcklps ymm11, ymm4, ymm5 + vunpcklps ymm0, ymm6, ymm7 + vshufps ymm12, ymm8, ymm9, 78 + vblendps ymm1, ymm8, ymm12, 0xCC + vshufps ymm8, ymm11, ymm0, 78 + vunpckhps ymm13, ymm2, ymm3 + vblendps ymm2, ymm11, ymm8, 0xCC + vblendps ymm3, ymm12, ymm9, 0xCC + vperm2f128 ymm12, ymm1, ymm2, 0x20 + vmovups ymmword ptr [rbx], ymm12 + vunpckhps ymm14, ymm4, ymm5 + vblendps ymm4, ymm8, ymm0, 0xCC + vunpckhps ymm15, ymm6, ymm7 + vperm2f128 ymm7, ymm3, ymm4, 0x20 + vmovups ymmword ptr [rbx+0x20], ymm7 + vshufps ymm5, ymm10, ymm13, 78 + vblendps ymm6, ymm5, ymm13, 0xCC + vshufps ymm13, ymm14, ymm15, 78 + vblendps ymm10, ymm10, ymm5, 0xCC + vblendps ymm14, ymm14, ymm13, 0xCC + vperm2f128 ymm8, ymm10, ymm14, 0x20 + vmovups ymmword ptr [rbx+0x40], ymm8 + vblendps ymm15, ymm13, ymm15, 0xCC + vperm2f128 ymm13, ymm6, ymm15, 0x20 + vmovups ymmword ptr [rbx+0x60], ymm13 + vperm2f128 ymm9, ymm1, ymm2, 0x31 + vperm2f128 ymm11, ymm3, ymm4, 0x31 + vmovups ymmword ptr [rbx+0x80], ymm9 + vperm2f128 ymm14, ymm10, ymm14, 0x31 + vperm2f128 ymm15, ymm6, ymm15, 0x31 + vmovups ymmword ptr [rbx+0xA0], ymm11 + vmovups ymmword ptr [rbx+0xC0], ymm14 + vmovups ymmword ptr [rbx+0xE0], ymm15 + vmovdqa ymm0, ymmword ptr [rsp+0x220] + vpaddd ymm1, ymm0, ymmword ptr [rsp+0x240] + vmovdqa ymmword ptr [rsp+0x240], ymm1 + vpxor ymm0, ymm0, ymmword ptr [CMP_MSB_MASK+rip] + vpxor ymm2, ymm1, ymmword ptr [CMP_MSB_MASK+rip] + vpcmpgtd ymm2, ymm0, ymm2 + vmovdqa ymm0, ymmword ptr [rsp+0x260] + vpsubd ymm2, ymm0, ymm2 + vmovdqa ymmword ptr [rsp+0x260], ymm2 + add rdi, 64 + add rbx, 256 + mov qword ptr [rbp+0x50], rbx + sub rsi, 8 + cmp rsi, 8 + jnc 2b + test rsi, rsi + jnz 3f +4: + vzeroupper + mov rsp, rbp + pop rbp + pop rbx + pop r12 + pop r13 + pop r14 + pop r15 + ret +.p2align 5 +3: + mov rbx, qword ptr [rbp+0x50] + mov r15, qword ptr [rsp+0x2A0] + movzx r13d, byte ptr [rbp+0x38] + movzx r12d, byte ptr [rbp+0x48] + test rsi, 0x4 + je 3f + vbroadcasti128 ymm0, xmmword ptr [rcx] + vbroadcasti128 ymm1, xmmword ptr [rcx+0x10] + vmovdqa ymm8, ymm0 + vmovdqa ymm9, ymm1 + vbroadcasti128 ymm12, xmmword ptr [rsp+0x240] + vbroadcasti128 ymm13, xmmword ptr [rsp+0x260] + vpunpckldq ymm14, ymm12, ymm13 + vpunpckhdq ymm15, ymm12, ymm13 + vpermq ymm14, ymm14, 0x50 + vpermq ymm15, ymm15, 0x50 + vbroadcasti128 ymm12, xmmword ptr [BLAKE3_BLOCK_LEN+rip] + vpblendd ymm14, ymm14, ymm12, 0x44 + vpblendd ymm15, ymm15, ymm12, 0x44 + vmovdqa ymmword ptr [rsp], ymm14 + vmovdqa ymmword ptr [rsp+0x20], ymm15 + mov r8, qword ptr [rdi] + mov r9, qword ptr [rdi+0x8] + mov r10, qword ptr [rdi+0x10] + mov r11, qword ptr [rdi+0x18] + movzx eax, byte ptr [rbp+0x40] + or eax, r13d + xor edx, edx +.p2align 5 +2: + mov r14d, eax + or eax, r12d + add rdx, 64 + cmp rdx, r15 + cmovne eax, r14d + mov dword ptr [rsp+0x200], eax + vmovups ymm2, ymmword ptr [r8+rdx-0x40] + vinsertf128 ymm2, ymm2, xmmword ptr [r9+rdx-0x40], 0x01 + vmovups ymm3, ymmword ptr [r8+rdx-0x30] + vinsertf128 ymm3, ymm3, xmmword ptr [r9+rdx-0x30], 0x01 + vshufps ymm4, ymm2, ymm3, 136 + vshufps ymm5, ymm2, ymm3, 221 + vmovups ymm2, ymmword ptr [r8+rdx-0x20] + vinsertf128 ymm2, ymm2, xmmword ptr [r9+rdx-0x20], 0x01 + vmovups ymm3, ymmword ptr [r8+rdx-0x10] + vinsertf128 ymm3, ymm3, xmmword ptr [r9+rdx-0x10], 0x01 + vshufps ymm6, ymm2, ymm3, 136 + vshufps ymm7, ymm2, ymm3, 221 + vpshufd ymm6, ymm6, 0x93 + vpshufd ymm7, ymm7, 0x93 + vmovups ymm10, ymmword ptr [r10+rdx-0x40] + vinsertf128 ymm10, ymm10, xmmword ptr [r11+rdx-0x40], 0x01 + vmovups ymm11, ymmword ptr [r10+rdx-0x30] + vinsertf128 ymm11, ymm11, xmmword ptr [r11+rdx-0x30], 0x01 + vshufps ymm12, ymm10, ymm11, 136 + vshufps ymm13, ymm10, ymm11, 221 + vmovups ymm10, ymmword ptr [r10+rdx-0x20] + vinsertf128 ymm10, ymm10, xmmword ptr [r11+rdx-0x20], 0x01 + vmovups ymm11, ymmword ptr [r10+rdx-0x10] + vinsertf128 ymm11, ymm11, xmmword ptr [r11+rdx-0x10], 0x01 + vshufps ymm14, ymm10, ymm11, 136 + vshufps ymm15, ymm10, ymm11, 221 + vpshufd ymm14, ymm14, 0x93 + vpshufd ymm15, ymm15, 0x93 + prefetcht0 [r8+rdx+0x80] + prefetcht0 [r9+rdx+0x80] + prefetcht0 [r10+rdx+0x80] + prefetcht0 [r11+rdx+0x80] + vpbroadcastd ymm2, dword ptr [rsp+0x200] + vmovdqa ymm3, ymmword ptr [rsp] + vmovdqa ymm11, ymmword ptr [rsp+0x20] + vpblendd ymm3, ymm3, ymm2, 0x88 + vpblendd ymm11, ymm11, ymm2, 0x88 + vbroadcasti128 ymm2, xmmword ptr [BLAKE3_IV+rip] + vmovdqa ymm10, ymm2 + mov al, 7 +9: + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm8, ymm8, ymm12 + vmovdqa ymmword ptr [rsp+0x40], ymm4 + nop + vmovdqa ymmword ptr [rsp+0x60], ymm12 + nop + vpaddd ymm0, ymm0, ymm1 + vpaddd ymm8, ymm8, ymm9 + vpxor ymm3, ymm3, ymm0 + vpxor ymm11, ymm11, ymm8 + vbroadcasti128 ymm4, xmmword ptr [ROT16+rip] + vpshufb ymm3, ymm3, ymm4 + vpshufb ymm11, ymm11, ymm4 + vpaddd ymm2, ymm2, ymm3 + vpaddd ymm10, ymm10, ymm11 + vpxor ymm1, ymm1, ymm2 + vpxor ymm9, ymm9, ymm10 + vpsrld ymm4, ymm1, 12 + vpslld ymm1, ymm1, 20 + vpor ymm1, ymm1, ymm4 + vpsrld ymm4, ymm9, 12 + vpslld ymm9, ymm9, 20 + vpor ymm9, ymm9, ymm4 + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm8, ymm8, ymm13 + vpaddd ymm0, ymm0, ymm1 + vpaddd ymm8, ymm8, ymm9 + vmovdqa ymmword ptr [rsp+0x80], ymm5 + vmovdqa ymmword ptr [rsp+0xA0], ymm13 + vpxor ymm3, ymm3, ymm0 + vpxor ymm11, ymm11, ymm8 + vbroadcasti128 ymm4, xmmword ptr [ROT8+rip] + vpshufb ymm3, ymm3, ymm4 + vpshufb ymm11, ymm11, ymm4 + vpaddd ymm2, ymm2, ymm3 + vpaddd ymm10, ymm10, ymm11 + vpxor ymm1, ymm1, ymm2 + vpxor ymm9, ymm9, ymm10 + vpsrld ymm4, ymm1, 7 + vpslld ymm1, ymm1, 25 + vpor ymm1, ymm1, ymm4 + vpsrld ymm4, ymm9, 7 + vpslld ymm9, ymm9, 25 + vpor ymm9, ymm9, ymm4 + vpshufd ymm0, ymm0, 0x93 + vpshufd ymm8, ymm8, 0x93 + vpshufd ymm3, ymm3, 0x4E + vpshufd ymm11, ymm11, 0x4E + vpshufd ymm2, ymm2, 0x39 + vpshufd ymm10, ymm10, 0x39 + vpaddd ymm0, ymm0, ymm6 + vpaddd ymm8, ymm8, ymm14 + vpaddd ymm0, ymm0, ymm1 + vpaddd ymm8, ymm8, ymm9 + vpxor ymm3, ymm3, ymm0 + vpxor ymm11, ymm11, ymm8 + vbroadcasti128 ymm4, xmmword ptr [ROT16+rip] + vpshufb ymm3, ymm3, ymm4 + vpshufb ymm11, ymm11, ymm4 + vpaddd ymm2, ymm2, ymm3 + vpaddd ymm10, ymm10, ymm11 + vpxor ymm1, ymm1, ymm2 + vpxor ymm9, ymm9, ymm10 + vpsrld ymm4, ymm1, 12 + vpslld ymm1, ymm1, 20 + vpor ymm1, ymm1, ymm4 + vpsrld ymm4, ymm9, 12 + vpslld ymm9, ymm9, 20 + vpor ymm9, ymm9, ymm4 + vpaddd ymm0, ymm0, ymm7 + vpaddd ymm8, ymm8, ymm15 + vpaddd ymm0, ymm0, ymm1 + vpaddd ymm8, ymm8, ymm9 + vpxor ymm3, ymm3, ymm0 + vpxor ymm11, ymm11, ymm8 + vbroadcasti128 ymm4, xmmword ptr [ROT8+rip] + vpshufb ymm3, ymm3, ymm4 + vpshufb ymm11, ymm11, ymm4 + vpaddd ymm2, ymm2, ymm3 + vpaddd ymm10, ymm10, ymm11 + vpxor ymm1, ymm1, ymm2 + vpxor ymm9, ymm9, ymm10 + vpsrld ymm4, ymm1, 7 + vpslld ymm1, ymm1, 25 + vpor ymm1, ymm1, ymm4 + vpsrld ymm4, ymm9, 7 + vpslld ymm9, ymm9, 25 + vpor ymm9, ymm9, ymm4 + vpshufd ymm0, ymm0, 0x39 + vpshufd ymm8, ymm8, 0x39 + vpshufd ymm3, ymm3, 0x4E + vpshufd ymm11, ymm11, 0x4E + vpshufd ymm2, ymm2, 0x93 + vpshufd ymm10, ymm10, 0x93 + dec al + je 9f + vmovdqa ymm4, ymmword ptr [rsp+0x40] + vmovdqa ymm5, ymmword ptr [rsp+0x80] + vshufps ymm12, ymm4, ymm5, 214 + vpshufd ymm13, ymm4, 0x0F + vpshufd ymm4, ymm12, 0x39 + vshufps ymm12, ymm6, ymm7, 250 + vpblendd ymm13, ymm13, ymm12, 0xAA + vpunpcklqdq ymm12, ymm7, ymm5 + vpblendd ymm12, ymm12, ymm6, 0x88 + vpshufd ymm12, ymm12, 0x78 + vpunpckhdq ymm5, ymm5, ymm7 + vpunpckldq ymm6, ymm6, ymm5 + vpshufd ymm7, ymm6, 0x1E + vmovdqa ymmword ptr [rsp+0x40], ymm13 + vmovdqa ymmword ptr [rsp+0x80], ymm12 + vmovdqa ymm12, ymmword ptr [rsp+0x60] + vmovdqa ymm13, ymmword ptr [rsp+0xA0] + vshufps ymm5, ymm12, ymm13, 214 + vpshufd ymm6, ymm12, 0x0F + vpshufd ymm12, ymm5, 0x39 + vshufps ymm5, ymm14, ymm15, 250 + vpblendd ymm6, ymm6, ymm5, 0xAA + vpunpcklqdq ymm5, ymm15, ymm13 + vpblendd ymm5, ymm5, ymm14, 0x88 + vpshufd ymm5, ymm5, 0x78 + vpunpckhdq ymm13, ymm13, ymm15 + vpunpckldq ymm14, ymm14, ymm13 + vpshufd ymm15, ymm14, 0x1E + vmovdqa ymm13, ymm6 + vmovdqa ymm14, ymm5 + vmovdqa ymm5, ymmword ptr [rsp+0x40] + vmovdqa ymm6, ymmword ptr [rsp+0x80] + jmp 9b +9: + vpxor ymm0, ymm0, ymm2 + vpxor ymm1, ymm1, ymm3 + vpxor ymm8, ymm8, ymm10 + vpxor ymm9, ymm9, ymm11 + mov eax, r13d + cmp rdx, r15 + jne 2b + vmovdqu xmmword ptr [rbx], xmm0 + vmovdqu xmmword ptr [rbx+0x10], xmm1 + vextracti128 xmmword ptr [rbx+0x20], ymm0, 0x01 + vextracti128 xmmword ptr [rbx+0x30], ymm1, 0x01 + vmovdqu xmmword ptr [rbx+0x40], xmm8 + vmovdqu xmmword ptr [rbx+0x50], xmm9 + vextracti128 xmmword ptr [rbx+0x60], ymm8, 0x01 + vextracti128 xmmword ptr [rbx+0x70], ymm9, 0x01 + vmovaps xmm8, xmmword ptr [rsp+0x280] + vmovaps xmm0, xmmword ptr [rsp+0x240] + vmovaps xmm1, xmmword ptr [rsp+0x250] + vmovaps xmm2, xmmword ptr [rsp+0x260] + vmovaps xmm3, xmmword ptr [rsp+0x270] + vblendvps xmm0, xmm0, xmm1, xmm8 + vblendvps xmm2, xmm2, xmm3, xmm8 + vmovaps xmmword ptr [rsp+0x240], xmm0 + vmovaps xmmword ptr [rsp+0x260], xmm2 + add rbx, 128 + add rdi, 32 + sub rsi, 4 +3: + test rsi, 0x2 + je 3f + vbroadcasti128 ymm0, xmmword ptr [rcx] + vbroadcasti128 ymm1, xmmword ptr [rcx+0x10] + vmovd xmm13, dword ptr [rsp+0x240] + vpinsrd xmm13, xmm13, dword ptr [rsp+0x260], 1 + vpinsrd xmm13, xmm13, dword ptr [BLAKE3_BLOCK_LEN+rip], 2 + vmovd xmm14, dword ptr [rsp+0x244] + vpinsrd xmm14, xmm14, dword ptr [rsp+0x264], 1 + vpinsrd xmm14, xmm14, dword ptr [BLAKE3_BLOCK_LEN+rip], 2 + vinserti128 ymm13, ymm13, xmm14, 0x01 + vbroadcasti128 ymm14, xmmword ptr [ROT16+rip] + vbroadcasti128 ymm15, xmmword ptr [ROT8+rip] + mov r8, qword ptr [rdi] + mov r9, qword ptr [rdi+0x8] + movzx eax, byte ptr [rbp+0x40] + or eax, r13d + xor edx, edx +.p2align 5 +2: + mov r14d, eax + or eax, r12d + add rdx, 64 + cmp rdx, r15 + cmovne eax, r14d + mov dword ptr [rsp+0x200], eax + vbroadcasti128 ymm2, xmmword ptr [BLAKE3_IV+rip] + vpbroadcastd ymm8, dword ptr [rsp+0x200] + vpblendd ymm3, ymm13, ymm8, 0x88 + vmovups ymm8, ymmword ptr [r8+rdx-0x40] + vinsertf128 ymm8, ymm8, xmmword ptr [r9+rdx-0x40], 0x01 + vmovups ymm9, ymmword ptr [r8+rdx-0x30] + vinsertf128 ymm9, ymm9, xmmword ptr [r9+rdx-0x30], 0x01 + vshufps ymm4, ymm8, ymm9, 136 + vshufps ymm5, ymm8, ymm9, 221 + vmovups ymm8, ymmword ptr [r8+rdx-0x20] + vinsertf128 ymm8, ymm8, xmmword ptr [r9+rdx-0x20], 0x01 + vmovups ymm9, ymmword ptr [r8+rdx-0x10] + vinsertf128 ymm9, ymm9, xmmword ptr [r9+rdx-0x10], 0x01 + vshufps ymm6, ymm8, ymm9, 136 + vshufps ymm7, ymm8, ymm9, 221 + vpshufd ymm6, ymm6, 0x93 + vpshufd ymm7, ymm7, 0x93 + mov al, 7 +9: + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm0, ymm0, ymm1 + vpxor ymm3, ymm3, ymm0 + vpshufb ymm3, ymm3, ymm14 + vpaddd ymm2, ymm2, ymm3 + vpxor ymm1, ymm1, ymm2 + vpsrld ymm8, ymm1, 12 + vpslld ymm1, ymm1, 20 + vpor ymm1, ymm1, ymm8 + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm0, ymm0, ymm1 + vpxor ymm3, ymm3, ymm0 + vpshufb ymm3, ymm3, ymm15 + vpaddd ymm2, ymm2, ymm3 + vpxor ymm1, ymm1, ymm2 + vpsrld ymm8, ymm1, 7 + vpslld ymm1, ymm1, 25 + vpor ymm1, ymm1, ymm8 + vpshufd ymm0, ymm0, 0x93 + vpshufd ymm3, ymm3, 0x4E + vpshufd ymm2, ymm2, 0x39 + vpaddd ymm0, ymm0, ymm6 + vpaddd ymm0, ymm0, ymm1 + vpxor ymm3, ymm3, ymm0 + vpshufb ymm3, ymm3, ymm14 + vpaddd ymm2, ymm2, ymm3 + vpxor ymm1, ymm1, ymm2 + vpsrld ymm8, ymm1, 12 + vpslld ymm1, ymm1, 20 + vpor ymm1, ymm1, ymm8 + vpaddd ymm0, ymm0, ymm7 + vpaddd ymm0, ymm0, ymm1 + vpxor ymm3, ymm3, ymm0 + vpshufb ymm3, ymm3, ymm15 + vpaddd ymm2, ymm2, ymm3 + vpxor ymm1, ymm1, ymm2 + vpsrld ymm8, ymm1, 7 + vpslld ymm1, ymm1, 25 + vpor ymm1, ymm1, ymm8 + vpshufd ymm0, ymm0, 0x39 + vpshufd ymm3, ymm3, 0x4E + vpshufd ymm2, ymm2, 0x93 + dec al + jz 9f + vshufps ymm8, ymm4, ymm5, 214 + vpshufd ymm9, ymm4, 0x0F + vpshufd ymm4, ymm8, 0x39 + vshufps ymm8, ymm6, ymm7, 250 + vpblendd ymm9, ymm9, ymm8, 0xAA + vpunpcklqdq ymm8, ymm7, ymm5 + vpblendd ymm8, ymm8, ymm6, 0x88 + vpshufd ymm8, ymm8, 0x78 + vpunpckhdq ymm5, ymm5, ymm7 + vpunpckldq ymm6, ymm6, ymm5 + vpshufd ymm7, ymm6, 0x1E + vmovdqa ymm5, ymm9 + vmovdqa ymm6, ymm8 + jmp 9b +9: + vpxor ymm0, ymm0, ymm2 + vpxor ymm1, ymm1, ymm3 + mov eax, r13d + cmp rdx, r15 + jne 2b + vmovdqu xmmword ptr [rbx], xmm0 + vmovdqu xmmword ptr [rbx+0x10], xmm1 + vextracti128 xmmword ptr [rbx+0x20], ymm0, 0x01 + vextracti128 xmmword ptr [rbx+0x30], ymm1, 0x01 + vmovaps ymm8, ymmword ptr [rsp+0x280] + vmovaps ymm0, ymmword ptr [rsp+0x240] + vmovups ymm1, ymmword ptr [rsp+0x248] + vmovaps ymm2, ymmword ptr [rsp+0x260] + vmovups ymm3, ymmword ptr [rsp+0x268] + vblendvps ymm0, ymm0, ymm1, ymm8 + vblendvps ymm2, ymm2, ymm3, ymm8 + vmovaps ymmword ptr [rsp+0x240], ymm0 + vmovaps ymmword ptr [rsp+0x260], ymm2 + add rbx, 64 + add rdi, 16 + sub rsi, 2 +3: + test rsi, 0x1 + je 4b + vmovdqu xmm0, xmmword ptr [rcx] + vmovdqu xmm1, xmmword ptr [rcx+0x10] + vmovd xmm3, dword ptr [rsp+0x240] + vpinsrd xmm3, xmm3, dword ptr [rsp+0x260], 1 + vpinsrd xmm13, xmm3, dword ptr [BLAKE3_BLOCK_LEN+rip], 2 + vmovdqa xmm14, xmmword ptr [ROT16+rip] + vmovdqa xmm15, xmmword ptr [ROT8+rip] + mov r8, qword ptr [rdi] + movzx eax, byte ptr [rbp+0x40] + or eax, r13d + xor edx, edx +.p2align 5 +2: + mov r14d, eax + or eax, r12d + add rdx, 64 + cmp rdx, r15 + cmovne eax, r14d + vmovdqa xmm2, xmmword ptr [BLAKE3_IV+rip] + vmovdqa xmm3, xmm13 + vpinsrd xmm3, xmm3, eax, 3 + vmovups xmm8, xmmword ptr [r8+rdx-0x40] + vmovups xmm9, xmmword ptr [r8+rdx-0x30] + vshufps xmm4, xmm8, xmm9, 136 + vshufps xmm5, xmm8, xmm9, 221 + vmovups xmm8, xmmword ptr [r8+rdx-0x20] + vmovups xmm9, xmmword ptr [r8+rdx-0x10] + vshufps xmm6, xmm8, xmm9, 136 + vshufps xmm7, xmm8, xmm9, 221 + vpshufd xmm6, xmm6, 0x93 + vpshufd xmm7, xmm7, 0x93 + mov al, 7 +9: + vpaddd xmm0, xmm0, xmm4 + vpaddd xmm0, xmm0, xmm1 + vpxor xmm3, xmm3, xmm0 + vpshufb xmm3, xmm3, xmm14 + vpaddd xmm2, xmm2, xmm3 + vpxor xmm1, xmm1, xmm2 + vpsrld xmm8, xmm1, 12 + vpslld xmm1, xmm1, 20 + vpor xmm1, xmm1, xmm8 + vpaddd xmm0, xmm0, xmm5 + vpaddd xmm0, xmm0, xmm1 + vpxor xmm3, xmm3, xmm0 + vpshufb xmm3, xmm3, xmm15 + vpaddd xmm2, xmm2, xmm3 + vpxor xmm1, xmm1, xmm2 + vpsrld xmm8, xmm1, 7 + vpslld xmm1, xmm1, 25 + vpor xmm1, xmm1, xmm8 + vpshufd xmm0, xmm0, 0x93 + vpshufd xmm3, xmm3, 0x4E + vpshufd xmm2, xmm2, 0x39 + vpaddd xmm0, xmm0, xmm6 + vpaddd xmm0, xmm0, xmm1 + vpxor xmm3, xmm3, xmm0 + vpshufb xmm3, xmm3, xmm14 + vpaddd xmm2, xmm2, xmm3 + vpxor xmm1, xmm1, xmm2 + vpsrld xmm8, xmm1, 12 + vpslld xmm1, xmm1, 20 + vpor xmm1, xmm1, xmm8 + vpaddd xmm0, xmm0, xmm7 + vpaddd xmm0, xmm0, xmm1 + vpxor xmm3, xmm3, xmm0 + vpshufb xmm3, xmm3, xmm15 + vpaddd xmm2, xmm2, xmm3 + vpxor xmm1, xmm1, xmm2 + vpsrld xmm8, xmm1, 7 + vpslld xmm1, xmm1, 25 + vpor xmm1, xmm1, xmm8 + vpshufd xmm0, xmm0, 0x39 + vpshufd xmm3, xmm3, 0x4E + vpshufd xmm2, xmm2, 0x93 + dec al + jz 9f + vshufps xmm8, xmm4, xmm5, 214 + vpshufd xmm9, xmm4, 0x0F + vpshufd xmm4, xmm8, 0x39 + vshufps xmm8, xmm6, xmm7, 250 + vpblendd xmm9, xmm9, xmm8, 0xAA + vpunpcklqdq xmm8, xmm7, xmm5 + vpblendd xmm8, xmm8, xmm6, 0x88 + vpshufd xmm8, xmm8, 0x78 + vpunpckhdq xmm5, xmm5, xmm7 + vpunpckldq xmm6, xmm6, xmm5 + vpshufd xmm7, xmm6, 0x1E + vmovdqa xmm5, xmm9 + vmovdqa xmm6, xmm8 + jmp 9b +9: + vpxor xmm0, xmm0, xmm2 + vpxor xmm1, xmm1, xmm3 + mov eax, r13d + cmp rdx, r15 + jne 2b + vmovdqu xmmword ptr [rbx], xmm0 + vmovdqu xmmword ptr [rbx+0x10], xmm1 + jmp 4b + + +#ifdef __APPLE__ +.static_data +#else +.section .rodata +#endif +.p2align 6 +ADD0: + .long 0, 1, 2, 3, 4, 5, 6, 7 +ADD1: + .long 8, 8, 8, 8, 8, 8, 8, 8 +BLAKE3_IV_0: + .long 0x6A09E667, 0x6A09E667, 0x6A09E667, 0x6A09E667 + .long 0x6A09E667, 0x6A09E667, 0x6A09E667, 0x6A09E667 +BLAKE3_IV_1: + .long 0xBB67AE85, 0xBB67AE85, 0xBB67AE85, 0xBB67AE85 + .long 0xBB67AE85, 0xBB67AE85, 0xBB67AE85, 0xBB67AE85 +BLAKE3_IV_2: + .long 0x3C6EF372, 0x3C6EF372, 0x3C6EF372, 0x3C6EF372 + .long 0x3C6EF372, 0x3C6EF372, 0x3C6EF372, 0x3C6EF372 +BLAKE3_IV_3: + .long 0xA54FF53A, 0xA54FF53A, 0xA54FF53A, 0xA54FF53A + .long 0xA54FF53A, 0xA54FF53A, 0xA54FF53A, 0xA54FF53A +BLAKE3_BLOCK_LEN: + .long 0x00000040, 0x00000040, 0x00000040, 0x00000040 + .long 0x00000040, 0x00000040, 0x00000040, 0x00000040 +ROT16: + .byte 2, 3, 0, 1, 6, 7, 4, 5, 10, 11, 8, 9, 14, 15, 12, 13 +ROT8: + .byte 1, 2, 3, 0, 5, 6, 7, 4, 9, 10, 11, 8, 13, 14, 15, 12 +CMP_MSB_MASK: + .long 0x80000000, 0x80000000, 0x80000000, 0x80000000 + .long 0x80000000, 0x80000000, 0x80000000, 0x80000000 +BLAKE3_IV: + .long 0x6A09E667, 0xBB67AE85, 0x3C6EF372, 0xA54FF53A + diff --git a/Sources/Cfyaml/src/blake3/blake3_avx512.c b/Sources/Cfyaml/src/blake3/blake3_avx512.c new file mode 100644 index 000000000..0bdc45782 --- /dev/null +++ b/Sources/Cfyaml/src/blake3/blake3_avx512.c @@ -0,0 +1,1227 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "blake3_impl.h" + +#include + +/* define it here instead of the header */ +static const uint8_t MSG_SCHEDULE[7][16] = { B3_MSG_SCHEDULE_DEF }; + +#define _mm_shuffle_ps2(a, b, c) \ + (_mm_castps_si128( \ + _mm_shuffle_ps(_mm_castsi128_ps(a), _mm_castsi128_ps(b), (c)))) + +INLINE __m128i loadu_128(const uint8_t src[16]) { + return _mm_loadu_si128((const __m128i *)src); +} + +INLINE __m256i loadu_256(const uint8_t src[32]) { + return _mm256_loadu_si256((const __m256i *)src); +} + +INLINE __m512i loadu_512(const uint8_t src[64]) { + return _mm512_loadu_si512((const __m512i *)src); +} + +INLINE void storeu_128(__m128i src, uint8_t dest[16]) { + _mm_storeu_si128((__m128i *)dest, src); +} + +INLINE void storeu_256(__m256i src, uint8_t dest[16]) { + _mm256_storeu_si256((__m256i *)dest, src); +} + +INLINE __m128i add_128(__m128i a, __m128i b) { return _mm_add_epi32(a, b); } + +INLINE __m256i add_256(__m256i a, __m256i b) { return _mm256_add_epi32(a, b); } + +INLINE __m512i add_512(__m512i a, __m512i b) { return _mm512_add_epi32(a, b); } + +INLINE __m128i xor_128(__m128i a, __m128i b) { return _mm_xor_si128(a, b); } + +INLINE __m256i xor_256(__m256i a, __m256i b) { return _mm256_xor_si256(a, b); } + +INLINE __m512i xor_512(__m512i a, __m512i b) { return _mm512_xor_si512(a, b); } + +INLINE __m128i set1_128(uint32_t x) { return _mm_set1_epi32((int32_t)x); } + +INLINE __m256i set1_256(uint32_t x) { return _mm256_set1_epi32((int32_t)x); } + +INLINE __m512i set1_512(uint32_t x) { return _mm512_set1_epi32((int32_t)x); } + +INLINE __m128i set4(uint32_t a, uint32_t b, uint32_t c, uint32_t d) { + return _mm_setr_epi32((int32_t)a, (int32_t)b, (int32_t)c, (int32_t)d); +} + +INLINE __m128i rot16_128(__m128i x) { return _mm_ror_epi32(x, 16); } + +INLINE __m256i rot16_256(__m256i x) { return _mm256_ror_epi32(x, 16); } + +INLINE __m512i rot16_512(__m512i x) { return _mm512_ror_epi32(x, 16); } + +INLINE __m128i rot12_128(__m128i x) { return _mm_ror_epi32(x, 12); } + +INLINE __m256i rot12_256(__m256i x) { return _mm256_ror_epi32(x, 12); } + +INLINE __m512i rot12_512(__m512i x) { return _mm512_ror_epi32(x, 12); } + +INLINE __m128i rot8_128(__m128i x) { return _mm_ror_epi32(x, 8); } + +INLINE __m256i rot8_256(__m256i x) { return _mm256_ror_epi32(x, 8); } + +INLINE __m512i rot8_512(__m512i x) { return _mm512_ror_epi32(x, 8); } + +INLINE __m128i rot7_128(__m128i x) { return _mm_ror_epi32(x, 7); } + +INLINE __m256i rot7_256(__m256i x) { return _mm256_ror_epi32(x, 7); } + +INLINE __m512i rot7_512(__m512i x) { return _mm512_ror_epi32(x, 7); } + +/* + * ---------------------------------------------------------------------------- + * compress_avx512 + * ---------------------------------------------------------------------------- + */ + +INLINE void g1(__m128i *row0, __m128i *row1, __m128i *row2, __m128i *row3, + __m128i m) { + *row0 = add_128(add_128(*row0, m), *row1); + *row3 = xor_128(*row3, *row0); + *row3 = rot16_128(*row3); + *row2 = add_128(*row2, *row3); + *row1 = xor_128(*row1, *row2); + *row1 = rot12_128(*row1); +} + +INLINE void g2(__m128i *row0, __m128i *row1, __m128i *row2, __m128i *row3, + __m128i m) { + *row0 = add_128(add_128(*row0, m), *row1); + *row3 = xor_128(*row3, *row0); + *row3 = rot8_128(*row3); + *row2 = add_128(*row2, *row3); + *row1 = xor_128(*row1, *row2); + *row1 = rot7_128(*row1); +} + +// Note the optimization here of leaving row1 as the unrotated row, rather than +// row0. All the message loads below are adjusted to compensate for this. See +// discussion at https://github.com/sneves/blake2-avx2/pull/4 +INLINE void diagonalize(__m128i *row0, __m128i *row2, __m128i *row3) { + *row0 = _mm_shuffle_epi32(*row0, _MM_SHUFFLE(2, 1, 0, 3)); + *row3 = _mm_shuffle_epi32(*row3, _MM_SHUFFLE(1, 0, 3, 2)); + *row2 = _mm_shuffle_epi32(*row2, _MM_SHUFFLE(0, 3, 2, 1)); +} + +INLINE void undiagonalize(__m128i *row0, __m128i *row2, __m128i *row3) { + *row0 = _mm_shuffle_epi32(*row0, _MM_SHUFFLE(0, 3, 2, 1)); + *row3 = _mm_shuffle_epi32(*row3, _MM_SHUFFLE(1, 0, 3, 2)); + *row2 = _mm_shuffle_epi32(*row2, _MM_SHUFFLE(2, 1, 0, 3)); +} + +INLINE void compress_pre(__m128i rows[4], const uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, uint8_t flags) { + rows[0] = loadu_128((uint8_t *)&cv[0]); + rows[1] = loadu_128((uint8_t *)&cv[4]); + rows[2] = set4(B3_IV_0, B3_IV_1, B3_IV_2, B3_IV_3); + rows[3] = set4(counter_low(counter), counter_high(counter), + (uint32_t)block_len, (uint32_t)flags); + + __m128i m0 = loadu_128(&block[sizeof(__m128i) * 0]); + __m128i m1 = loadu_128(&block[sizeof(__m128i) * 1]); + __m128i m2 = loadu_128(&block[sizeof(__m128i) * 2]); + __m128i m3 = loadu_128(&block[sizeof(__m128i) * 3]); + + __m128i t0, t1, t2, t3, tt; + + // Round 1. The first round permutes the message words from the original + // input order, into the groups that get mixed in parallel. + t0 = _mm_shuffle_ps2(m0, m1, _MM_SHUFFLE(2, 0, 2, 0)); // 6 4 2 0 + g1(&rows[0], &rows[1], &rows[2], &rows[3], t0); + t1 = _mm_shuffle_ps2(m0, m1, _MM_SHUFFLE(3, 1, 3, 1)); // 7 5 3 1 + g2(&rows[0], &rows[1], &rows[2], &rows[3], t1); + diagonalize(&rows[0], &rows[2], &rows[3]); + t2 = _mm_shuffle_ps2(m2, m3, _MM_SHUFFLE(2, 0, 2, 0)); // 14 12 10 8 + t2 = _mm_shuffle_epi32(t2, _MM_SHUFFLE(2, 1, 0, 3)); // 12 10 8 14 + g1(&rows[0], &rows[1], &rows[2], &rows[3], t2); + t3 = _mm_shuffle_ps2(m2, m3, _MM_SHUFFLE(3, 1, 3, 1)); // 15 13 11 9 + t3 = _mm_shuffle_epi32(t3, _MM_SHUFFLE(2, 1, 0, 3)); // 13 11 9 15 + g2(&rows[0], &rows[1], &rows[2], &rows[3], t3); + undiagonalize(&rows[0], &rows[2], &rows[3]); + m0 = t0; + m1 = t1; + m2 = t2; + m3 = t3; + + // Round 2. This round and all following rounds apply a fixed permutation + // to the message words from the round before. + t0 = _mm_shuffle_ps2(m0, m1, _MM_SHUFFLE(3, 1, 1, 2)); + t0 = _mm_shuffle_epi32(t0, _MM_SHUFFLE(0, 3, 2, 1)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t0); + t1 = _mm_shuffle_ps2(m2, m3, _MM_SHUFFLE(3, 3, 2, 2)); + tt = _mm_shuffle_epi32(m0, _MM_SHUFFLE(0, 0, 3, 3)); + t1 = _mm_blend_epi16(tt, t1, 0xCC); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t1); + diagonalize(&rows[0], &rows[2], &rows[3]); + t2 = _mm_unpacklo_epi64(m3, m1); + tt = _mm_blend_epi16(t2, m2, 0xC0); + t2 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(1, 3, 2, 0)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t2); + t3 = _mm_unpackhi_epi32(m1, m3); + tt = _mm_unpacklo_epi32(m2, t3); + t3 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(0, 1, 3, 2)); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t3); + undiagonalize(&rows[0], &rows[2], &rows[3]); + m0 = t0; + m1 = t1; + m2 = t2; + m3 = t3; + + // Round 3 + t0 = _mm_shuffle_ps2(m0, m1, _MM_SHUFFLE(3, 1, 1, 2)); + t0 = _mm_shuffle_epi32(t0, _MM_SHUFFLE(0, 3, 2, 1)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t0); + t1 = _mm_shuffle_ps2(m2, m3, _MM_SHUFFLE(3, 3, 2, 2)); + tt = _mm_shuffle_epi32(m0, _MM_SHUFFLE(0, 0, 3, 3)); + t1 = _mm_blend_epi16(tt, t1, 0xCC); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t1); + diagonalize(&rows[0], &rows[2], &rows[3]); + t2 = _mm_unpacklo_epi64(m3, m1); + tt = _mm_blend_epi16(t2, m2, 0xC0); + t2 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(1, 3, 2, 0)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t2); + t3 = _mm_unpackhi_epi32(m1, m3); + tt = _mm_unpacklo_epi32(m2, t3); + t3 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(0, 1, 3, 2)); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t3); + undiagonalize(&rows[0], &rows[2], &rows[3]); + m0 = t0; + m1 = t1; + m2 = t2; + m3 = t3; + + // Round 4 + t0 = _mm_shuffle_ps2(m0, m1, _MM_SHUFFLE(3, 1, 1, 2)); + t0 = _mm_shuffle_epi32(t0, _MM_SHUFFLE(0, 3, 2, 1)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t0); + t1 = _mm_shuffle_ps2(m2, m3, _MM_SHUFFLE(3, 3, 2, 2)); + tt = _mm_shuffle_epi32(m0, _MM_SHUFFLE(0, 0, 3, 3)); + t1 = _mm_blend_epi16(tt, t1, 0xCC); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t1); + diagonalize(&rows[0], &rows[2], &rows[3]); + t2 = _mm_unpacklo_epi64(m3, m1); + tt = _mm_blend_epi16(t2, m2, 0xC0); + t2 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(1, 3, 2, 0)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t2); + t3 = _mm_unpackhi_epi32(m1, m3); + tt = _mm_unpacklo_epi32(m2, t3); + t3 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(0, 1, 3, 2)); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t3); + undiagonalize(&rows[0], &rows[2], &rows[3]); + m0 = t0; + m1 = t1; + m2 = t2; + m3 = t3; + + // Round 5 + t0 = _mm_shuffle_ps2(m0, m1, _MM_SHUFFLE(3, 1, 1, 2)); + t0 = _mm_shuffle_epi32(t0, _MM_SHUFFLE(0, 3, 2, 1)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t0); + t1 = _mm_shuffle_ps2(m2, m3, _MM_SHUFFLE(3, 3, 2, 2)); + tt = _mm_shuffle_epi32(m0, _MM_SHUFFLE(0, 0, 3, 3)); + t1 = _mm_blend_epi16(tt, t1, 0xCC); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t1); + diagonalize(&rows[0], &rows[2], &rows[3]); + t2 = _mm_unpacklo_epi64(m3, m1); + tt = _mm_blend_epi16(t2, m2, 0xC0); + t2 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(1, 3, 2, 0)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t2); + t3 = _mm_unpackhi_epi32(m1, m3); + tt = _mm_unpacklo_epi32(m2, t3); + t3 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(0, 1, 3, 2)); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t3); + undiagonalize(&rows[0], &rows[2], &rows[3]); + m0 = t0; + m1 = t1; + m2 = t2; + m3 = t3; + + // Round 6 + t0 = _mm_shuffle_ps2(m0, m1, _MM_SHUFFLE(3, 1, 1, 2)); + t0 = _mm_shuffle_epi32(t0, _MM_SHUFFLE(0, 3, 2, 1)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t0); + t1 = _mm_shuffle_ps2(m2, m3, _MM_SHUFFLE(3, 3, 2, 2)); + tt = _mm_shuffle_epi32(m0, _MM_SHUFFLE(0, 0, 3, 3)); + t1 = _mm_blend_epi16(tt, t1, 0xCC); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t1); + diagonalize(&rows[0], &rows[2], &rows[3]); + t2 = _mm_unpacklo_epi64(m3, m1); + tt = _mm_blend_epi16(t2, m2, 0xC0); + t2 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(1, 3, 2, 0)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t2); + t3 = _mm_unpackhi_epi32(m1, m3); + tt = _mm_unpacklo_epi32(m2, t3); + t3 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(0, 1, 3, 2)); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t3); + undiagonalize(&rows[0], &rows[2], &rows[3]); + m0 = t0; + m1 = t1; + m2 = t2; + m3 = t3; + + // Round 7 + t0 = _mm_shuffle_ps2(m0, m1, _MM_SHUFFLE(3, 1, 1, 2)); + t0 = _mm_shuffle_epi32(t0, _MM_SHUFFLE(0, 3, 2, 1)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t0); + t1 = _mm_shuffle_ps2(m2, m3, _MM_SHUFFLE(3, 3, 2, 2)); + tt = _mm_shuffle_epi32(m0, _MM_SHUFFLE(0, 0, 3, 3)); + t1 = _mm_blend_epi16(tt, t1, 0xCC); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t1); + diagonalize(&rows[0], &rows[2], &rows[3]); + t2 = _mm_unpacklo_epi64(m3, m1); + tt = _mm_blend_epi16(t2, m2, 0xC0); + t2 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(1, 3, 2, 0)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t2); + t3 = _mm_unpackhi_epi32(m1, m3); + tt = _mm_unpacklo_epi32(m2, t3); + t3 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(0, 1, 3, 2)); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t3); + undiagonalize(&rows[0], &rows[2], &rows[3]); +} + +void blake3_compress_xof_avx512(const uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, + uint8_t flags, uint8_t out[64]) { + __m128i rows[4]; + compress_pre(rows, cv, block, block_len, counter, flags); + storeu_128(xor_128(rows[0], rows[2]), &out[0]); + storeu_128(xor_128(rows[1], rows[3]), &out[16]); + storeu_128(xor_128(rows[2], loadu_128((uint8_t *)&cv[0])), &out[32]); + storeu_128(xor_128(rows[3], loadu_128((uint8_t *)&cv[4])), &out[48]); +} + +void blake3_compress_in_place_avx512(uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, + uint8_t flags) { + __m128i rows[4]; + compress_pre(rows, cv, block, block_len, counter, flags); + storeu_128(xor_128(rows[0], rows[2]), (uint8_t *)&cv[0]); + storeu_128(xor_128(rows[1], rows[3]), (uint8_t *)&cv[4]); +} + +/* + * ---------------------------------------------------------------------------- + * hash4_avx512 + * ---------------------------------------------------------------------------- + */ + +INLINE void round_fn4(__m128i v[16], __m128i m[16], size_t r) { + v[0] = add_128(v[0], m[(size_t)MSG_SCHEDULE[r][0]]); + v[1] = add_128(v[1], m[(size_t)MSG_SCHEDULE[r][2]]); + v[2] = add_128(v[2], m[(size_t)MSG_SCHEDULE[r][4]]); + v[3] = add_128(v[3], m[(size_t)MSG_SCHEDULE[r][6]]); + v[0] = add_128(v[0], v[4]); + v[1] = add_128(v[1], v[5]); + v[2] = add_128(v[2], v[6]); + v[3] = add_128(v[3], v[7]); + v[12] = xor_128(v[12], v[0]); + v[13] = xor_128(v[13], v[1]); + v[14] = xor_128(v[14], v[2]); + v[15] = xor_128(v[15], v[3]); + v[12] = rot16_128(v[12]); + v[13] = rot16_128(v[13]); + v[14] = rot16_128(v[14]); + v[15] = rot16_128(v[15]); + v[8] = add_128(v[8], v[12]); + v[9] = add_128(v[9], v[13]); + v[10] = add_128(v[10], v[14]); + v[11] = add_128(v[11], v[15]); + v[4] = xor_128(v[4], v[8]); + v[5] = xor_128(v[5], v[9]); + v[6] = xor_128(v[6], v[10]); + v[7] = xor_128(v[7], v[11]); + v[4] = rot12_128(v[4]); + v[5] = rot12_128(v[5]); + v[6] = rot12_128(v[6]); + v[7] = rot12_128(v[7]); + v[0] = add_128(v[0], m[(size_t)MSG_SCHEDULE[r][1]]); + v[1] = add_128(v[1], m[(size_t)MSG_SCHEDULE[r][3]]); + v[2] = add_128(v[2], m[(size_t)MSG_SCHEDULE[r][5]]); + v[3] = add_128(v[3], m[(size_t)MSG_SCHEDULE[r][7]]); + v[0] = add_128(v[0], v[4]); + v[1] = add_128(v[1], v[5]); + v[2] = add_128(v[2], v[6]); + v[3] = add_128(v[3], v[7]); + v[12] = xor_128(v[12], v[0]); + v[13] = xor_128(v[13], v[1]); + v[14] = xor_128(v[14], v[2]); + v[15] = xor_128(v[15], v[3]); + v[12] = rot8_128(v[12]); + v[13] = rot8_128(v[13]); + v[14] = rot8_128(v[14]); + v[15] = rot8_128(v[15]); + v[8] = add_128(v[8], v[12]); + v[9] = add_128(v[9], v[13]); + v[10] = add_128(v[10], v[14]); + v[11] = add_128(v[11], v[15]); + v[4] = xor_128(v[4], v[8]); + v[5] = xor_128(v[5], v[9]); + v[6] = xor_128(v[6], v[10]); + v[7] = xor_128(v[7], v[11]); + v[4] = rot7_128(v[4]); + v[5] = rot7_128(v[5]); + v[6] = rot7_128(v[6]); + v[7] = rot7_128(v[7]); + + v[0] = add_128(v[0], m[(size_t)MSG_SCHEDULE[r][8]]); + v[1] = add_128(v[1], m[(size_t)MSG_SCHEDULE[r][10]]); + v[2] = add_128(v[2], m[(size_t)MSG_SCHEDULE[r][12]]); + v[3] = add_128(v[3], m[(size_t)MSG_SCHEDULE[r][14]]); + v[0] = add_128(v[0], v[5]); + v[1] = add_128(v[1], v[6]); + v[2] = add_128(v[2], v[7]); + v[3] = add_128(v[3], v[4]); + v[15] = xor_128(v[15], v[0]); + v[12] = xor_128(v[12], v[1]); + v[13] = xor_128(v[13], v[2]); + v[14] = xor_128(v[14], v[3]); + v[15] = rot16_128(v[15]); + v[12] = rot16_128(v[12]); + v[13] = rot16_128(v[13]); + v[14] = rot16_128(v[14]); + v[10] = add_128(v[10], v[15]); + v[11] = add_128(v[11], v[12]); + v[8] = add_128(v[8], v[13]); + v[9] = add_128(v[9], v[14]); + v[5] = xor_128(v[5], v[10]); + v[6] = xor_128(v[6], v[11]); + v[7] = xor_128(v[7], v[8]); + v[4] = xor_128(v[4], v[9]); + v[5] = rot12_128(v[5]); + v[6] = rot12_128(v[6]); + v[7] = rot12_128(v[7]); + v[4] = rot12_128(v[4]); + v[0] = add_128(v[0], m[(size_t)MSG_SCHEDULE[r][9]]); + v[1] = add_128(v[1], m[(size_t)MSG_SCHEDULE[r][11]]); + v[2] = add_128(v[2], m[(size_t)MSG_SCHEDULE[r][13]]); + v[3] = add_128(v[3], m[(size_t)MSG_SCHEDULE[r][15]]); + v[0] = add_128(v[0], v[5]); + v[1] = add_128(v[1], v[6]); + v[2] = add_128(v[2], v[7]); + v[3] = add_128(v[3], v[4]); + v[15] = xor_128(v[15], v[0]); + v[12] = xor_128(v[12], v[1]); + v[13] = xor_128(v[13], v[2]); + v[14] = xor_128(v[14], v[3]); + v[15] = rot8_128(v[15]); + v[12] = rot8_128(v[12]); + v[13] = rot8_128(v[13]); + v[14] = rot8_128(v[14]); + v[10] = add_128(v[10], v[15]); + v[11] = add_128(v[11], v[12]); + v[8] = add_128(v[8], v[13]); + v[9] = add_128(v[9], v[14]); + v[5] = xor_128(v[5], v[10]); + v[6] = xor_128(v[6], v[11]); + v[7] = xor_128(v[7], v[8]); + v[4] = xor_128(v[4], v[9]); + v[5] = rot7_128(v[5]); + v[6] = rot7_128(v[6]); + v[7] = rot7_128(v[7]); + v[4] = rot7_128(v[4]); +} + +INLINE void transpose_vecs_128(__m128i vecs[4]) { + // Interleave 32-bit lanes. The low unpack is lanes 00/11 and the high is + // 22/33. Note that this doesn't split the vector into two lanes, as the + // AVX2 counterparts do. + __m128i ab_01 = _mm_unpacklo_epi32(vecs[0], vecs[1]); + __m128i ab_23 = _mm_unpackhi_epi32(vecs[0], vecs[1]); + __m128i cd_01 = _mm_unpacklo_epi32(vecs[2], vecs[3]); + __m128i cd_23 = _mm_unpackhi_epi32(vecs[2], vecs[3]); + + // Interleave 64-bit lanes. + __m128i abcd_0 = _mm_unpacklo_epi64(ab_01, cd_01); + __m128i abcd_1 = _mm_unpackhi_epi64(ab_01, cd_01); + __m128i abcd_2 = _mm_unpacklo_epi64(ab_23, cd_23); + __m128i abcd_3 = _mm_unpackhi_epi64(ab_23, cd_23); + + vecs[0] = abcd_0; + vecs[1] = abcd_1; + vecs[2] = abcd_2; + vecs[3] = abcd_3; +} + +INLINE void transpose_msg_vecs4(const uint8_t *const *inputs, + size_t block_offset, __m128i out[16]) { + out[0] = loadu_128(&inputs[0][block_offset + 0 * sizeof(__m128i)]); + out[1] = loadu_128(&inputs[1][block_offset + 0 * sizeof(__m128i)]); + out[2] = loadu_128(&inputs[2][block_offset + 0 * sizeof(__m128i)]); + out[3] = loadu_128(&inputs[3][block_offset + 0 * sizeof(__m128i)]); + out[4] = loadu_128(&inputs[0][block_offset + 1 * sizeof(__m128i)]); + out[5] = loadu_128(&inputs[1][block_offset + 1 * sizeof(__m128i)]); + out[6] = loadu_128(&inputs[2][block_offset + 1 * sizeof(__m128i)]); + out[7] = loadu_128(&inputs[3][block_offset + 1 * sizeof(__m128i)]); + out[8] = loadu_128(&inputs[0][block_offset + 2 * sizeof(__m128i)]); + out[9] = loadu_128(&inputs[1][block_offset + 2 * sizeof(__m128i)]); + out[10] = loadu_128(&inputs[2][block_offset + 2 * sizeof(__m128i)]); + out[11] = loadu_128(&inputs[3][block_offset + 2 * sizeof(__m128i)]); + out[12] = loadu_128(&inputs[0][block_offset + 3 * sizeof(__m128i)]); + out[13] = loadu_128(&inputs[1][block_offset + 3 * sizeof(__m128i)]); + out[14] = loadu_128(&inputs[2][block_offset + 3 * sizeof(__m128i)]); + out[15] = loadu_128(&inputs[3][block_offset + 3 * sizeof(__m128i)]); + for (size_t i = 0; i < 4; ++i) { + _mm_prefetch((const void *)&inputs[i][block_offset + 256], _MM_HINT_T0); + } + transpose_vecs_128(&out[0]); + transpose_vecs_128(&out[4]); + transpose_vecs_128(&out[8]); + transpose_vecs_128(&out[12]); +} + +INLINE void load_counters4(uint64_t counter, bool increment_counter, + __m128i *out_lo, __m128i *out_hi) { + uint64_t mask = (increment_counter ? ~0 : 0); + __m256i mask_vec = _mm256_set1_epi64x(mask); + __m256i deltas = _mm256_setr_epi64x(0, 1, 2, 3); + deltas = _mm256_and_si256(mask_vec, deltas); + __m256i counters = + _mm256_add_epi64(_mm256_set1_epi64x((int64_t)counter), deltas); + *out_lo = _mm256_cvtepi64_epi32(counters); + *out_hi = _mm256_cvtepi64_epi32(_mm256_srli_epi64(counters, 32)); +} + +static +void blake3_hash4_avx512(const uint8_t *const *inputs, size_t blocks, + const uint32_t key[8], uint64_t counter, + bool increment_counter, uint8_t flags, + uint8_t flags_start, uint8_t flags_end, uint8_t *out) { + __m128i h_vecs[8] = { + set1_128(key[0]), set1_128(key[1]), set1_128(key[2]), set1_128(key[3]), + set1_128(key[4]), set1_128(key[5]), set1_128(key[6]), set1_128(key[7]), + }; + __m128i counter_low_vec, counter_high_vec; + load_counters4(counter, increment_counter, &counter_low_vec, + &counter_high_vec); + uint8_t block_flags = flags | flags_start; + + for (size_t block = 0; block < blocks; block++) { + if (block + 1 == blocks) { + block_flags |= flags_end; + } + __m128i block_len_vec = set1_128(BLAKE3_BLOCK_LEN); + __m128i block_flags_vec = set1_128(block_flags); + __m128i msg_vecs[16]; + transpose_msg_vecs4(inputs, block * BLAKE3_BLOCK_LEN, msg_vecs); + + __m128i v[16] = { + h_vecs[0], h_vecs[1], h_vecs[2], h_vecs[3], + h_vecs[4], h_vecs[5], h_vecs[6], h_vecs[7], + set1_128(B3_IV_0), set1_128(B3_IV_1), set1_128(B3_IV_2), set1_128(B3_IV_3), + counter_low_vec, counter_high_vec, block_len_vec, block_flags_vec, + }; + round_fn4(v, msg_vecs, 0); + round_fn4(v, msg_vecs, 1); + round_fn4(v, msg_vecs, 2); + round_fn4(v, msg_vecs, 3); + round_fn4(v, msg_vecs, 4); + round_fn4(v, msg_vecs, 5); + round_fn4(v, msg_vecs, 6); + h_vecs[0] = xor_128(v[0], v[8]); + h_vecs[1] = xor_128(v[1], v[9]); + h_vecs[2] = xor_128(v[2], v[10]); + h_vecs[3] = xor_128(v[3], v[11]); + h_vecs[4] = xor_128(v[4], v[12]); + h_vecs[5] = xor_128(v[5], v[13]); + h_vecs[6] = xor_128(v[6], v[14]); + h_vecs[7] = xor_128(v[7], v[15]); + + block_flags = flags; + } + + transpose_vecs_128(&h_vecs[0]); + transpose_vecs_128(&h_vecs[4]); + // The first four vecs now contain the first half of each output, and the + // second four vecs contain the second half of each output. + storeu_128(h_vecs[0], &out[0 * sizeof(__m128i)]); + storeu_128(h_vecs[4], &out[1 * sizeof(__m128i)]); + storeu_128(h_vecs[1], &out[2 * sizeof(__m128i)]); + storeu_128(h_vecs[5], &out[3 * sizeof(__m128i)]); + storeu_128(h_vecs[2], &out[4 * sizeof(__m128i)]); + storeu_128(h_vecs[6], &out[5 * sizeof(__m128i)]); + storeu_128(h_vecs[3], &out[6 * sizeof(__m128i)]); + storeu_128(h_vecs[7], &out[7 * sizeof(__m128i)]); +} + +/* + * ---------------------------------------------------------------------------- + * hash8_avx512 + * ---------------------------------------------------------------------------- + */ + +INLINE void round_fn8(__m256i v[16], __m256i m[16], size_t r) { + v[0] = add_256(v[0], m[(size_t)MSG_SCHEDULE[r][0]]); + v[1] = add_256(v[1], m[(size_t)MSG_SCHEDULE[r][2]]); + v[2] = add_256(v[2], m[(size_t)MSG_SCHEDULE[r][4]]); + v[3] = add_256(v[3], m[(size_t)MSG_SCHEDULE[r][6]]); + v[0] = add_256(v[0], v[4]); + v[1] = add_256(v[1], v[5]); + v[2] = add_256(v[2], v[6]); + v[3] = add_256(v[3], v[7]); + v[12] = xor_256(v[12], v[0]); + v[13] = xor_256(v[13], v[1]); + v[14] = xor_256(v[14], v[2]); + v[15] = xor_256(v[15], v[3]); + v[12] = rot16_256(v[12]); + v[13] = rot16_256(v[13]); + v[14] = rot16_256(v[14]); + v[15] = rot16_256(v[15]); + v[8] = add_256(v[8], v[12]); + v[9] = add_256(v[9], v[13]); + v[10] = add_256(v[10], v[14]); + v[11] = add_256(v[11], v[15]); + v[4] = xor_256(v[4], v[8]); + v[5] = xor_256(v[5], v[9]); + v[6] = xor_256(v[6], v[10]); + v[7] = xor_256(v[7], v[11]); + v[4] = rot12_256(v[4]); + v[5] = rot12_256(v[5]); + v[6] = rot12_256(v[6]); + v[7] = rot12_256(v[7]); + v[0] = add_256(v[0], m[(size_t)MSG_SCHEDULE[r][1]]); + v[1] = add_256(v[1], m[(size_t)MSG_SCHEDULE[r][3]]); + v[2] = add_256(v[2], m[(size_t)MSG_SCHEDULE[r][5]]); + v[3] = add_256(v[3], m[(size_t)MSG_SCHEDULE[r][7]]); + v[0] = add_256(v[0], v[4]); + v[1] = add_256(v[1], v[5]); + v[2] = add_256(v[2], v[6]); + v[3] = add_256(v[3], v[7]); + v[12] = xor_256(v[12], v[0]); + v[13] = xor_256(v[13], v[1]); + v[14] = xor_256(v[14], v[2]); + v[15] = xor_256(v[15], v[3]); + v[12] = rot8_256(v[12]); + v[13] = rot8_256(v[13]); + v[14] = rot8_256(v[14]); + v[15] = rot8_256(v[15]); + v[8] = add_256(v[8], v[12]); + v[9] = add_256(v[9], v[13]); + v[10] = add_256(v[10], v[14]); + v[11] = add_256(v[11], v[15]); + v[4] = xor_256(v[4], v[8]); + v[5] = xor_256(v[5], v[9]); + v[6] = xor_256(v[6], v[10]); + v[7] = xor_256(v[7], v[11]); + v[4] = rot7_256(v[4]); + v[5] = rot7_256(v[5]); + v[6] = rot7_256(v[6]); + v[7] = rot7_256(v[7]); + + v[0] = add_256(v[0], m[(size_t)MSG_SCHEDULE[r][8]]); + v[1] = add_256(v[1], m[(size_t)MSG_SCHEDULE[r][10]]); + v[2] = add_256(v[2], m[(size_t)MSG_SCHEDULE[r][12]]); + v[3] = add_256(v[3], m[(size_t)MSG_SCHEDULE[r][14]]); + v[0] = add_256(v[0], v[5]); + v[1] = add_256(v[1], v[6]); + v[2] = add_256(v[2], v[7]); + v[3] = add_256(v[3], v[4]); + v[15] = xor_256(v[15], v[0]); + v[12] = xor_256(v[12], v[1]); + v[13] = xor_256(v[13], v[2]); + v[14] = xor_256(v[14], v[3]); + v[15] = rot16_256(v[15]); + v[12] = rot16_256(v[12]); + v[13] = rot16_256(v[13]); + v[14] = rot16_256(v[14]); + v[10] = add_256(v[10], v[15]); + v[11] = add_256(v[11], v[12]); + v[8] = add_256(v[8], v[13]); + v[9] = add_256(v[9], v[14]); + v[5] = xor_256(v[5], v[10]); + v[6] = xor_256(v[6], v[11]); + v[7] = xor_256(v[7], v[8]); + v[4] = xor_256(v[4], v[9]); + v[5] = rot12_256(v[5]); + v[6] = rot12_256(v[6]); + v[7] = rot12_256(v[7]); + v[4] = rot12_256(v[4]); + v[0] = add_256(v[0], m[(size_t)MSG_SCHEDULE[r][9]]); + v[1] = add_256(v[1], m[(size_t)MSG_SCHEDULE[r][11]]); + v[2] = add_256(v[2], m[(size_t)MSG_SCHEDULE[r][13]]); + v[3] = add_256(v[3], m[(size_t)MSG_SCHEDULE[r][15]]); + v[0] = add_256(v[0], v[5]); + v[1] = add_256(v[1], v[6]); + v[2] = add_256(v[2], v[7]); + v[3] = add_256(v[3], v[4]); + v[15] = xor_256(v[15], v[0]); + v[12] = xor_256(v[12], v[1]); + v[13] = xor_256(v[13], v[2]); + v[14] = xor_256(v[14], v[3]); + v[15] = rot8_256(v[15]); + v[12] = rot8_256(v[12]); + v[13] = rot8_256(v[13]); + v[14] = rot8_256(v[14]); + v[10] = add_256(v[10], v[15]); + v[11] = add_256(v[11], v[12]); + v[8] = add_256(v[8], v[13]); + v[9] = add_256(v[9], v[14]); + v[5] = xor_256(v[5], v[10]); + v[6] = xor_256(v[6], v[11]); + v[7] = xor_256(v[7], v[8]); + v[4] = xor_256(v[4], v[9]); + v[5] = rot7_256(v[5]); + v[6] = rot7_256(v[6]); + v[7] = rot7_256(v[7]); + v[4] = rot7_256(v[4]); +} + +INLINE void transpose_vecs_256(__m256i vecs[8]) { + // Interleave 32-bit lanes. The low unpack is lanes 00/11/44/55, and the high + // is 22/33/66/77. + __m256i ab_0145 = _mm256_unpacklo_epi32(vecs[0], vecs[1]); + __m256i ab_2367 = _mm256_unpackhi_epi32(vecs[0], vecs[1]); + __m256i cd_0145 = _mm256_unpacklo_epi32(vecs[2], vecs[3]); + __m256i cd_2367 = _mm256_unpackhi_epi32(vecs[2], vecs[3]); + __m256i ef_0145 = _mm256_unpacklo_epi32(vecs[4], vecs[5]); + __m256i ef_2367 = _mm256_unpackhi_epi32(vecs[4], vecs[5]); + __m256i gh_0145 = _mm256_unpacklo_epi32(vecs[6], vecs[7]); + __m256i gh_2367 = _mm256_unpackhi_epi32(vecs[6], vecs[7]); + + // Interleave 64-bit lanes. The low unpack is lanes 00/22 and the high is + // 11/33. + __m256i abcd_04 = _mm256_unpacklo_epi64(ab_0145, cd_0145); + __m256i abcd_15 = _mm256_unpackhi_epi64(ab_0145, cd_0145); + __m256i abcd_26 = _mm256_unpacklo_epi64(ab_2367, cd_2367); + __m256i abcd_37 = _mm256_unpackhi_epi64(ab_2367, cd_2367); + __m256i efgh_04 = _mm256_unpacklo_epi64(ef_0145, gh_0145); + __m256i efgh_15 = _mm256_unpackhi_epi64(ef_0145, gh_0145); + __m256i efgh_26 = _mm256_unpacklo_epi64(ef_2367, gh_2367); + __m256i efgh_37 = _mm256_unpackhi_epi64(ef_2367, gh_2367); + + // Interleave 128-bit lanes. + vecs[0] = _mm256_permute2x128_si256(abcd_04, efgh_04, 0x20); + vecs[1] = _mm256_permute2x128_si256(abcd_15, efgh_15, 0x20); + vecs[2] = _mm256_permute2x128_si256(abcd_26, efgh_26, 0x20); + vecs[3] = _mm256_permute2x128_si256(abcd_37, efgh_37, 0x20); + vecs[4] = _mm256_permute2x128_si256(abcd_04, efgh_04, 0x31); + vecs[5] = _mm256_permute2x128_si256(abcd_15, efgh_15, 0x31); + vecs[6] = _mm256_permute2x128_si256(abcd_26, efgh_26, 0x31); + vecs[7] = _mm256_permute2x128_si256(abcd_37, efgh_37, 0x31); +} + +INLINE void transpose_msg_vecs8(const uint8_t *const *inputs, + size_t block_offset, __m256i out[16]) { + out[0] = loadu_256(&inputs[0][block_offset + 0 * sizeof(__m256i)]); + out[1] = loadu_256(&inputs[1][block_offset + 0 * sizeof(__m256i)]); + out[2] = loadu_256(&inputs[2][block_offset + 0 * sizeof(__m256i)]); + out[3] = loadu_256(&inputs[3][block_offset + 0 * sizeof(__m256i)]); + out[4] = loadu_256(&inputs[4][block_offset + 0 * sizeof(__m256i)]); + out[5] = loadu_256(&inputs[5][block_offset + 0 * sizeof(__m256i)]); + out[6] = loadu_256(&inputs[6][block_offset + 0 * sizeof(__m256i)]); + out[7] = loadu_256(&inputs[7][block_offset + 0 * sizeof(__m256i)]); + out[8] = loadu_256(&inputs[0][block_offset + 1 * sizeof(__m256i)]); + out[9] = loadu_256(&inputs[1][block_offset + 1 * sizeof(__m256i)]); + out[10] = loadu_256(&inputs[2][block_offset + 1 * sizeof(__m256i)]); + out[11] = loadu_256(&inputs[3][block_offset + 1 * sizeof(__m256i)]); + out[12] = loadu_256(&inputs[4][block_offset + 1 * sizeof(__m256i)]); + out[13] = loadu_256(&inputs[5][block_offset + 1 * sizeof(__m256i)]); + out[14] = loadu_256(&inputs[6][block_offset + 1 * sizeof(__m256i)]); + out[15] = loadu_256(&inputs[7][block_offset + 1 * sizeof(__m256i)]); + for (size_t i = 0; i < 8; ++i) { + _mm_prefetch((const void *)&inputs[i][block_offset + 256], _MM_HINT_T0); + } + transpose_vecs_256(&out[0]); + transpose_vecs_256(&out[8]); +} + +INLINE void load_counters8(uint64_t counter, bool increment_counter, + __m256i *out_lo, __m256i *out_hi) { + uint64_t mask = (increment_counter ? ~0 : 0); + __m512i mask_vec = _mm512_set1_epi64(mask); + __m512i deltas = _mm512_setr_epi64(0, 1, 2, 3, 4, 5, 6, 7); + deltas = _mm512_and_si512(mask_vec, deltas); + __m512i counters = + _mm512_add_epi64(_mm512_set1_epi64((int64_t)counter), deltas); + *out_lo = _mm512_cvtepi64_epi32(counters); + *out_hi = _mm512_cvtepi64_epi32(_mm512_srli_epi64(counters, 32)); +} + +static +void blake3_hash8_avx512(const uint8_t *const *inputs, size_t blocks, + const uint32_t key[8], uint64_t counter, + bool increment_counter, uint8_t flags, + uint8_t flags_start, uint8_t flags_end, uint8_t *out) { + __m256i h_vecs[8] = { + set1_256(key[0]), set1_256(key[1]), set1_256(key[2]), set1_256(key[3]), + set1_256(key[4]), set1_256(key[5]), set1_256(key[6]), set1_256(key[7]), + }; + __m256i counter_low_vec, counter_high_vec; + load_counters8(counter, increment_counter, &counter_low_vec, + &counter_high_vec); + uint8_t block_flags = flags | flags_start; + + for (size_t block = 0; block < blocks; block++) { + if (block + 1 == blocks) { + block_flags |= flags_end; + } + __m256i block_len_vec = set1_256(BLAKE3_BLOCK_LEN); + __m256i block_flags_vec = set1_256(block_flags); + __m256i msg_vecs[16]; + transpose_msg_vecs8(inputs, block * BLAKE3_BLOCK_LEN, msg_vecs); + + __m256i v[16] = { + h_vecs[0], h_vecs[1], h_vecs[2], h_vecs[3], + h_vecs[4], h_vecs[5], h_vecs[6], h_vecs[7], + set1_256(B3_IV_0), set1_256(B3_IV_1), set1_256(B3_IV_2), set1_256(B3_IV_3), + counter_low_vec, counter_high_vec, block_len_vec, block_flags_vec, + }; + round_fn8(v, msg_vecs, 0); + round_fn8(v, msg_vecs, 1); + round_fn8(v, msg_vecs, 2); + round_fn8(v, msg_vecs, 3); + round_fn8(v, msg_vecs, 4); + round_fn8(v, msg_vecs, 5); + round_fn8(v, msg_vecs, 6); + h_vecs[0] = xor_256(v[0], v[8]); + h_vecs[1] = xor_256(v[1], v[9]); + h_vecs[2] = xor_256(v[2], v[10]); + h_vecs[3] = xor_256(v[3], v[11]); + h_vecs[4] = xor_256(v[4], v[12]); + h_vecs[5] = xor_256(v[5], v[13]); + h_vecs[6] = xor_256(v[6], v[14]); + h_vecs[7] = xor_256(v[7], v[15]); + + block_flags = flags; + } + + transpose_vecs_256(h_vecs); + storeu_256(h_vecs[0], &out[0 * sizeof(__m256i)]); + storeu_256(h_vecs[1], &out[1 * sizeof(__m256i)]); + storeu_256(h_vecs[2], &out[2 * sizeof(__m256i)]); + storeu_256(h_vecs[3], &out[3 * sizeof(__m256i)]); + storeu_256(h_vecs[4], &out[4 * sizeof(__m256i)]); + storeu_256(h_vecs[5], &out[5 * sizeof(__m256i)]); + storeu_256(h_vecs[6], &out[6 * sizeof(__m256i)]); + storeu_256(h_vecs[7], &out[7 * sizeof(__m256i)]); +} + +/* + * ---------------------------------------------------------------------------- + * hash16_avx512 + * ---------------------------------------------------------------------------- + */ + +INLINE void round_fn16(__m512i v[16], __m512i m[16], size_t r) { + v[0] = add_512(v[0], m[(size_t)MSG_SCHEDULE[r][0]]); + v[1] = add_512(v[1], m[(size_t)MSG_SCHEDULE[r][2]]); + v[2] = add_512(v[2], m[(size_t)MSG_SCHEDULE[r][4]]); + v[3] = add_512(v[3], m[(size_t)MSG_SCHEDULE[r][6]]); + v[0] = add_512(v[0], v[4]); + v[1] = add_512(v[1], v[5]); + v[2] = add_512(v[2], v[6]); + v[3] = add_512(v[3], v[7]); + v[12] = xor_512(v[12], v[0]); + v[13] = xor_512(v[13], v[1]); + v[14] = xor_512(v[14], v[2]); + v[15] = xor_512(v[15], v[3]); + v[12] = rot16_512(v[12]); + v[13] = rot16_512(v[13]); + v[14] = rot16_512(v[14]); + v[15] = rot16_512(v[15]); + v[8] = add_512(v[8], v[12]); + v[9] = add_512(v[9], v[13]); + v[10] = add_512(v[10], v[14]); + v[11] = add_512(v[11], v[15]); + v[4] = xor_512(v[4], v[8]); + v[5] = xor_512(v[5], v[9]); + v[6] = xor_512(v[6], v[10]); + v[7] = xor_512(v[7], v[11]); + v[4] = rot12_512(v[4]); + v[5] = rot12_512(v[5]); + v[6] = rot12_512(v[6]); + v[7] = rot12_512(v[7]); + v[0] = add_512(v[0], m[(size_t)MSG_SCHEDULE[r][1]]); + v[1] = add_512(v[1], m[(size_t)MSG_SCHEDULE[r][3]]); + v[2] = add_512(v[2], m[(size_t)MSG_SCHEDULE[r][5]]); + v[3] = add_512(v[3], m[(size_t)MSG_SCHEDULE[r][7]]); + v[0] = add_512(v[0], v[4]); + v[1] = add_512(v[1], v[5]); + v[2] = add_512(v[2], v[6]); + v[3] = add_512(v[3], v[7]); + v[12] = xor_512(v[12], v[0]); + v[13] = xor_512(v[13], v[1]); + v[14] = xor_512(v[14], v[2]); + v[15] = xor_512(v[15], v[3]); + v[12] = rot8_512(v[12]); + v[13] = rot8_512(v[13]); + v[14] = rot8_512(v[14]); + v[15] = rot8_512(v[15]); + v[8] = add_512(v[8], v[12]); + v[9] = add_512(v[9], v[13]); + v[10] = add_512(v[10], v[14]); + v[11] = add_512(v[11], v[15]); + v[4] = xor_512(v[4], v[8]); + v[5] = xor_512(v[5], v[9]); + v[6] = xor_512(v[6], v[10]); + v[7] = xor_512(v[7], v[11]); + v[4] = rot7_512(v[4]); + v[5] = rot7_512(v[5]); + v[6] = rot7_512(v[6]); + v[7] = rot7_512(v[7]); + + v[0] = add_512(v[0], m[(size_t)MSG_SCHEDULE[r][8]]); + v[1] = add_512(v[1], m[(size_t)MSG_SCHEDULE[r][10]]); + v[2] = add_512(v[2], m[(size_t)MSG_SCHEDULE[r][12]]); + v[3] = add_512(v[3], m[(size_t)MSG_SCHEDULE[r][14]]); + v[0] = add_512(v[0], v[5]); + v[1] = add_512(v[1], v[6]); + v[2] = add_512(v[2], v[7]); + v[3] = add_512(v[3], v[4]); + v[15] = xor_512(v[15], v[0]); + v[12] = xor_512(v[12], v[1]); + v[13] = xor_512(v[13], v[2]); + v[14] = xor_512(v[14], v[3]); + v[15] = rot16_512(v[15]); + v[12] = rot16_512(v[12]); + v[13] = rot16_512(v[13]); + v[14] = rot16_512(v[14]); + v[10] = add_512(v[10], v[15]); + v[11] = add_512(v[11], v[12]); + v[8] = add_512(v[8], v[13]); + v[9] = add_512(v[9], v[14]); + v[5] = xor_512(v[5], v[10]); + v[6] = xor_512(v[6], v[11]); + v[7] = xor_512(v[7], v[8]); + v[4] = xor_512(v[4], v[9]); + v[5] = rot12_512(v[5]); + v[6] = rot12_512(v[6]); + v[7] = rot12_512(v[7]); + v[4] = rot12_512(v[4]); + v[0] = add_512(v[0], m[(size_t)MSG_SCHEDULE[r][9]]); + v[1] = add_512(v[1], m[(size_t)MSG_SCHEDULE[r][11]]); + v[2] = add_512(v[2], m[(size_t)MSG_SCHEDULE[r][13]]); + v[3] = add_512(v[3], m[(size_t)MSG_SCHEDULE[r][15]]); + v[0] = add_512(v[0], v[5]); + v[1] = add_512(v[1], v[6]); + v[2] = add_512(v[2], v[7]); + v[3] = add_512(v[3], v[4]); + v[15] = xor_512(v[15], v[0]); + v[12] = xor_512(v[12], v[1]); + v[13] = xor_512(v[13], v[2]); + v[14] = xor_512(v[14], v[3]); + v[15] = rot8_512(v[15]); + v[12] = rot8_512(v[12]); + v[13] = rot8_512(v[13]); + v[14] = rot8_512(v[14]); + v[10] = add_512(v[10], v[15]); + v[11] = add_512(v[11], v[12]); + v[8] = add_512(v[8], v[13]); + v[9] = add_512(v[9], v[14]); + v[5] = xor_512(v[5], v[10]); + v[6] = xor_512(v[6], v[11]); + v[7] = xor_512(v[7], v[8]); + v[4] = xor_512(v[4], v[9]); + v[5] = rot7_512(v[5]); + v[6] = rot7_512(v[6]); + v[7] = rot7_512(v[7]); + v[4] = rot7_512(v[4]); +} + +// 0b10001000, or lanes a0/a2/b0/b2 in little-endian order +#define LO_IMM8 0x88 + +INLINE __m512i unpack_lo_128(__m512i a, __m512i b) { + return _mm512_shuffle_i32x4(a, b, LO_IMM8); +} + +// 0b11011101, or lanes a1/a3/b1/b3 in little-endian order +#define HI_IMM8 0xdd + +INLINE __m512i unpack_hi_128(__m512i a, __m512i b) { + return _mm512_shuffle_i32x4(a, b, HI_IMM8); +} + +INLINE void transpose_vecs_512(__m512i vecs[16]) { + // Interleave 32-bit lanes. The _0 unpack is lanes + // 0/0/1/1/4/4/5/5/8/8/9/9/12/12/13/13, and the _2 unpack is lanes + // 2/2/3/3/6/6/7/7/10/10/11/11/14/14/15/15. + __m512i ab_0 = _mm512_unpacklo_epi32(vecs[0], vecs[1]); + __m512i ab_2 = _mm512_unpackhi_epi32(vecs[0], vecs[1]); + __m512i cd_0 = _mm512_unpacklo_epi32(vecs[2], vecs[3]); + __m512i cd_2 = _mm512_unpackhi_epi32(vecs[2], vecs[3]); + __m512i ef_0 = _mm512_unpacklo_epi32(vecs[4], vecs[5]); + __m512i ef_2 = _mm512_unpackhi_epi32(vecs[4], vecs[5]); + __m512i gh_0 = _mm512_unpacklo_epi32(vecs[6], vecs[7]); + __m512i gh_2 = _mm512_unpackhi_epi32(vecs[6], vecs[7]); + __m512i ij_0 = _mm512_unpacklo_epi32(vecs[8], vecs[9]); + __m512i ij_2 = _mm512_unpackhi_epi32(vecs[8], vecs[9]); + __m512i kl_0 = _mm512_unpacklo_epi32(vecs[10], vecs[11]); + __m512i kl_2 = _mm512_unpackhi_epi32(vecs[10], vecs[11]); + __m512i mn_0 = _mm512_unpacklo_epi32(vecs[12], vecs[13]); + __m512i mn_2 = _mm512_unpackhi_epi32(vecs[12], vecs[13]); + __m512i op_0 = _mm512_unpacklo_epi32(vecs[14], vecs[15]); + __m512i op_2 = _mm512_unpackhi_epi32(vecs[14], vecs[15]); + + // Interleave 64-bit lanes. The _0 unpack is lanes + // 0/0/0/0/4/4/4/4/8/8/8/8/12/12/12/12, the _1 unpack is lanes + // 1/1/1/1/5/5/5/5/9/9/9/9/13/13/13/13, the _2 unpack is lanes + // 2/2/2/2/6/6/6/6/10/10/10/10/14/14/14/14, and the _3 unpack is lanes + // 3/3/3/3/7/7/7/7/11/11/11/11/15/15/15/15. + __m512i abcd_0 = _mm512_unpacklo_epi64(ab_0, cd_0); + __m512i abcd_1 = _mm512_unpackhi_epi64(ab_0, cd_0); + __m512i abcd_2 = _mm512_unpacklo_epi64(ab_2, cd_2); + __m512i abcd_3 = _mm512_unpackhi_epi64(ab_2, cd_2); + __m512i efgh_0 = _mm512_unpacklo_epi64(ef_0, gh_0); + __m512i efgh_1 = _mm512_unpackhi_epi64(ef_0, gh_0); + __m512i efgh_2 = _mm512_unpacklo_epi64(ef_2, gh_2); + __m512i efgh_3 = _mm512_unpackhi_epi64(ef_2, gh_2); + __m512i ijkl_0 = _mm512_unpacklo_epi64(ij_0, kl_0); + __m512i ijkl_1 = _mm512_unpackhi_epi64(ij_0, kl_0); + __m512i ijkl_2 = _mm512_unpacklo_epi64(ij_2, kl_2); + __m512i ijkl_3 = _mm512_unpackhi_epi64(ij_2, kl_2); + __m512i mnop_0 = _mm512_unpacklo_epi64(mn_0, op_0); + __m512i mnop_1 = _mm512_unpackhi_epi64(mn_0, op_0); + __m512i mnop_2 = _mm512_unpacklo_epi64(mn_2, op_2); + __m512i mnop_3 = _mm512_unpackhi_epi64(mn_2, op_2); + + // Interleave 128-bit lanes. The _0 unpack is + // 0/0/0/0/8/8/8/8/0/0/0/0/8/8/8/8, the _1 unpack is + // 1/1/1/1/9/9/9/9/1/1/1/1/9/9/9/9, and so on. + __m512i abcdefgh_0 = unpack_lo_128(abcd_0, efgh_0); + __m512i abcdefgh_1 = unpack_lo_128(abcd_1, efgh_1); + __m512i abcdefgh_2 = unpack_lo_128(abcd_2, efgh_2); + __m512i abcdefgh_3 = unpack_lo_128(abcd_3, efgh_3); + __m512i abcdefgh_4 = unpack_hi_128(abcd_0, efgh_0); + __m512i abcdefgh_5 = unpack_hi_128(abcd_1, efgh_1); + __m512i abcdefgh_6 = unpack_hi_128(abcd_2, efgh_2); + __m512i abcdefgh_7 = unpack_hi_128(abcd_3, efgh_3); + __m512i ijklmnop_0 = unpack_lo_128(ijkl_0, mnop_0); + __m512i ijklmnop_1 = unpack_lo_128(ijkl_1, mnop_1); + __m512i ijklmnop_2 = unpack_lo_128(ijkl_2, mnop_2); + __m512i ijklmnop_3 = unpack_lo_128(ijkl_3, mnop_3); + __m512i ijklmnop_4 = unpack_hi_128(ijkl_0, mnop_0); + __m512i ijklmnop_5 = unpack_hi_128(ijkl_1, mnop_1); + __m512i ijklmnop_6 = unpack_hi_128(ijkl_2, mnop_2); + __m512i ijklmnop_7 = unpack_hi_128(ijkl_3, mnop_3); + + // Interleave 128-bit lanes again for the final outputs. + vecs[0] = unpack_lo_128(abcdefgh_0, ijklmnop_0); + vecs[1] = unpack_lo_128(abcdefgh_1, ijklmnop_1); + vecs[2] = unpack_lo_128(abcdefgh_2, ijklmnop_2); + vecs[3] = unpack_lo_128(abcdefgh_3, ijklmnop_3); + vecs[4] = unpack_lo_128(abcdefgh_4, ijklmnop_4); + vecs[5] = unpack_lo_128(abcdefgh_5, ijklmnop_5); + vecs[6] = unpack_lo_128(abcdefgh_6, ijklmnop_6); + vecs[7] = unpack_lo_128(abcdefgh_7, ijklmnop_7); + vecs[8] = unpack_hi_128(abcdefgh_0, ijklmnop_0); + vecs[9] = unpack_hi_128(abcdefgh_1, ijklmnop_1); + vecs[10] = unpack_hi_128(abcdefgh_2, ijklmnop_2); + vecs[11] = unpack_hi_128(abcdefgh_3, ijklmnop_3); + vecs[12] = unpack_hi_128(abcdefgh_4, ijklmnop_4); + vecs[13] = unpack_hi_128(abcdefgh_5, ijklmnop_5); + vecs[14] = unpack_hi_128(abcdefgh_6, ijklmnop_6); + vecs[15] = unpack_hi_128(abcdefgh_7, ijklmnop_7); +} + +INLINE void transpose_msg_vecs16(const uint8_t *const *inputs, + size_t block_offset, __m512i out[16]) { + out[0] = loadu_512(&inputs[0][block_offset]); + out[1] = loadu_512(&inputs[1][block_offset]); + out[2] = loadu_512(&inputs[2][block_offset]); + out[3] = loadu_512(&inputs[3][block_offset]); + out[4] = loadu_512(&inputs[4][block_offset]); + out[5] = loadu_512(&inputs[5][block_offset]); + out[6] = loadu_512(&inputs[6][block_offset]); + out[7] = loadu_512(&inputs[7][block_offset]); + out[8] = loadu_512(&inputs[8][block_offset]); + out[9] = loadu_512(&inputs[9][block_offset]); + out[10] = loadu_512(&inputs[10][block_offset]); + out[11] = loadu_512(&inputs[11][block_offset]); + out[12] = loadu_512(&inputs[12][block_offset]); + out[13] = loadu_512(&inputs[13][block_offset]); + out[14] = loadu_512(&inputs[14][block_offset]); + out[15] = loadu_512(&inputs[15][block_offset]); + for (size_t i = 0; i < 16; ++i) { + _mm_prefetch((const void *)&inputs[i][block_offset + 256], _MM_HINT_T0); + } + transpose_vecs_512(out); +} + +INLINE void load_counters16(uint64_t counter, bool increment_counter, + __m512i *out_lo, __m512i *out_hi) { + const __m512i mask = _mm512_set1_epi32(-(int32_t)increment_counter); + const __m512i deltas = _mm512_set_epi32(15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0); + const __m512i masked_deltas = _mm512_and_si512(deltas, mask); + const __m512i low_words = _mm512_add_epi32( + _mm512_set1_epi32((int32_t)counter), + masked_deltas); + // The carry bit is 1 if the high bit of the word was 1 before addition and is + // 0 after. + // NOTE: It would be a bit more natural to use _mm512_cmp_epu32_mask to + // compute the carry bits here, and originally we did, but that intrinsic is + // broken under GCC 5.4. See https://github.com/BLAKE3-team/BLAKE3/issues/271. + const __m512i carries = _mm512_srli_epi32( + _mm512_andnot_si512( + low_words, // 0 after (gets inverted by andnot) + _mm512_set1_epi32((int32_t)counter)), // and 1 before + 31); + const __m512i high_words = _mm512_add_epi32( + _mm512_set1_epi32((int32_t)(counter >> 32)), + carries); + *out_lo = low_words; + *out_hi = high_words; +} + +static +void blake3_hash16_avx512(const uint8_t *const *inputs, size_t blocks, + const uint32_t key[8], uint64_t counter, + bool increment_counter, uint8_t flags, + uint8_t flags_start, uint8_t flags_end, + uint8_t *out) { + __m512i h_vecs[8] = { + set1_512(key[0]), set1_512(key[1]), set1_512(key[2]), set1_512(key[3]), + set1_512(key[4]), set1_512(key[5]), set1_512(key[6]), set1_512(key[7]), + }; + __m512i counter_low_vec, counter_high_vec; + load_counters16(counter, increment_counter, &counter_low_vec, + &counter_high_vec); + uint8_t block_flags = flags | flags_start; + + for (size_t block = 0; block < blocks; block++) { + if (block + 1 == blocks) { + block_flags |= flags_end; + } + __m512i block_len_vec = set1_512(BLAKE3_BLOCK_LEN); + __m512i block_flags_vec = set1_512(block_flags); + __m512i msg_vecs[16]; + transpose_msg_vecs16(inputs, block * BLAKE3_BLOCK_LEN, msg_vecs); + + __m512i v[16] = { + h_vecs[0], h_vecs[1], h_vecs[2], h_vecs[3], + h_vecs[4], h_vecs[5], h_vecs[6], h_vecs[7], + set1_512(B3_IV_0), set1_512(B3_IV_1), set1_512(B3_IV_2), set1_512(B3_IV_3), + counter_low_vec, counter_high_vec, block_len_vec, block_flags_vec, + }; + round_fn16(v, msg_vecs, 0); + round_fn16(v, msg_vecs, 1); + round_fn16(v, msg_vecs, 2); + round_fn16(v, msg_vecs, 3); + round_fn16(v, msg_vecs, 4); + round_fn16(v, msg_vecs, 5); + round_fn16(v, msg_vecs, 6); + h_vecs[0] = xor_512(v[0], v[8]); + h_vecs[1] = xor_512(v[1], v[9]); + h_vecs[2] = xor_512(v[2], v[10]); + h_vecs[3] = xor_512(v[3], v[11]); + h_vecs[4] = xor_512(v[4], v[12]); + h_vecs[5] = xor_512(v[5], v[13]); + h_vecs[6] = xor_512(v[6], v[14]); + h_vecs[7] = xor_512(v[7], v[15]); + + block_flags = flags; + } + + // transpose_vecs_512 operates on a 16x16 matrix of words, but we only have 8 + // state vectors. Pad the matrix with zeros. After transposition, store the + // lower half of each vector. + __m512i padded[16] = { + h_vecs[0], h_vecs[1], h_vecs[2], h_vecs[3], + h_vecs[4], h_vecs[5], h_vecs[6], h_vecs[7], + set1_512(0), set1_512(0), set1_512(0), set1_512(0), + set1_512(0), set1_512(0), set1_512(0), set1_512(0), + }; + transpose_vecs_512(padded); + _mm256_mask_storeu_epi32(&out[0 * sizeof(__m256i)], (__mmask8)-1, _mm512_castsi512_si256(padded[0])); + _mm256_mask_storeu_epi32(&out[1 * sizeof(__m256i)], (__mmask8)-1, _mm512_castsi512_si256(padded[1])); + _mm256_mask_storeu_epi32(&out[2 * sizeof(__m256i)], (__mmask8)-1, _mm512_castsi512_si256(padded[2])); + _mm256_mask_storeu_epi32(&out[3 * sizeof(__m256i)], (__mmask8)-1, _mm512_castsi512_si256(padded[3])); + _mm256_mask_storeu_epi32(&out[4 * sizeof(__m256i)], (__mmask8)-1, _mm512_castsi512_si256(padded[4])); + _mm256_mask_storeu_epi32(&out[5 * sizeof(__m256i)], (__mmask8)-1, _mm512_castsi512_si256(padded[5])); + _mm256_mask_storeu_epi32(&out[6 * sizeof(__m256i)], (__mmask8)-1, _mm512_castsi512_si256(padded[6])); + _mm256_mask_storeu_epi32(&out[7 * sizeof(__m256i)], (__mmask8)-1, _mm512_castsi512_si256(padded[7])); + _mm256_mask_storeu_epi32(&out[8 * sizeof(__m256i)], (__mmask8)-1, _mm512_castsi512_si256(padded[8])); + _mm256_mask_storeu_epi32(&out[9 * sizeof(__m256i)], (__mmask8)-1, _mm512_castsi512_si256(padded[9])); + _mm256_mask_storeu_epi32(&out[10 * sizeof(__m256i)], (__mmask8)-1, _mm512_castsi512_si256(padded[10])); + _mm256_mask_storeu_epi32(&out[11 * sizeof(__m256i)], (__mmask8)-1, _mm512_castsi512_si256(padded[11])); + _mm256_mask_storeu_epi32(&out[12 * sizeof(__m256i)], (__mmask8)-1, _mm512_castsi512_si256(padded[12])); + _mm256_mask_storeu_epi32(&out[13 * sizeof(__m256i)], (__mmask8)-1, _mm512_castsi512_si256(padded[13])); + _mm256_mask_storeu_epi32(&out[14 * sizeof(__m256i)], (__mmask8)-1, _mm512_castsi512_si256(padded[14])); + _mm256_mask_storeu_epi32(&out[15 * sizeof(__m256i)], (__mmask8)-1, _mm512_castsi512_si256(padded[15])); +} + +/* + * ---------------------------------------------------------------------------- + * hash_many_avx512 + * ---------------------------------------------------------------------------- + */ + +INLINE void hash_one_avx512(const uint8_t *input, size_t blocks, + const uint32_t key[8], uint64_t counter, + uint8_t flags, uint8_t flags_start, + uint8_t flags_end, uint8_t out[BLAKE3_OUT_LEN]) { + uint32_t cv[8]; + memcpy(cv, key, BLAKE3_KEY_LEN); + uint8_t block_flags = flags | flags_start; + while (blocks > 0) { + if (blocks == 1) { + block_flags |= flags_end; + } + blake3_compress_in_place_avx512(cv, input, BLAKE3_BLOCK_LEN, counter, + block_flags); + input = &input[BLAKE3_BLOCK_LEN]; + blocks -= 1; + block_flags = flags; + } + memcpy(out, cv, BLAKE3_OUT_LEN); +} + +void blake3_hash_many_avx512(const uint8_t *const *inputs, size_t num_inputs, + size_t blocks, const uint32_t key[8], + uint64_t counter, bool increment_counter, + uint8_t flags, uint8_t flags_start, + uint8_t flags_end, uint8_t *out) { + while (num_inputs >= 16) { + blake3_hash16_avx512(inputs, blocks, key, counter, increment_counter, flags, + flags_start, flags_end, out); + if (increment_counter) { + counter += 16; + } + inputs += 16; + num_inputs -= 16; + out = &out[16 * BLAKE3_OUT_LEN]; + } + while (num_inputs >= 8) { + blake3_hash8_avx512(inputs, blocks, key, counter, increment_counter, flags, + flags_start, flags_end, out); + if (increment_counter) { + counter += 8; + } + inputs += 8; + num_inputs -= 8; + out = &out[8 * BLAKE3_OUT_LEN]; + } + while (num_inputs >= 4) { + blake3_hash4_avx512(inputs, blocks, key, counter, increment_counter, flags, + flags_start, flags_end, out); + if (increment_counter) { + counter += 4; + } + inputs += 4; + num_inputs -= 4; + out = &out[4 * BLAKE3_OUT_LEN]; + } + while (num_inputs > 0) { + hash_one_avx512(inputs[0], blocks, key, counter, flags, flags_start, + flags_end, out); + if (increment_counter) { + counter += 1; + } + inputs += 1; + num_inputs -= 1; + out = &out[BLAKE3_OUT_LEN]; + } +} diff --git a/Sources/Cfyaml/src/blake3/blake3_avx512_x86-64_unix.S b/Sources/Cfyaml/src/blake3/blake3_avx512_x86-64_unix.S new file mode 100644 index 000000000..4286f7632 --- /dev/null +++ b/Sources/Cfyaml/src/blake3/blake3_avx512_x86-64_unix.S @@ -0,0 +1,2585 @@ +#if defined(__ELF__) && defined(__linux__) +.section .note.GNU-stack,"",%progbits +#endif + +#if defined(__ELF__) && defined(__CET__) && defined(__has_include) +#if __has_include() +#include +#endif +#endif + +#if !defined(_CET_ENDBR) +#define _CET_ENDBR +#endif + +.intel_syntax noprefix +.global _blake3_hash_many_avx512_asm +.global blake3_hash_many_avx512_asm +.global blake3_compress_in_place_avx512_asm +.global _blake3_compress_in_place_avx512_asm +.global blake3_compress_xof_avx512_asm +.global _blake3_compress_xof_avx512_asm + +#ifdef __APPLE__ +.text +#else +.section .text +#endif +.p2align 6 +_blake3_hash_many_avx512_asm: +blake3_hash_many_avx512_asm: + _CET_ENDBR + push r15 + push r14 + push r13 + push r12 + push rbx + push rbp + mov rbp, rsp + sub rsp, 144 + and rsp, 0xFFFFFFFFFFFFFFC0 + neg r9 + kmovw k1, r9d + vmovd xmm0, r8d + vpbroadcastd ymm0, xmm0 + shr r8, 32 + vmovd xmm1, r8d + vpbroadcastd ymm1, xmm1 + vmovdqa ymm4, ymm1 + vmovdqa ymm5, ymm1 + vpaddd ymm2, ymm0, ymmword ptr [ADD0+rip] + vpaddd ymm3, ymm0, ymmword ptr [ADD0+32+rip] + vpcmpltud k2, ymm2, ymm0 + vpcmpltud k3, ymm3, ymm0 + vpaddd ymm4 {k2}, ymm4, dword ptr [ADD1+rip] {1to8} + vpaddd ymm5 {k3}, ymm5, dword ptr [ADD1+rip] {1to8} + knotw k2, k1 + vmovdqa32 ymm2 {k2}, ymm0 + vmovdqa32 ymm3 {k2}, ymm0 + vmovdqa32 ymm4 {k2}, ymm1 + vmovdqa32 ymm5 {k2}, ymm1 + vmovdqa ymmword ptr [rsp], ymm2 + vmovdqa ymmword ptr [rsp+0x1*0x20], ymm3 + vmovdqa ymmword ptr [rsp+0x2*0x20], ymm4 + vmovdqa ymmword ptr [rsp+0x3*0x20], ymm5 + shl rdx, 6 + mov qword ptr [rsp+0x80], rdx + cmp rsi, 16 + jc 3f +2: + vpbroadcastd zmm0, dword ptr [rcx] + vpbroadcastd zmm1, dword ptr [rcx+0x1*0x4] + vpbroadcastd zmm2, dword ptr [rcx+0x2*0x4] + vpbroadcastd zmm3, dword ptr [rcx+0x3*0x4] + vpbroadcastd zmm4, dword ptr [rcx+0x4*0x4] + vpbroadcastd zmm5, dword ptr [rcx+0x5*0x4] + vpbroadcastd zmm6, dword ptr [rcx+0x6*0x4] + vpbroadcastd zmm7, dword ptr [rcx+0x7*0x4] + movzx eax, byte ptr [rbp+0x38] + movzx ebx, byte ptr [rbp+0x40] + or eax, ebx + xor edx, edx +.p2align 5 +9: + movzx ebx, byte ptr [rbp+0x48] + or ebx, eax + add rdx, 64 + cmp rdx, qword ptr [rsp+0x80] + cmove eax, ebx + mov dword ptr [rsp+0x88], eax + mov r8, qword ptr [rdi] + mov r9, qword ptr [rdi+0x8] + mov r10, qword ptr [rdi+0x10] + mov r11, qword ptr [rdi+0x18] + mov r12, qword ptr [rdi+0x40] + mov r13, qword ptr [rdi+0x48] + mov r14, qword ptr [rdi+0x50] + mov r15, qword ptr [rdi+0x58] + vmovdqu32 ymm16, ymmword ptr [rdx+r8-0x2*0x20] + vinserti64x4 zmm16, zmm16, ymmword ptr [rdx+r12-0x2*0x20], 0x01 + vmovdqu32 ymm17, ymmword ptr [rdx+r9-0x2*0x20] + vinserti64x4 zmm17, zmm17, ymmword ptr [rdx+r13-0x2*0x20], 0x01 + vpunpcklqdq zmm8, zmm16, zmm17 + vpunpckhqdq zmm9, zmm16, zmm17 + vmovdqu32 ymm18, ymmword ptr [rdx+r10-0x2*0x20] + vinserti64x4 zmm18, zmm18, ymmword ptr [rdx+r14-0x2*0x20], 0x01 + vmovdqu32 ymm19, ymmword ptr [rdx+r11-0x2*0x20] + vinserti64x4 zmm19, zmm19, ymmword ptr [rdx+r15-0x2*0x20], 0x01 + vpunpcklqdq zmm10, zmm18, zmm19 + vpunpckhqdq zmm11, zmm18, zmm19 + mov r8, qword ptr [rdi+0x20] + mov r9, qword ptr [rdi+0x28] + mov r10, qword ptr [rdi+0x30] + mov r11, qword ptr [rdi+0x38] + mov r12, qword ptr [rdi+0x60] + mov r13, qword ptr [rdi+0x68] + mov r14, qword ptr [rdi+0x70] + mov r15, qword ptr [rdi+0x78] + vmovdqu32 ymm16, ymmword ptr [rdx+r8-0x2*0x20] + vinserti64x4 zmm16, zmm16, ymmword ptr [rdx+r12-0x2*0x20], 0x01 + vmovdqu32 ymm17, ymmword ptr [rdx+r9-0x2*0x20] + vinserti64x4 zmm17, zmm17, ymmword ptr [rdx+r13-0x2*0x20], 0x01 + vpunpcklqdq zmm12, zmm16, zmm17 + vpunpckhqdq zmm13, zmm16, zmm17 + vmovdqu32 ymm18, ymmword ptr [rdx+r10-0x2*0x20] + vinserti64x4 zmm18, zmm18, ymmword ptr [rdx+r14-0x2*0x20], 0x01 + vmovdqu32 ymm19, ymmword ptr [rdx+r11-0x2*0x20] + vinserti64x4 zmm19, zmm19, ymmword ptr [rdx+r15-0x2*0x20], 0x01 + vpunpcklqdq zmm14, zmm18, zmm19 + vpunpckhqdq zmm15, zmm18, zmm19 + vmovdqa32 zmm27, zmmword ptr [INDEX0+rip] + vmovdqa32 zmm31, zmmword ptr [INDEX1+rip] + vshufps zmm16, zmm8, zmm10, 136 + vshufps zmm17, zmm12, zmm14, 136 + vmovdqa32 zmm20, zmm16 + vpermt2d zmm16, zmm27, zmm17 + vpermt2d zmm20, zmm31, zmm17 + vshufps zmm17, zmm8, zmm10, 221 + vshufps zmm30, zmm12, zmm14, 221 + vmovdqa32 zmm21, zmm17 + vpermt2d zmm17, zmm27, zmm30 + vpermt2d zmm21, zmm31, zmm30 + vshufps zmm18, zmm9, zmm11, 136 + vshufps zmm8, zmm13, zmm15, 136 + vmovdqa32 zmm22, zmm18 + vpermt2d zmm18, zmm27, zmm8 + vpermt2d zmm22, zmm31, zmm8 + vshufps zmm19, zmm9, zmm11, 221 + vshufps zmm8, zmm13, zmm15, 221 + vmovdqa32 zmm23, zmm19 + vpermt2d zmm19, zmm27, zmm8 + vpermt2d zmm23, zmm31, zmm8 + mov r8, qword ptr [rdi] + mov r9, qword ptr [rdi+0x8] + mov r10, qword ptr [rdi+0x10] + mov r11, qword ptr [rdi+0x18] + mov r12, qword ptr [rdi+0x40] + mov r13, qword ptr [rdi+0x48] + mov r14, qword ptr [rdi+0x50] + mov r15, qword ptr [rdi+0x58] + vmovdqu32 ymm24, ymmword ptr [r8+rdx-0x1*0x20] + vinserti64x4 zmm24, zmm24, ymmword ptr [r12+rdx-0x1*0x20], 0x01 + vmovdqu32 ymm25, ymmword ptr [r9+rdx-0x1*0x20] + vinserti64x4 zmm25, zmm25, ymmword ptr [r13+rdx-0x1*0x20], 0x01 + vpunpcklqdq zmm8, zmm24, zmm25 + vpunpckhqdq zmm9, zmm24, zmm25 + vmovdqu32 ymm24, ymmword ptr [r10+rdx-0x1*0x20] + vinserti64x4 zmm24, zmm24, ymmword ptr [r14+rdx-0x1*0x20], 0x01 + vmovdqu32 ymm25, ymmword ptr [r11+rdx-0x1*0x20] + vinserti64x4 zmm25, zmm25, ymmword ptr [r15+rdx-0x1*0x20], 0x01 + vpunpcklqdq zmm10, zmm24, zmm25 + vpunpckhqdq zmm11, zmm24, zmm25 + prefetcht0 [r8+rdx+0x80] + prefetcht0 [r12+rdx+0x80] + prefetcht0 [r9+rdx+0x80] + prefetcht0 [r13+rdx+0x80] + prefetcht0 [r10+rdx+0x80] + prefetcht0 [r14+rdx+0x80] + prefetcht0 [r11+rdx+0x80] + prefetcht0 [r15+rdx+0x80] + mov r8, qword ptr [rdi+0x20] + mov r9, qword ptr [rdi+0x28] + mov r10, qword ptr [rdi+0x30] + mov r11, qword ptr [rdi+0x38] + mov r12, qword ptr [rdi+0x60] + mov r13, qword ptr [rdi+0x68] + mov r14, qword ptr [rdi+0x70] + mov r15, qword ptr [rdi+0x78] + vmovdqu32 ymm24, ymmword ptr [r8+rdx-0x1*0x20] + vinserti64x4 zmm24, zmm24, ymmword ptr [r12+rdx-0x1*0x20], 0x01 + vmovdqu32 ymm25, ymmword ptr [r9+rdx-0x1*0x20] + vinserti64x4 zmm25, zmm25, ymmword ptr [r13+rdx-0x1*0x20], 0x01 + vpunpcklqdq zmm12, zmm24, zmm25 + vpunpckhqdq zmm13, zmm24, zmm25 + vmovdqu32 ymm24, ymmword ptr [r10+rdx-0x1*0x20] + vinserti64x4 zmm24, zmm24, ymmword ptr [r14+rdx-0x1*0x20], 0x01 + vmovdqu32 ymm25, ymmword ptr [r11+rdx-0x1*0x20] + vinserti64x4 zmm25, zmm25, ymmword ptr [r15+rdx-0x1*0x20], 0x01 + vpunpcklqdq zmm14, zmm24, zmm25 + vpunpckhqdq zmm15, zmm24, zmm25 + prefetcht0 [r8+rdx+0x80] + prefetcht0 [r12+rdx+0x80] + prefetcht0 [r9+rdx+0x80] + prefetcht0 [r13+rdx+0x80] + prefetcht0 [r10+rdx+0x80] + prefetcht0 [r14+rdx+0x80] + prefetcht0 [r11+rdx+0x80] + prefetcht0 [r15+rdx+0x80] + vshufps zmm24, zmm8, zmm10, 136 + vshufps zmm30, zmm12, zmm14, 136 + vmovdqa32 zmm28, zmm24 + vpermt2d zmm24, zmm27, zmm30 + vpermt2d zmm28, zmm31, zmm30 + vshufps zmm25, zmm8, zmm10, 221 + vshufps zmm30, zmm12, zmm14, 221 + vmovdqa32 zmm29, zmm25 + vpermt2d zmm25, zmm27, zmm30 + vpermt2d zmm29, zmm31, zmm30 + vshufps zmm26, zmm9, zmm11, 136 + vshufps zmm8, zmm13, zmm15, 136 + vmovdqa32 zmm30, zmm26 + vpermt2d zmm26, zmm27, zmm8 + vpermt2d zmm30, zmm31, zmm8 + vshufps zmm8, zmm9, zmm11, 221 + vshufps zmm10, zmm13, zmm15, 221 + vpermi2d zmm27, zmm8, zmm10 + vpermi2d zmm31, zmm8, zmm10 + vpbroadcastd zmm8, dword ptr [BLAKE3_IV_0+rip] + vpbroadcastd zmm9, dword ptr [BLAKE3_IV_1+rip] + vpbroadcastd zmm10, dword ptr [BLAKE3_IV_2+rip] + vpbroadcastd zmm11, dword ptr [BLAKE3_IV_3+rip] + vmovdqa32 zmm12, zmmword ptr [rsp] + vmovdqa32 zmm13, zmmword ptr [rsp+0x1*0x40] + vpbroadcastd zmm14, dword ptr [BLAKE3_BLOCK_LEN+rip] + vpbroadcastd zmm15, dword ptr [rsp+0x22*0x4] + vpaddd zmm0, zmm0, zmm16 + vpaddd zmm1, zmm1, zmm18 + vpaddd zmm2, zmm2, zmm20 + vpaddd zmm3, zmm3, zmm22 + vpaddd zmm0, zmm0, zmm4 + vpaddd zmm1, zmm1, zmm5 + vpaddd zmm2, zmm2, zmm6 + vpaddd zmm3, zmm3, zmm7 + vpxord zmm12, zmm12, zmm0 + vpxord zmm13, zmm13, zmm1 + vpxord zmm14, zmm14, zmm2 + vpxord zmm15, zmm15, zmm3 + vprord zmm12, zmm12, 16 + vprord zmm13, zmm13, 16 + vprord zmm14, zmm14, 16 + vprord zmm15, zmm15, 16 + vpaddd zmm8, zmm8, zmm12 + vpaddd zmm9, zmm9, zmm13 + vpaddd zmm10, zmm10, zmm14 + vpaddd zmm11, zmm11, zmm15 + vpxord zmm4, zmm4, zmm8 + vpxord zmm5, zmm5, zmm9 + vpxord zmm6, zmm6, zmm10 + vpxord zmm7, zmm7, zmm11 + vprord zmm4, zmm4, 12 + vprord zmm5, zmm5, 12 + vprord zmm6, zmm6, 12 + vprord zmm7, zmm7, 12 + vpaddd zmm0, zmm0, zmm17 + vpaddd zmm1, zmm1, zmm19 + vpaddd zmm2, zmm2, zmm21 + vpaddd zmm3, zmm3, zmm23 + vpaddd zmm0, zmm0, zmm4 + vpaddd zmm1, zmm1, zmm5 + vpaddd zmm2, zmm2, zmm6 + vpaddd zmm3, zmm3, zmm7 + vpxord zmm12, zmm12, zmm0 + vpxord zmm13, zmm13, zmm1 + vpxord zmm14, zmm14, zmm2 + vpxord zmm15, zmm15, zmm3 + vprord zmm12, zmm12, 8 + vprord zmm13, zmm13, 8 + vprord zmm14, zmm14, 8 + vprord zmm15, zmm15, 8 + vpaddd zmm8, zmm8, zmm12 + vpaddd zmm9, zmm9, zmm13 + vpaddd zmm10, zmm10, zmm14 + vpaddd zmm11, zmm11, zmm15 + vpxord zmm4, zmm4, zmm8 + vpxord zmm5, zmm5, zmm9 + vpxord zmm6, zmm6, zmm10 + vpxord zmm7, zmm7, zmm11 + vprord zmm4, zmm4, 7 + vprord zmm5, zmm5, 7 + vprord zmm6, zmm6, 7 + vprord zmm7, zmm7, 7 + vpaddd zmm0, zmm0, zmm24 + vpaddd zmm1, zmm1, zmm26 + vpaddd zmm2, zmm2, zmm28 + vpaddd zmm3, zmm3, zmm30 + vpaddd zmm0, zmm0, zmm5 + vpaddd zmm1, zmm1, zmm6 + vpaddd zmm2, zmm2, zmm7 + vpaddd zmm3, zmm3, zmm4 + vpxord zmm15, zmm15, zmm0 + vpxord zmm12, zmm12, zmm1 + vpxord zmm13, zmm13, zmm2 + vpxord zmm14, zmm14, zmm3 + vprord zmm15, zmm15, 16 + vprord zmm12, zmm12, 16 + vprord zmm13, zmm13, 16 + vprord zmm14, zmm14, 16 + vpaddd zmm10, zmm10, zmm15 + vpaddd zmm11, zmm11, zmm12 + vpaddd zmm8, zmm8, zmm13 + vpaddd zmm9, zmm9, zmm14 + vpxord zmm5, zmm5, zmm10 + vpxord zmm6, zmm6, zmm11 + vpxord zmm7, zmm7, zmm8 + vpxord zmm4, zmm4, zmm9 + vprord zmm5, zmm5, 12 + vprord zmm6, zmm6, 12 + vprord zmm7, zmm7, 12 + vprord zmm4, zmm4, 12 + vpaddd zmm0, zmm0, zmm25 + vpaddd zmm1, zmm1, zmm27 + vpaddd zmm2, zmm2, zmm29 + vpaddd zmm3, zmm3, zmm31 + vpaddd zmm0, zmm0, zmm5 + vpaddd zmm1, zmm1, zmm6 + vpaddd zmm2, zmm2, zmm7 + vpaddd zmm3, zmm3, zmm4 + vpxord zmm15, zmm15, zmm0 + vpxord zmm12, zmm12, zmm1 + vpxord zmm13, zmm13, zmm2 + vpxord zmm14, zmm14, zmm3 + vprord zmm15, zmm15, 8 + vprord zmm12, zmm12, 8 + vprord zmm13, zmm13, 8 + vprord zmm14, zmm14, 8 + vpaddd zmm10, zmm10, zmm15 + vpaddd zmm11, zmm11, zmm12 + vpaddd zmm8, zmm8, zmm13 + vpaddd zmm9, zmm9, zmm14 + vpxord zmm5, zmm5, zmm10 + vpxord zmm6, zmm6, zmm11 + vpxord zmm7, zmm7, zmm8 + vpxord zmm4, zmm4, zmm9 + vprord zmm5, zmm5, 7 + vprord zmm6, zmm6, 7 + vprord zmm7, zmm7, 7 + vprord zmm4, zmm4, 7 + vpaddd zmm0, zmm0, zmm18 + vpaddd zmm1, zmm1, zmm19 + vpaddd zmm2, zmm2, zmm23 + vpaddd zmm3, zmm3, zmm20 + vpaddd zmm0, zmm0, zmm4 + vpaddd zmm1, zmm1, zmm5 + vpaddd zmm2, zmm2, zmm6 + vpaddd zmm3, zmm3, zmm7 + vpxord zmm12, zmm12, zmm0 + vpxord zmm13, zmm13, zmm1 + vpxord zmm14, zmm14, zmm2 + vpxord zmm15, zmm15, zmm3 + vprord zmm12, zmm12, 16 + vprord zmm13, zmm13, 16 + vprord zmm14, zmm14, 16 + vprord zmm15, zmm15, 16 + vpaddd zmm8, zmm8, zmm12 + vpaddd zmm9, zmm9, zmm13 + vpaddd zmm10, zmm10, zmm14 + vpaddd zmm11, zmm11, zmm15 + vpxord zmm4, zmm4, zmm8 + vpxord zmm5, zmm5, zmm9 + vpxord zmm6, zmm6, zmm10 + vpxord zmm7, zmm7, zmm11 + vprord zmm4, zmm4, 12 + vprord zmm5, zmm5, 12 + vprord zmm6, zmm6, 12 + vprord zmm7, zmm7, 12 + vpaddd zmm0, zmm0, zmm22 + vpaddd zmm1, zmm1, zmm26 + vpaddd zmm2, zmm2, zmm16 + vpaddd zmm3, zmm3, zmm29 + vpaddd zmm0, zmm0, zmm4 + vpaddd zmm1, zmm1, zmm5 + vpaddd zmm2, zmm2, zmm6 + vpaddd zmm3, zmm3, zmm7 + vpxord zmm12, zmm12, zmm0 + vpxord zmm13, zmm13, zmm1 + vpxord zmm14, zmm14, zmm2 + vpxord zmm15, zmm15, zmm3 + vprord zmm12, zmm12, 8 + vprord zmm13, zmm13, 8 + vprord zmm14, zmm14, 8 + vprord zmm15, zmm15, 8 + vpaddd zmm8, zmm8, zmm12 + vpaddd zmm9, zmm9, zmm13 + vpaddd zmm10, zmm10, zmm14 + vpaddd zmm11, zmm11, zmm15 + vpxord zmm4, zmm4, zmm8 + vpxord zmm5, zmm5, zmm9 + vpxord zmm6, zmm6, zmm10 + vpxord zmm7, zmm7, zmm11 + vprord zmm4, zmm4, 7 + vprord zmm5, zmm5, 7 + vprord zmm6, zmm6, 7 + vprord zmm7, zmm7, 7 + vpaddd zmm0, zmm0, zmm17 + vpaddd zmm1, zmm1, zmm28 + vpaddd zmm2, zmm2, zmm25 + vpaddd zmm3, zmm3, zmm31 + vpaddd zmm0, zmm0, zmm5 + vpaddd zmm1, zmm1, zmm6 + vpaddd zmm2, zmm2, zmm7 + vpaddd zmm3, zmm3, zmm4 + vpxord zmm15, zmm15, zmm0 + vpxord zmm12, zmm12, zmm1 + vpxord zmm13, zmm13, zmm2 + vpxord zmm14, zmm14, zmm3 + vprord zmm15, zmm15, 16 + vprord zmm12, zmm12, 16 + vprord zmm13, zmm13, 16 + vprord zmm14, zmm14, 16 + vpaddd zmm10, zmm10, zmm15 + vpaddd zmm11, zmm11, zmm12 + vpaddd zmm8, zmm8, zmm13 + vpaddd zmm9, zmm9, zmm14 + vpxord zmm5, zmm5, zmm10 + vpxord zmm6, zmm6, zmm11 + vpxord zmm7, zmm7, zmm8 + vpxord zmm4, zmm4, zmm9 + vprord zmm5, zmm5, 12 + vprord zmm6, zmm6, 12 + vprord zmm7, zmm7, 12 + vprord zmm4, zmm4, 12 + vpaddd zmm0, zmm0, zmm27 + vpaddd zmm1, zmm1, zmm21 + vpaddd zmm2, zmm2, zmm30 + vpaddd zmm3, zmm3, zmm24 + vpaddd zmm0, zmm0, zmm5 + vpaddd zmm1, zmm1, zmm6 + vpaddd zmm2, zmm2, zmm7 + vpaddd zmm3, zmm3, zmm4 + vpxord zmm15, zmm15, zmm0 + vpxord zmm12, zmm12, zmm1 + vpxord zmm13, zmm13, zmm2 + vpxord zmm14, zmm14, zmm3 + vprord zmm15, zmm15, 8 + vprord zmm12, zmm12, 8 + vprord zmm13, zmm13, 8 + vprord zmm14, zmm14, 8 + vpaddd zmm10, zmm10, zmm15 + vpaddd zmm11, zmm11, zmm12 + vpaddd zmm8, zmm8, zmm13 + vpaddd zmm9, zmm9, zmm14 + vpxord zmm5, zmm5, zmm10 + vpxord zmm6, zmm6, zmm11 + vpxord zmm7, zmm7, zmm8 + vpxord zmm4, zmm4, zmm9 + vprord zmm5, zmm5, 7 + vprord zmm6, zmm6, 7 + vprord zmm7, zmm7, 7 + vprord zmm4, zmm4, 7 + vpaddd zmm0, zmm0, zmm19 + vpaddd zmm1, zmm1, zmm26 + vpaddd zmm2, zmm2, zmm29 + vpaddd zmm3, zmm3, zmm23 + vpaddd zmm0, zmm0, zmm4 + vpaddd zmm1, zmm1, zmm5 + vpaddd zmm2, zmm2, zmm6 + vpaddd zmm3, zmm3, zmm7 + vpxord zmm12, zmm12, zmm0 + vpxord zmm13, zmm13, zmm1 + vpxord zmm14, zmm14, zmm2 + vpxord zmm15, zmm15, zmm3 + vprord zmm12, zmm12, 16 + vprord zmm13, zmm13, 16 + vprord zmm14, zmm14, 16 + vprord zmm15, zmm15, 16 + vpaddd zmm8, zmm8, zmm12 + vpaddd zmm9, zmm9, zmm13 + vpaddd zmm10, zmm10, zmm14 + vpaddd zmm11, zmm11, zmm15 + vpxord zmm4, zmm4, zmm8 + vpxord zmm5, zmm5, zmm9 + vpxord zmm6, zmm6, zmm10 + vpxord zmm7, zmm7, zmm11 + vprord zmm4, zmm4, 12 + vprord zmm5, zmm5, 12 + vprord zmm6, zmm6, 12 + vprord zmm7, zmm7, 12 + vpaddd zmm0, zmm0, zmm20 + vpaddd zmm1, zmm1, zmm28 + vpaddd zmm2, zmm2, zmm18 + vpaddd zmm3, zmm3, zmm30 + vpaddd zmm0, zmm0, zmm4 + vpaddd zmm1, zmm1, zmm5 + vpaddd zmm2, zmm2, zmm6 + vpaddd zmm3, zmm3, zmm7 + vpxord zmm12, zmm12, zmm0 + vpxord zmm13, zmm13, zmm1 + vpxord zmm14, zmm14, zmm2 + vpxord zmm15, zmm15, zmm3 + vprord zmm12, zmm12, 8 + vprord zmm13, zmm13, 8 + vprord zmm14, zmm14, 8 + vprord zmm15, zmm15, 8 + vpaddd zmm8, zmm8, zmm12 + vpaddd zmm9, zmm9, zmm13 + vpaddd zmm10, zmm10, zmm14 + vpaddd zmm11, zmm11, zmm15 + vpxord zmm4, zmm4, zmm8 + vpxord zmm5, zmm5, zmm9 + vpxord zmm6, zmm6, zmm10 + vpxord zmm7, zmm7, zmm11 + vprord zmm4, zmm4, 7 + vprord zmm5, zmm5, 7 + vprord zmm6, zmm6, 7 + vprord zmm7, zmm7, 7 + vpaddd zmm0, zmm0, zmm22 + vpaddd zmm1, zmm1, zmm25 + vpaddd zmm2, zmm2, zmm27 + vpaddd zmm3, zmm3, zmm24 + vpaddd zmm0, zmm0, zmm5 + vpaddd zmm1, zmm1, zmm6 + vpaddd zmm2, zmm2, zmm7 + vpaddd zmm3, zmm3, zmm4 + vpxord zmm15, zmm15, zmm0 + vpxord zmm12, zmm12, zmm1 + vpxord zmm13, zmm13, zmm2 + vpxord zmm14, zmm14, zmm3 + vprord zmm15, zmm15, 16 + vprord zmm12, zmm12, 16 + vprord zmm13, zmm13, 16 + vprord zmm14, zmm14, 16 + vpaddd zmm10, zmm10, zmm15 + vpaddd zmm11, zmm11, zmm12 + vpaddd zmm8, zmm8, zmm13 + vpaddd zmm9, zmm9, zmm14 + vpxord zmm5, zmm5, zmm10 + vpxord zmm6, zmm6, zmm11 + vpxord zmm7, zmm7, zmm8 + vpxord zmm4, zmm4, zmm9 + vprord zmm5, zmm5, 12 + vprord zmm6, zmm6, 12 + vprord zmm7, zmm7, 12 + vprord zmm4, zmm4, 12 + vpaddd zmm0, zmm0, zmm21 + vpaddd zmm1, zmm1, zmm16 + vpaddd zmm2, zmm2, zmm31 + vpaddd zmm3, zmm3, zmm17 + vpaddd zmm0, zmm0, zmm5 + vpaddd zmm1, zmm1, zmm6 + vpaddd zmm2, zmm2, zmm7 + vpaddd zmm3, zmm3, zmm4 + vpxord zmm15, zmm15, zmm0 + vpxord zmm12, zmm12, zmm1 + vpxord zmm13, zmm13, zmm2 + vpxord zmm14, zmm14, zmm3 + vprord zmm15, zmm15, 8 + vprord zmm12, zmm12, 8 + vprord zmm13, zmm13, 8 + vprord zmm14, zmm14, 8 + vpaddd zmm10, zmm10, zmm15 + vpaddd zmm11, zmm11, zmm12 + vpaddd zmm8, zmm8, zmm13 + vpaddd zmm9, zmm9, zmm14 + vpxord zmm5, zmm5, zmm10 + vpxord zmm6, zmm6, zmm11 + vpxord zmm7, zmm7, zmm8 + vpxord zmm4, zmm4, zmm9 + vprord zmm5, zmm5, 7 + vprord zmm6, zmm6, 7 + vprord zmm7, zmm7, 7 + vprord zmm4, zmm4, 7 + vpaddd zmm0, zmm0, zmm26 + vpaddd zmm1, zmm1, zmm28 + vpaddd zmm2, zmm2, zmm30 + vpaddd zmm3, zmm3, zmm29 + vpaddd zmm0, zmm0, zmm4 + vpaddd zmm1, zmm1, zmm5 + vpaddd zmm2, zmm2, zmm6 + vpaddd zmm3, zmm3, zmm7 + vpxord zmm12, zmm12, zmm0 + vpxord zmm13, zmm13, zmm1 + vpxord zmm14, zmm14, zmm2 + vpxord zmm15, zmm15, zmm3 + vprord zmm12, zmm12, 16 + vprord zmm13, zmm13, 16 + vprord zmm14, zmm14, 16 + vprord zmm15, zmm15, 16 + vpaddd zmm8, zmm8, zmm12 + vpaddd zmm9, zmm9, zmm13 + vpaddd zmm10, zmm10, zmm14 + vpaddd zmm11, zmm11, zmm15 + vpxord zmm4, zmm4, zmm8 + vpxord zmm5, zmm5, zmm9 + vpxord zmm6, zmm6, zmm10 + vpxord zmm7, zmm7, zmm11 + vprord zmm4, zmm4, 12 + vprord zmm5, zmm5, 12 + vprord zmm6, zmm6, 12 + vprord zmm7, zmm7, 12 + vpaddd zmm0, zmm0, zmm23 + vpaddd zmm1, zmm1, zmm25 + vpaddd zmm2, zmm2, zmm19 + vpaddd zmm3, zmm3, zmm31 + vpaddd zmm0, zmm0, zmm4 + vpaddd zmm1, zmm1, zmm5 + vpaddd zmm2, zmm2, zmm6 + vpaddd zmm3, zmm3, zmm7 + vpxord zmm12, zmm12, zmm0 + vpxord zmm13, zmm13, zmm1 + vpxord zmm14, zmm14, zmm2 + vpxord zmm15, zmm15, zmm3 + vprord zmm12, zmm12, 8 + vprord zmm13, zmm13, 8 + vprord zmm14, zmm14, 8 + vprord zmm15, zmm15, 8 + vpaddd zmm8, zmm8, zmm12 + vpaddd zmm9, zmm9, zmm13 + vpaddd zmm10, zmm10, zmm14 + vpaddd zmm11, zmm11, zmm15 + vpxord zmm4, zmm4, zmm8 + vpxord zmm5, zmm5, zmm9 + vpxord zmm6, zmm6, zmm10 + vpxord zmm7, zmm7, zmm11 + vprord zmm4, zmm4, 7 + vprord zmm5, zmm5, 7 + vprord zmm6, zmm6, 7 + vprord zmm7, zmm7, 7 + vpaddd zmm0, zmm0, zmm20 + vpaddd zmm1, zmm1, zmm27 + vpaddd zmm2, zmm2, zmm21 + vpaddd zmm3, zmm3, zmm17 + vpaddd zmm0, zmm0, zmm5 + vpaddd zmm1, zmm1, zmm6 + vpaddd zmm2, zmm2, zmm7 + vpaddd zmm3, zmm3, zmm4 + vpxord zmm15, zmm15, zmm0 + vpxord zmm12, zmm12, zmm1 + vpxord zmm13, zmm13, zmm2 + vpxord zmm14, zmm14, zmm3 + vprord zmm15, zmm15, 16 + vprord zmm12, zmm12, 16 + vprord zmm13, zmm13, 16 + vprord zmm14, zmm14, 16 + vpaddd zmm10, zmm10, zmm15 + vpaddd zmm11, zmm11, zmm12 + vpaddd zmm8, zmm8, zmm13 + vpaddd zmm9, zmm9, zmm14 + vpxord zmm5, zmm5, zmm10 + vpxord zmm6, zmm6, zmm11 + vpxord zmm7, zmm7, zmm8 + vpxord zmm4, zmm4, zmm9 + vprord zmm5, zmm5, 12 + vprord zmm6, zmm6, 12 + vprord zmm7, zmm7, 12 + vprord zmm4, zmm4, 12 + vpaddd zmm0, zmm0, zmm16 + vpaddd zmm1, zmm1, zmm18 + vpaddd zmm2, zmm2, zmm24 + vpaddd zmm3, zmm3, zmm22 + vpaddd zmm0, zmm0, zmm5 + vpaddd zmm1, zmm1, zmm6 + vpaddd zmm2, zmm2, zmm7 + vpaddd zmm3, zmm3, zmm4 + vpxord zmm15, zmm15, zmm0 + vpxord zmm12, zmm12, zmm1 + vpxord zmm13, zmm13, zmm2 + vpxord zmm14, zmm14, zmm3 + vprord zmm15, zmm15, 8 + vprord zmm12, zmm12, 8 + vprord zmm13, zmm13, 8 + vprord zmm14, zmm14, 8 + vpaddd zmm10, zmm10, zmm15 + vpaddd zmm11, zmm11, zmm12 + vpaddd zmm8, zmm8, zmm13 + vpaddd zmm9, zmm9, zmm14 + vpxord zmm5, zmm5, zmm10 + vpxord zmm6, zmm6, zmm11 + vpxord zmm7, zmm7, zmm8 + vpxord zmm4, zmm4, zmm9 + vprord zmm5, zmm5, 7 + vprord zmm6, zmm6, 7 + vprord zmm7, zmm7, 7 + vprord zmm4, zmm4, 7 + vpaddd zmm0, zmm0, zmm28 + vpaddd zmm1, zmm1, zmm25 + vpaddd zmm2, zmm2, zmm31 + vpaddd zmm3, zmm3, zmm30 + vpaddd zmm0, zmm0, zmm4 + vpaddd zmm1, zmm1, zmm5 + vpaddd zmm2, zmm2, zmm6 + vpaddd zmm3, zmm3, zmm7 + vpxord zmm12, zmm12, zmm0 + vpxord zmm13, zmm13, zmm1 + vpxord zmm14, zmm14, zmm2 + vpxord zmm15, zmm15, zmm3 + vprord zmm12, zmm12, 16 + vprord zmm13, zmm13, 16 + vprord zmm14, zmm14, 16 + vprord zmm15, zmm15, 16 + vpaddd zmm8, zmm8, zmm12 + vpaddd zmm9, zmm9, zmm13 + vpaddd zmm10, zmm10, zmm14 + vpaddd zmm11, zmm11, zmm15 + vpxord zmm4, zmm4, zmm8 + vpxord zmm5, zmm5, zmm9 + vpxord zmm6, zmm6, zmm10 + vpxord zmm7, zmm7, zmm11 + vprord zmm4, zmm4, 12 + vprord zmm5, zmm5, 12 + vprord zmm6, zmm6, 12 + vprord zmm7, zmm7, 12 + vpaddd zmm0, zmm0, zmm29 + vpaddd zmm1, zmm1, zmm27 + vpaddd zmm2, zmm2, zmm26 + vpaddd zmm3, zmm3, zmm24 + vpaddd zmm0, zmm0, zmm4 + vpaddd zmm1, zmm1, zmm5 + vpaddd zmm2, zmm2, zmm6 + vpaddd zmm3, zmm3, zmm7 + vpxord zmm12, zmm12, zmm0 + vpxord zmm13, zmm13, zmm1 + vpxord zmm14, zmm14, zmm2 + vpxord zmm15, zmm15, zmm3 + vprord zmm12, zmm12, 8 + vprord zmm13, zmm13, 8 + vprord zmm14, zmm14, 8 + vprord zmm15, zmm15, 8 + vpaddd zmm8, zmm8, zmm12 + vpaddd zmm9, zmm9, zmm13 + vpaddd zmm10, zmm10, zmm14 + vpaddd zmm11, zmm11, zmm15 + vpxord zmm4, zmm4, zmm8 + vpxord zmm5, zmm5, zmm9 + vpxord zmm6, zmm6, zmm10 + vpxord zmm7, zmm7, zmm11 + vprord zmm4, zmm4, 7 + vprord zmm5, zmm5, 7 + vprord zmm6, zmm6, 7 + vprord zmm7, zmm7, 7 + vpaddd zmm0, zmm0, zmm23 + vpaddd zmm1, zmm1, zmm21 + vpaddd zmm2, zmm2, zmm16 + vpaddd zmm3, zmm3, zmm22 + vpaddd zmm0, zmm0, zmm5 + vpaddd zmm1, zmm1, zmm6 + vpaddd zmm2, zmm2, zmm7 + vpaddd zmm3, zmm3, zmm4 + vpxord zmm15, zmm15, zmm0 + vpxord zmm12, zmm12, zmm1 + vpxord zmm13, zmm13, zmm2 + vpxord zmm14, zmm14, zmm3 + vprord zmm15, zmm15, 16 + vprord zmm12, zmm12, 16 + vprord zmm13, zmm13, 16 + vprord zmm14, zmm14, 16 + vpaddd zmm10, zmm10, zmm15 + vpaddd zmm11, zmm11, zmm12 + vpaddd zmm8, zmm8, zmm13 + vpaddd zmm9, zmm9, zmm14 + vpxord zmm5, zmm5, zmm10 + vpxord zmm6, zmm6, zmm11 + vpxord zmm7, zmm7, zmm8 + vpxord zmm4, zmm4, zmm9 + vprord zmm5, zmm5, 12 + vprord zmm6, zmm6, 12 + vprord zmm7, zmm7, 12 + vprord zmm4, zmm4, 12 + vpaddd zmm0, zmm0, zmm18 + vpaddd zmm1, zmm1, zmm19 + vpaddd zmm2, zmm2, zmm17 + vpaddd zmm3, zmm3, zmm20 + vpaddd zmm0, zmm0, zmm5 + vpaddd zmm1, zmm1, zmm6 + vpaddd zmm2, zmm2, zmm7 + vpaddd zmm3, zmm3, zmm4 + vpxord zmm15, zmm15, zmm0 + vpxord zmm12, zmm12, zmm1 + vpxord zmm13, zmm13, zmm2 + vpxord zmm14, zmm14, zmm3 + vprord zmm15, zmm15, 8 + vprord zmm12, zmm12, 8 + vprord zmm13, zmm13, 8 + vprord zmm14, zmm14, 8 + vpaddd zmm10, zmm10, zmm15 + vpaddd zmm11, zmm11, zmm12 + vpaddd zmm8, zmm8, zmm13 + vpaddd zmm9, zmm9, zmm14 + vpxord zmm5, zmm5, zmm10 + vpxord zmm6, zmm6, zmm11 + vpxord zmm7, zmm7, zmm8 + vpxord zmm4, zmm4, zmm9 + vprord zmm5, zmm5, 7 + vprord zmm6, zmm6, 7 + vprord zmm7, zmm7, 7 + vprord zmm4, zmm4, 7 + vpaddd zmm0, zmm0, zmm25 + vpaddd zmm1, zmm1, zmm27 + vpaddd zmm2, zmm2, zmm24 + vpaddd zmm3, zmm3, zmm31 + vpaddd zmm0, zmm0, zmm4 + vpaddd zmm1, zmm1, zmm5 + vpaddd zmm2, zmm2, zmm6 + vpaddd zmm3, zmm3, zmm7 + vpxord zmm12, zmm12, zmm0 + vpxord zmm13, zmm13, zmm1 + vpxord zmm14, zmm14, zmm2 + vpxord zmm15, zmm15, zmm3 + vprord zmm12, zmm12, 16 + vprord zmm13, zmm13, 16 + vprord zmm14, zmm14, 16 + vprord zmm15, zmm15, 16 + vpaddd zmm8, zmm8, zmm12 + vpaddd zmm9, zmm9, zmm13 + vpaddd zmm10, zmm10, zmm14 + vpaddd zmm11, zmm11, zmm15 + vpxord zmm4, zmm4, zmm8 + vpxord zmm5, zmm5, zmm9 + vpxord zmm6, zmm6, zmm10 + vpxord zmm7, zmm7, zmm11 + vprord zmm4, zmm4, 12 + vprord zmm5, zmm5, 12 + vprord zmm6, zmm6, 12 + vprord zmm7, zmm7, 12 + vpaddd zmm0, zmm0, zmm30 + vpaddd zmm1, zmm1, zmm21 + vpaddd zmm2, zmm2, zmm28 + vpaddd zmm3, zmm3, zmm17 + vpaddd zmm0, zmm0, zmm4 + vpaddd zmm1, zmm1, zmm5 + vpaddd zmm2, zmm2, zmm6 + vpaddd zmm3, zmm3, zmm7 + vpxord zmm12, zmm12, zmm0 + vpxord zmm13, zmm13, zmm1 + vpxord zmm14, zmm14, zmm2 + vpxord zmm15, zmm15, zmm3 + vprord zmm12, zmm12, 8 + vprord zmm13, zmm13, 8 + vprord zmm14, zmm14, 8 + vprord zmm15, zmm15, 8 + vpaddd zmm8, zmm8, zmm12 + vpaddd zmm9, zmm9, zmm13 + vpaddd zmm10, zmm10, zmm14 + vpaddd zmm11, zmm11, zmm15 + vpxord zmm4, zmm4, zmm8 + vpxord zmm5, zmm5, zmm9 + vpxord zmm6, zmm6, zmm10 + vpxord zmm7, zmm7, zmm11 + vprord zmm4, zmm4, 7 + vprord zmm5, zmm5, 7 + vprord zmm6, zmm6, 7 + vprord zmm7, zmm7, 7 + vpaddd zmm0, zmm0, zmm29 + vpaddd zmm1, zmm1, zmm16 + vpaddd zmm2, zmm2, zmm18 + vpaddd zmm3, zmm3, zmm20 + vpaddd zmm0, zmm0, zmm5 + vpaddd zmm1, zmm1, zmm6 + vpaddd zmm2, zmm2, zmm7 + vpaddd zmm3, zmm3, zmm4 + vpxord zmm15, zmm15, zmm0 + vpxord zmm12, zmm12, zmm1 + vpxord zmm13, zmm13, zmm2 + vpxord zmm14, zmm14, zmm3 + vprord zmm15, zmm15, 16 + vprord zmm12, zmm12, 16 + vprord zmm13, zmm13, 16 + vprord zmm14, zmm14, 16 + vpaddd zmm10, zmm10, zmm15 + vpaddd zmm11, zmm11, zmm12 + vpaddd zmm8, zmm8, zmm13 + vpaddd zmm9, zmm9, zmm14 + vpxord zmm5, zmm5, zmm10 + vpxord zmm6, zmm6, zmm11 + vpxord zmm7, zmm7, zmm8 + vpxord zmm4, zmm4, zmm9 + vprord zmm5, zmm5, 12 + vprord zmm6, zmm6, 12 + vprord zmm7, zmm7, 12 + vprord zmm4, zmm4, 12 + vpaddd zmm0, zmm0, zmm19 + vpaddd zmm1, zmm1, zmm26 + vpaddd zmm2, zmm2, zmm22 + vpaddd zmm3, zmm3, zmm23 + vpaddd zmm0, zmm0, zmm5 + vpaddd zmm1, zmm1, zmm6 + vpaddd zmm2, zmm2, zmm7 + vpaddd zmm3, zmm3, zmm4 + vpxord zmm15, zmm15, zmm0 + vpxord zmm12, zmm12, zmm1 + vpxord zmm13, zmm13, zmm2 + vpxord zmm14, zmm14, zmm3 + vprord zmm15, zmm15, 8 + vprord zmm12, zmm12, 8 + vprord zmm13, zmm13, 8 + vprord zmm14, zmm14, 8 + vpaddd zmm10, zmm10, zmm15 + vpaddd zmm11, zmm11, zmm12 + vpaddd zmm8, zmm8, zmm13 + vpaddd zmm9, zmm9, zmm14 + vpxord zmm5, zmm5, zmm10 + vpxord zmm6, zmm6, zmm11 + vpxord zmm7, zmm7, zmm8 + vpxord zmm4, zmm4, zmm9 + vprord zmm5, zmm5, 7 + vprord zmm6, zmm6, 7 + vprord zmm7, zmm7, 7 + vprord zmm4, zmm4, 7 + vpaddd zmm0, zmm0, zmm27 + vpaddd zmm1, zmm1, zmm21 + vpaddd zmm2, zmm2, zmm17 + vpaddd zmm3, zmm3, zmm24 + vpaddd zmm0, zmm0, zmm4 + vpaddd zmm1, zmm1, zmm5 + vpaddd zmm2, zmm2, zmm6 + vpaddd zmm3, zmm3, zmm7 + vpxord zmm12, zmm12, zmm0 + vpxord zmm13, zmm13, zmm1 + vpxord zmm14, zmm14, zmm2 + vpxord zmm15, zmm15, zmm3 + vprord zmm12, zmm12, 16 + vprord zmm13, zmm13, 16 + vprord zmm14, zmm14, 16 + vprord zmm15, zmm15, 16 + vpaddd zmm8, zmm8, zmm12 + vpaddd zmm9, zmm9, zmm13 + vpaddd zmm10, zmm10, zmm14 + vpaddd zmm11, zmm11, zmm15 + vpxord zmm4, zmm4, zmm8 + vpxord zmm5, zmm5, zmm9 + vpxord zmm6, zmm6, zmm10 + vpxord zmm7, zmm7, zmm11 + vprord zmm4, zmm4, 12 + vprord zmm5, zmm5, 12 + vprord zmm6, zmm6, 12 + vprord zmm7, zmm7, 12 + vpaddd zmm0, zmm0, zmm31 + vpaddd zmm1, zmm1, zmm16 + vpaddd zmm2, zmm2, zmm25 + vpaddd zmm3, zmm3, zmm22 + vpaddd zmm0, zmm0, zmm4 + vpaddd zmm1, zmm1, zmm5 + vpaddd zmm2, zmm2, zmm6 + vpaddd zmm3, zmm3, zmm7 + vpxord zmm12, zmm12, zmm0 + vpxord zmm13, zmm13, zmm1 + vpxord zmm14, zmm14, zmm2 + vpxord zmm15, zmm15, zmm3 + vprord zmm12, zmm12, 8 + vprord zmm13, zmm13, 8 + vprord zmm14, zmm14, 8 + vprord zmm15, zmm15, 8 + vpaddd zmm8, zmm8, zmm12 + vpaddd zmm9, zmm9, zmm13 + vpaddd zmm10, zmm10, zmm14 + vpaddd zmm11, zmm11, zmm15 + vpxord zmm4, zmm4, zmm8 + vpxord zmm5, zmm5, zmm9 + vpxord zmm6, zmm6, zmm10 + vpxord zmm7, zmm7, zmm11 + vprord zmm4, zmm4, 7 + vprord zmm5, zmm5, 7 + vprord zmm6, zmm6, 7 + vprord zmm7, zmm7, 7 + vpaddd zmm0, zmm0, zmm30 + vpaddd zmm1, zmm1, zmm18 + vpaddd zmm2, zmm2, zmm19 + vpaddd zmm3, zmm3, zmm23 + vpaddd zmm0, zmm0, zmm5 + vpaddd zmm1, zmm1, zmm6 + vpaddd zmm2, zmm2, zmm7 + vpaddd zmm3, zmm3, zmm4 + vpxord zmm15, zmm15, zmm0 + vpxord zmm12, zmm12, zmm1 + vpxord zmm13, zmm13, zmm2 + vpxord zmm14, zmm14, zmm3 + vprord zmm15, zmm15, 16 + vprord zmm12, zmm12, 16 + vprord zmm13, zmm13, 16 + vprord zmm14, zmm14, 16 + vpaddd zmm10, zmm10, zmm15 + vpaddd zmm11, zmm11, zmm12 + vpaddd zmm8, zmm8, zmm13 + vpaddd zmm9, zmm9, zmm14 + vpxord zmm5, zmm5, zmm10 + vpxord zmm6, zmm6, zmm11 + vpxord zmm7, zmm7, zmm8 + vpxord zmm4, zmm4, zmm9 + vprord zmm5, zmm5, 12 + vprord zmm6, zmm6, 12 + vprord zmm7, zmm7, 12 + vprord zmm4, zmm4, 12 + vpaddd zmm0, zmm0, zmm26 + vpaddd zmm1, zmm1, zmm28 + vpaddd zmm2, zmm2, zmm20 + vpaddd zmm3, zmm3, zmm29 + vpaddd zmm0, zmm0, zmm5 + vpaddd zmm1, zmm1, zmm6 + vpaddd zmm2, zmm2, zmm7 + vpaddd zmm3, zmm3, zmm4 + vpxord zmm15, zmm15, zmm0 + vpxord zmm12, zmm12, zmm1 + vpxord zmm13, zmm13, zmm2 + vpxord zmm14, zmm14, zmm3 + vprord zmm15, zmm15, 8 + vprord zmm12, zmm12, 8 + vprord zmm13, zmm13, 8 + vprord zmm14, zmm14, 8 + vpaddd zmm10, zmm10, zmm15 + vpaddd zmm11, zmm11, zmm12 + vpaddd zmm8, zmm8, zmm13 + vpaddd zmm9, zmm9, zmm14 + vpxord zmm5, zmm5, zmm10 + vpxord zmm6, zmm6, zmm11 + vpxord zmm7, zmm7, zmm8 + vpxord zmm4, zmm4, zmm9 + vprord zmm5, zmm5, 7 + vprord zmm6, zmm6, 7 + vprord zmm7, zmm7, 7 + vprord zmm4, zmm4, 7 + vpxord zmm0, zmm0, zmm8 + vpxord zmm1, zmm1, zmm9 + vpxord zmm2, zmm2, zmm10 + vpxord zmm3, zmm3, zmm11 + vpxord zmm4, zmm4, zmm12 + vpxord zmm5, zmm5, zmm13 + vpxord zmm6, zmm6, zmm14 + vpxord zmm7, zmm7, zmm15 + movzx eax, byte ptr [rbp+0x38] + jne 9b + mov rbx, qword ptr [rbp+0x50] + vpunpckldq zmm16, zmm0, zmm1 + vpunpckhdq zmm17, zmm0, zmm1 + vpunpckldq zmm18, zmm2, zmm3 + vpunpckhdq zmm19, zmm2, zmm3 + vpunpckldq zmm20, zmm4, zmm5 + vpunpckhdq zmm21, zmm4, zmm5 + vpunpckldq zmm22, zmm6, zmm7 + vpunpckhdq zmm23, zmm6, zmm7 + vpunpcklqdq zmm0, zmm16, zmm18 + vpunpckhqdq zmm1, zmm16, zmm18 + vpunpcklqdq zmm2, zmm17, zmm19 + vpunpckhqdq zmm3, zmm17, zmm19 + vpunpcklqdq zmm4, zmm20, zmm22 + vpunpckhqdq zmm5, zmm20, zmm22 + vpunpcklqdq zmm6, zmm21, zmm23 + vpunpckhqdq zmm7, zmm21, zmm23 + vshufi32x4 zmm16, zmm0, zmm4, 0x88 + vshufi32x4 zmm17, zmm1, zmm5, 0x88 + vshufi32x4 zmm18, zmm2, zmm6, 0x88 + vshufi32x4 zmm19, zmm3, zmm7, 0x88 + vshufi32x4 zmm20, zmm0, zmm4, 0xDD + vshufi32x4 zmm21, zmm1, zmm5, 0xDD + vshufi32x4 zmm22, zmm2, zmm6, 0xDD + vshufi32x4 zmm23, zmm3, zmm7, 0xDD + vshufi32x4 zmm0, zmm16, zmm17, 0x88 + vshufi32x4 zmm1, zmm18, zmm19, 0x88 + vshufi32x4 zmm2, zmm20, zmm21, 0x88 + vshufi32x4 zmm3, zmm22, zmm23, 0x88 + vshufi32x4 zmm4, zmm16, zmm17, 0xDD + vshufi32x4 zmm5, zmm18, zmm19, 0xDD + vshufi32x4 zmm6, zmm20, zmm21, 0xDD + vshufi32x4 zmm7, zmm22, zmm23, 0xDD + vmovdqu32 zmmword ptr [rbx], zmm0 + vmovdqu32 zmmword ptr [rbx+0x1*0x40], zmm1 + vmovdqu32 zmmword ptr [rbx+0x2*0x40], zmm2 + vmovdqu32 zmmword ptr [rbx+0x3*0x40], zmm3 + vmovdqu32 zmmword ptr [rbx+0x4*0x40], zmm4 + vmovdqu32 zmmword ptr [rbx+0x5*0x40], zmm5 + vmovdqu32 zmmword ptr [rbx+0x6*0x40], zmm6 + vmovdqu32 zmmword ptr [rbx+0x7*0x40], zmm7 + vmovdqa32 zmm0, zmmword ptr [rsp] + vmovdqa32 zmm1, zmmword ptr [rsp+0x1*0x40] + vmovdqa32 zmm2, zmm0 + vpaddd zmm2{k1}, zmm0, dword ptr [ADD16+rip] {1to16} + vpcmpltud k2, zmm2, zmm0 + vpaddd zmm1 {k2}, zmm1, dword ptr [ADD1+rip] {1to16} + vmovdqa32 zmmword ptr [rsp], zmm2 + vmovdqa32 zmmword ptr [rsp+0x1*0x40], zmm1 + add rdi, 128 + add rbx, 512 + mov qword ptr [rbp+0x50], rbx + sub rsi, 16 + cmp rsi, 16 + jnc 2b + test rsi, rsi + jnz 3f +4: + vzeroupper + mov rsp, rbp + pop rbp + pop rbx + pop r12 + pop r13 + pop r14 + pop r15 + ret +.p2align 6 +3: + test esi, 0x8 + je 3f + vpbroadcastd ymm0, dword ptr [rcx] + vpbroadcastd ymm1, dword ptr [rcx+0x4] + vpbroadcastd ymm2, dword ptr [rcx+0x8] + vpbroadcastd ymm3, dword ptr [rcx+0xC] + vpbroadcastd ymm4, dword ptr [rcx+0x10] + vpbroadcastd ymm5, dword ptr [rcx+0x14] + vpbroadcastd ymm6, dword ptr [rcx+0x18] + vpbroadcastd ymm7, dword ptr [rcx+0x1C] + mov r8, qword ptr [rdi] + mov r9, qword ptr [rdi+0x8] + mov r10, qword ptr [rdi+0x10] + mov r11, qword ptr [rdi+0x18] + mov r12, qword ptr [rdi+0x20] + mov r13, qword ptr [rdi+0x28] + mov r14, qword ptr [rdi+0x30] + mov r15, qword ptr [rdi+0x38] + movzx eax, byte ptr [rbp+0x38] + movzx ebx, byte ptr [rbp+0x40] + or eax, ebx + xor edx, edx +2: + movzx ebx, byte ptr [rbp+0x48] + or ebx, eax + add rdx, 64 + cmp rdx, qword ptr [rsp+0x80] + cmove eax, ebx + mov dword ptr [rsp+0x88], eax + vmovups xmm8, xmmword ptr [r8+rdx-0x40] + vinsertf128 ymm8, ymm8, xmmword ptr [r12+rdx-0x40], 0x01 + vmovups xmm9, xmmword ptr [r9+rdx-0x40] + vinsertf128 ymm9, ymm9, xmmword ptr [r13+rdx-0x40], 0x01 + vunpcklpd ymm12, ymm8, ymm9 + vunpckhpd ymm13, ymm8, ymm9 + vmovups xmm10, xmmword ptr [r10+rdx-0x40] + vinsertf128 ymm10, ymm10, xmmword ptr [r14+rdx-0x40], 0x01 + vmovups xmm11, xmmword ptr [r11+rdx-0x40] + vinsertf128 ymm11, ymm11, xmmword ptr [r15+rdx-0x40], 0x01 + vunpcklpd ymm14, ymm10, ymm11 + vunpckhpd ymm15, ymm10, ymm11 + vshufps ymm16, ymm12, ymm14, 136 + vshufps ymm17, ymm12, ymm14, 221 + vshufps ymm18, ymm13, ymm15, 136 + vshufps ymm19, ymm13, ymm15, 221 + vmovups xmm8, xmmword ptr [r8+rdx-0x30] + vinsertf128 ymm8, ymm8, xmmword ptr [r12+rdx-0x30], 0x01 + vmovups xmm9, xmmword ptr [r9+rdx-0x30] + vinsertf128 ymm9, ymm9, xmmword ptr [r13+rdx-0x30], 0x01 + vunpcklpd ymm12, ymm8, ymm9 + vunpckhpd ymm13, ymm8, ymm9 + vmovups xmm10, xmmword ptr [r10+rdx-0x30] + vinsertf128 ymm10, ymm10, xmmword ptr [r14+rdx-0x30], 0x01 + vmovups xmm11, xmmword ptr [r11+rdx-0x30] + vinsertf128 ymm11, ymm11, xmmword ptr [r15+rdx-0x30], 0x01 + vunpcklpd ymm14, ymm10, ymm11 + vunpckhpd ymm15, ymm10, ymm11 + vshufps ymm20, ymm12, ymm14, 136 + vshufps ymm21, ymm12, ymm14, 221 + vshufps ymm22, ymm13, ymm15, 136 + vshufps ymm23, ymm13, ymm15, 221 + vmovups xmm8, xmmword ptr [r8+rdx-0x20] + vinsertf128 ymm8, ymm8, xmmword ptr [r12+rdx-0x20], 0x01 + vmovups xmm9, xmmword ptr [r9+rdx-0x20] + vinsertf128 ymm9, ymm9, xmmword ptr [r13+rdx-0x20], 0x01 + vunpcklpd ymm12, ymm8, ymm9 + vunpckhpd ymm13, ymm8, ymm9 + vmovups xmm10, xmmword ptr [r10+rdx-0x20] + vinsertf128 ymm10, ymm10, xmmword ptr [r14+rdx-0x20], 0x01 + vmovups xmm11, xmmword ptr [r11+rdx-0x20] + vinsertf128 ymm11, ymm11, xmmword ptr [r15+rdx-0x20], 0x01 + vunpcklpd ymm14, ymm10, ymm11 + vunpckhpd ymm15, ymm10, ymm11 + vshufps ymm24, ymm12, ymm14, 136 + vshufps ymm25, ymm12, ymm14, 221 + vshufps ymm26, ymm13, ymm15, 136 + vshufps ymm27, ymm13, ymm15, 221 + vmovups xmm8, xmmword ptr [r8+rdx-0x10] + vinsertf128 ymm8, ymm8, xmmword ptr [r12+rdx-0x10], 0x01 + vmovups xmm9, xmmword ptr [r9+rdx-0x10] + vinsertf128 ymm9, ymm9, xmmword ptr [r13+rdx-0x10], 0x01 + vunpcklpd ymm12, ymm8, ymm9 + vunpckhpd ymm13, ymm8, ymm9 + vmovups xmm10, xmmword ptr [r10+rdx-0x10] + vinsertf128 ymm10, ymm10, xmmword ptr [r14+rdx-0x10], 0x01 + vmovups xmm11, xmmword ptr [r11+rdx-0x10] + vinsertf128 ymm11, ymm11, xmmword ptr [r15+rdx-0x10], 0x01 + vunpcklpd ymm14, ymm10, ymm11 + vunpckhpd ymm15, ymm10, ymm11 + vshufps ymm28, ymm12, ymm14, 136 + vshufps ymm29, ymm12, ymm14, 221 + vshufps ymm30, ymm13, ymm15, 136 + vshufps ymm31, ymm13, ymm15, 221 + vpbroadcastd ymm8, dword ptr [BLAKE3_IV_0+rip] + vpbroadcastd ymm9, dword ptr [BLAKE3_IV_1+rip] + vpbroadcastd ymm10, dword ptr [BLAKE3_IV_2+rip] + vpbroadcastd ymm11, dword ptr [BLAKE3_IV_3+rip] + vmovdqa ymm12, ymmword ptr [rsp] + vmovdqa ymm13, ymmword ptr [rsp+0x40] + vpbroadcastd ymm14, dword ptr [BLAKE3_BLOCK_LEN+rip] + vpbroadcastd ymm15, dword ptr [rsp+0x88] + vpaddd ymm0, ymm0, ymm16 + vpaddd ymm1, ymm1, ymm18 + vpaddd ymm2, ymm2, ymm20 + vpaddd ymm3, ymm3, ymm22 + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxord ymm12, ymm12, ymm0 + vpxord ymm13, ymm13, ymm1 + vpxord ymm14, ymm14, ymm2 + vpxord ymm15, ymm15, ymm3 + vprord ymm12, ymm12, 16 + vprord ymm13, ymm13, 16 + vprord ymm14, ymm14, 16 + vprord ymm15, ymm15, 16 + vpaddd ymm8, ymm8, ymm12 + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxord ymm4, ymm4, ymm8 + vpxord ymm5, ymm5, ymm9 + vpxord ymm6, ymm6, ymm10 + vpxord ymm7, ymm7, ymm11 + vprord ymm4, ymm4, 12 + vprord ymm5, ymm5, 12 + vprord ymm6, ymm6, 12 + vprord ymm7, ymm7, 12 + vpaddd ymm0, ymm0, ymm17 + vpaddd ymm1, ymm1, ymm19 + vpaddd ymm2, ymm2, ymm21 + vpaddd ymm3, ymm3, ymm23 + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxord ymm12, ymm12, ymm0 + vpxord ymm13, ymm13, ymm1 + vpxord ymm14, ymm14, ymm2 + vpxord ymm15, ymm15, ymm3 + vprord ymm12, ymm12, 8 + vprord ymm13, ymm13, 8 + vprord ymm14, ymm14, 8 + vprord ymm15, ymm15, 8 + vpaddd ymm8, ymm8, ymm12 + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxord ymm4, ymm4, ymm8 + vpxord ymm5, ymm5, ymm9 + vpxord ymm6, ymm6, ymm10 + vpxord ymm7, ymm7, ymm11 + vprord ymm4, ymm4, 7 + vprord ymm5, ymm5, 7 + vprord ymm6, ymm6, 7 + vprord ymm7, ymm7, 7 + vpaddd ymm0, ymm0, ymm24 + vpaddd ymm1, ymm1, ymm26 + vpaddd ymm2, ymm2, ymm28 + vpaddd ymm3, ymm3, ymm30 + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxord ymm15, ymm15, ymm0 + vpxord ymm12, ymm12, ymm1 + vpxord ymm13, ymm13, ymm2 + vpxord ymm14, ymm14, ymm3 + vprord ymm15, ymm15, 16 + vprord ymm12, ymm12, 16 + vprord ymm13, ymm13, 16 + vprord ymm14, ymm14, 16 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm8, ymm13 + vpaddd ymm9, ymm9, ymm14 + vpxord ymm5, ymm5, ymm10 + vpxord ymm6, ymm6, ymm11 + vpxord ymm7, ymm7, ymm8 + vpxord ymm4, ymm4, ymm9 + vprord ymm5, ymm5, 12 + vprord ymm6, ymm6, 12 + vprord ymm7, ymm7, 12 + vprord ymm4, ymm4, 12 + vpaddd ymm0, ymm0, ymm25 + vpaddd ymm1, ymm1, ymm27 + vpaddd ymm2, ymm2, ymm29 + vpaddd ymm3, ymm3, ymm31 + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxord ymm15, ymm15, ymm0 + vpxord ymm12, ymm12, ymm1 + vpxord ymm13, ymm13, ymm2 + vpxord ymm14, ymm14, ymm3 + vprord ymm15, ymm15, 8 + vprord ymm12, ymm12, 8 + vprord ymm13, ymm13, 8 + vprord ymm14, ymm14, 8 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm8, ymm13 + vpaddd ymm9, ymm9, ymm14 + vpxord ymm5, ymm5, ymm10 + vpxord ymm6, ymm6, ymm11 + vpxord ymm7, ymm7, ymm8 + vpxord ymm4, ymm4, ymm9 + vprord ymm5, ymm5, 7 + vprord ymm6, ymm6, 7 + vprord ymm7, ymm7, 7 + vprord ymm4, ymm4, 7 + vpaddd ymm0, ymm0, ymm18 + vpaddd ymm1, ymm1, ymm19 + vpaddd ymm2, ymm2, ymm23 + vpaddd ymm3, ymm3, ymm20 + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxord ymm12, ymm12, ymm0 + vpxord ymm13, ymm13, ymm1 + vpxord ymm14, ymm14, ymm2 + vpxord ymm15, ymm15, ymm3 + vprord ymm12, ymm12, 16 + vprord ymm13, ymm13, 16 + vprord ymm14, ymm14, 16 + vprord ymm15, ymm15, 16 + vpaddd ymm8, ymm8, ymm12 + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxord ymm4, ymm4, ymm8 + vpxord ymm5, ymm5, ymm9 + vpxord ymm6, ymm6, ymm10 + vpxord ymm7, ymm7, ymm11 + vprord ymm4, ymm4, 12 + vprord ymm5, ymm5, 12 + vprord ymm6, ymm6, 12 + vprord ymm7, ymm7, 12 + vpaddd ymm0, ymm0, ymm22 + vpaddd ymm1, ymm1, ymm26 + vpaddd ymm2, ymm2, ymm16 + vpaddd ymm3, ymm3, ymm29 + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxord ymm12, ymm12, ymm0 + vpxord ymm13, ymm13, ymm1 + vpxord ymm14, ymm14, ymm2 + vpxord ymm15, ymm15, ymm3 + vprord ymm12, ymm12, 8 + vprord ymm13, ymm13, 8 + vprord ymm14, ymm14, 8 + vprord ymm15, ymm15, 8 + vpaddd ymm8, ymm8, ymm12 + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxord ymm4, ymm4, ymm8 + vpxord ymm5, ymm5, ymm9 + vpxord ymm6, ymm6, ymm10 + vpxord ymm7, ymm7, ymm11 + vprord ymm4, ymm4, 7 + vprord ymm5, ymm5, 7 + vprord ymm6, ymm6, 7 + vprord ymm7, ymm7, 7 + vpaddd ymm0, ymm0, ymm17 + vpaddd ymm1, ymm1, ymm28 + vpaddd ymm2, ymm2, ymm25 + vpaddd ymm3, ymm3, ymm31 + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxord ymm15, ymm15, ymm0 + vpxord ymm12, ymm12, ymm1 + vpxord ymm13, ymm13, ymm2 + vpxord ymm14, ymm14, ymm3 + vprord ymm15, ymm15, 16 + vprord ymm12, ymm12, 16 + vprord ymm13, ymm13, 16 + vprord ymm14, ymm14, 16 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm8, ymm13 + vpaddd ymm9, ymm9, ymm14 + vpxord ymm5, ymm5, ymm10 + vpxord ymm6, ymm6, ymm11 + vpxord ymm7, ymm7, ymm8 + vpxord ymm4, ymm4, ymm9 + vprord ymm5, ymm5, 12 + vprord ymm6, ymm6, 12 + vprord ymm7, ymm7, 12 + vprord ymm4, ymm4, 12 + vpaddd ymm0, ymm0, ymm27 + vpaddd ymm1, ymm1, ymm21 + vpaddd ymm2, ymm2, ymm30 + vpaddd ymm3, ymm3, ymm24 + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxord ymm15, ymm15, ymm0 + vpxord ymm12, ymm12, ymm1 + vpxord ymm13, ymm13, ymm2 + vpxord ymm14, ymm14, ymm3 + vprord ymm15, ymm15, 8 + vprord ymm12, ymm12, 8 + vprord ymm13, ymm13, 8 + vprord ymm14, ymm14, 8 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm8, ymm13 + vpaddd ymm9, ymm9, ymm14 + vpxord ymm5, ymm5, ymm10 + vpxord ymm6, ymm6, ymm11 + vpxord ymm7, ymm7, ymm8 + vpxord ymm4, ymm4, ymm9 + vprord ymm5, ymm5, 7 + vprord ymm6, ymm6, 7 + vprord ymm7, ymm7, 7 + vprord ymm4, ymm4, 7 + vpaddd ymm0, ymm0, ymm19 + vpaddd ymm1, ymm1, ymm26 + vpaddd ymm2, ymm2, ymm29 + vpaddd ymm3, ymm3, ymm23 + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxord ymm12, ymm12, ymm0 + vpxord ymm13, ymm13, ymm1 + vpxord ymm14, ymm14, ymm2 + vpxord ymm15, ymm15, ymm3 + vprord ymm12, ymm12, 16 + vprord ymm13, ymm13, 16 + vprord ymm14, ymm14, 16 + vprord ymm15, ymm15, 16 + vpaddd ymm8, ymm8, ymm12 + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxord ymm4, ymm4, ymm8 + vpxord ymm5, ymm5, ymm9 + vpxord ymm6, ymm6, ymm10 + vpxord ymm7, ymm7, ymm11 + vprord ymm4, ymm4, 12 + vprord ymm5, ymm5, 12 + vprord ymm6, ymm6, 12 + vprord ymm7, ymm7, 12 + vpaddd ymm0, ymm0, ymm20 + vpaddd ymm1, ymm1, ymm28 + vpaddd ymm2, ymm2, ymm18 + vpaddd ymm3, ymm3, ymm30 + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxord ymm12, ymm12, ymm0 + vpxord ymm13, ymm13, ymm1 + vpxord ymm14, ymm14, ymm2 + vpxord ymm15, ymm15, ymm3 + vprord ymm12, ymm12, 8 + vprord ymm13, ymm13, 8 + vprord ymm14, ymm14, 8 + vprord ymm15, ymm15, 8 + vpaddd ymm8, ymm8, ymm12 + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxord ymm4, ymm4, ymm8 + vpxord ymm5, ymm5, ymm9 + vpxord ymm6, ymm6, ymm10 + vpxord ymm7, ymm7, ymm11 + vprord ymm4, ymm4, 7 + vprord ymm5, ymm5, 7 + vprord ymm6, ymm6, 7 + vprord ymm7, ymm7, 7 + vpaddd ymm0, ymm0, ymm22 + vpaddd ymm1, ymm1, ymm25 + vpaddd ymm2, ymm2, ymm27 + vpaddd ymm3, ymm3, ymm24 + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxord ymm15, ymm15, ymm0 + vpxord ymm12, ymm12, ymm1 + vpxord ymm13, ymm13, ymm2 + vpxord ymm14, ymm14, ymm3 + vprord ymm15, ymm15, 16 + vprord ymm12, ymm12, 16 + vprord ymm13, ymm13, 16 + vprord ymm14, ymm14, 16 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm8, ymm13 + vpaddd ymm9, ymm9, ymm14 + vpxord ymm5, ymm5, ymm10 + vpxord ymm6, ymm6, ymm11 + vpxord ymm7, ymm7, ymm8 + vpxord ymm4, ymm4, ymm9 + vprord ymm5, ymm5, 12 + vprord ymm6, ymm6, 12 + vprord ymm7, ymm7, 12 + vprord ymm4, ymm4, 12 + vpaddd ymm0, ymm0, ymm21 + vpaddd ymm1, ymm1, ymm16 + vpaddd ymm2, ymm2, ymm31 + vpaddd ymm3, ymm3, ymm17 + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxord ymm15, ymm15, ymm0 + vpxord ymm12, ymm12, ymm1 + vpxord ymm13, ymm13, ymm2 + vpxord ymm14, ymm14, ymm3 + vprord ymm15, ymm15, 8 + vprord ymm12, ymm12, 8 + vprord ymm13, ymm13, 8 + vprord ymm14, ymm14, 8 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm8, ymm13 + vpaddd ymm9, ymm9, ymm14 + vpxord ymm5, ymm5, ymm10 + vpxord ymm6, ymm6, ymm11 + vpxord ymm7, ymm7, ymm8 + vpxord ymm4, ymm4, ymm9 + vprord ymm5, ymm5, 7 + vprord ymm6, ymm6, 7 + vprord ymm7, ymm7, 7 + vprord ymm4, ymm4, 7 + vpaddd ymm0, ymm0, ymm26 + vpaddd ymm1, ymm1, ymm28 + vpaddd ymm2, ymm2, ymm30 + vpaddd ymm3, ymm3, ymm29 + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxord ymm12, ymm12, ymm0 + vpxord ymm13, ymm13, ymm1 + vpxord ymm14, ymm14, ymm2 + vpxord ymm15, ymm15, ymm3 + vprord ymm12, ymm12, 16 + vprord ymm13, ymm13, 16 + vprord ymm14, ymm14, 16 + vprord ymm15, ymm15, 16 + vpaddd ymm8, ymm8, ymm12 + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxord ymm4, ymm4, ymm8 + vpxord ymm5, ymm5, ymm9 + vpxord ymm6, ymm6, ymm10 + vpxord ymm7, ymm7, ymm11 + vprord ymm4, ymm4, 12 + vprord ymm5, ymm5, 12 + vprord ymm6, ymm6, 12 + vprord ymm7, ymm7, 12 + vpaddd ymm0, ymm0, ymm23 + vpaddd ymm1, ymm1, ymm25 + vpaddd ymm2, ymm2, ymm19 + vpaddd ymm3, ymm3, ymm31 + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxord ymm12, ymm12, ymm0 + vpxord ymm13, ymm13, ymm1 + vpxord ymm14, ymm14, ymm2 + vpxord ymm15, ymm15, ymm3 + vprord ymm12, ymm12, 8 + vprord ymm13, ymm13, 8 + vprord ymm14, ymm14, 8 + vprord ymm15, ymm15, 8 + vpaddd ymm8, ymm8, ymm12 + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxord ymm4, ymm4, ymm8 + vpxord ymm5, ymm5, ymm9 + vpxord ymm6, ymm6, ymm10 + vpxord ymm7, ymm7, ymm11 + vprord ymm4, ymm4, 7 + vprord ymm5, ymm5, 7 + vprord ymm6, ymm6, 7 + vprord ymm7, ymm7, 7 + vpaddd ymm0, ymm0, ymm20 + vpaddd ymm1, ymm1, ymm27 + vpaddd ymm2, ymm2, ymm21 + vpaddd ymm3, ymm3, ymm17 + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxord ymm15, ymm15, ymm0 + vpxord ymm12, ymm12, ymm1 + vpxord ymm13, ymm13, ymm2 + vpxord ymm14, ymm14, ymm3 + vprord ymm15, ymm15, 16 + vprord ymm12, ymm12, 16 + vprord ymm13, ymm13, 16 + vprord ymm14, ymm14, 16 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm8, ymm13 + vpaddd ymm9, ymm9, ymm14 + vpxord ymm5, ymm5, ymm10 + vpxord ymm6, ymm6, ymm11 + vpxord ymm7, ymm7, ymm8 + vpxord ymm4, ymm4, ymm9 + vprord ymm5, ymm5, 12 + vprord ymm6, ymm6, 12 + vprord ymm7, ymm7, 12 + vprord ymm4, ymm4, 12 + vpaddd ymm0, ymm0, ymm16 + vpaddd ymm1, ymm1, ymm18 + vpaddd ymm2, ymm2, ymm24 + vpaddd ymm3, ymm3, ymm22 + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxord ymm15, ymm15, ymm0 + vpxord ymm12, ymm12, ymm1 + vpxord ymm13, ymm13, ymm2 + vpxord ymm14, ymm14, ymm3 + vprord ymm15, ymm15, 8 + vprord ymm12, ymm12, 8 + vprord ymm13, ymm13, 8 + vprord ymm14, ymm14, 8 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm8, ymm13 + vpaddd ymm9, ymm9, ymm14 + vpxord ymm5, ymm5, ymm10 + vpxord ymm6, ymm6, ymm11 + vpxord ymm7, ymm7, ymm8 + vpxord ymm4, ymm4, ymm9 + vprord ymm5, ymm5, 7 + vprord ymm6, ymm6, 7 + vprord ymm7, ymm7, 7 + vprord ymm4, ymm4, 7 + vpaddd ymm0, ymm0, ymm28 + vpaddd ymm1, ymm1, ymm25 + vpaddd ymm2, ymm2, ymm31 + vpaddd ymm3, ymm3, ymm30 + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxord ymm12, ymm12, ymm0 + vpxord ymm13, ymm13, ymm1 + vpxord ymm14, ymm14, ymm2 + vpxord ymm15, ymm15, ymm3 + vprord ymm12, ymm12, 16 + vprord ymm13, ymm13, 16 + vprord ymm14, ymm14, 16 + vprord ymm15, ymm15, 16 + vpaddd ymm8, ymm8, ymm12 + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxord ymm4, ymm4, ymm8 + vpxord ymm5, ymm5, ymm9 + vpxord ymm6, ymm6, ymm10 + vpxord ymm7, ymm7, ymm11 + vprord ymm4, ymm4, 12 + vprord ymm5, ymm5, 12 + vprord ymm6, ymm6, 12 + vprord ymm7, ymm7, 12 + vpaddd ymm0, ymm0, ymm29 + vpaddd ymm1, ymm1, ymm27 + vpaddd ymm2, ymm2, ymm26 + vpaddd ymm3, ymm3, ymm24 + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxord ymm12, ymm12, ymm0 + vpxord ymm13, ymm13, ymm1 + vpxord ymm14, ymm14, ymm2 + vpxord ymm15, ymm15, ymm3 + vprord ymm12, ymm12, 8 + vprord ymm13, ymm13, 8 + vprord ymm14, ymm14, 8 + vprord ymm15, ymm15, 8 + vpaddd ymm8, ymm8, ymm12 + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxord ymm4, ymm4, ymm8 + vpxord ymm5, ymm5, ymm9 + vpxord ymm6, ymm6, ymm10 + vpxord ymm7, ymm7, ymm11 + vprord ymm4, ymm4, 7 + vprord ymm5, ymm5, 7 + vprord ymm6, ymm6, 7 + vprord ymm7, ymm7, 7 + vpaddd ymm0, ymm0, ymm23 + vpaddd ymm1, ymm1, ymm21 + vpaddd ymm2, ymm2, ymm16 + vpaddd ymm3, ymm3, ymm22 + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxord ymm15, ymm15, ymm0 + vpxord ymm12, ymm12, ymm1 + vpxord ymm13, ymm13, ymm2 + vpxord ymm14, ymm14, ymm3 + vprord ymm15, ymm15, 16 + vprord ymm12, ymm12, 16 + vprord ymm13, ymm13, 16 + vprord ymm14, ymm14, 16 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm8, ymm13 + vpaddd ymm9, ymm9, ymm14 + vpxord ymm5, ymm5, ymm10 + vpxord ymm6, ymm6, ymm11 + vpxord ymm7, ymm7, ymm8 + vpxord ymm4, ymm4, ymm9 + vprord ymm5, ymm5, 12 + vprord ymm6, ymm6, 12 + vprord ymm7, ymm7, 12 + vprord ymm4, ymm4, 12 + vpaddd ymm0, ymm0, ymm18 + vpaddd ymm1, ymm1, ymm19 + vpaddd ymm2, ymm2, ymm17 + vpaddd ymm3, ymm3, ymm20 + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxord ymm15, ymm15, ymm0 + vpxord ymm12, ymm12, ymm1 + vpxord ymm13, ymm13, ymm2 + vpxord ymm14, ymm14, ymm3 + vprord ymm15, ymm15, 8 + vprord ymm12, ymm12, 8 + vprord ymm13, ymm13, 8 + vprord ymm14, ymm14, 8 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm8, ymm13 + vpaddd ymm9, ymm9, ymm14 + vpxord ymm5, ymm5, ymm10 + vpxord ymm6, ymm6, ymm11 + vpxord ymm7, ymm7, ymm8 + vpxord ymm4, ymm4, ymm9 + vprord ymm5, ymm5, 7 + vprord ymm6, ymm6, 7 + vprord ymm7, ymm7, 7 + vprord ymm4, ymm4, 7 + vpaddd ymm0, ymm0, ymm25 + vpaddd ymm1, ymm1, ymm27 + vpaddd ymm2, ymm2, ymm24 + vpaddd ymm3, ymm3, ymm31 + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxord ymm12, ymm12, ymm0 + vpxord ymm13, ymm13, ymm1 + vpxord ymm14, ymm14, ymm2 + vpxord ymm15, ymm15, ymm3 + vprord ymm12, ymm12, 16 + vprord ymm13, ymm13, 16 + vprord ymm14, ymm14, 16 + vprord ymm15, ymm15, 16 + vpaddd ymm8, ymm8, ymm12 + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxord ymm4, ymm4, ymm8 + vpxord ymm5, ymm5, ymm9 + vpxord ymm6, ymm6, ymm10 + vpxord ymm7, ymm7, ymm11 + vprord ymm4, ymm4, 12 + vprord ymm5, ymm5, 12 + vprord ymm6, ymm6, 12 + vprord ymm7, ymm7, 12 + vpaddd ymm0, ymm0, ymm30 + vpaddd ymm1, ymm1, ymm21 + vpaddd ymm2, ymm2, ymm28 + vpaddd ymm3, ymm3, ymm17 + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxord ymm12, ymm12, ymm0 + vpxord ymm13, ymm13, ymm1 + vpxord ymm14, ymm14, ymm2 + vpxord ymm15, ymm15, ymm3 + vprord ymm12, ymm12, 8 + vprord ymm13, ymm13, 8 + vprord ymm14, ymm14, 8 + vprord ymm15, ymm15, 8 + vpaddd ymm8, ymm8, ymm12 + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxord ymm4, ymm4, ymm8 + vpxord ymm5, ymm5, ymm9 + vpxord ymm6, ymm6, ymm10 + vpxord ymm7, ymm7, ymm11 + vprord ymm4, ymm4, 7 + vprord ymm5, ymm5, 7 + vprord ymm6, ymm6, 7 + vprord ymm7, ymm7, 7 + vpaddd ymm0, ymm0, ymm29 + vpaddd ymm1, ymm1, ymm16 + vpaddd ymm2, ymm2, ymm18 + vpaddd ymm3, ymm3, ymm20 + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxord ymm15, ymm15, ymm0 + vpxord ymm12, ymm12, ymm1 + vpxord ymm13, ymm13, ymm2 + vpxord ymm14, ymm14, ymm3 + vprord ymm15, ymm15, 16 + vprord ymm12, ymm12, 16 + vprord ymm13, ymm13, 16 + vprord ymm14, ymm14, 16 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm8, ymm13 + vpaddd ymm9, ymm9, ymm14 + vpxord ymm5, ymm5, ymm10 + vpxord ymm6, ymm6, ymm11 + vpxord ymm7, ymm7, ymm8 + vpxord ymm4, ymm4, ymm9 + vprord ymm5, ymm5, 12 + vprord ymm6, ymm6, 12 + vprord ymm7, ymm7, 12 + vprord ymm4, ymm4, 12 + vpaddd ymm0, ymm0, ymm19 + vpaddd ymm1, ymm1, ymm26 + vpaddd ymm2, ymm2, ymm22 + vpaddd ymm3, ymm3, ymm23 + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxord ymm15, ymm15, ymm0 + vpxord ymm12, ymm12, ymm1 + vpxord ymm13, ymm13, ymm2 + vpxord ymm14, ymm14, ymm3 + vprord ymm15, ymm15, 8 + vprord ymm12, ymm12, 8 + vprord ymm13, ymm13, 8 + vprord ymm14, ymm14, 8 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm8, ymm13 + vpaddd ymm9, ymm9, ymm14 + vpxord ymm5, ymm5, ymm10 + vpxord ymm6, ymm6, ymm11 + vpxord ymm7, ymm7, ymm8 + vpxord ymm4, ymm4, ymm9 + vprord ymm5, ymm5, 7 + vprord ymm6, ymm6, 7 + vprord ymm7, ymm7, 7 + vprord ymm4, ymm4, 7 + vpaddd ymm0, ymm0, ymm27 + vpaddd ymm1, ymm1, ymm21 + vpaddd ymm2, ymm2, ymm17 + vpaddd ymm3, ymm3, ymm24 + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxord ymm12, ymm12, ymm0 + vpxord ymm13, ymm13, ymm1 + vpxord ymm14, ymm14, ymm2 + vpxord ymm15, ymm15, ymm3 + vprord ymm12, ymm12, 16 + vprord ymm13, ymm13, 16 + vprord ymm14, ymm14, 16 + vprord ymm15, ymm15, 16 + vpaddd ymm8, ymm8, ymm12 + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxord ymm4, ymm4, ymm8 + vpxord ymm5, ymm5, ymm9 + vpxord ymm6, ymm6, ymm10 + vpxord ymm7, ymm7, ymm11 + vprord ymm4, ymm4, 12 + vprord ymm5, ymm5, 12 + vprord ymm6, ymm6, 12 + vprord ymm7, ymm7, 12 + vpaddd ymm0, ymm0, ymm31 + vpaddd ymm1, ymm1, ymm16 + vpaddd ymm2, ymm2, ymm25 + vpaddd ymm3, ymm3, ymm22 + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm1, ymm1, ymm5 + vpaddd ymm2, ymm2, ymm6 + vpaddd ymm3, ymm3, ymm7 + vpxord ymm12, ymm12, ymm0 + vpxord ymm13, ymm13, ymm1 + vpxord ymm14, ymm14, ymm2 + vpxord ymm15, ymm15, ymm3 + vprord ymm12, ymm12, 8 + vprord ymm13, ymm13, 8 + vprord ymm14, ymm14, 8 + vprord ymm15, ymm15, 8 + vpaddd ymm8, ymm8, ymm12 + vpaddd ymm9, ymm9, ymm13 + vpaddd ymm10, ymm10, ymm14 + vpaddd ymm11, ymm11, ymm15 + vpxord ymm4, ymm4, ymm8 + vpxord ymm5, ymm5, ymm9 + vpxord ymm6, ymm6, ymm10 + vpxord ymm7, ymm7, ymm11 + vprord ymm4, ymm4, 7 + vprord ymm5, ymm5, 7 + vprord ymm6, ymm6, 7 + vprord ymm7, ymm7, 7 + vpaddd ymm0, ymm0, ymm30 + vpaddd ymm1, ymm1, ymm18 + vpaddd ymm2, ymm2, ymm19 + vpaddd ymm3, ymm3, ymm23 + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxord ymm15, ymm15, ymm0 + vpxord ymm12, ymm12, ymm1 + vpxord ymm13, ymm13, ymm2 + vpxord ymm14, ymm14, ymm3 + vprord ymm15, ymm15, 16 + vprord ymm12, ymm12, 16 + vprord ymm13, ymm13, 16 + vprord ymm14, ymm14, 16 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm8, ymm13 + vpaddd ymm9, ymm9, ymm14 + vpxord ymm5, ymm5, ymm10 + vpxord ymm6, ymm6, ymm11 + vpxord ymm7, ymm7, ymm8 + vpxord ymm4, ymm4, ymm9 + vprord ymm5, ymm5, 12 + vprord ymm6, ymm6, 12 + vprord ymm7, ymm7, 12 + vprord ymm4, ymm4, 12 + vpaddd ymm0, ymm0, ymm26 + vpaddd ymm1, ymm1, ymm28 + vpaddd ymm2, ymm2, ymm20 + vpaddd ymm3, ymm3, ymm29 + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm1, ymm1, ymm6 + vpaddd ymm2, ymm2, ymm7 + vpaddd ymm3, ymm3, ymm4 + vpxord ymm15, ymm15, ymm0 + vpxord ymm12, ymm12, ymm1 + vpxord ymm13, ymm13, ymm2 + vpxord ymm14, ymm14, ymm3 + vprord ymm15, ymm15, 8 + vprord ymm12, ymm12, 8 + vprord ymm13, ymm13, 8 + vprord ymm14, ymm14, 8 + vpaddd ymm10, ymm10, ymm15 + vpaddd ymm11, ymm11, ymm12 + vpaddd ymm8, ymm8, ymm13 + vpaddd ymm9, ymm9, ymm14 + vpxord ymm5, ymm5, ymm10 + vpxord ymm6, ymm6, ymm11 + vpxord ymm7, ymm7, ymm8 + vpxord ymm4, ymm4, ymm9 + vprord ymm5, ymm5, 7 + vprord ymm6, ymm6, 7 + vprord ymm7, ymm7, 7 + vprord ymm4, ymm4, 7 + vpxor ymm0, ymm0, ymm8 + vpxor ymm1, ymm1, ymm9 + vpxor ymm2, ymm2, ymm10 + vpxor ymm3, ymm3, ymm11 + vpxor ymm4, ymm4, ymm12 + vpxor ymm5, ymm5, ymm13 + vpxor ymm6, ymm6, ymm14 + vpxor ymm7, ymm7, ymm15 + movzx eax, byte ptr [rbp+0x38] + jne 2b + mov rbx, qword ptr [rbp+0x50] + vunpcklps ymm8, ymm0, ymm1 + vunpcklps ymm9, ymm2, ymm3 + vunpckhps ymm10, ymm0, ymm1 + vunpcklps ymm11, ymm4, ymm5 + vunpcklps ymm0, ymm6, ymm7 + vshufps ymm12, ymm8, ymm9, 78 + vblendps ymm1, ymm8, ymm12, 0xCC + vshufps ymm8, ymm11, ymm0, 78 + vunpckhps ymm13, ymm2, ymm3 + vblendps ymm2, ymm11, ymm8, 0xCC + vblendps ymm3, ymm12, ymm9, 0xCC + vperm2f128 ymm12, ymm1, ymm2, 0x20 + vmovups ymmword ptr [rbx], ymm12 + vunpckhps ymm14, ymm4, ymm5 + vblendps ymm4, ymm8, ymm0, 0xCC + vunpckhps ymm15, ymm6, ymm7 + vperm2f128 ymm7, ymm3, ymm4, 0x20 + vmovups ymmword ptr [rbx+0x20], ymm7 + vshufps ymm5, ymm10, ymm13, 78 + vblendps ymm6, ymm5, ymm13, 0xCC + vshufps ymm13, ymm14, ymm15, 78 + vblendps ymm10, ymm10, ymm5, 0xCC + vblendps ymm14, ymm14, ymm13, 0xCC + vperm2f128 ymm8, ymm10, ymm14, 0x20 + vmovups ymmword ptr [rbx+0x40], ymm8 + vblendps ymm15, ymm13, ymm15, 0xCC + vperm2f128 ymm13, ymm6, ymm15, 0x20 + vmovups ymmword ptr [rbx+0x60], ymm13 + vperm2f128 ymm9, ymm1, ymm2, 0x31 + vperm2f128 ymm11, ymm3, ymm4, 0x31 + vmovups ymmword ptr [rbx+0x80], ymm9 + vperm2f128 ymm14, ymm10, ymm14, 0x31 + vperm2f128 ymm15, ymm6, ymm15, 0x31 + vmovups ymmword ptr [rbx+0xA0], ymm11 + vmovups ymmword ptr [rbx+0xC0], ymm14 + vmovups ymmword ptr [rbx+0xE0], ymm15 + vmovdqa ymm0, ymmword ptr [rsp] + vmovdqa ymm2, ymmword ptr [rsp+0x2*0x20] + vmovdqa32 ymm0 {k1}, ymmword ptr [rsp+0x1*0x20] + vmovdqa32 ymm2 {k1}, ymmword ptr [rsp+0x3*0x20] + vmovdqa ymmword ptr [rsp], ymm0 + vmovdqa ymmword ptr [rsp+0x2*0x20], ymm2 + add rbx, 256 + mov qword ptr [rbp+0x50], rbx + add rdi, 64 + sub rsi, 8 +3: + mov rbx, qword ptr [rbp+0x50] + mov r15, qword ptr [rsp+0x80] + movzx r13, byte ptr [rbp+0x38] + movzx r12, byte ptr [rbp+0x48] + test esi, 0x4 + je 3f + vbroadcasti32x4 zmm0, xmmword ptr [rcx] + vbroadcasti32x4 zmm1, xmmword ptr [rcx+0x1*0x10] + vmovdqa xmm12, xmmword ptr [rsp] + vmovdqa xmm13, xmmword ptr [rsp+0x4*0x10] + vpunpckldq xmm14, xmm12, xmm13 + vpunpckhdq xmm15, xmm12, xmm13 + vpermq ymm14, ymm14, 0xDC + vpermq ymm15, ymm15, 0xDC + vpbroadcastd zmm12, dword ptr [BLAKE3_BLOCK_LEN+rip] + vinserti64x4 zmm13, zmm14, ymm15, 0x01 + mov eax, 17476 + kmovw k2, eax + vpblendmd zmm13 {k2}, zmm13, zmm12 + vbroadcasti32x4 zmm15, xmmword ptr [BLAKE3_IV+rip] + mov r8, qword ptr [rdi] + mov r9, qword ptr [rdi+0x8] + mov r10, qword ptr [rdi+0x10] + mov r11, qword ptr [rdi+0x18] + mov eax, 43690 + kmovw k3, eax + mov eax, 34952 + kmovw k4, eax + movzx eax, byte ptr [rbp+0x40] + or eax, r13d + xor edx, edx +.p2align 5 +2: + mov r14d, eax + or eax, r12d + add rdx, 64 + cmp rdx, r15 + cmovne eax, r14d + mov dword ptr [rsp+0x88], eax + vmovdqa32 zmm2, zmm15 + vpbroadcastd zmm8, dword ptr [rsp+0x22*0x4] + vpblendmd zmm3 {k4}, zmm13, zmm8 + vmovups zmm8, zmmword ptr [r8+rdx-0x1*0x40] + vinserti32x4 zmm8, zmm8, xmmword ptr [r9+rdx-0x4*0x10], 0x01 + vinserti32x4 zmm8, zmm8, xmmword ptr [r10+rdx-0x4*0x10], 0x02 + vinserti32x4 zmm8, zmm8, xmmword ptr [r11+rdx-0x4*0x10], 0x03 + vmovups zmm9, zmmword ptr [r8+rdx-0x30] + vinserti32x4 zmm9, zmm9, xmmword ptr [r9+rdx-0x3*0x10], 0x01 + vinserti32x4 zmm9, zmm9, xmmword ptr [r10+rdx-0x3*0x10], 0x02 + vinserti32x4 zmm9, zmm9, xmmword ptr [r11+rdx-0x3*0x10], 0x03 + vshufps zmm4, zmm8, zmm9, 136 + vshufps zmm5, zmm8, zmm9, 221 + vmovups zmm8, zmmword ptr [r8+rdx-0x20] + vinserti32x4 zmm8, zmm8, xmmword ptr [r9+rdx-0x2*0x10], 0x01 + vinserti32x4 zmm8, zmm8, xmmword ptr [r10+rdx-0x2*0x10], 0x02 + vinserti32x4 zmm8, zmm8, xmmword ptr [r11+rdx-0x2*0x10], 0x03 + vmovups zmm9, zmmword ptr [r8+rdx-0x10] + vinserti32x4 zmm9, zmm9, xmmword ptr [r9+rdx-0x1*0x10], 0x01 + vinserti32x4 zmm9, zmm9, xmmword ptr [r10+rdx-0x1*0x10], 0x02 + vinserti32x4 zmm9, zmm9, xmmword ptr [r11+rdx-0x1*0x10], 0x03 + vshufps zmm6, zmm8, zmm9, 136 + vshufps zmm7, zmm8, zmm9, 221 + vpshufd zmm6, zmm6, 0x93 + vpshufd zmm7, zmm7, 0x93 + mov al, 7 +9: + vpaddd zmm0, zmm0, zmm4 + vpaddd zmm0, zmm0, zmm1 + vpxord zmm3, zmm3, zmm0 + vprord zmm3, zmm3, 16 + vpaddd zmm2, zmm2, zmm3 + vpxord zmm1, zmm1, zmm2 + vprord zmm1, zmm1, 12 + vpaddd zmm0, zmm0, zmm5 + vpaddd zmm0, zmm0, zmm1 + vpxord zmm3, zmm3, zmm0 + vprord zmm3, zmm3, 8 + vpaddd zmm2, zmm2, zmm3 + vpxord zmm1, zmm1, zmm2 + vprord zmm1, zmm1, 7 + vpshufd zmm0, zmm0, 0x93 + vpshufd zmm3, zmm3, 0x4E + vpshufd zmm2, zmm2, 0x39 + vpaddd zmm0, zmm0, zmm6 + vpaddd zmm0, zmm0, zmm1 + vpxord zmm3, zmm3, zmm0 + vprord zmm3, zmm3, 16 + vpaddd zmm2, zmm2, zmm3 + vpxord zmm1, zmm1, zmm2 + vprord zmm1, zmm1, 12 + vpaddd zmm0, zmm0, zmm7 + vpaddd zmm0, zmm0, zmm1 + vpxord zmm3, zmm3, zmm0 + vprord zmm3, zmm3, 8 + vpaddd zmm2, zmm2, zmm3 + vpxord zmm1, zmm1, zmm2 + vprord zmm1, zmm1, 7 + vpshufd zmm0, zmm0, 0x39 + vpshufd zmm3, zmm3, 0x4E + vpshufd zmm2, zmm2, 0x93 + dec al + jz 9f + vshufps zmm8, zmm4, zmm5, 214 + vpshufd zmm9, zmm4, 0x0F + vpshufd zmm4, zmm8, 0x39 + vshufps zmm8, zmm6, zmm7, 250 + vpblendmd zmm9 {k3}, zmm9, zmm8 + vpunpcklqdq zmm8, zmm7, zmm5 + vpblendmd zmm8 {k4}, zmm8, zmm6 + vpshufd zmm8, zmm8, 0x78 + vpunpckhdq zmm5, zmm5, zmm7 + vpunpckldq zmm6, zmm6, zmm5 + vpshufd zmm7, zmm6, 0x1E + vmovdqa32 zmm5, zmm9 + vmovdqa32 zmm6, zmm8 + jmp 9b +9: + vpxord zmm0, zmm0, zmm2 + vpxord zmm1, zmm1, zmm3 + mov eax, r13d + cmp rdx, r15 + jne 2b + vmovdqu xmmword ptr [rbx], xmm0 + vmovdqu xmmword ptr [rbx+0x10], xmm1 + vextracti128 xmmword ptr [rbx+0x20], ymm0, 0x01 + vextracti128 xmmword ptr [rbx+0x30], ymm1, 0x01 + vextracti32x4 xmmword ptr [rbx+0x4*0x10], zmm0, 0x02 + vextracti32x4 xmmword ptr [rbx+0x5*0x10], zmm1, 0x02 + vextracti32x4 xmmword ptr [rbx+0x6*0x10], zmm0, 0x03 + vextracti32x4 xmmword ptr [rbx+0x7*0x10], zmm1, 0x03 + vmovdqa xmm0, xmmword ptr [rsp] + vmovdqa xmm2, xmmword ptr [rsp+0x40] + vmovdqa32 xmm0 {k1}, xmmword ptr [rsp+0x1*0x10] + vmovdqa32 xmm2 {k1}, xmmword ptr [rsp+0x5*0x10] + vmovdqa xmmword ptr [rsp], xmm0 + vmovdqa xmmword ptr [rsp+0x40], xmm2 + add rbx, 128 + add rdi, 32 + sub rsi, 4 +3: + test esi, 0x2 + je 3f + vbroadcasti128 ymm0, xmmword ptr [rcx] + vbroadcasti128 ymm1, xmmword ptr [rcx+0x10] + vmovd xmm13, dword ptr [rsp] + vpinsrd xmm13, xmm13, dword ptr [rsp+0x40], 1 + vpinsrd xmm13, xmm13, dword ptr [BLAKE3_BLOCK_LEN+rip], 2 + vmovd xmm14, dword ptr [rsp+0x4] + vpinsrd xmm14, xmm14, dword ptr [rsp+0x44], 1 + vpinsrd xmm14, xmm14, dword ptr [BLAKE3_BLOCK_LEN+rip], 2 + vinserti128 ymm13, ymm13, xmm14, 0x01 + mov r8, qword ptr [rdi] + mov r9, qword ptr [rdi+0x8] + movzx eax, byte ptr [rbp+0x40] + or eax, r13d + xor edx, edx +.p2align 5 +2: + mov r14d, eax + or eax, r12d + add rdx, 64 + cmp rdx, r15 + cmovne eax, r14d + mov dword ptr [rsp+0x88], eax + vbroadcasti128 ymm2, xmmword ptr [BLAKE3_IV+rip] + vpbroadcastd ymm8, dword ptr [rsp+0x88] + vpblendd ymm3, ymm13, ymm8, 0x88 + vmovups ymm8, ymmword ptr [r8+rdx-0x40] + vinsertf128 ymm8, ymm8, xmmword ptr [r9+rdx-0x40], 0x01 + vmovups ymm9, ymmword ptr [r8+rdx-0x30] + vinsertf128 ymm9, ymm9, xmmword ptr [r9+rdx-0x30], 0x01 + vshufps ymm4, ymm8, ymm9, 136 + vshufps ymm5, ymm8, ymm9, 221 + vmovups ymm8, ymmword ptr [r8+rdx-0x20] + vinsertf128 ymm8, ymm8, xmmword ptr [r9+rdx-0x20], 0x01 + vmovups ymm9, ymmword ptr [r8+rdx-0x10] + vinsertf128 ymm9, ymm9, xmmword ptr [r9+rdx-0x10], 0x01 + vshufps ymm6, ymm8, ymm9, 136 + vshufps ymm7, ymm8, ymm9, 221 + vpshufd ymm6, ymm6, 0x93 + vpshufd ymm7, ymm7, 0x93 + mov al, 7 +9: + vpaddd ymm0, ymm0, ymm4 + vpaddd ymm0, ymm0, ymm1 + vpxord ymm3, ymm3, ymm0 + vprord ymm3, ymm3, 16 + vpaddd ymm2, ymm2, ymm3 + vpxord ymm1, ymm1, ymm2 + vprord ymm1, ymm1, 12 + vpaddd ymm0, ymm0, ymm5 + vpaddd ymm0, ymm0, ymm1 + vpxord ymm3, ymm3, ymm0 + vprord ymm3, ymm3, 8 + vpaddd ymm2, ymm2, ymm3 + vpxord ymm1, ymm1, ymm2 + vprord ymm1, ymm1, 7 + vpshufd ymm0, ymm0, 0x93 + vpshufd ymm3, ymm3, 0x4E + vpshufd ymm2, ymm2, 0x39 + vpaddd ymm0, ymm0, ymm6 + vpaddd ymm0, ymm0, ymm1 + vpxord ymm3, ymm3, ymm0 + vprord ymm3, ymm3, 16 + vpaddd ymm2, ymm2, ymm3 + vpxord ymm1, ymm1, ymm2 + vprord ymm1, ymm1, 12 + vpaddd ymm0, ymm0, ymm7 + vpaddd ymm0, ymm0, ymm1 + vpxord ymm3, ymm3, ymm0 + vprord ymm3, ymm3, 8 + vpaddd ymm2, ymm2, ymm3 + vpxord ymm1, ymm1, ymm2 + vprord ymm1, ymm1, 7 + vpshufd ymm0, ymm0, 0x39 + vpshufd ymm3, ymm3, 0x4E + vpshufd ymm2, ymm2, 0x93 + dec al + jz 9f + vshufps ymm8, ymm4, ymm5, 214 + vpshufd ymm9, ymm4, 0x0F + vpshufd ymm4, ymm8, 0x39 + vshufps ymm8, ymm6, ymm7, 250 + vpblendd ymm9, ymm9, ymm8, 0xAA + vpunpcklqdq ymm8, ymm7, ymm5 + vpblendd ymm8, ymm8, ymm6, 0x88 + vpshufd ymm8, ymm8, 0x78 + vpunpckhdq ymm5, ymm5, ymm7 + vpunpckldq ymm6, ymm6, ymm5 + vpshufd ymm7, ymm6, 0x1E + vmovdqa ymm5, ymm9 + vmovdqa ymm6, ymm8 + jmp 9b +9: + vpxor ymm0, ymm0, ymm2 + vpxor ymm1, ymm1, ymm3 + mov eax, r13d + cmp rdx, r15 + jne 2b + vmovdqu xmmword ptr [rbx], xmm0 + vmovdqu xmmword ptr [rbx+0x10], xmm1 + vextracti128 xmmword ptr [rbx+0x20], ymm0, 0x01 + vextracti128 xmmword ptr [rbx+0x30], ymm1, 0x01 + vmovdqa xmm0, xmmword ptr [rsp] + vmovdqa xmm2, xmmword ptr [rsp+0x4*0x10] + vmovdqu32 xmm0 {k1}, xmmword ptr [rsp+0x8] + vmovdqu32 xmm2 {k1}, xmmword ptr [rsp+0x48] + vmovdqa xmmword ptr [rsp], xmm0 + vmovdqa xmmword ptr [rsp+0x4*0x10], xmm2 + add rbx, 64 + add rdi, 16 + sub rsi, 2 +3: + test esi, 0x1 + je 4b + vmovdqu xmm0, xmmword ptr [rcx] + vmovdqu xmm1, xmmword ptr [rcx+0x10] + vmovd xmm14, dword ptr [rsp] + vpinsrd xmm14, xmm14, dword ptr [rsp+0x40], 1 + vpinsrd xmm14, xmm14, dword ptr [BLAKE3_BLOCK_LEN+rip], 2 + vmovdqa xmm15, xmmword ptr [BLAKE3_IV+rip] + mov r8, qword ptr [rdi] + movzx eax, byte ptr [rbp+0x40] + or eax, r13d + xor edx, edx +.p2align 5 +2: + mov r14d, eax + or eax, r12d + add rdx, 64 + cmp rdx, r15 + cmovne eax, r14d + vpinsrd xmm3, xmm14, eax, 3 + vmovdqa xmm2, xmm15 + vmovups xmm8, xmmword ptr [r8+rdx-0x40] + vmovups xmm9, xmmword ptr [r8+rdx-0x30] + vshufps xmm4, xmm8, xmm9, 136 + vshufps xmm5, xmm8, xmm9, 221 + vmovups xmm8, xmmword ptr [r8+rdx-0x20] + vmovups xmm9, xmmword ptr [r8+rdx-0x10] + vshufps xmm6, xmm8, xmm9, 136 + vshufps xmm7, xmm8, xmm9, 221 + vpshufd xmm6, xmm6, 0x93 + vpshufd xmm7, xmm7, 0x93 + mov al, 7 +9: + vpaddd xmm0, xmm0, xmm4 + vpaddd xmm0, xmm0, xmm1 + vpxord xmm3, xmm3, xmm0 + vprord xmm3, xmm3, 16 + vpaddd xmm2, xmm2, xmm3 + vpxord xmm1, xmm1, xmm2 + vprord xmm1, xmm1, 12 + vpaddd xmm0, xmm0, xmm5 + vpaddd xmm0, xmm0, xmm1 + vpxord xmm3, xmm3, xmm0 + vprord xmm3, xmm3, 8 + vpaddd xmm2, xmm2, xmm3 + vpxord xmm1, xmm1, xmm2 + vprord xmm1, xmm1, 7 + vpshufd xmm0, xmm0, 0x93 + vpshufd xmm3, xmm3, 0x4E + vpshufd xmm2, xmm2, 0x39 + vpaddd xmm0, xmm0, xmm6 + vpaddd xmm0, xmm0, xmm1 + vpxord xmm3, xmm3, xmm0 + vprord xmm3, xmm3, 16 + vpaddd xmm2, xmm2, xmm3 + vpxord xmm1, xmm1, xmm2 + vprord xmm1, xmm1, 12 + vpaddd xmm0, xmm0, xmm7 + vpaddd xmm0, xmm0, xmm1 + vpxord xmm3, xmm3, xmm0 + vprord xmm3, xmm3, 8 + vpaddd xmm2, xmm2, xmm3 + vpxord xmm1, xmm1, xmm2 + vprord xmm1, xmm1, 7 + vpshufd xmm0, xmm0, 0x39 + vpshufd xmm3, xmm3, 0x4E + vpshufd xmm2, xmm2, 0x93 + dec al + jz 9f + vshufps xmm8, xmm4, xmm5, 214 + vpshufd xmm9, xmm4, 0x0F + vpshufd xmm4, xmm8, 0x39 + vshufps xmm8, xmm6, xmm7, 250 + vpblendd xmm9, xmm9, xmm8, 0xAA + vpunpcklqdq xmm8, xmm7, xmm5 + vpblendd xmm8, xmm8, xmm6, 0x88 + vpshufd xmm8, xmm8, 0x78 + vpunpckhdq xmm5, xmm5, xmm7 + vpunpckldq xmm6, xmm6, xmm5 + vpshufd xmm7, xmm6, 0x1E + vmovdqa xmm5, xmm9 + vmovdqa xmm6, xmm8 + jmp 9b +9: + vpxor xmm0, xmm0, xmm2 + vpxor xmm1, xmm1, xmm3 + mov eax, r13d + cmp rdx, r15 + jne 2b + vmovdqu xmmword ptr [rbx], xmm0 + vmovdqu xmmword ptr [rbx+0x10], xmm1 + jmp 4b +.p2align 6 +_blake3_compress_in_place_avx512_asm: +blake3_compress_in_place_avx512_asm: + _CET_ENDBR + vmovdqu xmm0, xmmword ptr [rdi] + vmovdqu xmm1, xmmword ptr [rdi+0x10] + movzx eax, r8b + movzx edx, dl + shl rax, 32 + add rdx, rax + vmovq xmm3, rcx + vmovq xmm4, rdx + vpunpcklqdq xmm3, xmm3, xmm4 + vmovaps xmm2, xmmword ptr [BLAKE3_IV+rip] + vmovups xmm8, xmmword ptr [rsi] + vmovups xmm9, xmmword ptr [rsi+0x10] + vshufps xmm4, xmm8, xmm9, 136 + vshufps xmm5, xmm8, xmm9, 221 + vmovups xmm8, xmmword ptr [rsi+0x20] + vmovups xmm9, xmmword ptr [rsi+0x30] + vshufps xmm6, xmm8, xmm9, 136 + vshufps xmm7, xmm8, xmm9, 221 + vpshufd xmm6, xmm6, 0x93 + vpshufd xmm7, xmm7, 0x93 + mov al, 7 +9: + vpaddd xmm0, xmm0, xmm4 + vpaddd xmm0, xmm0, xmm1 + vpxord xmm3, xmm3, xmm0 + vprord xmm3, xmm3, 16 + vpaddd xmm2, xmm2, xmm3 + vpxord xmm1, xmm1, xmm2 + vprord xmm1, xmm1, 12 + vpaddd xmm0, xmm0, xmm5 + vpaddd xmm0, xmm0, xmm1 + vpxord xmm3, xmm3, xmm0 + vprord xmm3, xmm3, 8 + vpaddd xmm2, xmm2, xmm3 + vpxord xmm1, xmm1, xmm2 + vprord xmm1, xmm1, 7 + vpshufd xmm0, xmm0, 0x93 + vpshufd xmm3, xmm3, 0x4E + vpshufd xmm2, xmm2, 0x39 + vpaddd xmm0, xmm0, xmm6 + vpaddd xmm0, xmm0, xmm1 + vpxord xmm3, xmm3, xmm0 + vprord xmm3, xmm3, 16 + vpaddd xmm2, xmm2, xmm3 + vpxord xmm1, xmm1, xmm2 + vprord xmm1, xmm1, 12 + vpaddd xmm0, xmm0, xmm7 + vpaddd xmm0, xmm0, xmm1 + vpxord xmm3, xmm3, xmm0 + vprord xmm3, xmm3, 8 + vpaddd xmm2, xmm2, xmm3 + vpxord xmm1, xmm1, xmm2 + vprord xmm1, xmm1, 7 + vpshufd xmm0, xmm0, 0x39 + vpshufd xmm3, xmm3, 0x4E + vpshufd xmm2, xmm2, 0x93 + dec al + jz 9f + vshufps xmm8, xmm4, xmm5, 214 + vpshufd xmm9, xmm4, 0x0F + vpshufd xmm4, xmm8, 0x39 + vshufps xmm8, xmm6, xmm7, 250 + vpblendd xmm9, xmm9, xmm8, 0xAA + vpunpcklqdq xmm8, xmm7, xmm5 + vpblendd xmm8, xmm8, xmm6, 0x88 + vpshufd xmm8, xmm8, 0x78 + vpunpckhdq xmm5, xmm5, xmm7 + vpunpckldq xmm6, xmm6, xmm5 + vpshufd xmm7, xmm6, 0x1E + vmovdqa xmm5, xmm9 + vmovdqa xmm6, xmm8 + jmp 9b +9: + vpxor xmm0, xmm0, xmm2 + vpxor xmm1, xmm1, xmm3 + vmovdqu xmmword ptr [rdi], xmm0 + vmovdqu xmmword ptr [rdi+0x10], xmm1 + ret + +.p2align 6 +_blake3_compress_xof_avx512_asm: +blake3_compress_xof_avx512_asm: + _CET_ENDBR + vmovdqu xmm0, xmmword ptr [rdi] + vmovdqu xmm1, xmmword ptr [rdi+0x10] + movzx eax, r8b + movzx edx, dl + shl rax, 32 + add rdx, rax + vmovq xmm3, rcx + vmovq xmm4, rdx + vpunpcklqdq xmm3, xmm3, xmm4 + vmovaps xmm2, xmmword ptr [BLAKE3_IV+rip] + vmovups xmm8, xmmword ptr [rsi] + vmovups xmm9, xmmword ptr [rsi+0x10] + vshufps xmm4, xmm8, xmm9, 136 + vshufps xmm5, xmm8, xmm9, 221 + vmovups xmm8, xmmword ptr [rsi+0x20] + vmovups xmm9, xmmword ptr [rsi+0x30] + vshufps xmm6, xmm8, xmm9, 136 + vshufps xmm7, xmm8, xmm9, 221 + vpshufd xmm6, xmm6, 0x93 + vpshufd xmm7, xmm7, 0x93 + mov al, 7 +9: + vpaddd xmm0, xmm0, xmm4 + vpaddd xmm0, xmm0, xmm1 + vpxord xmm3, xmm3, xmm0 + vprord xmm3, xmm3, 16 + vpaddd xmm2, xmm2, xmm3 + vpxord xmm1, xmm1, xmm2 + vprord xmm1, xmm1, 12 + vpaddd xmm0, xmm0, xmm5 + vpaddd xmm0, xmm0, xmm1 + vpxord xmm3, xmm3, xmm0 + vprord xmm3, xmm3, 8 + vpaddd xmm2, xmm2, xmm3 + vpxord xmm1, xmm1, xmm2 + vprord xmm1, xmm1, 7 + vpshufd xmm0, xmm0, 0x93 + vpshufd xmm3, xmm3, 0x4E + vpshufd xmm2, xmm2, 0x39 + vpaddd xmm0, xmm0, xmm6 + vpaddd xmm0, xmm0, xmm1 + vpxord xmm3, xmm3, xmm0 + vprord xmm3, xmm3, 16 + vpaddd xmm2, xmm2, xmm3 + vpxord xmm1, xmm1, xmm2 + vprord xmm1, xmm1, 12 + vpaddd xmm0, xmm0, xmm7 + vpaddd xmm0, xmm0, xmm1 + vpxord xmm3, xmm3, xmm0 + vprord xmm3, xmm3, 8 + vpaddd xmm2, xmm2, xmm3 + vpxord xmm1, xmm1, xmm2 + vprord xmm1, xmm1, 7 + vpshufd xmm0, xmm0, 0x39 + vpshufd xmm3, xmm3, 0x4E + vpshufd xmm2, xmm2, 0x93 + dec al + jz 9f + vshufps xmm8, xmm4, xmm5, 214 + vpshufd xmm9, xmm4, 0x0F + vpshufd xmm4, xmm8, 0x39 + vshufps xmm8, xmm6, xmm7, 250 + vpblendd xmm9, xmm9, xmm8, 0xAA + vpunpcklqdq xmm8, xmm7, xmm5 + vpblendd xmm8, xmm8, xmm6, 0x88 + vpshufd xmm8, xmm8, 0x78 + vpunpckhdq xmm5, xmm5, xmm7 + vpunpckldq xmm6, xmm6, xmm5 + vpshufd xmm7, xmm6, 0x1E + vmovdqa xmm5, xmm9 + vmovdqa xmm6, xmm8 + jmp 9b +9: + vpxor xmm0, xmm0, xmm2 + vpxor xmm1, xmm1, xmm3 + vpxor xmm2, xmm2, [rdi] + vpxor xmm3, xmm3, [rdi+0x10] + vmovdqu xmmword ptr [r9], xmm0 + vmovdqu xmmword ptr [r9+0x10], xmm1 + vmovdqu xmmword ptr [r9+0x20], xmm2 + vmovdqu xmmword ptr [r9+0x30], xmm3 + ret + +#ifdef __APPLE__ +.static_data +#else +.section .rodata +#endif +.p2align 6 +INDEX0: + .long 0, 1, 2, 3, 16, 17, 18, 19 + .long 8, 9, 10, 11, 24, 25, 26, 27 +INDEX1: + .long 4, 5, 6, 7, 20, 21, 22, 23 + .long 12, 13, 14, 15, 28, 29, 30, 31 +ADD0: + .long 0, 1, 2, 3, 4, 5, 6, 7 + .long 8, 9, 10, 11, 12, 13, 14, 15 +ADD1: .long 1 + +ADD16: .long 16 +BLAKE3_BLOCK_LEN: + .long 64 +.p2align 6 +BLAKE3_IV: +BLAKE3_IV_0: + .long 0x6A09E667 +BLAKE3_IV_1: + .long 0xBB67AE85 +BLAKE3_IV_2: + .long 0x3C6EF372 +BLAKE3_IV_3: + .long 0xA54FF53A diff --git a/Sources/Cfyaml/src/blake3/blake3_backend.c b/Sources/Cfyaml/src/blake3/blake3_backend.c new file mode 100644 index 000000000..72ff22e35 --- /dev/null +++ b/Sources/Cfyaml/src/blake3/blake3_backend.c @@ -0,0 +1,584 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include +#include +#include +#include + +#include "fy-bit64.h" + +#include "blake3.h" +#include "blake3_impl.h" +#include "blake3_internal.h" + +// Declarations for implementation-specific functions. +void blake3_compress_in_place_portable(uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, + uint8_t flags); + +void blake3_compress_xof_portable(const uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, + uint8_t flags, uint8_t out[64]); + +void blake3_hash_many_portable(const uint8_t *const *inputs, size_t num_inputs, + size_t blocks, const uint32_t key[8], + uint64_t counter, bool increment_counter, + uint8_t flags, uint8_t flags_start, + uint8_t flags_end, uint8_t *out); + +/* the portable hasher (can drive the optimized ones, but not optimally) */ +extern const blake3_hasher_ops blake3_hasher_op_portable; + +#if defined(IS_X86) +void blake3_compress_in_place_sse2(uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, + uint8_t flags); +void blake3_compress_xof_sse2(const uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, + uint8_t flags, uint8_t out[64]); +void blake3_hash_many_sse2(const uint8_t *const *inputs, size_t num_inputs, + size_t blocks, const uint32_t key[8], + uint64_t counter, bool increment_counter, + uint8_t flags, uint8_t flags_start, + uint8_t flags_end, uint8_t *out); +void blake3_compress_in_place_sse2_asm(uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, + uint8_t flags); +void blake3_compress_xof_sse2_asm(const uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, + uint8_t flags, uint8_t out[64]); +void blake3_hash_many_sse2_asm(const uint8_t *const *inputs, size_t num_inputs, + size_t blocks, const uint32_t key[8], + uint64_t counter, bool increment_counter, + uint8_t flags, uint8_t flags_start, + uint8_t flags_end, uint8_t *out); + +extern const blake3_hasher_ops blake3_hasher_op_sse2; + +void blake3_compress_in_place_sse41(uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, + uint8_t flags); +void blake3_compress_xof_sse41(const uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, + uint8_t flags, uint8_t out[64]); +void blake3_hash_many_sse41(const uint8_t *const *inputs, size_t num_inputs, + size_t blocks, const uint32_t key[8], + uint64_t counter, bool increment_counter, + uint8_t flags, uint8_t flags_start, + uint8_t flags_end, uint8_t *out); +void blake3_compress_in_place_sse41_asm(uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, + uint8_t flags); +void blake3_compress_xof_sse41_asm(const uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, + uint8_t flags, uint8_t out[64]); +void blake3_hash_many_sse41_asm(const uint8_t *const *inputs, size_t num_inputs, + size_t blocks, const uint32_t key[8], + uint64_t counter, bool increment_counter, + uint8_t flags, uint8_t flags_start, + uint8_t flags_end, uint8_t *out); + +extern const blake3_hasher_ops blake3_hasher_op_sse41; + +void blake3_hash_many_avx2(const uint8_t *const *inputs, size_t num_inputs, + size_t blocks, const uint32_t key[8], + uint64_t counter, bool increment_counter, + uint8_t flags, uint8_t flags_start, + uint8_t flags_end, uint8_t *out); +void blake3_hash_many_avx2_asm(const uint8_t *const *inputs, size_t num_inputs, + size_t blocks, const uint32_t key[8], + uint64_t counter, bool increment_counter, + uint8_t flags, uint8_t flags_start, + uint8_t flags_end, uint8_t *out); + +extern const blake3_hasher_ops blake3_hasher_op_avx2; + +void blake3_compress_in_place_avx512(uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, + uint8_t flags); +void blake3_compress_xof_avx512(const uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, + uint8_t flags, uint8_t out[64]); +void blake3_hash_many_avx512(const uint8_t *const *inputs, size_t num_inputs, + size_t blocks, const uint32_t key[8], + uint64_t counter, bool increment_counter, + uint8_t flags, uint8_t flags_start, + uint8_t flags_end, uint8_t *out); +void blake3_compress_in_place_avx512_asm(uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, + uint8_t flags); +void blake3_compress_xof_avx512_asm(const uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, + uint8_t flags, uint8_t out[64]); +void blake3_hash_many_avx512_asm(const uint8_t *const *inputs, size_t num_inputs, + size_t blocks, const uint32_t key[8], + uint64_t counter, bool increment_counter, + uint8_t flags, uint8_t flags_start, + uint8_t flags_end, uint8_t *out); + +extern const blake3_hasher_ops blake3_hasher_op_avx512; + +#endif + +#if defined(IS_ARM) +void blake3_hash_many_neon(const uint8_t *const *inputs, size_t num_inputs, + size_t blocks, const uint32_t key[8], + uint64_t counter, bool increment_counter, + uint8_t flags, uint8_t flags_start, + uint8_t flags_end, uint8_t *out); + +extern const blake3_hasher_ops blake3_hasher_op_neon; +#endif + +static uint64_t supported_cpusimd_backend(void) +{ + const blake3_backend *be = &blake3_backends[B3BID_CPUSIMD]; + return be->user ? B3BF_CPUSIMD : 0; +} + +static uint64_t detected_cpusimd_backend(void) +{ + const blake3_backend *be = &blake3_backends[B3BID_CPUSIMD]; + return be->user ? B3BF_CPUSIMD : 0; +} + +static uint64_t supported_synthetic_backends(void) +{ + uint64_t backends = 0; + + backends |= supported_cpusimd_backend(); + return backends; +} + +static uint64_t detected_synthetic_backends(void) +{ + uint64_t backends = 0; + + backends |= detected_cpusimd_backend(); + return backends; +} + +static uint64_t supported_gpu_backends(void) +{ + return 0; +} + +static uint64_t detected_gpu_backends(void) +{ + return 0; +} + +#if defined(IS_X86) + +static uint64_t supported_backends_x86(void) +{ + uint64_t backends = 0; + +#if !defined(BLAKE3_NO_SSE2) + backends |= B3BF_SSE2 | B3BF_SSE2_ASM; +#endif +#if !defined(BLAKE3_NO_SSE41) + backends |= B3BF_SSE41 | B3BF_SSE41_ASM; +#endif +#if !defined(BLAKE3_NO_AVX) + backends |= B3BF_AVX2 | B3BF_AVX2_ASM; +#endif +#if !defined(BLAKE3_NO_AVX512) + backends |= B3BF_AVX512 | B3BF_AVX512_ASM; +#endif + return backends; +} + +static inline uint64_t xgetbv(void) +{ +#if defined(_MSC_VER) + return _xgetbv(0); +#else + uint32_t eax = 0, edx = 0; + __asm__ __volatile__("xgetbv\n" : "=a"(eax), "=d"(edx) : "c"(0)); + return ((uint64_t)edx << 32) | eax; +#endif +} + +static inline void cpuid(uint32_t out[4], uint32_t id) +{ +#if defined(_MSC_VER) + __cpuid((int *)out, id); +#elif defined(__i386__) || defined(_M_IX86) + __asm__ __volatile__( + "movl %%ebx, %1\n" + "cpuid\n" + "xchgl %1, %%ebx\n" + : "=a"(out[0]), "=r"(out[1]), "=c"(out[2]), "=d"(out[3]) + : "a"(id)); +#else + __asm__ __volatile__("cpuid\n" + : "=a"(out[0]), "=b"(out[1]), "=c"(out[2]), "=d"(out[3]) + : "a"(id)); +#endif +} + +static inline void cpuidex(uint32_t out[4], uint32_t id, uint32_t sid) +{ +#if defined(_MSC_VER) + __cpuidex((int *)out, id, sid); +#elif defined(__i386__) || defined(_M_IX86) + __asm__ __volatile__( + "movl %%ebx, %1\n" + "cpuid\n" + "xchgl %1, %%ebx\n" + : "=a"(out[0]), "=r"(out[1]), "=c"(out[2]), "=d"(out[3]) + : "a"(id), "c"(sid)); +#else + __asm__ __volatile__("cpuid\n" + : "=a"(out[0]), "=b"(out[1]), "=c"(out[2]), "=d"(out[3]) + : "a"(id), "c"(sid)); +#endif +} + +static uint64_t detected_backends_x86(void) +{ + uint32_t regs[4] = {0}; + uint32_t *eax = ®s[0], *ebx = ®s[1], *ecx = ®s[2], *edx = ®s[3]; + int max_id; + uint64_t mask = 0; + uint64_t backends = 0; + + (void)edx; + + cpuid(regs, 0); + max_id = *eax; + cpuid(regs, 1); + +#if defined(__amd64__) || defined(_M_X64) + backends |= B3BF_SSE2 | B3BF_SSE2_ASM; +#else + if (*edx & (1UL << 26)) + backends |= B3BF_SSE2 | B3BF_SSE2_ASM; +#endif + if (*ecx & (1UL << 19)) + backends |= B3BF_SSE41 | B3BF_SSE41_ASM; + + if (*ecx & (1UL << 27)) { // OSXSAVE + mask = xgetbv(); + if ((mask & 6) == 6) { // SSE and AVX states + if (max_id >= 7) { + cpuidex(regs, 7, 0); + if (*ebx & (1UL << 5)) + backends |= B3BF_AVX2 | B3BF_AVX2_ASM; + if ((mask & 224) == 224) { // Opmask, ZMM_Hi256, Hi16_Zmm + if ((*ebx & ((1UL << 31) | (1UL << 16))) == ((1UL << 31) | (1UL << 16))) + backends |= B3BF_AVX512 | B3BF_AVX512_ASM; /* AVX412VL+AVX512F */ + } + } + } + } + + return backends; +} +#endif + +#if defined(IS_ARM) +static uint64_t supported_backends_arm(void) +{ + uint64_t backends = 0; + +#if defined(IS_AARCH64) + backends |= B3BF_NEON; +#endif + + return backends; +} + +static uint64_t detected_backends_arm(void) +{ + uint64_t backends = 0; + +#if defined(IS_AARCH64) + backends |= B3BF_NEON; +#endif + + return backends; +} +#endif + +uint64_t blake3_get_supported_backends(void) +{ + uint64_t supported_backends; + + supported_backends = B3BF_PORTABLE; + + supported_backends |= supported_gpu_backends(); + +#if defined(IS_X86) + supported_backends |= supported_backends_x86(); +#endif + +#if defined(IS_ARM) + supported_backends |= supported_backends_arm(); +#endif + + supported_backends |= supported_synthetic_backends(); + + return supported_backends; +} + +uint64_t blake3_get_detected_backends(void) +{ + uint64_t detected_backends; + + detected_backends = B3BF_PORTABLE; + + detected_backends |= detected_gpu_backends(); + +#if defined(IS_X86) + detected_backends |= detected_backends_x86(); +#endif + +#if defined(IS_ARM) + detected_backends |= detected_backends_arm(); +#endif + + detected_backends |= detected_synthetic_backends(); + + return detected_backends; +} + +uint64_t blake3_get_selectable_backends(void) +{ + return blake3_get_supported_backends() | + blake3_get_detected_backends(); +} + +blake3_backend blake3_backends[B3BID_COUNT] = { + [B3BID_PORTABLE] = { + .info = { + .id = B3BID_PORTABLE, + .name = "portable", + .description = "portable C implementation", + .simd_degree = 1, + .funcs = B3FF_HASH_MANY | B3FF_COMPRESS_XOF | B3FF_COMPRESS_IN_PLACE, + }, + .hasher_ops = &blake3_hasher_op_portable, + .hash_many = blake3_hash_many_portable, + .compress_xof = blake3_compress_xof_portable, + .compress_in_place = blake3_compress_in_place_portable, + }, +#if defined(IS_X86) + +#if defined(TARGET_HAS_SSE2) && TARGET_HAS_SSE2 + [B3BID_SSE2] = { + .info = { + .id = B3BID_SSE2, + .name = "sse2", + .description = "x86 SSE2 implementation in C", + .simd_degree = 4, + .funcs = B3FF_HASH_MANY | B3FF_COMPRESS_XOF | B3FF_COMPRESS_IN_PLACE, + }, + .hasher_ops = &blake3_hasher_op_sse2, + .hash_many = blake3_hash_many_sse2, + .compress_xof = blake3_compress_xof_sse2, + .compress_in_place = blake3_compress_in_place_sse2, + }, + [B3BID_SSE2_ASM] = { + .info = { + .id = B3BID_SSE2_ASM, + .name = "sse2-asm", + .description = "x86 SSE2 implementation in assembly", + .simd_degree = 4, + .funcs = B3FF_HASH_MANY | B3FF_COMPRESS_XOF | B3FF_COMPRESS_IN_PLACE, + }, + .hasher_ops = &blake3_hasher_op_sse2, + .hash_many = blake3_hash_many_sse2_asm, + .compress_xof = blake3_compress_xof_sse2_asm, + .compress_in_place = blake3_compress_in_place_sse2_asm, + }, +#endif + +#if defined(TARGET_HAS_SSE41) && TARGET_HAS_SSE41 + [B3BID_SSE41] = { + .info = { + .id = B3BID_SSE41, + .name = "sse41", + .description = "x86 SSE41 implementation in C", + .simd_degree = 4, + .funcs = B3FF_HASH_MANY | B3FF_COMPRESS_XOF | B3FF_COMPRESS_IN_PLACE, + }, + .hasher_ops = &blake3_hasher_op_sse41, + .hash_many = blake3_hash_many_sse41, + .compress_xof = blake3_compress_xof_sse41, + .compress_in_place = blake3_compress_in_place_sse41, + }, + [B3BID_SSE41_ASM] = { + .info = { + .id = B3BID_SSE41_ASM, + .name = "sse41-asm", + .description = "x86 SSE41 implementation in assembly", + .simd_degree = 4, + .funcs = B3FF_HASH_MANY | B3FF_COMPRESS_XOF | B3FF_COMPRESS_IN_PLACE, + }, + .hasher_ops = &blake3_hasher_op_sse41, + .hash_many = blake3_hash_many_sse41_asm, + .compress_xof = blake3_compress_xof_sse41_asm, + .compress_in_place = blake3_compress_in_place_sse41_asm, + }, +#endif + +#if defined(TARGET_HAS_AVX2) && TARGET_HAS_AVX2 + [B3BID_AVX2] = { + .info = { + .id = B3BID_AVX2, + .name = "avx2", + .description = "x86 AVX2 implementation in C", + .simd_degree = 8, + .funcs = B3FF_HASH_MANY, + }, + .hasher_ops = &blake3_hasher_op_avx2, + .hash_many = blake3_hash_many_avx2, + }, + [B3BID_AVX2_ASM] = { + .info = { + .id = B3BID_AVX2_ASM, + .name = "avx2-asm", + .description = "x86 AVX2 implementation in assembly", + .simd_degree = 8, + .funcs = B3FF_HASH_MANY, + }, + .hasher_ops = &blake3_hasher_op_avx2, + .hash_many = blake3_hash_many_avx2_asm, + }, +#endif +#if defined(TARGET_HAS_AVX512) && TARGET_HAS_AVX512 + [B3BID_AVX512] = { + .info = { + .id = B3BID_AVX512, + .name = "avx512", + .description = "x86 AVX512 VL+F implementation in C", + .simd_degree = 16, + .funcs = B3FF_HASH_MANY | B3FF_COMPRESS_XOF | B3FF_COMPRESS_IN_PLACE, + }, + .hasher_ops = &blake3_hasher_op_avx512, + .hash_many = blake3_hash_many_avx512, + .compress_xof = blake3_compress_xof_avx512, + .compress_in_place = blake3_compress_in_place_avx512, + }, + [B3BID_AVX512_ASM] = { + .info = { + .id = B3BID_AVX512_ASM, + .name = "avx512-asm", + .description = "x86 AVX512 VL+F implementation in assembly", + .simd_degree = 16, + .funcs = B3FF_HASH_MANY | B3FF_COMPRESS_XOF | B3FF_COMPRESS_IN_PLACE, + }, + .hasher_ops = &blake3_hasher_op_avx512, + .hash_many = blake3_hash_many_avx512, + .compress_xof = blake3_compress_xof_avx512_asm, + .compress_in_place = blake3_compress_in_place_avx512_asm, + }, +#endif + +#endif + +#if defined(IS_ARM) + +#if defined(TARGET_HAS_NEON) && TARGET_HAS_NEON + [B3BID_NEON] = { + .info = { + .id = B3BID_NEON, + .name = "neon", + .description = "arm NEON implementation", + .simd_degree = 4, + .funcs = B3FF_HASH_MANY | B3FF_COMPRESS_XOF | B3FF_COMPRESS_IN_PLACE, + }, + .hasher_ops = &blake3_hasher_op_neon, + .hash_many = blake3_hash_many_neon, + .compress_xof = blake3_compress_xof_portable, /* no NEON for this */ + .compress_in_place = blake3_compress_in_place_portable, + }, +#endif + +#endif +}; + +const blake3_backend *blake3_backend_select_function(uint64_t selectable_backends, blake3_func_id fid) +{ + const blake3_backend *be; + unsigned int i; + + while (selectable_backends) { + i = highest_one(selectable_backends); + selectable_backends &= ~FY_BIT64(i); + be = blake3_backends + i; + if (be->info.funcs & FY_BIT64(fid)) + return be; + } + /* should never happen because portable is always set */ + assert(false); + return NULL; +} + +const blake3_backend *blake3_get_backend_by_id(blake3_backend_id id) +{ + const blake3_backend *be; + + if ((unsigned int)id >= B3BID_COUNT) + return NULL; + + be = &blake3_backends[id]; + + /* non-enabled backend? */ + if (be->info.id != id || !be->info.name) + return NULL; + + return be; +} + +const blake3_backend *blake3_get_backend_by_name(const char *name) +{ + const blake3_backend *be; + unsigned int i; + + if (!name) + return NULL; + + for (i = 0, be = blake3_backends; i < B3BID_COUNT; i++, be++) { + if (be->info.name && !strcmp(be->info.name, name)) + return be; + } + return NULL; +} + +const blake3_backend_info *blake3_get_backend_info(blake3_backend_id id) +{ + const blake3_backend_info *bei; + + if ((unsigned int)id >= B3BID_COUNT) + return NULL; + + bei = &blake3_backends[id].info; + + /* not supported */ + if (bei->id == B3BID_INVALID || !bei->name) + return NULL; + + return bei; +} diff --git a/Sources/Cfyaml/src/blake3/blake3_be_cpusimd.c b/Sources/Cfyaml/src/blake3/blake3_be_cpusimd.c new file mode 100644 index 000000000..807417630 --- /dev/null +++ b/Sources/Cfyaml/src/blake3/blake3_be_cpusimd.c @@ -0,0 +1,239 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include +#include +#include +#include + +#include "blake3.h" +#include "blake3_impl.h" +#include "blake3_internal.h" + +#include "fy-thread.h" + +struct cpusimd_data { + unsigned int num_cpus; + unsigned int simd_cpus; + unsigned int be_simd_degree_mult; + const blake3_backend *be_best; + char *description; + struct fy_thread_pool *tp; +}; + +static void blake3_cpusimd_hash_many_thread(void *arg) +{ + blake3_hash_many_state *s = arg; + const blake3_hash_many_common_state *c; + + c = s->common; + c->hash_many(s->inputs, s->num_inputs, c->blocks, c->key, s->counter, c->increment_counter, c->flags, c->flags_start, c->flags_end, s->out); +} + +// #define CPUSIMD_CHECK + +static void blake3_hash_many_cpusimd( + const uint8_t *const *inputs, size_t num_inputs, + size_t blocks, const uint32_t key[8], + uint64_t counter, bool increment_counter, + uint8_t flags, uint8_t flags_start, + uint8_t flags_end, uint8_t *out) +{ + struct cpusimd_data *d; + const blake3_backend *be, *be_best; + unsigned int i, stepi, be_simd_degree_mult, simd_degree, count, states_count; + blake3_hash_many_state *states, *s; + blake3_hash_many_common_state common_local, *common = &common_local; + const uint8_t *const *inputsi; + uint8_t *outi; + uint64_t counteri; +#ifdef CPUSIMD_CHECK + size_t out_size; + uint8_t *out_cmp; +#endif + + (void)simd_degree; + + be = &blake3_backends[B3BID_CPUSIMD]; + d = be->user; + assert(d); + + count = (unsigned int)num_inputs; + simd_degree = be->info.simd_degree; + + be_best = d->be_best; + be_simd_degree_mult = d->be_simd_degree_mult; + +#ifdef CPUSIMD_CHECK + /* if less than the underlyind backend degree just do it there */ + out_size = BLAKE3_OUT_LEN * num_inputs; + out_cmp = alloca(out_size); + be_best->hash_many(inputs, num_inputs, blocks, key, counter, increment_counter, flags, flags_start, flags_end, out_cmp); +#endif + + states_count = (count / be_simd_degree_mult) + !!(count % be_simd_degree_mult); + states = alloca(sizeof(*states) * states_count); + + /* the common */ + common->hash_many = be_best->hash_many; + common->blocks = blocks; + common->key = key; + common->increment_counter = increment_counter; + common->flags = flags; + common->flags_start = flags_start; + common->flags_end = flags_end; + + inputsi = inputs; + outi = out; + counteri = counter; + for (i = 0, s = states; i < count; i += stepi, s++) { + + stepi = (i + be_simd_degree_mult) <= count ? be_simd_degree_mult : (count - i); + + s->inputs = inputsi; + s->num_inputs = stepi; + s->counter = counteri; + s->out = outi; + s->common = common; + + if (increment_counter) + counteri += stepi; + inputsi += stepi; + outi += BLAKE3_OUT_LEN * stepi; + } + + fy_thread_arg_array_join(d->tp, blake3_cpusimd_hash_many_thread, NULL, states, sizeof(states[0]), states_count); + +#ifdef CPUSIMD_CHECK + for (i = 0; i < count; i += stepi) { + stepi = (i + be_simd_degree_mult) <= count ? be_simd_degree_mult : (count - i); + + if (memcmp(out + i * BLAKE3_OUT_LEN, out_cmp + i * BLAKE3_OUT_LEN, BLAKE3_OUT_LEN)) { + fprintf(stderr, "%s: differ at #%u\n", __func__, i); + } + } +#endif +} + +static void cpusimd_data_free(struct cpusimd_data *d) +{ + if (!d) + return; + + if (d->description) + free(d->description); + + if (d->tp) + fy_thread_pool_destroy(d->tp); + + free(d); +} + +int blake3_backend_cpusimd_setup(unsigned int num_cpus, unsigned int mult_fact) +{ + blake3_backend *be = &blake3_backends[B3BID_CPUSIMD]; + const blake3_backend *be_best; + struct cpusimd_data *d = NULL; + struct fy_thread_pool_cfg tp_cfg; + long scval; + uint64_t supported_backends, detected_backends, selectable_backends; + unsigned int num_simd_cpus; + ssize_t n; + + if (!num_cpus) { + scval = sysconf(_SC_NPROCESSORS_ONLN); + assert(scval > 0); + num_cpus = (unsigned int)scval; + } + + if (num_cpus <= 1) + return 0; + + num_simd_cpus = round_down_to_power_of_2(num_cpus); + + if (!mult_fact) + mult_fact = 1; + + d = malloc(sizeof(*d)); + if (!d) + goto err_out; + + memset(d, 0, sizeof(*d)); + + memset(&tp_cfg, 0, sizeof(tp_cfg)); + tp_cfg.flags = 0; + tp_cfg.num_threads = num_simd_cpus; + tp_cfg.userdata = NULL; + + d->tp = fy_thread_pool_create(&tp_cfg); + if (!d->tp) + goto err_out; + + /* probe for available backends */ + supported_backends = blake3_get_supported_backends(); + detected_backends = blake3_get_detected_backends(); + selectable_backends = supported_backends & detected_backends; + + /* remove ourselves (and anything above) */ + selectable_backends &= B3BF_BIT(B3BID_CPUSIMD) - 1; + + /* select the best one for hash many */ + be_best = blake3_backend_select_function(selectable_backends, B3FID_HASH_MANY); + assert(be_best); + + d->num_cpus = num_cpus; + d->simd_cpus = num_simd_cpus; + d->be_best = be_best; + d->be_simd_degree_mult = be_best->info.simd_degree * mult_fact; + + be->hasher_ops = be_best->hasher_ops; + + d->description = NULL; + n = 0; + for (;;) { + n = snprintf(d->description, n ? (n + 1) : 0, "SIMD like acceleration using %u CPUs (using %s x %u) x %u = total x %u", + d->simd_cpus, + d->be_best->info.name, d->be_best->info.simd_degree, + mult_fact, + d->be_simd_degree_mult * d->simd_cpus); + if (d->description) + break; + + d->description = malloc(n + 1); + if (!d->description) + goto err_out; + } + + be->user = d; + + be->info.id = B3BID_CPUSIMD; + be->info.name = "cpusimd"; + be->info.simd_degree = d->simd_cpus * d->be_best->info.simd_degree * mult_fact; + be->info.description = d->description; + + be->hash_many = blake3_hash_many_cpusimd; + be->info.funcs = B3FF_HASH_MANY; + + return 0; + +err_out: + cpusimd_data_free(d); + return -1; +} + +void blake3_backend_cpusimd_cleanup(void) +{ + blake3_backend *be = &blake3_backends[B3BID_CPUSIMD]; + struct cpusimd_data *d; + + d = be->user; + if (!d) + return; + cpusimd_data_free(d); + + memset(be, 0, sizeof(*be)); +} diff --git a/Sources/Cfyaml/src/blake3/blake3_host_state.c b/Sources/Cfyaml/src/blake3/blake3_host_state.c new file mode 100644 index 000000000..f76b9cb96 --- /dev/null +++ b/Sources/Cfyaml/src/blake3/blake3_host_state.c @@ -0,0 +1,569 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "fy-bit64.h" + +#include "blake3.h" +#include "blake3_impl.h" +#include "blake3_internal.h" + +#include "fy-thread.h" + +/* 256K threshold for using alloca */ +#define BLAKE3_ALLOCA_BUFFER_SIZE (256U << 10) +#define BLAKE3_FILE_IO_BUFFER_SIZE BLAKE3_ALLOCA_BUFFER_SIZE +#define BLAKE3_MMAP_MIN_CHUNKSIZE (1U << 20) // minimum chunksize is 1MB +#define BLAKE3_MMAP_MAX_CHUNKSIZE SIZE_MAX + +static int probe_backends(blake3_host_state *hs) +{ + hs->supported_backends = blake3_get_supported_backends(); + hs->detected_backends = blake3_get_detected_backends(); + hs->selectable_backends = hs->supported_backends & hs->detected_backends; + + return 0; +} + +static int select_backends(blake3_host_state *hs) +{ + const blake3_backend *be, *be_portable; + + /* this is the fallback */ + be_portable = blake3_get_backend_by_id(B3BID_PORTABLE); + assert(be_portable); + + /* if there's a backend selected, try to force it */ + if (hs->cfg.backend && hs->cfg.backend[0] && strcmp(hs->cfg.backend, "auto")) { + be = blake3_get_backend_by_name(hs->cfg.backend); + + /* if backend exists and is selectable */ + if (be && (hs->selectable_backends & FY_BIT64(be->info.id))) { + hs->hash_many_be = (be->info.funcs & B3FF_HASH_MANY) ? be : be_portable; + hs->compress_xof_be = (be->info.funcs & B3FF_COMPRESS_XOF) ? be : be_portable; + hs->compress_in_place_be = (be->info.funcs & B3FF_COMPRESS_IN_PLACE) ? be : be_portable; + + /* and select the ops (piggyback on HASH_MANY) */ + hs->hasher_ops = (be->info.funcs & B3FF_HASH_MANY) ? be->hasher_ops : be_portable->hasher_ops; + } + } + + if (!hs->hash_many_be) { + hs->hash_many_be = blake3_backend_select_function(hs->selectable_backends, B3FID_HASH_MANY); + hs->hasher_ops = hs->hash_many_be->hasher_ops; + } + if (!hs->compress_xof_be) + hs->compress_xof_be = blake3_backend_select_function(hs->selectable_backends, B3FID_COMPRESS_XOF); + if (!hs->compress_in_place_be) + hs->compress_in_place_be = blake3_backend_select_function(hs->selectable_backends, B3FID_COMPRESS_IN_PLACE); + + /* select methods */ + hs->hash_many = hs->hash_many_be->hash_many; + hs->compress_xof = hs->compress_xof_be->compress_xof; + hs->compress_in_place = hs->compress_in_place_be->compress_in_place; + + /* select maximum simd degree */ + if (hs->simd_degree < hs->hash_many_be->info.simd_degree) + hs->simd_degree = hs->hash_many_be->info.simd_degree; + if (hs->simd_degree < hs->compress_xof_be->info.simd_degree) + hs->simd_degree = hs->compress_xof_be->info.simd_degree; + if (hs->simd_degree < hs->compress_in_place_be->info.simd_degree) + hs->simd_degree = hs->compress_in_place_be->info.simd_degree; + + return 0; +} + +static void dump_backends(blake3_host_state *hs, uint64_t backends) +{ + const blake3_backend *be; + int i; + + for (i = 0; i < B3BID_COUNT; i++) { + if (!(backends & FY_BIT64(i))) + continue; + be = blake3_get_backend_by_id(i); + assert(be); + + fprintf(stderr, "%sname: %s\n%sdescription: %s\n%ssimd_degree: %u\n%shas_hash_many: %s\n%shas_compress_xof: %s\n%shas_compress_in_place: %s\n", + " -", be->info.name, + " ", be->info.description, + " ", be->info.simd_degree, + " ", (be->info.funcs & B3FF_HASH_MANY) ? "true" : "false", + " ", (be->info.funcs & B3FF_COMPRESS_XOF) ? "true" : "false", + " ", (be->info.funcs & B3FF_COMPRESS_IN_PLACE) ? "true" : "false"); + } +} + +int blake3_host_state_setup(blake3_host_state *hs, const blake3_host_config *cfg) +{ + struct fy_thread_pool_cfg tp_cfg; + long scval; + int rc; + + (void)rc; + + assert(hs); + assert(cfg); + + memset(hs, 0, sizeof(*hs)); + hs->cfg = *cfg; + + scval = sysconf(_SC_NPROCESSORS_ONLN); + assert(scval > 0); + + hs->num_cpus = (unsigned int)scval; + + rc = probe_backends(hs); + assert(!rc); + + rc = select_backends(hs); + assert(!rc); + + hs->mt_degree = hs->cfg.mt_degree > 0 ? hs->cfg.mt_degree : 64; /* 64K default */ + hs->tp = NULL; + + if (!hs->cfg.no_mthread) { + + if (!hs->cfg.tp) { + memset(&tp_cfg, 0, sizeof(tp_cfg)); + tp_cfg.flags = FYTPCF_STEAL_MODE; + tp_cfg.num_threads = hs->cfg.num_threads ? hs->cfg.num_threads : (hs->num_cpus * 3) / 2; + tp_cfg.userdata = NULL; + hs->tp = fy_thread_pool_create(&tp_cfg); + if (!hs->tp) + goto err_out; + } else + hs->tp = hs->cfg.tp; + } + + hs->file_io_bufsz = hs->cfg.file_io_bufsz ? hs->cfg.file_io_bufsz : BLAKE3_FILE_IO_BUFFER_SIZE; + hs->mmap_min_chunk = hs->cfg.mmap_min_chunk ? hs->cfg.mmap_min_chunk : BLAKE3_MMAP_MIN_CHUNKSIZE; + hs->mmap_max_chunk = hs->cfg.mmap_max_chunk ? hs->cfg.mmap_max_chunk : BLAKE3_MMAP_MAX_CHUNKSIZE; + + if (hs->cfg.debug) { + + fprintf(stderr, "num_cpus: %u\n", hs->num_cpus); + fprintf(stderr, "num_threads: %d\n", hs->tp ? fy_thread_pool_get_num_threads(hs->tp) : 0); + fprintf(stderr, "simd_degree: %u\n", hs->simd_degree); + fprintf(stderr, "mt_degree: %u\n", hs->mt_degree); + fprintf(stderr, "file_io_bufsz: %zu\n", hs->file_io_bufsz); + fprintf(stderr, "mmap_min_chunk: %zu\n", hs->mmap_min_chunk); + fprintf(stderr, "mmap_max_chunk: %zu\n", hs->mmap_max_chunk); + + fprintf(stderr, "supported_backends:\n"); + dump_backends(hs, hs->supported_backends); + fprintf(stderr, "detected_backends:\n"); + dump_backends(hs, hs->detected_backends); + + fprintf(stderr, "selected-backends:\n"); + fprintf(stderr, " hash_many: %s\n", hs->hash_many_be->info.name); + fprintf(stderr, " compress_xof: %s\n", hs->compress_xof_be->info.name); + fprintf(stderr, " compress_in_place: %s\n", hs->compress_in_place_be->info.name); + + } + + return 0; + +err_out: + return -1; +} + +void blake3_host_state_cleanup(blake3_host_state *hs) +{ + assert(hs); + + /* destroy the thread pool if we're the ones created it */ + if (hs->tp && !hs->cfg.tp) + fy_thread_pool_destroy(hs->tp); +} + +blake3_host_state *blake3_host_state_create(const blake3_host_config *cfg) +{ + blake3_host_state *hs; + int rc; + + hs = malloc(sizeof(*hs)); + if (!hs) + return NULL; + rc = blake3_host_state_setup(hs, cfg); + if (rc) + goto err_out; + + return hs; + +err_out: + if (hs) + free(hs); + return NULL; +} + +void blake3_host_state_destroy(blake3_host_state *hs) +{ + if (!hs) + return; + blake3_host_state_cleanup(hs); + free(hs); +} + +blake3_hasher *blake3_hasher_create(blake3_host_state *hs, const uint8_t *key, const void *context, size_t context_len) +{ + blake3_hasher *self; + + self = fy_cacheline_alloc(sizeof(*self)); + if (!self) + return NULL; + + if (!key && !context) + blake3_hasher_init(hs, self); + else if (key) + blake3_hasher_init_keyed(hs, self, key); + else if (context_len == 0) + blake3_hasher_init_derive_key(hs, self, context); + else + blake3_hasher_init_derive_key_raw(hs, self, context, context_len); + return self; +} + +void blake3_hasher_destroy(blake3_hasher *self) +{ + if (!self) + return; + fy_cacheline_free(self); +} + +#if defined(__linux__) + +static int linux_block_dev_is_rotational(dev_t dev) +{ + char *path = NULL; + int rc, fd; + uint8_t c[2]; + int rotational; + + /* by default it's the filesize */ + rotational = -1; /* not found */ + + /* read the rotational attribute of the root */ + rc = asprintf(&path, "/sys/dev/block/%u:%u/queue/rotational", major(dev), 0); + if (rc != -1) { + fd = open(path, O_RDONLY); + if (fd != -1) { + if (read(fd, c, 2) == 2) + rotational = c[0] == '1' && c[1] == '\n'; + close(fd); + } + free(path); + } + + return rotational; +} + +static ssize_t linux_file_cached_size(int fd, void *mem, size_t filesize) +{ + long pagesize = sysconf(_SC_PAGESIZE); + size_t vec_size, resident_size, i; + unsigned char *vec; + int rc; + + (void)rc; + vec_size = (filesize + pagesize - 1) / pagesize; + vec = malloc(vec_size + 1); + if (!vec) + return -1; + + rc = mincore(mem, filesize, vec); + assert(!rc); + + /* this could be parallelized */ + resident_size = 0; + for (i = 0; i < vec_size; i++) { + if (vec[i] & 1) + resident_size += pagesize; + } + + free(vec); + + if (resident_size > filesize) + resident_size = filesize; + + return (ssize_t)resident_size; +} + +static size_t blake3_mmap_file_chunksize(int fd, dev_t dev, void *mem, + size_t filesize, + size_t mmap_min_chunk, size_t mmap_max_chunk) +{ + size_t chunksize; + ssize_t cached_size; + int rotational; + + if (filesize <= mmap_min_chunk) + return filesize; + + /* by default it's the filesize */ + chunksize = filesize; + + /* starting, check if the rotational attribute exists in this dev */ + rotational = linux_block_dev_is_rotational(dev); + if (rotational == -1) { + /* attribute not found? check the non-partition */ + rotational = linux_block_dev_is_rotational(makedev(major(dev), 0)); + } + + if (rotational == 1) { + /* OK, it's rotational, but is it in cache? + * to avoid checking for the cached status of the whole file + * we just probe the MIN_CHUNKSIZE + * We will thrash in the case where the file is only cached + * for the first few bytes, but this is generally unusual. + */ + cached_size = linux_file_cached_size(fd, mem, mmap_min_chunk); + + if (cached_size <= 0) + chunksize = mmap_min_chunk; + } + + if (chunksize > mmap_max_chunk) + chunksize = mmap_max_chunk; + + return chunksize; +} + +#else + +static size_t blake3_mmap_file_chunksize(int fd, dev_t dev, void *mem, + size_t filesize, + size_t mmap_min_chunk, size_t mmap_max_chunk) +{ + if (filesize <= mmap_min_chunk) + return filesize; + + if (filesize > mmap_max_chunk) + return mmap_max_chunk; + + /* for all others, just use mmap at max */ + return filesize; +} + +#endif + +int blake3_hash_file(blake3_hasher *hasher, const char *filename, + uint8_t output[BLAKE3_OUT_LEN]) +{ + blake3_host_state *hs; + FILE *fp = NULL; + void *mem = NULL, *buf = NULL, *p; + int fd = -1, ret = -1; + size_t rdn, filesize, bufsz = 0, max_chunk, left, chunk; + struct stat sb; + dev_t dev = 0; + int rc; + + if (!hasher || !filename || !output) + return -1; + + hs = hasher->hs; + + if (hs->cfg.debug) + fprintf(stderr, "processing file %s\n", filename); + + // reset the hasher (do not initialize again) + blake3_hasher_reset(hasher); + + if (!strcmp(filename, "-")) { + fp = stdin; + } else { + fp = NULL; + + fd = open(filename, O_RDONLY); + if (fd < 0) { + if (hs->cfg.debug) + fprintf(stderr, "unable to open %s - %s\n", + filename, strerror(errno)); + goto err_out; + } + + rc = fstat(fd, &sb); + if (rc < 0) { + if (hs->cfg.debug) + fprintf(stderr, "failed to stat %s - %s\n", + filename, strerror(errno)); + goto err_out; + } + + if (!S_ISREG(sb.st_mode)) { + if (S_ISDIR(sb.st_mode)) + errno = EISDIR; + else + errno = EINVAL; + if (hs->cfg.debug) + fprintf(stderr, "not a regular file %s - %s\n", + filename, strerror(errno)); + goto err_out; + } + + filesize = (size_t)-1; + + /* try to mmap */ + if (sb.st_size > 0 && !hs->cfg.no_mmap) { + filesize = sb.st_size; + mem = mmap(NULL, sb.st_size, PROT_READ, MAP_PRIVATE, fd, 0); + if (mem != MAP_FAILED) { + close(fd); + fd = -1; + dev = sb.st_dev; + } else + mem = NULL; + } + + /* unable to map? fallback to stream mode */ + if (!mem) { + fp = fdopen(fd, "r"); + if (!fp) { + if (hs->cfg.debug) + fprintf(stderr, "unable to fdopen %s - %s\n", + filename, strerror(errno)); + goto err_out; + } + } + } + + /* mmap case, very simple */ + if (mem) { + + /* if the file is small enough don't bother with the rest */ + max_chunk = blake3_mmap_file_chunksize(fd, dev, mem, filesize, + hs->mmap_min_chunk, hs->mmap_max_chunk); + + p = mem; + left = filesize; + while (left > 0) { + chunk = left > max_chunk ? max_chunk : left; + blake3_hasher_update(hasher, p, chunk); + p += chunk; + left -= chunk; + } + } else { + /* slow path using file reads */ + + assert(fp); + + bufsz = hs->file_io_bufsz; + + /* for less than 8MB alloca */ + if (bufsz <= BLAKE3_ALLOCA_BUFFER_SIZE) { + buf = alloca(bufsz); + } else { + buf = malloc(bufsz); + if (!buf) { + if (hs->cfg.debug) + fprintf(stderr, "Unable to allocate buffer of %zu bytes\n", + bufsz); + goto err_out; + } + } + + do { + rdn = fread(buf, 1, bufsz, fp); + if (rdn == 0) + break; + if (rdn > 0) + blake3_hasher_update(hasher, buf, rdn); + } while (rdn >= bufsz); + } + + // Finalize the hash. BLAKE3_OUT_LEN is the default output length, 32 bytes. + blake3_hasher_finalize(hasher, output, BLAKE3_OUT_LEN); + + ret = 0; + +out: + if (mem) + munmap(mem, filesize); + + if (fp && fp != stdin) + fclose(fp); + + if (fd >= 0) + close(fd); + + if (buf && (bufsz > BLAKE3_ALLOCA_BUFFER_SIZE)) + free(buf); + + return ret; + +err_out: + ret = -1; + goto out; +} + +void blake3_hash(struct blake3_hasher *hasher, + const void *mem, size_t size, uint8_t output[BLAKE3_OUT_LEN]) +{ + blake3_hasher_reset(hasher); + blake3_hasher_update(hasher, mem, size); + blake3_hasher_finalize(hasher, output, BLAKE3_OUT_LEN); +} + +const char *blake3_version(void) +{ + return BLAKE3_VERSION_STRING; +} + +void blake3_hasher_init(struct blake3_host_state *hs, struct blake3_hasher *self) +{ + hs->hasher_ops->hasher_init(hs, self); +} + +void blake3_hasher_init_keyed(struct blake3_host_state *hs, struct blake3_hasher *self, const uint8_t key[BLAKE3_KEY_LEN]) +{ + hs->hasher_ops->hasher_init_keyed(hs, self, key); +} + +void blake3_hasher_init_derive_key(struct blake3_host_state *hs, struct blake3_hasher *self, const char *context) +{ + hs->hasher_ops->hasher_init_derive_key(hs, self, context); +} + +void blake3_hasher_init_derive_key_raw(struct blake3_host_state *hs, struct blake3_hasher *self, const void *context, size_t context_len) +{ + hs->hasher_ops->hasher_init_derive_key_raw(hs, self, context, context_len); +} + +void blake3_hasher_update(struct blake3_hasher *self, const void *input, size_t input_len) +{ + blake3_host_state *hs = self->hs; + hs->hasher_ops->hasher_update(self, input, input_len); +} + +void blake3_hasher_finalize(const struct blake3_hasher *self, uint8_t *out, size_t out_len) +{ + blake3_host_state *hs = self->hs; + hs->hasher_ops->hasher_finalize(self, out, out_len); +} + +void blake3_hasher_finalize_seek(const struct blake3_hasher *self, uint64_t seek, uint8_t *out, size_t out_len) +{ + blake3_host_state *hs = self->hs; + hs->hasher_ops->hasher_finalize_seek(self, seek, out, out_len); +} + +void blake3_hasher_reset(struct blake3_hasher *self) +{ + blake3_host_state *hs = self->hs; + hs->hasher_ops->hasher_reset(self); +} diff --git a/Sources/Cfyaml/src/blake3/blake3_impl.h b/Sources/Cfyaml/src/blake3/blake3_impl.h new file mode 100644 index 000000000..230dc49dd --- /dev/null +++ b/Sources/Cfyaml/src/blake3/blake3_impl.h @@ -0,0 +1,234 @@ +#ifndef BLAKE3_IMPL_H +#define BLAKE3_IMPL_H + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include +#include +#include +#include + +#ifndef _WIN32 +#include +#if defined(__linux__) +#include +#endif +#endif + +#if defined(__linux__) +#include +#endif + +#include "blake3.h" + +#include "fy-endian.h" +#include "fy-blob.h" +#include "fy-bit64.h" +#include "fy-align.h" + +#if defined(HAVE_STRING_OP_OVERREAD) && HAVE_STRING_OP_OVERREAD && defined(__GNUC__) && !defined(__clang__) +#define GCC_DISABLE_WSTRING_OP_OVERREAD +#endif + +/* this is the best alignment for blake3 */ +#if defined(__x86_64__) || defined(_M_X64) +#define BLAKE3_ALIGNMENT 64 +#else +#define BLAKE3_ALIGNMENT 32 +#endif + +#define BLAKE3_ALIGN FY_ALIGNED_TO(BLAKE3_ALIGNMENT) + +// This C implementation tries to support recent versions of GCC, Clang, and +// MSVC. +#if defined(_MSC_VER) +#define INLINE static __forceinline +#else +#define INLINE static inline __attribute__((always_inline)) +#endif + +#if defined(__x86_64__) || defined(_M_X64) +#define IS_X86 +#define IS_X86_64 +#endif + +#if defined(__i386__) || defined(_M_IX86) +#define IS_X86 +#define IS_X86_32 +#endif + +#if defined(__aarch64__) || defined(_M_ARM64) +#define IS_AARCH64 +#define IS_ARM +#endif + +#if defined(IS_X86) +#if defined(_MSC_VER) +#include +#endif +#endif + +/* Find index of the highest set bit */ +/* x is assumed to be nonzero. */ +static inline unsigned int highest_one(uint64_t x) +{ +#if defined(__GNUC__) || defined(__clang__) + return 63 ^ (unsigned int)__builtin_clzll(x); +#elif defined(_MSC_VER) && defined(IS_X86_64) + unsigned long index; + _BitScanReverse64(&index, x); + return index; +#elif defined(_MSC_VER) && defined(IS_X86_32) + unsigned long index; + + if(x >> 32) { + _BitScanReverse(&index, (unsigned long)(x >> 32)); + index += 32; + } else + _BitScanReverse(&index, (unsigned long)x); + return index; +#else + unsigned int c = 0; + + if (x & 0xffffffff00000000ULL) { x >>= 32; c += 32; } + if (x & 0x00000000ffff0000ULL) { x >>= 16; c += 16; } + if (x & 0x000000000000ff00ULL) { x >>= 8; c += 8; } + if (x & 0x00000000000000f0ULL) { x >>= 4; c += 4; } + if (x & 0x000000000000000cULL) { x >>= 2; c += 2; } + if (x & 0x0000000000000002ULL) { c += 1; } + return c; +#endif +} + +static inline unsigned int lowest_one(uint64_t x) +{ +#if defined(__GNUC__) || defined(__clang__) + return (unsigned int)__builtin_ctzll(x); +#else + unsigned int c = 0; + + if (!(x & 0x00000000ffffffffULL)) { x >>= 32; c += 32; } + if (!(x & 0x000000000000ffffULL)) { x >>= 16; c += 16; } + if (!(x & 0x00000000000000ffULL)) { x >>= 8; c += 8; } + if (!(x & 0x000000000000000fULL)) { x >>= 4; c += 4; } + if (!(x & 0x0000000000000003ULL)) { x >>= 2; c += 2; } + if (!(x & 0x0000000000000001ULL)) { c += 1; } + return c; +#endif +} + +// Count the number of 1 bits. +static inline unsigned int popcnt(uint64_t x) +{ +#if defined(__GNUC__) || defined(__clang__) + return (unsigned int)__builtin_popcountll(x); +#else + unsigned int count = 0; + while (x != 0) { + count++; + x &= x - 1; + } + return count; +#endif +} + +// Largest power of two less than or equal to x. As a special case, returns 1 +// when x is 0. +static inline uint64_t round_down_to_power_of_2(uint64_t x) +{ + return 1ULL << highest_one(x | 1); +} + +static inline uint32_t counter_low(uint64_t counter) +{ + return (uint32_t)counter; +} + +static inline uint32_t counter_high(uint64_t counter) +{ + return (uint32_t)(counter >> 32); +} + +static inline uint32_t load32(const void *src) +{ +#if __BYTE_ORDER == __LITTLE_ENDIAN + return *(const uint32_t *)src; +#else + const uint8_t *p = (const uint8_t *)src; + return ((uint32_t)(p[0]) << 0) | ((uint32_t)(p[1]) << 8) | + ((uint32_t)(p[2]) << 16) | ((uint32_t)(p[3]) << 24); +#endif +} + +static inline void load_key_words(const uint8_t key[BLAKE3_KEY_LEN], uint32_t key_words[8]) +{ +#if __BYTE_ORDER == __LITTLE_ENDIAN + memcpy(key_words, key, BLAKE3_KEY_LEN); +#else + key_words[0] = load32(&key[0 * 4]); + key_words[1] = load32(&key[1 * 4]); + key_words[2] = load32(&key[2 * 4]); + key_words[3] = load32(&key[3 * 4]); + key_words[4] = load32(&key[4 * 4]); + key_words[5] = load32(&key[5 * 4]); + key_words[6] = load32(&key[6 * 4]); + key_words[7] = load32(&key[7 * 4]); +#endif +} + +static inline void store32(void *dst, uint32_t w) +{ +#if __BYTE_ORDER == __LITTLE_ENDIAN + *(uint32_t *)dst = w; +#else + uint8_t *p = (uint8_t *)dst; + + p[0] = (uint8_t)(w >> 0); + p[1] = (uint8_t)(w >> 8); + p[2] = (uint8_t)(w >> 16); + p[3] = (uint8_t)(w >> 24); +#endif +} + +static inline void store_cv_words(uint8_t bytes_out[BLAKE3_OUT_LEN], uint32_t cv_words[BLAKE3_OUT_WORDS]) +{ +#if __BYTE_ORDER == __LITTLE_ENDIAN + memcpy(bytes_out, cv_words, BLAKE3_KEY_LEN); +#else + store32(&bytes_out[0 * 4], cv_words[0]); + store32(&bytes_out[1 * 4], cv_words[1]); + store32(&bytes_out[2 * 4], cv_words[2]); + store32(&bytes_out[3 * 4], cv_words[3]); + store32(&bytes_out[4 * 4], cv_words[4]); + store32(&bytes_out[5 * 4], cv_words[5]); + store32(&bytes_out[6 * 4], cv_words[6]); + store32(&bytes_out[7 * 4], cv_words[7]); +#endif +} + +/* the IV */ +#define B3_IV_0 ((uint32_t)0x6A09E667UL) +#define B3_IV_1 ((uint32_t)0xBB67AE85UL) +#define B3_IV_2 ((uint32_t)0x3C6EF372UL) +#define B3_IV_3 ((uint32_t)0xA54FF53AUL) +#define B3_IV_4 ((uint32_t)0x510E527FUL) +#define B3_IV_5 ((uint32_t)0x9B05688CUL) +#define B3_IV_6 ((uint32_t)0x1F83D9ABUL) +#define B3_IV_7 ((uint32_t)0x5BE0CD19UL) + +/* the message schedule definition */ +#define B3_MSG_SCHEDULE_DEF \ + {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}, \ + {2, 6, 3, 10, 7, 0, 4, 13, 1, 11, 12, 5, 9, 14, 15, 8}, \ + {3, 4, 10, 12, 13, 2, 7, 14, 6, 5, 9, 0, 11, 15, 8, 1}, \ + {10, 7, 12, 9, 14, 3, 13, 15, 4, 0, 11, 2, 5, 8, 1, 6}, \ + {12, 13, 9, 11, 15, 10, 14, 8, 7, 2, 5, 3, 0, 1, 6, 4}, \ + {9, 14, 11, 5, 8, 12, 15, 1, 13, 3, 0, 10, 2, 6, 4, 7}, \ + {11, 15, 5, 0, 1, 9, 8, 6, 14, 10, 2, 12, 3, 4, 7, 13} + +#endif /* BLAKE3_IMPL_H */ diff --git a/Sources/Cfyaml/src/blake3/blake3_internal.h b/Sources/Cfyaml/src/blake3/blake3_internal.h new file mode 100644 index 000000000..2bfa42e8a --- /dev/null +++ b/Sources/Cfyaml/src/blake3/blake3_internal.h @@ -0,0 +1,158 @@ +#ifndef BLAKE3_INTERNAL_H +#define BLAKE3_INTERNAL_H + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include + +#include "blake3.h" + +#include "blake3_impl.h" + +#define BLAKE3_MAX_DEPTH 54 + +// fwd declaration of opaque types +struct blake3_host_state; +struct blake3_hasher; +struct fy_thread_pool; + +// internal flags +enum blake3_flags { + CHUNK_START = 1 << 0, + CHUNK_END = 1 << 1, + PARENT = 1 << 2, + ROOT = 1 << 3, + KEYED_HASH = 1 << 4, + DERIVE_KEY_CONTEXT = 1 << 5, + DERIVE_KEY_MATERIAL = 1 << 6, +}; + +typedef struct blake3_chunk_state { + uint32_t cv[8] BLAKE3_ALIGN; + uint8_t buf[BLAKE3_BLOCK_LEN] BLAKE3_ALIGN; + uint64_t chunk_counter; + uint8_t buf_len; + uint8_t blocks_compressed; + uint8_t flags; +} blake3_chunk_state BLAKE3_ALIGN; + +typedef struct blake3_hasher { + struct blake3_host_state *hs; + uint32_t key[8] BLAKE3_ALIGN; + blake3_chunk_state chunk BLAKE3_ALIGN; + // The stack size is MAX_DEPTH + 1 because we do lazy merging. For example, + // with 7 chunks, we have 3 entries in the stack. Adding an 8th chunk + // requires a 4th entry, rather than merging everything down to 1, because we + // don't know whether more input is coming. This is different from how the + // reference implementation does things. + uint8_t cv_stack[(BLAKE3_MAX_DEPTH + 1) * BLAKE3_OUT_LEN] BLAKE3_ALIGN; + uint8_t cv_stack_len; +} blake3_hasher BLAKE3_ALIGN; + +typedef void (*blake3_hash_many_f)(const uint8_t *const *inputs, size_t num_inputs, + size_t blocks, const uint32_t key[8], uint64_t counter, + bool increment_counter, uint8_t flags, + uint8_t flags_start, uint8_t flags_end, uint8_t *out); + +typedef void (*blake3_compress_xof_f)(const uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, uint8_t flags, + uint8_t out[64]); + +typedef void (*blake3_compress_in_place_f)(uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, + uint8_t flags); + +typedef struct blake3_backend { + const blake3_hasher_ops *hasher_ops; + blake3_backend_info info; + blake3_hash_many_f hash_many; + blake3_compress_xof_f compress_xof; + blake3_compress_in_place_f compress_in_place; + void *user; /* per backend data */ +} blake3_backend; + +// the state for the thread when doing compress subtree +typedef struct blake3_compress_subtree_state { + struct blake3_hasher *self; + // inputs + const uint8_t *input; + size_t input_len; + const uint32_t *key; + uint64_t chunk_counter; + uint8_t flags; + // outputs + uint8_t *out; + size_t n; +} blake3_compress_subtree_state; + +typedef struct blake3_hash_many_common_state { + blake3_hash_many_f hash_many; + size_t blocks; + const uint32_t *key; + bool increment_counter; + uint8_t flags, flags_start, flags_end; +} blake3_hash_many_common_state; + +typedef struct blake3_hash_many_state { + const blake3_hash_many_common_state *common; + const uint8_t *const *inputs; + size_t num_inputs; + uint64_t counter; + uint8_t *out; +} blake3_hash_many_state; + +typedef struct blake3_host_state { + blake3_host_config cfg; + unsigned int num_cpus; + uint64_t supported_backends; + uint64_t detected_backends; + uint64_t selectable_backends; + + /* backend for hash_many */ + const blake3_backend *hash_many_be; + blake3_hash_many_f hash_many; + + /* backend for compress_xof */ + const blake3_backend *compress_xof_be; + blake3_compress_xof_f compress_xof; + + /* backend for compress_in_place */ + const blake3_backend *compress_in_place_be; + blake3_compress_in_place_f compress_in_place; + + const blake3_hasher_ops *hasher_ops; + + unsigned int simd_degree; + unsigned int mt_degree; + + unsigned int num_threads; + + struct fy_thread_pool *tp; + + size_t file_io_bufsz; + size_t mmap_min_chunk; + size_t mmap_max_chunk; + +} blake3_host_state; + +int blake3_host_state_setup(blake3_host_state *hs, const blake3_host_config *cfg); +void blake3_host_state_cleanup(blake3_host_state *hs); + +extern blake3_backend blake3_backends[B3BID_COUNT]; + +const blake3_backend *blake3_backend_select_function(uint64_t selectable_backends, blake3_func_id fid); +const blake3_backend *blake3_get_backend_by_id(blake3_backend_id id); +const blake3_backend *blake3_get_backend_by_name(const char *name); +const blake3_backend_info *blake3_get_backend_info(blake3_backend_id id); + +void blake3_cpusimd_setup(unsigned int num_cpus, unsigned int mult_fact); +void blake3_cpusimd_cleanup(void); + +#endif diff --git a/Sources/Cfyaml/src/blake3/blake3_neon.c b/Sources/Cfyaml/src/blake3/blake3_neon.c new file mode 100644 index 000000000..e7caba3e4 --- /dev/null +++ b/Sources/Cfyaml/src/blake3/blake3_neon.c @@ -0,0 +1,375 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "blake3_impl.h" + +#include + +/* define it here instead of the header */ +static const uint8_t MSG_SCHEDULE[7][16] = { B3_MSG_SCHEDULE_DEF }; + +#ifdef __ARM_BIG_ENDIAN +#error "This implementation only supports little-endian ARM." +// It might be that all we need for big-endian support here is to get the loads +// and stores right, but step zero would be finding a way to test it in CI. +#endif + +INLINE uint32x4_t loadu_128(const uint8_t src[16]) { + // vld1q_u32 has alignment requirements. Don't use it. + uint32x4_t x; + memcpy(&x, src, 16); + return x; +} + +INLINE void storeu_128(uint32x4_t src, uint8_t dest[16]) { + // vst1q_u32 has alignment requirements. Don't use it. + memcpy(dest, &src, 16); +} + +INLINE uint32x4_t add_128(uint32x4_t a, uint32x4_t b) { + return vaddq_u32(a, b); +} + +INLINE uint32x4_t xor_128(uint32x4_t a, uint32x4_t b) { + return veorq_u32(a, b); +} + +INLINE uint32x4_t set1_128(uint32_t x) { return vld1q_dup_u32(&x); } + +INLINE uint32x4_t set4(uint32_t a, uint32_t b, uint32_t c, uint32_t d) { + uint32_t array[4] = {a, b, c, d}; + return vld1q_u32(array); +} + +INLINE uint32x4_t rot16_128(uint32x4_t x) { + // The straightfoward implementation would be two shifts and an or, but that's + // slower on microarchitectures we've tested. See + // https://github.com/BLAKE3-team/BLAKE3/pull/319. + // return vorrq_u32(vshrq_n_u32(x, 16), vshlq_n_u32(x, 32 - 16)); + return vreinterpretq_u32_u16(vrev32q_u16(vreinterpretq_u16_u32(x))); +} + +INLINE uint32x4_t rot12_128(uint32x4_t x) { + // See comment in rot16_128. + // return vorrq_u32(vshrq_n_u32(x, 12), vshlq_n_u32(x, 32 - 12)); + return vsriq_n_u32(vshlq_n_u32(x, 32-12), x, 12); +} + +INLINE uint32x4_t rot8_128(uint32x4_t x) { + // See comment in rot16_128. + // return vorrq_u32(vshrq_n_u32(x, 8), vshlq_n_u32(x, 32 - 8)); +#if defined(__clang__) + return vreinterpretq_u32_u8(__builtin_shufflevector(vreinterpretq_u8_u32(x), vreinterpretq_u8_u32(x), 1,2,3,0,5,6,7,4,9,10,11,8,13,14,15,12)); +#elif __GNUC__ * 10000 + __GNUC_MINOR__ * 100 >=40700 + static const uint8x16_t r8 = {1,2,3,0,5,6,7,4,9,10,11,8,13,14,15,12}; + return vreinterpretq_u32_u8(__builtin_shuffle(vreinterpretq_u8_u32(x), vreinterpretq_u8_u32(x), r8)); +#else + return vsriq_n_u32(vshlq_n_u32(x, 32-8), x, 8); +#endif +} + +INLINE uint32x4_t rot7_128(uint32x4_t x) { + // See comment in rot16_128. + // return vorrq_u32(vshrq_n_u32(x, 7), vshlq_n_u32(x, 32 - 7)); + return vsriq_n_u32(vshlq_n_u32(x, 32-7), x, 7); +} + +// TODO: compress_neon + +// TODO: hash2_neon + +/* + * ---------------------------------------------------------------------------- + * hash4_neon + * ---------------------------------------------------------------------------- + */ + +INLINE void round_fn4(uint32x4_t v[16], uint32x4_t m[16], size_t r) { + v[0] = add_128(v[0], m[(size_t)MSG_SCHEDULE[r][0]]); + v[1] = add_128(v[1], m[(size_t)MSG_SCHEDULE[r][2]]); + v[2] = add_128(v[2], m[(size_t)MSG_SCHEDULE[r][4]]); + v[3] = add_128(v[3], m[(size_t)MSG_SCHEDULE[r][6]]); + v[0] = add_128(v[0], v[4]); + v[1] = add_128(v[1], v[5]); + v[2] = add_128(v[2], v[6]); + v[3] = add_128(v[3], v[7]); + v[12] = xor_128(v[12], v[0]); + v[13] = xor_128(v[13], v[1]); + v[14] = xor_128(v[14], v[2]); + v[15] = xor_128(v[15], v[3]); + v[12] = rot16_128(v[12]); + v[13] = rot16_128(v[13]); + v[14] = rot16_128(v[14]); + v[15] = rot16_128(v[15]); + v[8] = add_128(v[8], v[12]); + v[9] = add_128(v[9], v[13]); + v[10] = add_128(v[10], v[14]); + v[11] = add_128(v[11], v[15]); + v[4] = xor_128(v[4], v[8]); + v[5] = xor_128(v[5], v[9]); + v[6] = xor_128(v[6], v[10]); + v[7] = xor_128(v[7], v[11]); + v[4] = rot12_128(v[4]); + v[5] = rot12_128(v[5]); + v[6] = rot12_128(v[6]); + v[7] = rot12_128(v[7]); + v[0] = add_128(v[0], m[(size_t)MSG_SCHEDULE[r][1]]); + v[1] = add_128(v[1], m[(size_t)MSG_SCHEDULE[r][3]]); + v[2] = add_128(v[2], m[(size_t)MSG_SCHEDULE[r][5]]); + v[3] = add_128(v[3], m[(size_t)MSG_SCHEDULE[r][7]]); + v[0] = add_128(v[0], v[4]); + v[1] = add_128(v[1], v[5]); + v[2] = add_128(v[2], v[6]); + v[3] = add_128(v[3], v[7]); + v[12] = xor_128(v[12], v[0]); + v[13] = xor_128(v[13], v[1]); + v[14] = xor_128(v[14], v[2]); + v[15] = xor_128(v[15], v[3]); + v[12] = rot8_128(v[12]); + v[13] = rot8_128(v[13]); + v[14] = rot8_128(v[14]); + v[15] = rot8_128(v[15]); + v[8] = add_128(v[8], v[12]); + v[9] = add_128(v[9], v[13]); + v[10] = add_128(v[10], v[14]); + v[11] = add_128(v[11], v[15]); + v[4] = xor_128(v[4], v[8]); + v[5] = xor_128(v[5], v[9]); + v[6] = xor_128(v[6], v[10]); + v[7] = xor_128(v[7], v[11]); + v[4] = rot7_128(v[4]); + v[5] = rot7_128(v[5]); + v[6] = rot7_128(v[6]); + v[7] = rot7_128(v[7]); + + v[0] = add_128(v[0], m[(size_t)MSG_SCHEDULE[r][8]]); + v[1] = add_128(v[1], m[(size_t)MSG_SCHEDULE[r][10]]); + v[2] = add_128(v[2], m[(size_t)MSG_SCHEDULE[r][12]]); + v[3] = add_128(v[3], m[(size_t)MSG_SCHEDULE[r][14]]); + v[0] = add_128(v[0], v[5]); + v[1] = add_128(v[1], v[6]); + v[2] = add_128(v[2], v[7]); + v[3] = add_128(v[3], v[4]); + v[15] = xor_128(v[15], v[0]); + v[12] = xor_128(v[12], v[1]); + v[13] = xor_128(v[13], v[2]); + v[14] = xor_128(v[14], v[3]); + v[15] = rot16_128(v[15]); + v[12] = rot16_128(v[12]); + v[13] = rot16_128(v[13]); + v[14] = rot16_128(v[14]); + v[10] = add_128(v[10], v[15]); + v[11] = add_128(v[11], v[12]); + v[8] = add_128(v[8], v[13]); + v[9] = add_128(v[9], v[14]); + v[5] = xor_128(v[5], v[10]); + v[6] = xor_128(v[6], v[11]); + v[7] = xor_128(v[7], v[8]); + v[4] = xor_128(v[4], v[9]); + v[5] = rot12_128(v[5]); + v[6] = rot12_128(v[6]); + v[7] = rot12_128(v[7]); + v[4] = rot12_128(v[4]); + v[0] = add_128(v[0], m[(size_t)MSG_SCHEDULE[r][9]]); + v[1] = add_128(v[1], m[(size_t)MSG_SCHEDULE[r][11]]); + v[2] = add_128(v[2], m[(size_t)MSG_SCHEDULE[r][13]]); + v[3] = add_128(v[3], m[(size_t)MSG_SCHEDULE[r][15]]); + v[0] = add_128(v[0], v[5]); + v[1] = add_128(v[1], v[6]); + v[2] = add_128(v[2], v[7]); + v[3] = add_128(v[3], v[4]); + v[15] = xor_128(v[15], v[0]); + v[12] = xor_128(v[12], v[1]); + v[13] = xor_128(v[13], v[2]); + v[14] = xor_128(v[14], v[3]); + v[15] = rot8_128(v[15]); + v[12] = rot8_128(v[12]); + v[13] = rot8_128(v[13]); + v[14] = rot8_128(v[14]); + v[10] = add_128(v[10], v[15]); + v[11] = add_128(v[11], v[12]); + v[8] = add_128(v[8], v[13]); + v[9] = add_128(v[9], v[14]); + v[5] = xor_128(v[5], v[10]); + v[6] = xor_128(v[6], v[11]); + v[7] = xor_128(v[7], v[8]); + v[4] = xor_128(v[4], v[9]); + v[5] = rot7_128(v[5]); + v[6] = rot7_128(v[6]); + v[7] = rot7_128(v[7]); + v[4] = rot7_128(v[4]); +} + +INLINE void transpose_vecs_128(uint32x4_t vecs[4]) { + // Individually transpose the four 2x2 sub-matrices in each corner. + uint32x4x2_t rows01 = vtrnq_u32(vecs[0], vecs[1]); + uint32x4x2_t rows23 = vtrnq_u32(vecs[2], vecs[3]); + + // Swap the top-right and bottom-left 2x2s (which just got transposed). + vecs[0] = + vcombine_u32(vget_low_u32(rows01.val[0]), vget_low_u32(rows23.val[0])); + vecs[1] = + vcombine_u32(vget_low_u32(rows01.val[1]), vget_low_u32(rows23.val[1])); + vecs[2] = + vcombine_u32(vget_high_u32(rows01.val[0]), vget_high_u32(rows23.val[0])); + vecs[3] = + vcombine_u32(vget_high_u32(rows01.val[1]), vget_high_u32(rows23.val[1])); +} + +INLINE void transpose_msg_vecs4(const uint8_t *const *inputs, + size_t block_offset, uint32x4_t out[16]) { + out[0] = loadu_128(&inputs[0][block_offset + 0 * sizeof(uint32x4_t)]); + out[1] = loadu_128(&inputs[1][block_offset + 0 * sizeof(uint32x4_t)]); + out[2] = loadu_128(&inputs[2][block_offset + 0 * sizeof(uint32x4_t)]); + out[3] = loadu_128(&inputs[3][block_offset + 0 * sizeof(uint32x4_t)]); + out[4] = loadu_128(&inputs[0][block_offset + 1 * sizeof(uint32x4_t)]); + out[5] = loadu_128(&inputs[1][block_offset + 1 * sizeof(uint32x4_t)]); + out[6] = loadu_128(&inputs[2][block_offset + 1 * sizeof(uint32x4_t)]); + out[7] = loadu_128(&inputs[3][block_offset + 1 * sizeof(uint32x4_t)]); + out[8] = loadu_128(&inputs[0][block_offset + 2 * sizeof(uint32x4_t)]); + out[9] = loadu_128(&inputs[1][block_offset + 2 * sizeof(uint32x4_t)]); + out[10] = loadu_128(&inputs[2][block_offset + 2 * sizeof(uint32x4_t)]); + out[11] = loadu_128(&inputs[3][block_offset + 2 * sizeof(uint32x4_t)]); + out[12] = loadu_128(&inputs[0][block_offset + 3 * sizeof(uint32x4_t)]); + out[13] = loadu_128(&inputs[1][block_offset + 3 * sizeof(uint32x4_t)]); + out[14] = loadu_128(&inputs[2][block_offset + 3 * sizeof(uint32x4_t)]); + out[15] = loadu_128(&inputs[3][block_offset + 3 * sizeof(uint32x4_t)]); + transpose_vecs_128(&out[0]); + transpose_vecs_128(&out[4]); + transpose_vecs_128(&out[8]); + transpose_vecs_128(&out[12]); +} + +INLINE void load_counters4(uint64_t counter, bool increment_counter, + uint32x4_t *out_low, uint32x4_t *out_high) { + uint64_t mask = (increment_counter ? ~0 : 0); + *out_low = set4( + counter_low(counter + (mask & 0)), counter_low(counter + (mask & 1)), + counter_low(counter + (mask & 2)), counter_low(counter + (mask & 3))); + *out_high = set4( + counter_high(counter + (mask & 0)), counter_high(counter + (mask & 1)), + counter_high(counter + (mask & 2)), counter_high(counter + (mask & 3))); +} + +void blake3_hash4_neon(const uint8_t *const *inputs, size_t blocks, + const uint32_t key[8], uint64_t counter, + bool increment_counter, uint8_t flags, + uint8_t flags_start, uint8_t flags_end, uint8_t *out) { + uint32x4_t h_vecs[8] = { + set1_128(key[0]), set1_128(key[1]), set1_128(key[2]), set1_128(key[3]), + set1_128(key[4]), set1_128(key[5]), set1_128(key[6]), set1_128(key[7]), + }; + uint32x4_t counter_low_vec, counter_high_vec; + load_counters4(counter, increment_counter, &counter_low_vec, + &counter_high_vec); + uint8_t block_flags = flags | flags_start; + + for (size_t block = 0; block < blocks; block++) { + if (block + 1 == blocks) { + block_flags |= flags_end; + } + uint32x4_t block_len_vec = set1_128(BLAKE3_BLOCK_LEN); + uint32x4_t block_flags_vec = set1_128(block_flags); + uint32x4_t msg_vecs[16]; + transpose_msg_vecs4(inputs, block * BLAKE3_BLOCK_LEN, msg_vecs); + + uint32x4_t v[16] = { + h_vecs[0], h_vecs[1], h_vecs[2], h_vecs[3], + h_vecs[4], h_vecs[5], h_vecs[6], h_vecs[7], + set1_128(B3_IV_0), set1_128(B3_IV_1), set1_128(B3_IV_2), set1_128(B3_IV_3), + counter_low_vec, counter_high_vec, block_len_vec, block_flags_vec, + }; + round_fn4(v, msg_vecs, 0); + round_fn4(v, msg_vecs, 1); + round_fn4(v, msg_vecs, 2); + round_fn4(v, msg_vecs, 3); + round_fn4(v, msg_vecs, 4); + round_fn4(v, msg_vecs, 5); + round_fn4(v, msg_vecs, 6); + h_vecs[0] = xor_128(v[0], v[8]); + h_vecs[1] = xor_128(v[1], v[9]); + h_vecs[2] = xor_128(v[2], v[10]); + h_vecs[3] = xor_128(v[3], v[11]); + h_vecs[4] = xor_128(v[4], v[12]); + h_vecs[5] = xor_128(v[5], v[13]); + h_vecs[6] = xor_128(v[6], v[14]); + h_vecs[7] = xor_128(v[7], v[15]); + + block_flags = flags; + } + + transpose_vecs_128(&h_vecs[0]); + transpose_vecs_128(&h_vecs[4]); + // The first four vecs now contain the first half of each output, and the + // second four vecs contain the second half of each output. + storeu_128(h_vecs[0], &out[0 * sizeof(uint32x4_t)]); + storeu_128(h_vecs[4], &out[1 * sizeof(uint32x4_t)]); + storeu_128(h_vecs[1], &out[2 * sizeof(uint32x4_t)]); + storeu_128(h_vecs[5], &out[3 * sizeof(uint32x4_t)]); + storeu_128(h_vecs[2], &out[4 * sizeof(uint32x4_t)]); + storeu_128(h_vecs[6], &out[5 * sizeof(uint32x4_t)]); + storeu_128(h_vecs[3], &out[6 * sizeof(uint32x4_t)]); + storeu_128(h_vecs[7], &out[7 * sizeof(uint32x4_t)]); +} + +/* + * ---------------------------------------------------------------------------- + * hash_many_neon + * ---------------------------------------------------------------------------- + */ + +void blake3_compress_in_place_portable(uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, + uint8_t flags); + +INLINE void hash_one_neon(const uint8_t *input, size_t blocks, + const uint32_t key[8], uint64_t counter, + uint8_t flags, uint8_t flags_start, uint8_t flags_end, + uint8_t out[BLAKE3_OUT_LEN]) { + uint32_t cv[8]; + memcpy(cv, key, BLAKE3_KEY_LEN); + uint8_t block_flags = flags | flags_start; + while (blocks > 0) { + if (blocks == 1) { + block_flags |= flags_end; + } + // TODO: Implement compress_neon. However note that according to + // https://github.com/BLAKE2/BLAKE2/commit/7965d3e6e1b4193438b8d3a656787587d2579227, + // compress_neon might not be any faster than compress_portable. + blake3_compress_in_place_portable(cv, input, BLAKE3_BLOCK_LEN, counter, + block_flags); + input = &input[BLAKE3_BLOCK_LEN]; + blocks -= 1; + block_flags = flags; + } + memcpy(out, cv, BLAKE3_OUT_LEN); +} + +void blake3_hash_many_neon(const uint8_t *const *inputs, size_t num_inputs, + size_t blocks, const uint32_t key[8], + uint64_t counter, bool increment_counter, + uint8_t flags, uint8_t flags_start, + uint8_t flags_end, uint8_t *out) { + while (num_inputs >= 4) { + blake3_hash4_neon(inputs, blocks, key, counter, increment_counter, flags, + flags_start, flags_end, out); + if (increment_counter) { + counter += 4; + } + inputs += 4; + num_inputs -= 4; + out = &out[4 * BLAKE3_OUT_LEN]; + } + while (num_inputs > 0) { + hash_one_neon(inputs[0], blocks, key, counter, flags, flags_start, + flags_end, out); + if (increment_counter) { + counter += 1; + } + inputs += 1; + num_inputs -= 1; + out = &out[BLAKE3_OUT_LEN]; + } +} diff --git a/Sources/Cfyaml/src/blake3/blake3_portable.c b/Sources/Cfyaml/src/blake3/blake3_portable.c new file mode 100644 index 000000000..bd07d0724 --- /dev/null +++ b/Sources/Cfyaml/src/blake3/blake3_portable.c @@ -0,0 +1,167 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "blake3_impl.h" +#include + +/* define it here instead of the header */ +static const uint8_t MSG_SCHEDULE[7][16] = { B3_MSG_SCHEDULE_DEF }; + +INLINE uint32_t rotr32(uint32_t w, uint32_t c) { + return (w >> c) | (w << (32 - c)); +} + +INLINE void g(uint32_t *state, size_t a, size_t b, size_t c, size_t d, + uint32_t x, uint32_t y) { + state[a] = state[a] + state[b] + x; + state[d] = rotr32(state[d] ^ state[a], 16); + state[c] = state[c] + state[d]; + state[b] = rotr32(state[b] ^ state[c], 12); + state[a] = state[a] + state[b] + y; + state[d] = rotr32(state[d] ^ state[a], 8); + state[c] = state[c] + state[d]; + state[b] = rotr32(state[b] ^ state[c], 7); +} + +INLINE void round_fn(uint32_t state[16], const uint32_t *msg, size_t round) { + // Select the message schedule based on the round. + const uint8_t *schedule = MSG_SCHEDULE[round]; + + // Mix the columns. + g(state, 0, 4, 8, 12, msg[schedule[0]], msg[schedule[1]]); + g(state, 1, 5, 9, 13, msg[schedule[2]], msg[schedule[3]]); + g(state, 2, 6, 10, 14, msg[schedule[4]], msg[schedule[5]]); + g(state, 3, 7, 11, 15, msg[schedule[6]], msg[schedule[7]]); + + // Mix the rows. + g(state, 0, 5, 10, 15, msg[schedule[8]], msg[schedule[9]]); + g(state, 1, 6, 11, 12, msg[schedule[10]], msg[schedule[11]]); + g(state, 2, 7, 8, 13, msg[schedule[12]], msg[schedule[13]]); + g(state, 3, 4, 9, 14, msg[schedule[14]], msg[schedule[15]]); +} + +INLINE void compress_pre(uint32_t state[16], const uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, uint8_t flags) { + uint32_t block_words[16]; + block_words[0] = load32(block + 4 * 0); + block_words[1] = load32(block + 4 * 1); + block_words[2] = load32(block + 4 * 2); + block_words[3] = load32(block + 4 * 3); + block_words[4] = load32(block + 4 * 4); + block_words[5] = load32(block + 4 * 5); + block_words[6] = load32(block + 4 * 6); + block_words[7] = load32(block + 4 * 7); + block_words[8] = load32(block + 4 * 8); + block_words[9] = load32(block + 4 * 9); + block_words[10] = load32(block + 4 * 10); + block_words[11] = load32(block + 4 * 11); + block_words[12] = load32(block + 4 * 12); + block_words[13] = load32(block + 4 * 13); + block_words[14] = load32(block + 4 * 14); + block_words[15] = load32(block + 4 * 15); + + state[0] = cv[0]; + state[1] = cv[1]; + state[2] = cv[2]; + state[3] = cv[3]; + state[4] = cv[4]; + state[5] = cv[5]; + state[6] = cv[6]; + state[7] = cv[7]; + state[8] = B3_IV_0; + state[9] = B3_IV_1; + state[10] = B3_IV_2; + state[11] = B3_IV_3; + state[12] = counter_low(counter); + state[13] = counter_high(counter); + state[14] = (uint32_t)block_len; + state[15] = (uint32_t)flags; + + round_fn(state, &block_words[0], 0); + round_fn(state, &block_words[0], 1); + round_fn(state, &block_words[0], 2); + round_fn(state, &block_words[0], 3); + round_fn(state, &block_words[0], 4); + round_fn(state, &block_words[0], 5); + round_fn(state, &block_words[0], 6); +} + +void blake3_compress_in_place_portable(uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, + uint8_t flags) { + uint32_t state[16]; + compress_pre(state, cv, block, block_len, counter, flags); + cv[0] = state[0] ^ state[8]; + cv[1] = state[1] ^ state[9]; + cv[2] = state[2] ^ state[10]; + cv[3] = state[3] ^ state[11]; + cv[4] = state[4] ^ state[12]; + cv[5] = state[5] ^ state[13]; + cv[6] = state[6] ^ state[14]; + cv[7] = state[7] ^ state[15]; +} + +void blake3_compress_xof_portable(const uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, + uint8_t flags, uint8_t out[64]) { + uint32_t state[16]; + compress_pre(state, cv, block, block_len, counter, flags); + + store32(&out[0 * 4], state[0] ^ state[8]); + store32(&out[1 * 4], state[1] ^ state[9]); + store32(&out[2 * 4], state[2] ^ state[10]); + store32(&out[3 * 4], state[3] ^ state[11]); + store32(&out[4 * 4], state[4] ^ state[12]); + store32(&out[5 * 4], state[5] ^ state[13]); + store32(&out[6 * 4], state[6] ^ state[14]); + store32(&out[7 * 4], state[7] ^ state[15]); + store32(&out[8 * 4], state[8] ^ cv[0]); + store32(&out[9 * 4], state[9] ^ cv[1]); + store32(&out[10 * 4], state[10] ^ cv[2]); + store32(&out[11 * 4], state[11] ^ cv[3]); + store32(&out[12 * 4], state[12] ^ cv[4]); + store32(&out[13 * 4], state[13] ^ cv[5]); + store32(&out[14 * 4], state[14] ^ cv[6]); + store32(&out[15 * 4], state[15] ^ cv[7]); +} + +INLINE void hash_one_portable(const uint8_t *input, size_t blocks, + const uint32_t key[8], uint64_t counter, + uint8_t flags, uint8_t flags_start, + uint8_t flags_end, uint8_t out[BLAKE3_OUT_LEN]) { + uint32_t cv[8]; + memcpy(cv, key, BLAKE3_KEY_LEN); + uint8_t block_flags = flags | flags_start; + while (blocks > 0) { + if (blocks == 1) { + block_flags |= flags_end; + } + blake3_compress_in_place_portable(cv, input, BLAKE3_BLOCK_LEN, counter, + block_flags); + input = &input[BLAKE3_BLOCK_LEN]; + blocks -= 1; + block_flags = flags; + } + store_cv_words(out, cv); +} + +void blake3_hash_many_portable(const uint8_t *const *inputs, size_t num_inputs, + size_t blocks, const uint32_t key[8], + uint64_t counter, bool increment_counter, + uint8_t flags, uint8_t flags_start, + uint8_t flags_end, uint8_t *out) { + while (num_inputs > 0) { + hash_one_portable(inputs[0], blocks, key, counter, flags, flags_start, + flags_end, out); + if (increment_counter) { + counter += 1; + } + inputs += 1; + num_inputs -= 1; + out = &out[BLAKE3_OUT_LEN]; + } +} diff --git a/Sources/Cfyaml/src/blake3/blake3_sse2.c b/Sources/Cfyaml/src/blake3/blake3_sse2.c new file mode 100644 index 000000000..f2bb2e3a0 --- /dev/null +++ b/Sources/Cfyaml/src/blake3/blake3_sse2.c @@ -0,0 +1,573 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "blake3_impl.h" + +#include + +/* define it here instead of the header */ +static const uint8_t MSG_SCHEDULE[7][16] = { B3_MSG_SCHEDULE_DEF }; + +#define DEGREE 4 + +#define _mm_shuffle_ps2(a, b, c) \ + (_mm_castps_si128( \ + _mm_shuffle_ps(_mm_castsi128_ps(a), _mm_castsi128_ps(b), (c)))) + +INLINE __m128i loadu(const uint8_t src[16]) { + return _mm_loadu_si128((const __m128i *)src); +} + +INLINE void storeu(__m128i src, uint8_t dest[16]) { + _mm_storeu_si128((__m128i *)dest, src); +} + +INLINE __m128i addv(__m128i a, __m128i b) { return _mm_add_epi32(a, b); } + +// Note that clang-format doesn't like the name "xor" for some reason. +INLINE __m128i xorv(__m128i a, __m128i b) { return _mm_xor_si128(a, b); } + +INLINE __m128i set1(uint32_t x) { return _mm_set1_epi32((int32_t)x); } + +INLINE __m128i set4(uint32_t a, uint32_t b, uint32_t c, uint32_t d) { + return _mm_setr_epi32((int32_t)a, (int32_t)b, (int32_t)c, (int32_t)d); +} + +INLINE __m128i rot16(__m128i x) { + return _mm_shufflehi_epi16(_mm_shufflelo_epi16(x, 0xB1), 0xB1); +} + +INLINE __m128i rot12(__m128i x) { + return xorv(_mm_srli_epi32(x, 12), _mm_slli_epi32(x, 32 - 12)); +} + +INLINE __m128i rot8(__m128i x) { + return xorv(_mm_srli_epi32(x, 8), _mm_slli_epi32(x, 32 - 8)); +} + +INLINE __m128i rot7(__m128i x) { + return xorv(_mm_srli_epi32(x, 7), _mm_slli_epi32(x, 32 - 7)); +} + +INLINE void g1(__m128i *row0, __m128i *row1, __m128i *row2, __m128i *row3, + __m128i m) { + *row0 = addv(addv(*row0, m), *row1); + *row3 = xorv(*row3, *row0); + *row3 = rot16(*row3); + *row2 = addv(*row2, *row3); + *row1 = xorv(*row1, *row2); + *row1 = rot12(*row1); +} + +INLINE void g2(__m128i *row0, __m128i *row1, __m128i *row2, __m128i *row3, + __m128i m) { + *row0 = addv(addv(*row0, m), *row1); + *row3 = xorv(*row3, *row0); + *row3 = rot8(*row3); + *row2 = addv(*row2, *row3); + *row1 = xorv(*row1, *row2); + *row1 = rot7(*row1); +} + +// Note the optimization here of leaving row1 as the unrotated row, rather than +// row0. All the message loads below are adjusted to compensate for this. See +// discussion at https://github.com/sneves/blake2-avx2/pull/4 +INLINE void diagonalize(__m128i *row0, __m128i *row2, __m128i *row3) { + *row0 = _mm_shuffle_epi32(*row0, _MM_SHUFFLE(2, 1, 0, 3)); + *row3 = _mm_shuffle_epi32(*row3, _MM_SHUFFLE(1, 0, 3, 2)); + *row2 = _mm_shuffle_epi32(*row2, _MM_SHUFFLE(0, 3, 2, 1)); +} + +INLINE void undiagonalize(__m128i *row0, __m128i *row2, __m128i *row3) { + *row0 = _mm_shuffle_epi32(*row0, _MM_SHUFFLE(0, 3, 2, 1)); + *row3 = _mm_shuffle_epi32(*row3, _MM_SHUFFLE(1, 0, 3, 2)); + *row2 = _mm_shuffle_epi32(*row2, _MM_SHUFFLE(2, 1, 0, 3)); +} + +INLINE __m128i blend_epi16(__m128i a, __m128i b, const int16_t imm8) { + const __m128i bits = _mm_set_epi16(0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01); + __m128i mask = _mm_set1_epi16(imm8); + mask = _mm_and_si128(mask, bits); + mask = _mm_cmpeq_epi16(mask, bits); + return _mm_or_si128(_mm_and_si128(mask, b), _mm_andnot_si128(mask, a)); +} + +INLINE void compress_pre(__m128i rows[4], const uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, uint8_t flags) { + rows[0] = loadu((uint8_t *)&cv[0]); + rows[1] = loadu((uint8_t *)&cv[4]); + rows[2] = set4(B3_IV_0, B3_IV_1, B3_IV_2, B3_IV_3); + rows[3] = set4(counter_low(counter), counter_high(counter), + (uint32_t)block_len, (uint32_t)flags); + + __m128i m0 = loadu(&block[sizeof(__m128i) * 0]); + __m128i m1 = loadu(&block[sizeof(__m128i) * 1]); + __m128i m2 = loadu(&block[sizeof(__m128i) * 2]); + __m128i m3 = loadu(&block[sizeof(__m128i) * 3]); + + __m128i t0, t1, t2, t3, tt; + + // Round 1. The first round permutes the message words from the original + // input order, into the groups that get mixed in parallel. + t0 = _mm_shuffle_ps2(m0, m1, _MM_SHUFFLE(2, 0, 2, 0)); // 6 4 2 0 + g1(&rows[0], &rows[1], &rows[2], &rows[3], t0); + t1 = _mm_shuffle_ps2(m0, m1, _MM_SHUFFLE(3, 1, 3, 1)); // 7 5 3 1 + g2(&rows[0], &rows[1], &rows[2], &rows[3], t1); + diagonalize(&rows[0], &rows[2], &rows[3]); + t2 = _mm_shuffle_ps2(m2, m3, _MM_SHUFFLE(2, 0, 2, 0)); // 14 12 10 8 + t2 = _mm_shuffle_epi32(t2, _MM_SHUFFLE(2, 1, 0, 3)); // 12 10 8 14 + g1(&rows[0], &rows[1], &rows[2], &rows[3], t2); + t3 = _mm_shuffle_ps2(m2, m3, _MM_SHUFFLE(3, 1, 3, 1)); // 15 13 11 9 + t3 = _mm_shuffle_epi32(t3, _MM_SHUFFLE(2, 1, 0, 3)); // 13 11 9 15 + g2(&rows[0], &rows[1], &rows[2], &rows[3], t3); + undiagonalize(&rows[0], &rows[2], &rows[3]); + m0 = t0; + m1 = t1; + m2 = t2; + m3 = t3; + + // Round 2. This round and all following rounds apply a fixed permutation + // to the message words from the round before. + t0 = _mm_shuffle_ps2(m0, m1, _MM_SHUFFLE(3, 1, 1, 2)); + t0 = _mm_shuffle_epi32(t0, _MM_SHUFFLE(0, 3, 2, 1)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t0); + t1 = _mm_shuffle_ps2(m2, m3, _MM_SHUFFLE(3, 3, 2, 2)); + tt = _mm_shuffle_epi32(m0, _MM_SHUFFLE(0, 0, 3, 3)); + t1 = blend_epi16(tt, t1, 0xCC); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t1); + diagonalize(&rows[0], &rows[2], &rows[3]); + t2 = _mm_unpacklo_epi64(m3, m1); + tt = blend_epi16(t2, m2, 0xC0); + t2 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(1, 3, 2, 0)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t2); + t3 = _mm_unpackhi_epi32(m1, m3); + tt = _mm_unpacklo_epi32(m2, t3); + t3 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(0, 1, 3, 2)); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t3); + undiagonalize(&rows[0], &rows[2], &rows[3]); + m0 = t0; + m1 = t1; + m2 = t2; + m3 = t3; + + // Round 3 + t0 = _mm_shuffle_ps2(m0, m1, _MM_SHUFFLE(3, 1, 1, 2)); + t0 = _mm_shuffle_epi32(t0, _MM_SHUFFLE(0, 3, 2, 1)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t0); + t1 = _mm_shuffle_ps2(m2, m3, _MM_SHUFFLE(3, 3, 2, 2)); + tt = _mm_shuffle_epi32(m0, _MM_SHUFFLE(0, 0, 3, 3)); + t1 = blend_epi16(tt, t1, 0xCC); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t1); + diagonalize(&rows[0], &rows[2], &rows[3]); + t2 = _mm_unpacklo_epi64(m3, m1); + tt = blend_epi16(t2, m2, 0xC0); + t2 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(1, 3, 2, 0)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t2); + t3 = _mm_unpackhi_epi32(m1, m3); + tt = _mm_unpacklo_epi32(m2, t3); + t3 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(0, 1, 3, 2)); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t3); + undiagonalize(&rows[0], &rows[2], &rows[3]); + m0 = t0; + m1 = t1; + m2 = t2; + m3 = t3; + + // Round 4 + t0 = _mm_shuffle_ps2(m0, m1, _MM_SHUFFLE(3, 1, 1, 2)); + t0 = _mm_shuffle_epi32(t0, _MM_SHUFFLE(0, 3, 2, 1)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t0); + t1 = _mm_shuffle_ps2(m2, m3, _MM_SHUFFLE(3, 3, 2, 2)); + tt = _mm_shuffle_epi32(m0, _MM_SHUFFLE(0, 0, 3, 3)); + t1 = blend_epi16(tt, t1, 0xCC); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t1); + diagonalize(&rows[0], &rows[2], &rows[3]); + t2 = _mm_unpacklo_epi64(m3, m1); + tt = blend_epi16(t2, m2, 0xC0); + t2 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(1, 3, 2, 0)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t2); + t3 = _mm_unpackhi_epi32(m1, m3); + tt = _mm_unpacklo_epi32(m2, t3); + t3 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(0, 1, 3, 2)); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t3); + undiagonalize(&rows[0], &rows[2], &rows[3]); + m0 = t0; + m1 = t1; + m2 = t2; + m3 = t3; + + // Round 5 + t0 = _mm_shuffle_ps2(m0, m1, _MM_SHUFFLE(3, 1, 1, 2)); + t0 = _mm_shuffle_epi32(t0, _MM_SHUFFLE(0, 3, 2, 1)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t0); + t1 = _mm_shuffle_ps2(m2, m3, _MM_SHUFFLE(3, 3, 2, 2)); + tt = _mm_shuffle_epi32(m0, _MM_SHUFFLE(0, 0, 3, 3)); + t1 = blend_epi16(tt, t1, 0xCC); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t1); + diagonalize(&rows[0], &rows[2], &rows[3]); + t2 = _mm_unpacklo_epi64(m3, m1); + tt = blend_epi16(t2, m2, 0xC0); + t2 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(1, 3, 2, 0)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t2); + t3 = _mm_unpackhi_epi32(m1, m3); + tt = _mm_unpacklo_epi32(m2, t3); + t3 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(0, 1, 3, 2)); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t3); + undiagonalize(&rows[0], &rows[2], &rows[3]); + m0 = t0; + m1 = t1; + m2 = t2; + m3 = t3; + + // Round 6 + t0 = _mm_shuffle_ps2(m0, m1, _MM_SHUFFLE(3, 1, 1, 2)); + t0 = _mm_shuffle_epi32(t0, _MM_SHUFFLE(0, 3, 2, 1)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t0); + t1 = _mm_shuffle_ps2(m2, m3, _MM_SHUFFLE(3, 3, 2, 2)); + tt = _mm_shuffle_epi32(m0, _MM_SHUFFLE(0, 0, 3, 3)); + t1 = blend_epi16(tt, t1, 0xCC); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t1); + diagonalize(&rows[0], &rows[2], &rows[3]); + t2 = _mm_unpacklo_epi64(m3, m1); + tt = blend_epi16(t2, m2, 0xC0); + t2 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(1, 3, 2, 0)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t2); + t3 = _mm_unpackhi_epi32(m1, m3); + tt = _mm_unpacklo_epi32(m2, t3); + t3 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(0, 1, 3, 2)); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t3); + undiagonalize(&rows[0], &rows[2], &rows[3]); + m0 = t0; + m1 = t1; + m2 = t2; + m3 = t3; + + // Round 7 + t0 = _mm_shuffle_ps2(m0, m1, _MM_SHUFFLE(3, 1, 1, 2)); + t0 = _mm_shuffle_epi32(t0, _MM_SHUFFLE(0, 3, 2, 1)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t0); + t1 = _mm_shuffle_ps2(m2, m3, _MM_SHUFFLE(3, 3, 2, 2)); + tt = _mm_shuffle_epi32(m0, _MM_SHUFFLE(0, 0, 3, 3)); + t1 = blend_epi16(tt, t1, 0xCC); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t1); + diagonalize(&rows[0], &rows[2], &rows[3]); + t2 = _mm_unpacklo_epi64(m3, m1); + tt = blend_epi16(t2, m2, 0xC0); + t2 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(1, 3, 2, 0)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t2); + t3 = _mm_unpackhi_epi32(m1, m3); + tt = _mm_unpacklo_epi32(m2, t3); + t3 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(0, 1, 3, 2)); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t3); + undiagonalize(&rows[0], &rows[2], &rows[3]); +} + +void blake3_compress_in_place_sse2(uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, + uint8_t flags) { + __m128i rows[4]; + compress_pre(rows, cv, block, block_len, counter, flags); + storeu(xorv(rows[0], rows[2]), (uint8_t *)&cv[0]); + storeu(xorv(rows[1], rows[3]), (uint8_t *)&cv[4]); +} + +void blake3_compress_xof_sse2(const uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, + uint8_t flags, uint8_t out[64]) { + __m128i rows[4]; + compress_pre(rows, cv, block, block_len, counter, flags); + storeu(xorv(rows[0], rows[2]), &out[0]); + storeu(xorv(rows[1], rows[3]), &out[16]); + storeu(xorv(rows[2], loadu((uint8_t *)&cv[0])), &out[32]); + storeu(xorv(rows[3], loadu((uint8_t *)&cv[4])), &out[48]); +} + +INLINE void round_fn(__m128i v[16], __m128i m[16], size_t r) { + v[0] = addv(v[0], m[(size_t)MSG_SCHEDULE[r][0]]); + v[1] = addv(v[1], m[(size_t)MSG_SCHEDULE[r][2]]); + v[2] = addv(v[2], m[(size_t)MSG_SCHEDULE[r][4]]); + v[3] = addv(v[3], m[(size_t)MSG_SCHEDULE[r][6]]); + v[0] = addv(v[0], v[4]); + v[1] = addv(v[1], v[5]); + v[2] = addv(v[2], v[6]); + v[3] = addv(v[3], v[7]); + v[12] = xorv(v[12], v[0]); + v[13] = xorv(v[13], v[1]); + v[14] = xorv(v[14], v[2]); + v[15] = xorv(v[15], v[3]); + v[12] = rot16(v[12]); + v[13] = rot16(v[13]); + v[14] = rot16(v[14]); + v[15] = rot16(v[15]); + v[8] = addv(v[8], v[12]); + v[9] = addv(v[9], v[13]); + v[10] = addv(v[10], v[14]); + v[11] = addv(v[11], v[15]); + v[4] = xorv(v[4], v[8]); + v[5] = xorv(v[5], v[9]); + v[6] = xorv(v[6], v[10]); + v[7] = xorv(v[7], v[11]); + v[4] = rot12(v[4]); + v[5] = rot12(v[5]); + v[6] = rot12(v[6]); + v[7] = rot12(v[7]); + v[0] = addv(v[0], m[(size_t)MSG_SCHEDULE[r][1]]); + v[1] = addv(v[1], m[(size_t)MSG_SCHEDULE[r][3]]); + v[2] = addv(v[2], m[(size_t)MSG_SCHEDULE[r][5]]); + v[3] = addv(v[3], m[(size_t)MSG_SCHEDULE[r][7]]); + v[0] = addv(v[0], v[4]); + v[1] = addv(v[1], v[5]); + v[2] = addv(v[2], v[6]); + v[3] = addv(v[3], v[7]); + v[12] = xorv(v[12], v[0]); + v[13] = xorv(v[13], v[1]); + v[14] = xorv(v[14], v[2]); + v[15] = xorv(v[15], v[3]); + v[12] = rot8(v[12]); + v[13] = rot8(v[13]); + v[14] = rot8(v[14]); + v[15] = rot8(v[15]); + v[8] = addv(v[8], v[12]); + v[9] = addv(v[9], v[13]); + v[10] = addv(v[10], v[14]); + v[11] = addv(v[11], v[15]); + v[4] = xorv(v[4], v[8]); + v[5] = xorv(v[5], v[9]); + v[6] = xorv(v[6], v[10]); + v[7] = xorv(v[7], v[11]); + v[4] = rot7(v[4]); + v[5] = rot7(v[5]); + v[6] = rot7(v[6]); + v[7] = rot7(v[7]); + + v[0] = addv(v[0], m[(size_t)MSG_SCHEDULE[r][8]]); + v[1] = addv(v[1], m[(size_t)MSG_SCHEDULE[r][10]]); + v[2] = addv(v[2], m[(size_t)MSG_SCHEDULE[r][12]]); + v[3] = addv(v[3], m[(size_t)MSG_SCHEDULE[r][14]]); + v[0] = addv(v[0], v[5]); + v[1] = addv(v[1], v[6]); + v[2] = addv(v[2], v[7]); + v[3] = addv(v[3], v[4]); + v[15] = xorv(v[15], v[0]); + v[12] = xorv(v[12], v[1]); + v[13] = xorv(v[13], v[2]); + v[14] = xorv(v[14], v[3]); + v[15] = rot16(v[15]); + v[12] = rot16(v[12]); + v[13] = rot16(v[13]); + v[14] = rot16(v[14]); + v[10] = addv(v[10], v[15]); + v[11] = addv(v[11], v[12]); + v[8] = addv(v[8], v[13]); + v[9] = addv(v[9], v[14]); + v[5] = xorv(v[5], v[10]); + v[6] = xorv(v[6], v[11]); + v[7] = xorv(v[7], v[8]); + v[4] = xorv(v[4], v[9]); + v[5] = rot12(v[5]); + v[6] = rot12(v[6]); + v[7] = rot12(v[7]); + v[4] = rot12(v[4]); + v[0] = addv(v[0], m[(size_t)MSG_SCHEDULE[r][9]]); + v[1] = addv(v[1], m[(size_t)MSG_SCHEDULE[r][11]]); + v[2] = addv(v[2], m[(size_t)MSG_SCHEDULE[r][13]]); + v[3] = addv(v[3], m[(size_t)MSG_SCHEDULE[r][15]]); + v[0] = addv(v[0], v[5]); + v[1] = addv(v[1], v[6]); + v[2] = addv(v[2], v[7]); + v[3] = addv(v[3], v[4]); + v[15] = xorv(v[15], v[0]); + v[12] = xorv(v[12], v[1]); + v[13] = xorv(v[13], v[2]); + v[14] = xorv(v[14], v[3]); + v[15] = rot8(v[15]); + v[12] = rot8(v[12]); + v[13] = rot8(v[13]); + v[14] = rot8(v[14]); + v[10] = addv(v[10], v[15]); + v[11] = addv(v[11], v[12]); + v[8] = addv(v[8], v[13]); + v[9] = addv(v[9], v[14]); + v[5] = xorv(v[5], v[10]); + v[6] = xorv(v[6], v[11]); + v[7] = xorv(v[7], v[8]); + v[4] = xorv(v[4], v[9]); + v[5] = rot7(v[5]); + v[6] = rot7(v[6]); + v[7] = rot7(v[7]); + v[4] = rot7(v[4]); +} + +INLINE void transpose_vecs(__m128i vecs[DEGREE]) { + // Interleave 32-bit lanes. The low unpack is lanes 00/11 and the high is + // 22/33. Note that this doesn't split the vector into two lanes, as the + // AVX2 counterparts do. + __m128i ab_01 = _mm_unpacklo_epi32(vecs[0], vecs[1]); + __m128i ab_23 = _mm_unpackhi_epi32(vecs[0], vecs[1]); + __m128i cd_01 = _mm_unpacklo_epi32(vecs[2], vecs[3]); + __m128i cd_23 = _mm_unpackhi_epi32(vecs[2], vecs[3]); + + // Interleave 64-bit lanes. + __m128i abcd_0 = _mm_unpacklo_epi64(ab_01, cd_01); + __m128i abcd_1 = _mm_unpackhi_epi64(ab_01, cd_01); + __m128i abcd_2 = _mm_unpacklo_epi64(ab_23, cd_23); + __m128i abcd_3 = _mm_unpackhi_epi64(ab_23, cd_23); + + vecs[0] = abcd_0; + vecs[1] = abcd_1; + vecs[2] = abcd_2; + vecs[3] = abcd_3; +} + +INLINE void transpose_msg_vecs(const uint8_t *const *inputs, + size_t block_offset, __m128i out[16]) { + out[0] = loadu(&inputs[0][block_offset + 0 * sizeof(__m128i)]); + out[1] = loadu(&inputs[1][block_offset + 0 * sizeof(__m128i)]); + out[2] = loadu(&inputs[2][block_offset + 0 * sizeof(__m128i)]); + out[3] = loadu(&inputs[3][block_offset + 0 * sizeof(__m128i)]); + out[4] = loadu(&inputs[0][block_offset + 1 * sizeof(__m128i)]); + out[5] = loadu(&inputs[1][block_offset + 1 * sizeof(__m128i)]); + out[6] = loadu(&inputs[2][block_offset + 1 * sizeof(__m128i)]); + out[7] = loadu(&inputs[3][block_offset + 1 * sizeof(__m128i)]); + out[8] = loadu(&inputs[0][block_offset + 2 * sizeof(__m128i)]); + out[9] = loadu(&inputs[1][block_offset + 2 * sizeof(__m128i)]); + out[10] = loadu(&inputs[2][block_offset + 2 * sizeof(__m128i)]); + out[11] = loadu(&inputs[3][block_offset + 2 * sizeof(__m128i)]); + out[12] = loadu(&inputs[0][block_offset + 3 * sizeof(__m128i)]); + out[13] = loadu(&inputs[1][block_offset + 3 * sizeof(__m128i)]); + out[14] = loadu(&inputs[2][block_offset + 3 * sizeof(__m128i)]); + out[15] = loadu(&inputs[3][block_offset + 3 * sizeof(__m128i)]); + for (size_t i = 0; i < 4; ++i) { + _mm_prefetch((const void *)&inputs[i][block_offset + 256], _MM_HINT_T0); + } + transpose_vecs(&out[0]); + transpose_vecs(&out[4]); + transpose_vecs(&out[8]); + transpose_vecs(&out[12]); +} + +INLINE void load_counters(uint64_t counter, bool increment_counter, + __m128i *out_lo, __m128i *out_hi) { + const __m128i mask = _mm_set1_epi32(-(int32_t)increment_counter); + const __m128i add0 = _mm_set_epi32(3, 2, 1, 0); + const __m128i add1 = _mm_and_si128(mask, add0); + __m128i l = _mm_add_epi32(_mm_set1_epi32((int32_t)counter), add1); + __m128i carry = _mm_cmpgt_epi32(_mm_xor_si128(add1, _mm_set1_epi32(0x80000000)), + _mm_xor_si128( l, _mm_set1_epi32(0x80000000))); + __m128i h = _mm_sub_epi32(_mm_set1_epi32((int32_t)(counter >> 32)), carry); + *out_lo = l; + *out_hi = h; +} + +static +void blake3_hash4_sse2(const uint8_t *const *inputs, size_t blocks, + const uint32_t key[8], uint64_t counter, + bool increment_counter, uint8_t flags, + uint8_t flags_start, uint8_t flags_end, uint8_t *out) { + __m128i h_vecs[8] = { + set1(key[0]), set1(key[1]), set1(key[2]), set1(key[3]), + set1(key[4]), set1(key[5]), set1(key[6]), set1(key[7]), + }; + __m128i counter_low_vec, counter_high_vec; + load_counters(counter, increment_counter, &counter_low_vec, + &counter_high_vec); + uint8_t block_flags = flags | flags_start; + + for (size_t block = 0; block < blocks; block++) { + if (block + 1 == blocks) { + block_flags |= flags_end; + } + __m128i block_len_vec = set1(BLAKE3_BLOCK_LEN); + __m128i block_flags_vec = set1(block_flags); + __m128i msg_vecs[16]; + transpose_msg_vecs(inputs, block * BLAKE3_BLOCK_LEN, msg_vecs); + + __m128i v[16] = { + h_vecs[0], h_vecs[1], h_vecs[2], h_vecs[3], + h_vecs[4], h_vecs[5], h_vecs[6], h_vecs[7], + set1(B3_IV_0), set1(B3_IV_1), set1(B3_IV_2), set1(B3_IV_3), + counter_low_vec, counter_high_vec, block_len_vec, block_flags_vec, + }; + round_fn(v, msg_vecs, 0); + round_fn(v, msg_vecs, 1); + round_fn(v, msg_vecs, 2); + round_fn(v, msg_vecs, 3); + round_fn(v, msg_vecs, 4); + round_fn(v, msg_vecs, 5); + round_fn(v, msg_vecs, 6); + h_vecs[0] = xorv(v[0], v[8]); + h_vecs[1] = xorv(v[1], v[9]); + h_vecs[2] = xorv(v[2], v[10]); + h_vecs[3] = xorv(v[3], v[11]); + h_vecs[4] = xorv(v[4], v[12]); + h_vecs[5] = xorv(v[5], v[13]); + h_vecs[6] = xorv(v[6], v[14]); + h_vecs[7] = xorv(v[7], v[15]); + + block_flags = flags; + } + + transpose_vecs(&h_vecs[0]); + transpose_vecs(&h_vecs[4]); + // The first four vecs now contain the first half of each output, and the + // second four vecs contain the second half of each output. + storeu(h_vecs[0], &out[0 * sizeof(__m128i)]); + storeu(h_vecs[4], &out[1 * sizeof(__m128i)]); + storeu(h_vecs[1], &out[2 * sizeof(__m128i)]); + storeu(h_vecs[5], &out[3 * sizeof(__m128i)]); + storeu(h_vecs[2], &out[4 * sizeof(__m128i)]); + storeu(h_vecs[6], &out[5 * sizeof(__m128i)]); + storeu(h_vecs[3], &out[6 * sizeof(__m128i)]); + storeu(h_vecs[7], &out[7 * sizeof(__m128i)]); +} + +INLINE void hash_one_sse2(const uint8_t *input, size_t blocks, + const uint32_t key[8], uint64_t counter, + uint8_t flags, uint8_t flags_start, + uint8_t flags_end, uint8_t out[BLAKE3_OUT_LEN]) { + uint32_t cv[8]; + memcpy(cv, key, BLAKE3_KEY_LEN); + uint8_t block_flags = flags | flags_start; + while (blocks > 0) { + if (blocks == 1) { + block_flags |= flags_end; + } + blake3_compress_in_place_sse2(cv, input, BLAKE3_BLOCK_LEN, counter, + block_flags); + input = &input[BLAKE3_BLOCK_LEN]; + blocks -= 1; + block_flags = flags; + } + memcpy(out, cv, BLAKE3_OUT_LEN); +} + +void blake3_hash_many_sse2(const uint8_t *const *inputs, size_t num_inputs, + size_t blocks, const uint32_t key[8], + uint64_t counter, bool increment_counter, + uint8_t flags, uint8_t flags_start, + uint8_t flags_end, uint8_t *out) { + while (num_inputs >= DEGREE) { + blake3_hash4_sse2(inputs, blocks, key, counter, increment_counter, flags, + flags_start, flags_end, out); + if (increment_counter) { + counter += DEGREE; + } + inputs += DEGREE; + num_inputs -= DEGREE; + out = &out[DEGREE * BLAKE3_OUT_LEN]; + } + while (num_inputs > 0) { + hash_one_sse2(inputs[0], blocks, key, counter, flags, flags_start, + flags_end, out); + if (increment_counter) { + counter += 1; + } + inputs += 1; + num_inputs -= 1; + out = &out[BLAKE3_OUT_LEN]; + } +} diff --git a/Sources/Cfyaml/src/blake3/blake3_sse2_x86-64_unix.S b/Sources/Cfyaml/src/blake3/blake3_sse2_x86-64_unix.S new file mode 100644 index 000000000..d2d77bc5f --- /dev/null +++ b/Sources/Cfyaml/src/blake3/blake3_sse2_x86-64_unix.S @@ -0,0 +1,2291 @@ +#if defined(__ELF__) && defined(__linux__) +.section .note.GNU-stack,"",%progbits +#endif + +#if defined(__ELF__) && defined(__CET__) && defined(__has_include) +#if __has_include() +#include +#endif +#endif + +#if !defined(_CET_ENDBR) +#define _CET_ENDBR +#endif + +.intel_syntax noprefix +.global blake3_hash_many_sse2_asm +.global _blake3_hash_many_sse2_asm +.global blake3_compress_in_place_sse2_asm +.global _blake3_compress_in_place_sse2_asm +.global blake3_compress_xof_sse2_asm +.global _blake3_compress_xof_sse2_asm +#ifdef __APPLE__ +.text +#else +.section .text +#endif + .p2align 6 +_blake3_hash_many_sse2_asm: +blake3_hash_many_sse2_asm: + _CET_ENDBR + push r15 + push r14 + push r13 + push r12 + push rbx + push rbp + mov rbp, rsp + sub rsp, 360 + and rsp, 0xFFFFFFFFFFFFFFC0 + neg r9d + movd xmm0, r9d + pshufd xmm0, xmm0, 0x00 + movdqa xmmword ptr [rsp+0x130], xmm0 + movdqa xmm1, xmm0 + pand xmm1, xmmword ptr [ADD0+rip] + pand xmm0, xmmword ptr [ADD1+rip] + movdqa xmmword ptr [rsp+0x150], xmm0 + movd xmm0, r8d + pshufd xmm0, xmm0, 0x00 + paddd xmm0, xmm1 + movdqa xmmword ptr [rsp+0x110], xmm0 + pxor xmm0, xmmword ptr [CMP_MSB_MASK+rip] + pxor xmm1, xmmword ptr [CMP_MSB_MASK+rip] + pcmpgtd xmm1, xmm0 + shr r8, 32 + movd xmm2, r8d + pshufd xmm2, xmm2, 0x00 + psubd xmm2, xmm1 + movdqa xmmword ptr [rsp+0x120], xmm2 + mov rbx, qword ptr [rbp+0x50] + mov r15, rdx + shl r15, 6 + movzx r13d, byte ptr [rbp+0x38] + movzx r12d, byte ptr [rbp+0x48] + cmp rsi, 4 + jc 3f +2: + movdqu xmm3, xmmword ptr [rcx] + pshufd xmm0, xmm3, 0x00 + pshufd xmm1, xmm3, 0x55 + pshufd xmm2, xmm3, 0xAA + pshufd xmm3, xmm3, 0xFF + movdqu xmm7, xmmword ptr [rcx+0x10] + pshufd xmm4, xmm7, 0x00 + pshufd xmm5, xmm7, 0x55 + pshufd xmm6, xmm7, 0xAA + pshufd xmm7, xmm7, 0xFF + mov r8, qword ptr [rdi] + mov r9, qword ptr [rdi+0x8] + mov r10, qword ptr [rdi+0x10] + mov r11, qword ptr [rdi+0x18] + movzx eax, byte ptr [rbp+0x40] + or eax, r13d + xor edx, edx +9: + mov r14d, eax + or eax, r12d + add rdx, 64 + cmp rdx, r15 + cmovne eax, r14d + movdqu xmm8, xmmword ptr [r8+rdx-0x40] + movdqu xmm9, xmmword ptr [r9+rdx-0x40] + movdqu xmm10, xmmword ptr [r10+rdx-0x40] + movdqu xmm11, xmmword ptr [r11+rdx-0x40] + movdqa xmm12, xmm8 + punpckldq xmm8, xmm9 + punpckhdq xmm12, xmm9 + movdqa xmm14, xmm10 + punpckldq xmm10, xmm11 + punpckhdq xmm14, xmm11 + movdqa xmm9, xmm8 + punpcklqdq xmm8, xmm10 + punpckhqdq xmm9, xmm10 + movdqa xmm13, xmm12 + punpcklqdq xmm12, xmm14 + punpckhqdq xmm13, xmm14 + movdqa xmmword ptr [rsp], xmm8 + movdqa xmmword ptr [rsp+0x10], xmm9 + movdqa xmmword ptr [rsp+0x20], xmm12 + movdqa xmmword ptr [rsp+0x30], xmm13 + movdqu xmm8, xmmword ptr [r8+rdx-0x30] + movdqu xmm9, xmmword ptr [r9+rdx-0x30] + movdqu xmm10, xmmword ptr [r10+rdx-0x30] + movdqu xmm11, xmmword ptr [r11+rdx-0x30] + movdqa xmm12, xmm8 + punpckldq xmm8, xmm9 + punpckhdq xmm12, xmm9 + movdqa xmm14, xmm10 + punpckldq xmm10, xmm11 + punpckhdq xmm14, xmm11 + movdqa xmm9, xmm8 + punpcklqdq xmm8, xmm10 + punpckhqdq xmm9, xmm10 + movdqa xmm13, xmm12 + punpcklqdq xmm12, xmm14 + punpckhqdq xmm13, xmm14 + movdqa xmmword ptr [rsp+0x40], xmm8 + movdqa xmmword ptr [rsp+0x50], xmm9 + movdqa xmmword ptr [rsp+0x60], xmm12 + movdqa xmmword ptr [rsp+0x70], xmm13 + movdqu xmm8, xmmword ptr [r8+rdx-0x20] + movdqu xmm9, xmmword ptr [r9+rdx-0x20] + movdqu xmm10, xmmword ptr [r10+rdx-0x20] + movdqu xmm11, xmmword ptr [r11+rdx-0x20] + movdqa xmm12, xmm8 + punpckldq xmm8, xmm9 + punpckhdq xmm12, xmm9 + movdqa xmm14, xmm10 + punpckldq xmm10, xmm11 + punpckhdq xmm14, xmm11 + movdqa xmm9, xmm8 + punpcklqdq xmm8, xmm10 + punpckhqdq xmm9, xmm10 + movdqa xmm13, xmm12 + punpcklqdq xmm12, xmm14 + punpckhqdq xmm13, xmm14 + movdqa xmmword ptr [rsp+0x80], xmm8 + movdqa xmmword ptr [rsp+0x90], xmm9 + movdqa xmmword ptr [rsp+0xA0], xmm12 + movdqa xmmword ptr [rsp+0xB0], xmm13 + movdqu xmm8, xmmword ptr [r8+rdx-0x10] + movdqu xmm9, xmmword ptr [r9+rdx-0x10] + movdqu xmm10, xmmword ptr [r10+rdx-0x10] + movdqu xmm11, xmmword ptr [r11+rdx-0x10] + movdqa xmm12, xmm8 + punpckldq xmm8, xmm9 + punpckhdq xmm12, xmm9 + movdqa xmm14, xmm10 + punpckldq xmm10, xmm11 + punpckhdq xmm14, xmm11 + movdqa xmm9, xmm8 + punpcklqdq xmm8, xmm10 + punpckhqdq xmm9, xmm10 + movdqa xmm13, xmm12 + punpcklqdq xmm12, xmm14 + punpckhqdq xmm13, xmm14 + movdqa xmmword ptr [rsp+0xC0], xmm8 + movdqa xmmword ptr [rsp+0xD0], xmm9 + movdqa xmmword ptr [rsp+0xE0], xmm12 + movdqa xmmword ptr [rsp+0xF0], xmm13 + movdqa xmm9, xmmword ptr [BLAKE3_IV_1+rip] + movdqa xmm10, xmmword ptr [BLAKE3_IV_2+rip] + movdqa xmm11, xmmword ptr [BLAKE3_IV_3+rip] + movdqa xmm12, xmmword ptr [rsp+0x110] + movdqa xmm13, xmmword ptr [rsp+0x120] + movdqa xmm14, xmmword ptr [BLAKE3_BLOCK_LEN+rip] + movd xmm15, eax + pshufd xmm15, xmm15, 0x00 + prefetcht0 [r8+rdx+0x80] + prefetcht0 [r9+rdx+0x80] + prefetcht0 [r10+rdx+0x80] + prefetcht0 [r11+rdx+0x80] + paddd xmm0, xmmword ptr [rsp] + paddd xmm1, xmmword ptr [rsp+0x20] + paddd xmm2, xmmword ptr [rsp+0x40] + paddd xmm3, xmmword ptr [rsp+0x60] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + pshuflw xmm12, xmm12, 0xB1 + pshufhw xmm12, xmm12, 0xB1 + pshuflw xmm13, xmm13, 0xB1 + pshufhw xmm13, xmm13, 0xB1 + pshuflw xmm14, xmm14, 0xB1 + pshufhw xmm14, xmm14, 0xB1 + pshuflw xmm15, xmm15, 0xB1 + pshufhw xmm15, xmm15, 0xB1 + movdqa xmm8, xmmword ptr [BLAKE3_IV_0+rip] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0x10] + paddd xmm1, xmmword ptr [rsp+0x30] + paddd xmm2, xmmword ptr [rsp+0x50] + paddd xmm3, xmmword ptr [rsp+0x70] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + movdqa xmm8, xmm12 + psrld xmm12, 8 + pslld xmm8, 24 + pxor xmm12, xmm8 + movdqa xmm8, xmm13 + psrld xmm13, 8 + pslld xmm8, 24 + pxor xmm13, xmm8 + movdqa xmm8, xmm14 + psrld xmm14, 8 + pslld xmm8, 24 + pxor xmm14, xmm8 + movdqa xmm8, xmm15 + psrld xmm15, 8 + pslld xmm8, 24 + pxor xmm15, xmm8 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0x80] + paddd xmm1, xmmword ptr [rsp+0xA0] + paddd xmm2, xmmword ptr [rsp+0xC0] + paddd xmm3, xmmword ptr [rsp+0xE0] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + pshuflw xmm15, xmm15, 0xB1 + pshufhw xmm15, xmm15, 0xB1 + pshuflw xmm12, xmm12, 0xB1 + pshufhw xmm12, xmm12, 0xB1 + pshuflw xmm13, xmm13, 0xB1 + pshufhw xmm13, xmm13, 0xB1 + pshuflw xmm14, xmm14, 0xB1 + pshufhw xmm14, xmm14, 0xB1 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp+0x90] + paddd xmm1, xmmword ptr [rsp+0xB0] + paddd xmm2, xmmword ptr [rsp+0xD0] + paddd xmm3, xmmword ptr [rsp+0xF0] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + movdqa xmm8, xmm15 + psrld xmm15, 8 + pslld xmm8, 24 + pxor xmm15, xmm8 + movdqa xmm8, xmm12 + psrld xmm12, 8 + pslld xmm8, 24 + pxor xmm12, xmm8 + movdqa xmm8, xmm13 + psrld xmm13, 8 + pslld xmm8, 24 + pxor xmm13, xmm8 + movdqa xmm8, xmm14 + psrld xmm14, 8 + pslld xmm8, 24 + pxor xmm14, xmm8 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp+0x20] + paddd xmm1, xmmword ptr [rsp+0x30] + paddd xmm2, xmmword ptr [rsp+0x70] + paddd xmm3, xmmword ptr [rsp+0x40] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + pshuflw xmm12, xmm12, 0xB1 + pshufhw xmm12, xmm12, 0xB1 + pshuflw xmm13, xmm13, 0xB1 + pshufhw xmm13, xmm13, 0xB1 + pshuflw xmm14, xmm14, 0xB1 + pshufhw xmm14, xmm14, 0xB1 + pshuflw xmm15, xmm15, 0xB1 + pshufhw xmm15, xmm15, 0xB1 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0x60] + paddd xmm1, xmmword ptr [rsp+0xA0] + paddd xmm2, xmmword ptr [rsp] + paddd xmm3, xmmword ptr [rsp+0xD0] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + movdqa xmm8, xmm12 + psrld xmm12, 8 + pslld xmm8, 24 + pxor xmm12, xmm8 + movdqa xmm8, xmm13 + psrld xmm13, 8 + pslld xmm8, 24 + pxor xmm13, xmm8 + movdqa xmm8, xmm14 + psrld xmm14, 8 + pslld xmm8, 24 + pxor xmm14, xmm8 + movdqa xmm8, xmm15 + psrld xmm15, 8 + pslld xmm8, 24 + pxor xmm15, xmm8 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0x10] + paddd xmm1, xmmword ptr [rsp+0xC0] + paddd xmm2, xmmword ptr [rsp+0x90] + paddd xmm3, xmmword ptr [rsp+0xF0] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + pshuflw xmm15, xmm15, 0xB1 + pshufhw xmm15, xmm15, 0xB1 + pshuflw xmm12, xmm12, 0xB1 + pshufhw xmm12, xmm12, 0xB1 + pshuflw xmm13, xmm13, 0xB1 + pshufhw xmm13, xmm13, 0xB1 + pshuflw xmm14, xmm14, 0xB1 + pshufhw xmm14, xmm14, 0xB1 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp+0xB0] + paddd xmm1, xmmword ptr [rsp+0x50] + paddd xmm2, xmmword ptr [rsp+0xE0] + paddd xmm3, xmmword ptr [rsp+0x80] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + movdqa xmm8, xmm15 + psrld xmm15, 8 + pslld xmm8, 24 + pxor xmm15, xmm8 + movdqa xmm8, xmm12 + psrld xmm12, 8 + pslld xmm8, 24 + pxor xmm12, xmm8 + movdqa xmm8, xmm13 + psrld xmm13, 8 + pslld xmm8, 24 + pxor xmm13, xmm8 + movdqa xmm8, xmm14 + psrld xmm14, 8 + pslld xmm8, 24 + pxor xmm14, xmm8 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp+0x30] + paddd xmm1, xmmword ptr [rsp+0xA0] + paddd xmm2, xmmword ptr [rsp+0xD0] + paddd xmm3, xmmword ptr [rsp+0x70] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + pshuflw xmm12, xmm12, 0xB1 + pshufhw xmm12, xmm12, 0xB1 + pshuflw xmm13, xmm13, 0xB1 + pshufhw xmm13, xmm13, 0xB1 + pshuflw xmm14, xmm14, 0xB1 + pshufhw xmm14, xmm14, 0xB1 + pshuflw xmm15, xmm15, 0xB1 + pshufhw xmm15, xmm15, 0xB1 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0x40] + paddd xmm1, xmmword ptr [rsp+0xC0] + paddd xmm2, xmmword ptr [rsp+0x20] + paddd xmm3, xmmword ptr [rsp+0xE0] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + movdqa xmm8, xmm12 + psrld xmm12, 8 + pslld xmm8, 24 + pxor xmm12, xmm8 + movdqa xmm8, xmm13 + psrld xmm13, 8 + pslld xmm8, 24 + pxor xmm13, xmm8 + movdqa xmm8, xmm14 + psrld xmm14, 8 + pslld xmm8, 24 + pxor xmm14, xmm8 + movdqa xmm8, xmm15 + psrld xmm15, 8 + pslld xmm8, 24 + pxor xmm15, xmm8 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0x60] + paddd xmm1, xmmword ptr [rsp+0x90] + paddd xmm2, xmmword ptr [rsp+0xB0] + paddd xmm3, xmmword ptr [rsp+0x80] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + pshuflw xmm15, xmm15, 0xB1 + pshufhw xmm15, xmm15, 0xB1 + pshuflw xmm12, xmm12, 0xB1 + pshufhw xmm12, xmm12, 0xB1 + pshuflw xmm13, xmm13, 0xB1 + pshufhw xmm13, xmm13, 0xB1 + pshuflw xmm14, xmm14, 0xB1 + pshufhw xmm14, xmm14, 0xB1 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp+0x50] + paddd xmm1, xmmword ptr [rsp] + paddd xmm2, xmmword ptr [rsp+0xF0] + paddd xmm3, xmmword ptr [rsp+0x10] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + movdqa xmm8, xmm15 + psrld xmm15, 8 + pslld xmm8, 24 + pxor xmm15, xmm8 + movdqa xmm8, xmm12 + psrld xmm12, 8 + pslld xmm8, 24 + pxor xmm12, xmm8 + movdqa xmm8, xmm13 + psrld xmm13, 8 + pslld xmm8, 24 + pxor xmm13, xmm8 + movdqa xmm8, xmm14 + psrld xmm14, 8 + pslld xmm8, 24 + pxor xmm14, xmm8 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp+0xA0] + paddd xmm1, xmmword ptr [rsp+0xC0] + paddd xmm2, xmmword ptr [rsp+0xE0] + paddd xmm3, xmmword ptr [rsp+0xD0] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + pshuflw xmm12, xmm12, 0xB1 + pshufhw xmm12, xmm12, 0xB1 + pshuflw xmm13, xmm13, 0xB1 + pshufhw xmm13, xmm13, 0xB1 + pshuflw xmm14, xmm14, 0xB1 + pshufhw xmm14, xmm14, 0xB1 + pshuflw xmm15, xmm15, 0xB1 + pshufhw xmm15, xmm15, 0xB1 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0x70] + paddd xmm1, xmmword ptr [rsp+0x90] + paddd xmm2, xmmword ptr [rsp+0x30] + paddd xmm3, xmmword ptr [rsp+0xF0] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + movdqa xmm8, xmm12 + psrld xmm12, 8 + pslld xmm8, 24 + pxor xmm12, xmm8 + movdqa xmm8, xmm13 + psrld xmm13, 8 + pslld xmm8, 24 + pxor xmm13, xmm8 + movdqa xmm8, xmm14 + psrld xmm14, 8 + pslld xmm8, 24 + pxor xmm14, xmm8 + movdqa xmm8, xmm15 + psrld xmm15, 8 + pslld xmm8, 24 + pxor xmm15, xmm8 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0x40] + paddd xmm1, xmmword ptr [rsp+0xB0] + paddd xmm2, xmmword ptr [rsp+0x50] + paddd xmm3, xmmword ptr [rsp+0x10] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + pshuflw xmm15, xmm15, 0xB1 + pshufhw xmm15, xmm15, 0xB1 + pshuflw xmm12, xmm12, 0xB1 + pshufhw xmm12, xmm12, 0xB1 + pshuflw xmm13, xmm13, 0xB1 + pshufhw xmm13, xmm13, 0xB1 + pshuflw xmm14, xmm14, 0xB1 + pshufhw xmm14, xmm14, 0xB1 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp] + paddd xmm1, xmmword ptr [rsp+0x20] + paddd xmm2, xmmword ptr [rsp+0x80] + paddd xmm3, xmmword ptr [rsp+0x60] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + movdqa xmm8, xmm15 + psrld xmm15, 8 + pslld xmm8, 24 + pxor xmm15, xmm8 + movdqa xmm8, xmm12 + psrld xmm12, 8 + pslld xmm8, 24 + pxor xmm12, xmm8 + movdqa xmm8, xmm13 + psrld xmm13, 8 + pslld xmm8, 24 + pxor xmm13, xmm8 + movdqa xmm8, xmm14 + psrld xmm14, 8 + pslld xmm8, 24 + pxor xmm14, xmm8 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp+0xC0] + paddd xmm1, xmmword ptr [rsp+0x90] + paddd xmm2, xmmword ptr [rsp+0xF0] + paddd xmm3, xmmword ptr [rsp+0xE0] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + pshuflw xmm12, xmm12, 0xB1 + pshufhw xmm12, xmm12, 0xB1 + pshuflw xmm13, xmm13, 0xB1 + pshufhw xmm13, xmm13, 0xB1 + pshuflw xmm14, xmm14, 0xB1 + pshufhw xmm14, xmm14, 0xB1 + pshuflw xmm15, xmm15, 0xB1 + pshufhw xmm15, xmm15, 0xB1 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0xD0] + paddd xmm1, xmmword ptr [rsp+0xB0] + paddd xmm2, xmmword ptr [rsp+0xA0] + paddd xmm3, xmmword ptr [rsp+0x80] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + movdqa xmm8, xmm12 + psrld xmm12, 8 + pslld xmm8, 24 + pxor xmm12, xmm8 + movdqa xmm8, xmm13 + psrld xmm13, 8 + pslld xmm8, 24 + pxor xmm13, xmm8 + movdqa xmm8, xmm14 + psrld xmm14, 8 + pslld xmm8, 24 + pxor xmm14, xmm8 + movdqa xmm8, xmm15 + psrld xmm15, 8 + pslld xmm8, 24 + pxor xmm15, xmm8 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0x70] + paddd xmm1, xmmword ptr [rsp+0x50] + paddd xmm2, xmmword ptr [rsp] + paddd xmm3, xmmword ptr [rsp+0x60] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + pshuflw xmm15, xmm15, 0xB1 + pshufhw xmm15, xmm15, 0xB1 + pshuflw xmm12, xmm12, 0xB1 + pshufhw xmm12, xmm12, 0xB1 + pshuflw xmm13, xmm13, 0xB1 + pshufhw xmm13, xmm13, 0xB1 + pshuflw xmm14, xmm14, 0xB1 + pshufhw xmm14, xmm14, 0xB1 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp+0x20] + paddd xmm1, xmmword ptr [rsp+0x30] + paddd xmm2, xmmword ptr [rsp+0x10] + paddd xmm3, xmmword ptr [rsp+0x40] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + movdqa xmm8, xmm15 + psrld xmm15, 8 + pslld xmm8, 24 + pxor xmm15, xmm8 + movdqa xmm8, xmm12 + psrld xmm12, 8 + pslld xmm8, 24 + pxor xmm12, xmm8 + movdqa xmm8, xmm13 + psrld xmm13, 8 + pslld xmm8, 24 + pxor xmm13, xmm8 + movdqa xmm8, xmm14 + psrld xmm14, 8 + pslld xmm8, 24 + pxor xmm14, xmm8 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp+0x90] + paddd xmm1, xmmword ptr [rsp+0xB0] + paddd xmm2, xmmword ptr [rsp+0x80] + paddd xmm3, xmmword ptr [rsp+0xF0] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + pshuflw xmm12, xmm12, 0xB1 + pshufhw xmm12, xmm12, 0xB1 + pshuflw xmm13, xmm13, 0xB1 + pshufhw xmm13, xmm13, 0xB1 + pshuflw xmm14, xmm14, 0xB1 + pshufhw xmm14, xmm14, 0xB1 + pshuflw xmm15, xmm15, 0xB1 + pshufhw xmm15, xmm15, 0xB1 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0xE0] + paddd xmm1, xmmword ptr [rsp+0x50] + paddd xmm2, xmmword ptr [rsp+0xC0] + paddd xmm3, xmmword ptr [rsp+0x10] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + movdqa xmm8, xmm12 + psrld xmm12, 8 + pslld xmm8, 24 + pxor xmm12, xmm8 + movdqa xmm8, xmm13 + psrld xmm13, 8 + pslld xmm8, 24 + pxor xmm13, xmm8 + movdqa xmm8, xmm14 + psrld xmm14, 8 + pslld xmm8, 24 + pxor xmm14, xmm8 + movdqa xmm8, xmm15 + psrld xmm15, 8 + pslld xmm8, 24 + pxor xmm15, xmm8 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0xD0] + paddd xmm1, xmmword ptr [rsp] + paddd xmm2, xmmword ptr [rsp+0x20] + paddd xmm3, xmmword ptr [rsp+0x40] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + pshuflw xmm15, xmm15, 0xB1 + pshufhw xmm15, xmm15, 0xB1 + pshuflw xmm12, xmm12, 0xB1 + pshufhw xmm12, xmm12, 0xB1 + pshuflw xmm13, xmm13, 0xB1 + pshufhw xmm13, xmm13, 0xB1 + pshuflw xmm14, xmm14, 0xB1 + pshufhw xmm14, xmm14, 0xB1 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp+0x30] + paddd xmm1, xmmword ptr [rsp+0xA0] + paddd xmm2, xmmword ptr [rsp+0x60] + paddd xmm3, xmmword ptr [rsp+0x70] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + movdqa xmm8, xmm15 + psrld xmm15, 8 + pslld xmm8, 24 + pxor xmm15, xmm8 + movdqa xmm8, xmm12 + psrld xmm12, 8 + pslld xmm8, 24 + pxor xmm12, xmm8 + movdqa xmm8, xmm13 + psrld xmm13, 8 + pslld xmm8, 24 + pxor xmm13, xmm8 + movdqa xmm8, xmm14 + psrld xmm14, 8 + pslld xmm8, 24 + pxor xmm14, xmm8 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp+0xB0] + paddd xmm1, xmmword ptr [rsp+0x50] + paddd xmm2, xmmword ptr [rsp+0x10] + paddd xmm3, xmmword ptr [rsp+0x80] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + pshuflw xmm12, xmm12, 0xB1 + pshufhw xmm12, xmm12, 0xB1 + pshuflw xmm13, xmm13, 0xB1 + pshufhw xmm13, xmm13, 0xB1 + pshuflw xmm14, xmm14, 0xB1 + pshufhw xmm14, xmm14, 0xB1 + pshuflw xmm15, xmm15, 0xB1 + pshufhw xmm15, xmm15, 0xB1 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0xF0] + paddd xmm1, xmmword ptr [rsp] + paddd xmm2, xmmword ptr [rsp+0x90] + paddd xmm3, xmmword ptr [rsp+0x60] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + movdqa xmm8, xmm12 + psrld xmm12, 8 + pslld xmm8, 24 + pxor xmm12, xmm8 + movdqa xmm8, xmm13 + psrld xmm13, 8 + pslld xmm8, 24 + pxor xmm13, xmm8 + movdqa xmm8, xmm14 + psrld xmm14, 8 + pslld xmm8, 24 + pxor xmm14, xmm8 + movdqa xmm8, xmm15 + psrld xmm15, 8 + pslld xmm8, 24 + pxor xmm15, xmm8 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0xE0] + paddd xmm1, xmmword ptr [rsp+0x20] + paddd xmm2, xmmword ptr [rsp+0x30] + paddd xmm3, xmmword ptr [rsp+0x70] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + pshuflw xmm15, xmm15, 0xB1 + pshufhw xmm15, xmm15, 0xB1 + pshuflw xmm12, xmm12, 0xB1 + pshufhw xmm12, xmm12, 0xB1 + pshuflw xmm13, xmm13, 0xB1 + pshufhw xmm13, xmm13, 0xB1 + pshuflw xmm14, xmm14, 0xB1 + pshufhw xmm14, xmm14, 0xB1 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp+0xA0] + paddd xmm1, xmmword ptr [rsp+0xC0] + paddd xmm2, xmmword ptr [rsp+0x40] + paddd xmm3, xmmword ptr [rsp+0xD0] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + movdqa xmm8, xmm15 + psrld xmm15, 8 + pslld xmm8, 24 + pxor xmm15, xmm8 + movdqa xmm8, xmm12 + psrld xmm12, 8 + pslld xmm8, 24 + pxor xmm12, xmm8 + movdqa xmm8, xmm13 + psrld xmm13, 8 + pslld xmm8, 24 + pxor xmm13, xmm8 + movdqa xmm8, xmm14 + psrld xmm14, 8 + pslld xmm8, 24 + pxor xmm14, xmm8 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + pxor xmm0, xmm8 + pxor xmm1, xmm9 + pxor xmm2, xmm10 + pxor xmm3, xmm11 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + pxor xmm4, xmm12 + pxor xmm5, xmm13 + pxor xmm6, xmm14 + pxor xmm7, xmm15 + mov eax, r13d + jne 9b + movdqa xmm9, xmm0 + punpckldq xmm0, xmm1 + punpckhdq xmm9, xmm1 + movdqa xmm11, xmm2 + punpckldq xmm2, xmm3 + punpckhdq xmm11, xmm3 + movdqa xmm1, xmm0 + punpcklqdq xmm0, xmm2 + punpckhqdq xmm1, xmm2 + movdqa xmm3, xmm9 + punpcklqdq xmm9, xmm11 + punpckhqdq xmm3, xmm11 + movdqu xmmword ptr [rbx], xmm0 + movdqu xmmword ptr [rbx+0x20], xmm1 + movdqu xmmword ptr [rbx+0x40], xmm9 + movdqu xmmword ptr [rbx+0x60], xmm3 + movdqa xmm9, xmm4 + punpckldq xmm4, xmm5 + punpckhdq xmm9, xmm5 + movdqa xmm11, xmm6 + punpckldq xmm6, xmm7 + punpckhdq xmm11, xmm7 + movdqa xmm5, xmm4 + punpcklqdq xmm4, xmm6 + punpckhqdq xmm5, xmm6 + movdqa xmm7, xmm9 + punpcklqdq xmm9, xmm11 + punpckhqdq xmm7, xmm11 + movdqu xmmword ptr [rbx+0x10], xmm4 + movdqu xmmword ptr [rbx+0x30], xmm5 + movdqu xmmword ptr [rbx+0x50], xmm9 + movdqu xmmword ptr [rbx+0x70], xmm7 + movdqa xmm1, xmmword ptr [rsp+0x110] + movdqa xmm0, xmm1 + paddd xmm1, xmmword ptr [rsp+0x150] + movdqa xmmword ptr [rsp+0x110], xmm1 + pxor xmm0, xmmword ptr [CMP_MSB_MASK+rip] + pxor xmm1, xmmword ptr [CMP_MSB_MASK+rip] + pcmpgtd xmm0, xmm1 + movdqa xmm1, xmmword ptr [rsp+0x120] + psubd xmm1, xmm0 + movdqa xmmword ptr [rsp+0x120], xmm1 + add rbx, 128 + add rdi, 32 + sub rsi, 4 + cmp rsi, 4 + jnc 2b + test rsi, rsi + jnz 3f +4: + mov rsp, rbp + pop rbp + pop rbx + pop r12 + pop r13 + pop r14 + pop r15 + ret +.p2align 5 +3: + test esi, 0x2 + je 3f + movups xmm0, xmmword ptr [rcx] + movups xmm1, xmmword ptr [rcx+0x10] + movaps xmm8, xmm0 + movaps xmm9, xmm1 + movd xmm13, dword ptr [rsp+0x110] + movd xmm14, dword ptr [rsp+0x120] + punpckldq xmm13, xmm14 + movaps xmmword ptr [rsp], xmm13 + movd xmm14, dword ptr [rsp+0x114] + movd xmm13, dword ptr [rsp+0x124] + punpckldq xmm14, xmm13 + movaps xmmword ptr [rsp+0x10], xmm14 + mov r8, qword ptr [rdi] + mov r9, qword ptr [rdi+0x8] + movzx eax, byte ptr [rbp+0x40] + or eax, r13d + xor edx, edx +2: + mov r14d, eax + or eax, r12d + add rdx, 64 + cmp rdx, r15 + cmovne eax, r14d + movaps xmm2, xmmword ptr [BLAKE3_IV+rip] + movaps xmm10, xmm2 + movups xmm4, xmmword ptr [r8+rdx-0x40] + movups xmm5, xmmword ptr [r8+rdx-0x30] + movaps xmm3, xmm4 + shufps xmm4, xmm5, 136 + shufps xmm3, xmm5, 221 + movaps xmm5, xmm3 + movups xmm6, xmmword ptr [r8+rdx-0x20] + movups xmm7, xmmword ptr [r8+rdx-0x10] + movaps xmm3, xmm6 + shufps xmm6, xmm7, 136 + pshufd xmm6, xmm6, 0x93 + shufps xmm3, xmm7, 221 + pshufd xmm7, xmm3, 0x93 + movups xmm12, xmmword ptr [r9+rdx-0x40] + movups xmm13, xmmword ptr [r9+rdx-0x30] + movaps xmm11, xmm12 + shufps xmm12, xmm13, 136 + shufps xmm11, xmm13, 221 + movaps xmm13, xmm11 + movups xmm14, xmmword ptr [r9+rdx-0x20] + movups xmm15, xmmword ptr [r9+rdx-0x10] + movaps xmm11, xmm14 + shufps xmm14, xmm15, 136 + pshufd xmm14, xmm14, 0x93 + shufps xmm11, xmm15, 221 + pshufd xmm15, xmm11, 0x93 + shl rax, 0x20 + or rax, 0x40 + movq xmm3, rax + movdqa xmmword ptr [rsp+0x20], xmm3 + movaps xmm3, xmmword ptr [rsp] + movaps xmm11, xmmword ptr [rsp+0x10] + punpcklqdq xmm3, xmmword ptr [rsp+0x20] + punpcklqdq xmm11, xmmword ptr [rsp+0x20] + mov al, 7 +9: + paddd xmm0, xmm4 + paddd xmm8, xmm12 + movaps xmmword ptr [rsp+0x20], xmm4 + movaps xmmword ptr [rsp+0x30], xmm12 + paddd xmm0, xmm1 + paddd xmm8, xmm9 + pxor xmm3, xmm0 + pxor xmm11, xmm8 + pshuflw xmm3, xmm3, 0xB1 + pshufhw xmm3, xmm3, 0xB1 + pshuflw xmm11, xmm11, 0xB1 + pshufhw xmm11, xmm11, 0xB1 + paddd xmm2, xmm3 + paddd xmm10, xmm11 + pxor xmm1, xmm2 + pxor xmm9, xmm10 + movdqa xmm4, xmm1 + pslld xmm1, 20 + psrld xmm4, 12 + por xmm1, xmm4 + movdqa xmm4, xmm9 + pslld xmm9, 20 + psrld xmm4, 12 + por xmm9, xmm4 + paddd xmm0, xmm5 + paddd xmm8, xmm13 + movaps xmmword ptr [rsp+0x40], xmm5 + movaps xmmword ptr [rsp+0x50], xmm13 + paddd xmm0, xmm1 + paddd xmm8, xmm9 + pxor xmm3, xmm0 + pxor xmm11, xmm8 + movdqa xmm13, xmm3 + psrld xmm3, 8 + pslld xmm13, 24 + pxor xmm3, xmm13 + movdqa xmm13, xmm11 + psrld xmm11, 8 + pslld xmm13, 24 + pxor xmm11, xmm13 + paddd xmm2, xmm3 + paddd xmm10, xmm11 + pxor xmm1, xmm2 + pxor xmm9, xmm10 + movdqa xmm4, xmm1 + pslld xmm1, 25 + psrld xmm4, 7 + por xmm1, xmm4 + movdqa xmm4, xmm9 + pslld xmm9, 25 + psrld xmm4, 7 + por xmm9, xmm4 + pshufd xmm0, xmm0, 0x93 + pshufd xmm8, xmm8, 0x93 + pshufd xmm3, xmm3, 0x4E + pshufd xmm11, xmm11, 0x4E + pshufd xmm2, xmm2, 0x39 + pshufd xmm10, xmm10, 0x39 + paddd xmm0, xmm6 + paddd xmm8, xmm14 + paddd xmm0, xmm1 + paddd xmm8, xmm9 + pxor xmm3, xmm0 + pxor xmm11, xmm8 + pshuflw xmm3, xmm3, 0xB1 + pshufhw xmm3, xmm3, 0xB1 + pshuflw xmm11, xmm11, 0xB1 + pshufhw xmm11, xmm11, 0xB1 + paddd xmm2, xmm3 + paddd xmm10, xmm11 + pxor xmm1, xmm2 + pxor xmm9, xmm10 + movdqa xmm4, xmm1 + pslld xmm1, 20 + psrld xmm4, 12 + por xmm1, xmm4 + movdqa xmm4, xmm9 + pslld xmm9, 20 + psrld xmm4, 12 + por xmm9, xmm4 + paddd xmm0, xmm7 + paddd xmm8, xmm15 + paddd xmm0, xmm1 + paddd xmm8, xmm9 + pxor xmm3, xmm0 + pxor xmm11, xmm8 + movdqa xmm13, xmm3 + psrld xmm3, 8 + pslld xmm13, 24 + pxor xmm3, xmm13 + movdqa xmm13, xmm11 + psrld xmm11, 8 + pslld xmm13, 24 + pxor xmm11, xmm13 + paddd xmm2, xmm3 + paddd xmm10, xmm11 + pxor xmm1, xmm2 + pxor xmm9, xmm10 + movdqa xmm4, xmm1 + pslld xmm1, 25 + psrld xmm4, 7 + por xmm1, xmm4 + movdqa xmm4, xmm9 + pslld xmm9, 25 + psrld xmm4, 7 + por xmm9, xmm4 + pshufd xmm0, xmm0, 0x39 + pshufd xmm8, xmm8, 0x39 + pshufd xmm3, xmm3, 0x4E + pshufd xmm11, xmm11, 0x4E + pshufd xmm2, xmm2, 0x93 + pshufd xmm10, xmm10, 0x93 + dec al + je 9f + movdqa xmm12, xmmword ptr [rsp+0x20] + movdqa xmm5, xmmword ptr [rsp+0x40] + pshufd xmm13, xmm12, 0x0F + shufps xmm12, xmm5, 214 + pshufd xmm4, xmm12, 0x39 + movdqa xmm12, xmm6 + shufps xmm12, xmm7, 250 + pand xmm13, xmmword ptr [PBLENDW_0x33_MASK+rip] + pand xmm12, xmmword ptr [PBLENDW_0xCC_MASK+rip] + por xmm13, xmm12 + movdqa xmmword ptr [rsp+0x20], xmm13 + movdqa xmm12, xmm7 + punpcklqdq xmm12, xmm5 + movdqa xmm13, xmm6 + pand xmm12, xmmword ptr [PBLENDW_0x3F_MASK+rip] + pand xmm13, xmmword ptr [PBLENDW_0xC0_MASK+rip] + por xmm12, xmm13 + pshufd xmm12, xmm12, 0x78 + punpckhdq xmm5, xmm7 + punpckldq xmm6, xmm5 + pshufd xmm7, xmm6, 0x1E + movdqa xmmword ptr [rsp+0x40], xmm12 + movdqa xmm5, xmmword ptr [rsp+0x30] + movdqa xmm13, xmmword ptr [rsp+0x50] + pshufd xmm6, xmm5, 0x0F + shufps xmm5, xmm13, 214 + pshufd xmm12, xmm5, 0x39 + movdqa xmm5, xmm14 + shufps xmm5, xmm15, 250 + pand xmm6, xmmword ptr [PBLENDW_0x33_MASK+rip] + pand xmm5, xmmword ptr [PBLENDW_0xCC_MASK+rip] + por xmm6, xmm5 + movdqa xmm5, xmm15 + punpcklqdq xmm5, xmm13 + movdqa xmmword ptr [rsp+0x30], xmm2 + movdqa xmm2, xmm14 + pand xmm5, xmmword ptr [PBLENDW_0x3F_MASK+rip] + pand xmm2, xmmword ptr [PBLENDW_0xC0_MASK+rip] + por xmm5, xmm2 + movdqa xmm2, xmmword ptr [rsp+0x30] + pshufd xmm5, xmm5, 0x78 + punpckhdq xmm13, xmm15 + punpckldq xmm14, xmm13 + pshufd xmm15, xmm14, 0x1E + movdqa xmm13, xmm6 + movdqa xmm14, xmm5 + movdqa xmm5, xmmword ptr [rsp+0x20] + movdqa xmm6, xmmword ptr [rsp+0x40] + jmp 9b +9: + pxor xmm0, xmm2 + pxor xmm1, xmm3 + pxor xmm8, xmm10 + pxor xmm9, xmm11 + mov eax, r13d + cmp rdx, r15 + jne 2b + movups xmmword ptr [rbx], xmm0 + movups xmmword ptr [rbx+0x10], xmm1 + movups xmmword ptr [rbx+0x20], xmm8 + movups xmmword ptr [rbx+0x30], xmm9 + mov eax, dword ptr [rsp+0x130] + neg eax + mov r10d, dword ptr [rsp+0x110+8*rax] + mov r11d, dword ptr [rsp+0x120+8*rax] + mov dword ptr [rsp+0x110], r10d + mov dword ptr [rsp+0x120], r11d + add rdi, 16 + add rbx, 64 + sub rsi, 2 +3: + test esi, 0x1 + je 4b + movups xmm0, xmmword ptr [rcx] + movups xmm1, xmmword ptr [rcx+0x10] + movd xmm13, dword ptr [rsp+0x110] + movd xmm14, dword ptr [rsp+0x120] + punpckldq xmm13, xmm14 + mov r8, qword ptr [rdi] + movzx eax, byte ptr [rbp+0x40] + or eax, r13d + xor edx, edx +2: + mov r14d, eax + or eax, r12d + add rdx, 64 + cmp rdx, r15 + cmovne eax, r14d + movaps xmm2, xmmword ptr [BLAKE3_IV+rip] + shl rax, 32 + or rax, 64 + movq xmm12, rax + movdqa xmm3, xmm13 + punpcklqdq xmm3, xmm12 + movups xmm4, xmmword ptr [r8+rdx-0x40] + movups xmm5, xmmword ptr [r8+rdx-0x30] + movaps xmm8, xmm4 + shufps xmm4, xmm5, 136 + shufps xmm8, xmm5, 221 + movaps xmm5, xmm8 + movups xmm6, xmmword ptr [r8+rdx-0x20] + movups xmm7, xmmword ptr [r8+rdx-0x10] + movaps xmm8, xmm6 + shufps xmm6, xmm7, 136 + pshufd xmm6, xmm6, 0x93 + shufps xmm8, xmm7, 221 + pshufd xmm7, xmm8, 0x93 + mov al, 7 +9: + paddd xmm0, xmm4 + paddd xmm0, xmm1 + pxor xmm3, xmm0 + pshuflw xmm3, xmm3, 0xB1 + pshufhw xmm3, xmm3, 0xB1 + paddd xmm2, xmm3 + pxor xmm1, xmm2 + movdqa xmm11, xmm1 + pslld xmm1, 20 + psrld xmm11, 12 + por xmm1, xmm11 + paddd xmm0, xmm5 + paddd xmm0, xmm1 + pxor xmm3, xmm0 + movdqa xmm14, xmm3 + psrld xmm3, 8 + pslld xmm14, 24 + pxor xmm3, xmm14 + paddd xmm2, xmm3 + pxor xmm1, xmm2 + movdqa xmm11, xmm1 + pslld xmm1, 25 + psrld xmm11, 7 + por xmm1, xmm11 + pshufd xmm0, xmm0, 0x93 + pshufd xmm3, xmm3, 0x4E + pshufd xmm2, xmm2, 0x39 + paddd xmm0, xmm6 + paddd xmm0, xmm1 + pxor xmm3, xmm0 + pshuflw xmm3, xmm3, 0xB1 + pshufhw xmm3, xmm3, 0xB1 + paddd xmm2, xmm3 + pxor xmm1, xmm2 + movdqa xmm11, xmm1 + pslld xmm1, 20 + psrld xmm11, 12 + por xmm1, xmm11 + paddd xmm0, xmm7 + paddd xmm0, xmm1 + pxor xmm3, xmm0 + movdqa xmm14, xmm3 + psrld xmm3, 8 + pslld xmm14, 24 + pxor xmm3, xmm14 + paddd xmm2, xmm3 + pxor xmm1, xmm2 + movdqa xmm11, xmm1 + pslld xmm1, 25 + psrld xmm11, 7 + por xmm1, xmm11 + pshufd xmm0, xmm0, 0x39 + pshufd xmm3, xmm3, 0x4E + pshufd xmm2, xmm2, 0x93 + dec al + jz 9f + movdqa xmm8, xmm4 + shufps xmm8, xmm5, 214 + pshufd xmm9, xmm4, 0x0F + pshufd xmm4, xmm8, 0x39 + movdqa xmm8, xmm6 + shufps xmm8, xmm7, 250 + pand xmm9, xmmword ptr [PBLENDW_0x33_MASK+rip] + pand xmm8, xmmword ptr [PBLENDW_0xCC_MASK+rip] + por xmm9, xmm8 + movdqa xmm8, xmm7 + punpcklqdq xmm8, xmm5 + movdqa xmm10, xmm6 + pand xmm8, xmmword ptr [PBLENDW_0x3F_MASK+rip] + pand xmm10, xmmword ptr [PBLENDW_0xC0_MASK+rip] + por xmm8, xmm10 + pshufd xmm8, xmm8, 0x78 + punpckhdq xmm5, xmm7 + punpckldq xmm6, xmm5 + pshufd xmm7, xmm6, 0x1E + movdqa xmm5, xmm9 + movdqa xmm6, xmm8 + jmp 9b +9: + pxor xmm0, xmm2 + pxor xmm1, xmm3 + mov eax, r13d + cmp rdx, r15 + jne 2b + movups xmmword ptr [rbx], xmm0 + movups xmmword ptr [rbx+0x10], xmm1 + jmp 4b + +.p2align 6 +blake3_compress_in_place_sse2_asm: +_blake3_compress_in_place_sse2_asm: + _CET_ENDBR + movups xmm0, xmmword ptr [rdi] + movups xmm1, xmmword ptr [rdi+0x10] + movaps xmm2, xmmword ptr [BLAKE3_IV+rip] + shl r8, 32 + add rdx, r8 + movq xmm3, rcx + movq xmm4, rdx + punpcklqdq xmm3, xmm4 + movups xmm4, xmmword ptr [rsi] + movups xmm5, xmmword ptr [rsi+0x10] + movaps xmm8, xmm4 + shufps xmm4, xmm5, 136 + shufps xmm8, xmm5, 221 + movaps xmm5, xmm8 + movups xmm6, xmmword ptr [rsi+0x20] + movups xmm7, xmmword ptr [rsi+0x30] + movaps xmm8, xmm6 + shufps xmm6, xmm7, 136 + pshufd xmm6, xmm6, 0x93 + shufps xmm8, xmm7, 221 + pshufd xmm7, xmm8, 0x93 + mov al, 7 +9: + paddd xmm0, xmm4 + paddd xmm0, xmm1 + pxor xmm3, xmm0 + pshuflw xmm3, xmm3, 0xB1 + pshufhw xmm3, xmm3, 0xB1 + paddd xmm2, xmm3 + pxor xmm1, xmm2 + movdqa xmm11, xmm1 + pslld xmm1, 20 + psrld xmm11, 12 + por xmm1, xmm11 + paddd xmm0, xmm5 + paddd xmm0, xmm1 + pxor xmm3, xmm0 + movdqa xmm14, xmm3 + psrld xmm3, 8 + pslld xmm14, 24 + pxor xmm3, xmm14 + paddd xmm2, xmm3 + pxor xmm1, xmm2 + movdqa xmm11, xmm1 + pslld xmm1, 25 + psrld xmm11, 7 + por xmm1, xmm11 + pshufd xmm0, xmm0, 0x93 + pshufd xmm3, xmm3, 0x4E + pshufd xmm2, xmm2, 0x39 + paddd xmm0, xmm6 + paddd xmm0, xmm1 + pxor xmm3, xmm0 + pshuflw xmm3, xmm3, 0xB1 + pshufhw xmm3, xmm3, 0xB1 + paddd xmm2, xmm3 + pxor xmm1, xmm2 + movdqa xmm11, xmm1 + pslld xmm1, 20 + psrld xmm11, 12 + por xmm1, xmm11 + paddd xmm0, xmm7 + paddd xmm0, xmm1 + pxor xmm3, xmm0 + movdqa xmm14, xmm3 + psrld xmm3, 8 + pslld xmm14, 24 + pxor xmm3, xmm14 + paddd xmm2, xmm3 + pxor xmm1, xmm2 + movdqa xmm11, xmm1 + pslld xmm1, 25 + psrld xmm11, 7 + por xmm1, xmm11 + pshufd xmm0, xmm0, 0x39 + pshufd xmm3, xmm3, 0x4E + pshufd xmm2, xmm2, 0x93 + dec al + jz 9f + movdqa xmm8, xmm4 + shufps xmm8, xmm5, 214 + pshufd xmm9, xmm4, 0x0F + pshufd xmm4, xmm8, 0x39 + movdqa xmm8, xmm6 + shufps xmm8, xmm7, 250 + pand xmm9, xmmword ptr [PBLENDW_0x33_MASK+rip] + pand xmm8, xmmword ptr [PBLENDW_0xCC_MASK+rip] + por xmm9, xmm8 + movdqa xmm8, xmm7 + punpcklqdq xmm8, xmm5 + movdqa xmm10, xmm6 + pand xmm8, xmmword ptr [PBLENDW_0x3F_MASK+rip] + pand xmm10, xmmword ptr [PBLENDW_0xC0_MASK+rip] + por xmm8, xmm10 + pshufd xmm8, xmm8, 0x78 + punpckhdq xmm5, xmm7 + punpckldq xmm6, xmm5 + pshufd xmm7, xmm6, 0x1E + movdqa xmm5, xmm9 + movdqa xmm6, xmm8 + jmp 9b +9: + pxor xmm0, xmm2 + pxor xmm1, xmm3 + movups xmmword ptr [rdi], xmm0 + movups xmmword ptr [rdi+0x10], xmm1 + ret + +.p2align 6 +blake3_compress_xof_sse2_asm: +_blake3_compress_xof_sse2_asm: + _CET_ENDBR + movups xmm0, xmmword ptr [rdi] + movups xmm1, xmmword ptr [rdi+0x10] + movaps xmm2, xmmword ptr [BLAKE3_IV+rip] + movzx eax, r8b + movzx edx, dl + shl rax, 32 + add rdx, rax + movq xmm3, rcx + movq xmm4, rdx + punpcklqdq xmm3, xmm4 + movups xmm4, xmmword ptr [rsi] + movups xmm5, xmmword ptr [rsi+0x10] + movaps xmm8, xmm4 + shufps xmm4, xmm5, 136 + shufps xmm8, xmm5, 221 + movaps xmm5, xmm8 + movups xmm6, xmmword ptr [rsi+0x20] + movups xmm7, xmmword ptr [rsi+0x30] + movaps xmm8, xmm6 + shufps xmm6, xmm7, 136 + pshufd xmm6, xmm6, 0x93 + shufps xmm8, xmm7, 221 + pshufd xmm7, xmm8, 0x93 + mov al, 7 +9: + paddd xmm0, xmm4 + paddd xmm0, xmm1 + pxor xmm3, xmm0 + pshuflw xmm3, xmm3, 0xB1 + pshufhw xmm3, xmm3, 0xB1 + paddd xmm2, xmm3 + pxor xmm1, xmm2 + movdqa xmm11, xmm1 + pslld xmm1, 20 + psrld xmm11, 12 + por xmm1, xmm11 + paddd xmm0, xmm5 + paddd xmm0, xmm1 + pxor xmm3, xmm0 + movdqa xmm14, xmm3 + psrld xmm3, 8 + pslld xmm14, 24 + pxor xmm3, xmm14 + paddd xmm2, xmm3 + pxor xmm1, xmm2 + movdqa xmm11, xmm1 + pslld xmm1, 25 + psrld xmm11, 7 + por xmm1, xmm11 + pshufd xmm0, xmm0, 0x93 + pshufd xmm3, xmm3, 0x4E + pshufd xmm2, xmm2, 0x39 + paddd xmm0, xmm6 + paddd xmm0, xmm1 + pxor xmm3, xmm0 + pshuflw xmm3, xmm3, 0xB1 + pshufhw xmm3, xmm3, 0xB1 + paddd xmm2, xmm3 + pxor xmm1, xmm2 + movdqa xmm11, xmm1 + pslld xmm1, 20 + psrld xmm11, 12 + por xmm1, xmm11 + paddd xmm0, xmm7 + paddd xmm0, xmm1 + pxor xmm3, xmm0 + movdqa xmm14, xmm3 + psrld xmm3, 8 + pslld xmm14, 24 + pxor xmm3, xmm14 + paddd xmm2, xmm3 + pxor xmm1, xmm2 + movdqa xmm11, xmm1 + pslld xmm1, 25 + psrld xmm11, 7 + por xmm1, xmm11 + pshufd xmm0, xmm0, 0x39 + pshufd xmm3, xmm3, 0x4E + pshufd xmm2, xmm2, 0x93 + dec al + jz 9f + movdqa xmm8, xmm4 + shufps xmm8, xmm5, 214 + pshufd xmm9, xmm4, 0x0F + pshufd xmm4, xmm8, 0x39 + movdqa xmm8, xmm6 + shufps xmm8, xmm7, 250 + pand xmm9, xmmword ptr [PBLENDW_0x33_MASK+rip] + pand xmm8, xmmword ptr [PBLENDW_0xCC_MASK+rip] + por xmm9, xmm8 + movdqa xmm8, xmm7 + punpcklqdq xmm8, xmm5 + movdqa xmm10, xmm6 + pand xmm8, xmmword ptr [PBLENDW_0x3F_MASK+rip] + pand xmm10, xmmword ptr [PBLENDW_0xC0_MASK+rip] + por xmm8, xmm10 + pshufd xmm8, xmm8, 0x78 + punpckhdq xmm5, xmm7 + punpckldq xmm6, xmm5 + pshufd xmm7, xmm6, 0x1E + movdqa xmm5, xmm9 + movdqa xmm6, xmm8 + jmp 9b +9: + movdqu xmm4, xmmword ptr [rdi] + movdqu xmm5, xmmword ptr [rdi+0x10] + pxor xmm0, xmm2 + pxor xmm1, xmm3 + pxor xmm2, xmm4 + pxor xmm3, xmm5 + movups xmmword ptr [r9], xmm0 + movups xmmword ptr [r9+0x10], xmm1 + movups xmmword ptr [r9+0x20], xmm2 + movups xmmword ptr [r9+0x30], xmm3 + ret + + +#ifdef __APPLE__ +.static_data +#else +.section .rodata +#endif +.p2align 6 +BLAKE3_IV: + .long 0x6A09E667, 0xBB67AE85 + .long 0x3C6EF372, 0xA54FF53A +ADD0: + .long 0, 1, 2, 3 +ADD1: + .long 4, 4, 4, 4 +BLAKE3_IV_0: + .long 0x6A09E667, 0x6A09E667, 0x6A09E667, 0x6A09E667 +BLAKE3_IV_1: + .long 0xBB67AE85, 0xBB67AE85, 0xBB67AE85, 0xBB67AE85 +BLAKE3_IV_2: + .long 0x3C6EF372, 0x3C6EF372, 0x3C6EF372, 0x3C6EF372 +BLAKE3_IV_3: + .long 0xA54FF53A, 0xA54FF53A, 0xA54FF53A, 0xA54FF53A +BLAKE3_BLOCK_LEN: + .long 64, 64, 64, 64 +CMP_MSB_MASK: + .long 0x80000000, 0x80000000, 0x80000000, 0x80000000 +PBLENDW_0x33_MASK: + .long 0xFFFFFFFF, 0x00000000, 0xFFFFFFFF, 0x00000000 +PBLENDW_0xCC_MASK: + .long 0x00000000, 0xFFFFFFFF, 0x00000000, 0xFFFFFFFF +PBLENDW_0x3F_MASK: + .long 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0x00000000 +PBLENDW_0xC0_MASK: + .long 0x00000000, 0x00000000, 0x00000000, 0xFFFFFFFF diff --git a/Sources/Cfyaml/src/blake3/blake3_sse41.c b/Sources/Cfyaml/src/blake3/blake3_sse41.c new file mode 100644 index 000000000..adadd4857 --- /dev/null +++ b/Sources/Cfyaml/src/blake3/blake3_sse41.c @@ -0,0 +1,567 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "blake3_impl.h" + +#include + +/* define it here instead of the header */ +static const uint8_t MSG_SCHEDULE[7][16] = { B3_MSG_SCHEDULE_DEF }; + +#define DEGREE 4 + +#define _mm_shuffle_ps2(a, b, c) \ + (_mm_castps_si128( \ + _mm_shuffle_ps(_mm_castsi128_ps(a), _mm_castsi128_ps(b), (c)))) + +INLINE __m128i loadu(const uint8_t src[16]) { + return _mm_loadu_si128((const __m128i *)src); +} + +INLINE void storeu(__m128i src, uint8_t dest[16]) { + _mm_storeu_si128((__m128i *)dest, src); +} + +INLINE __m128i addv(__m128i a, __m128i b) { return _mm_add_epi32(a, b); } + +// Note that clang-format doesn't like the name "xor" for some reason. +INLINE __m128i xorv(__m128i a, __m128i b) { return _mm_xor_si128(a, b); } + +INLINE __m128i set1(uint32_t x) { return _mm_set1_epi32((int32_t)x); } + +INLINE __m128i set4(uint32_t a, uint32_t b, uint32_t c, uint32_t d) { + return _mm_setr_epi32((int32_t)a, (int32_t)b, (int32_t)c, (int32_t)d); +} + +INLINE __m128i rot16(__m128i x) { + return _mm_shuffle_epi8( + x, _mm_set_epi8(13, 12, 15, 14, 9, 8, 11, 10, 5, 4, 7, 6, 1, 0, 3, 2)); +} + +INLINE __m128i rot12(__m128i x) { + return xorv(_mm_srli_epi32(x, 12), _mm_slli_epi32(x, 32 - 12)); +} + +INLINE __m128i rot8(__m128i x) { + return _mm_shuffle_epi8( + x, _mm_set_epi8(12, 15, 14, 13, 8, 11, 10, 9, 4, 7, 6, 5, 0, 3, 2, 1)); +} + +INLINE __m128i rot7(__m128i x) { + return xorv(_mm_srli_epi32(x, 7), _mm_slli_epi32(x, 32 - 7)); +} + +INLINE void g1(__m128i *row0, __m128i *row1, __m128i *row2, __m128i *row3, + __m128i m) { + *row0 = addv(addv(*row0, m), *row1); + *row3 = xorv(*row3, *row0); + *row3 = rot16(*row3); + *row2 = addv(*row2, *row3); + *row1 = xorv(*row1, *row2); + *row1 = rot12(*row1); +} + +INLINE void g2(__m128i *row0, __m128i *row1, __m128i *row2, __m128i *row3, + __m128i m) { + *row0 = addv(addv(*row0, m), *row1); + *row3 = xorv(*row3, *row0); + *row3 = rot8(*row3); + *row2 = addv(*row2, *row3); + *row1 = xorv(*row1, *row2); + *row1 = rot7(*row1); +} + +// Note the optimization here of leaving row1 as the unrotated row, rather than +// row0. All the message loads below are adjusted to compensate for this. See +// discussion at https://github.com/sneves/blake2-avx2/pull/4 +INLINE void diagonalize(__m128i *row0, __m128i *row2, __m128i *row3) { + *row0 = _mm_shuffle_epi32(*row0, _MM_SHUFFLE(2, 1, 0, 3)); + *row3 = _mm_shuffle_epi32(*row3, _MM_SHUFFLE(1, 0, 3, 2)); + *row2 = _mm_shuffle_epi32(*row2, _MM_SHUFFLE(0, 3, 2, 1)); +} + +INLINE void undiagonalize(__m128i *row0, __m128i *row2, __m128i *row3) { + *row0 = _mm_shuffle_epi32(*row0, _MM_SHUFFLE(0, 3, 2, 1)); + *row3 = _mm_shuffle_epi32(*row3, _MM_SHUFFLE(1, 0, 3, 2)); + *row2 = _mm_shuffle_epi32(*row2, _MM_SHUFFLE(2, 1, 0, 3)); +} + +INLINE void compress_pre(__m128i rows[4], const uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, uint8_t flags) { + rows[0] = loadu((uint8_t *)&cv[0]); + rows[1] = loadu((uint8_t *)&cv[4]); + rows[2] = set4(B3_IV_0, B3_IV_1, B3_IV_2, B3_IV_3); + rows[3] = set4(counter_low(counter), counter_high(counter), + (uint32_t)block_len, (uint32_t)flags); + + __m128i m0 = loadu(&block[sizeof(__m128i) * 0]); + __m128i m1 = loadu(&block[sizeof(__m128i) * 1]); + __m128i m2 = loadu(&block[sizeof(__m128i) * 2]); + __m128i m3 = loadu(&block[sizeof(__m128i) * 3]); + + __m128i t0, t1, t2, t3, tt; + + // Round 1. The first round permutes the message words from the original + // input order, into the groups that get mixed in parallel. + t0 = _mm_shuffle_ps2(m0, m1, _MM_SHUFFLE(2, 0, 2, 0)); // 6 4 2 0 + g1(&rows[0], &rows[1], &rows[2], &rows[3], t0); + t1 = _mm_shuffle_ps2(m0, m1, _MM_SHUFFLE(3, 1, 3, 1)); // 7 5 3 1 + g2(&rows[0], &rows[1], &rows[2], &rows[3], t1); + diagonalize(&rows[0], &rows[2], &rows[3]); + t2 = _mm_shuffle_ps2(m2, m3, _MM_SHUFFLE(2, 0, 2, 0)); // 14 12 10 8 + t2 = _mm_shuffle_epi32(t2, _MM_SHUFFLE(2, 1, 0, 3)); // 12 10 8 14 + g1(&rows[0], &rows[1], &rows[2], &rows[3], t2); + t3 = _mm_shuffle_ps2(m2, m3, _MM_SHUFFLE(3, 1, 3, 1)); // 15 13 11 9 + t3 = _mm_shuffle_epi32(t3, _MM_SHUFFLE(2, 1, 0, 3)); // 13 11 9 15 + g2(&rows[0], &rows[1], &rows[2], &rows[3], t3); + undiagonalize(&rows[0], &rows[2], &rows[3]); + m0 = t0; + m1 = t1; + m2 = t2; + m3 = t3; + + // Round 2. This round and all following rounds apply a fixed permutation + // to the message words from the round before. + t0 = _mm_shuffle_ps2(m0, m1, _MM_SHUFFLE(3, 1, 1, 2)); + t0 = _mm_shuffle_epi32(t0, _MM_SHUFFLE(0, 3, 2, 1)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t0); + t1 = _mm_shuffle_ps2(m2, m3, _MM_SHUFFLE(3, 3, 2, 2)); + tt = _mm_shuffle_epi32(m0, _MM_SHUFFLE(0, 0, 3, 3)); + t1 = _mm_blend_epi16(tt, t1, 0xCC); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t1); + diagonalize(&rows[0], &rows[2], &rows[3]); + t2 = _mm_unpacklo_epi64(m3, m1); + tt = _mm_blend_epi16(t2, m2, 0xC0); + t2 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(1, 3, 2, 0)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t2); + t3 = _mm_unpackhi_epi32(m1, m3); + tt = _mm_unpacklo_epi32(m2, t3); + t3 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(0, 1, 3, 2)); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t3); + undiagonalize(&rows[0], &rows[2], &rows[3]); + m0 = t0; + m1 = t1; + m2 = t2; + m3 = t3; + + // Round 3 + t0 = _mm_shuffle_ps2(m0, m1, _MM_SHUFFLE(3, 1, 1, 2)); + t0 = _mm_shuffle_epi32(t0, _MM_SHUFFLE(0, 3, 2, 1)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t0); + t1 = _mm_shuffle_ps2(m2, m3, _MM_SHUFFLE(3, 3, 2, 2)); + tt = _mm_shuffle_epi32(m0, _MM_SHUFFLE(0, 0, 3, 3)); + t1 = _mm_blend_epi16(tt, t1, 0xCC); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t1); + diagonalize(&rows[0], &rows[2], &rows[3]); + t2 = _mm_unpacklo_epi64(m3, m1); + tt = _mm_blend_epi16(t2, m2, 0xC0); + t2 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(1, 3, 2, 0)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t2); + t3 = _mm_unpackhi_epi32(m1, m3); + tt = _mm_unpacklo_epi32(m2, t3); + t3 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(0, 1, 3, 2)); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t3); + undiagonalize(&rows[0], &rows[2], &rows[3]); + m0 = t0; + m1 = t1; + m2 = t2; + m3 = t3; + + // Round 4 + t0 = _mm_shuffle_ps2(m0, m1, _MM_SHUFFLE(3, 1, 1, 2)); + t0 = _mm_shuffle_epi32(t0, _MM_SHUFFLE(0, 3, 2, 1)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t0); + t1 = _mm_shuffle_ps2(m2, m3, _MM_SHUFFLE(3, 3, 2, 2)); + tt = _mm_shuffle_epi32(m0, _MM_SHUFFLE(0, 0, 3, 3)); + t1 = _mm_blend_epi16(tt, t1, 0xCC); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t1); + diagonalize(&rows[0], &rows[2], &rows[3]); + t2 = _mm_unpacklo_epi64(m3, m1); + tt = _mm_blend_epi16(t2, m2, 0xC0); + t2 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(1, 3, 2, 0)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t2); + t3 = _mm_unpackhi_epi32(m1, m3); + tt = _mm_unpacklo_epi32(m2, t3); + t3 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(0, 1, 3, 2)); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t3); + undiagonalize(&rows[0], &rows[2], &rows[3]); + m0 = t0; + m1 = t1; + m2 = t2; + m3 = t3; + + // Round 5 + t0 = _mm_shuffle_ps2(m0, m1, _MM_SHUFFLE(3, 1, 1, 2)); + t0 = _mm_shuffle_epi32(t0, _MM_SHUFFLE(0, 3, 2, 1)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t0); + t1 = _mm_shuffle_ps2(m2, m3, _MM_SHUFFLE(3, 3, 2, 2)); + tt = _mm_shuffle_epi32(m0, _MM_SHUFFLE(0, 0, 3, 3)); + t1 = _mm_blend_epi16(tt, t1, 0xCC); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t1); + diagonalize(&rows[0], &rows[2], &rows[3]); + t2 = _mm_unpacklo_epi64(m3, m1); + tt = _mm_blend_epi16(t2, m2, 0xC0); + t2 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(1, 3, 2, 0)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t2); + t3 = _mm_unpackhi_epi32(m1, m3); + tt = _mm_unpacklo_epi32(m2, t3); + t3 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(0, 1, 3, 2)); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t3); + undiagonalize(&rows[0], &rows[2], &rows[3]); + m0 = t0; + m1 = t1; + m2 = t2; + m3 = t3; + + // Round 6 + t0 = _mm_shuffle_ps2(m0, m1, _MM_SHUFFLE(3, 1, 1, 2)); + t0 = _mm_shuffle_epi32(t0, _MM_SHUFFLE(0, 3, 2, 1)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t0); + t1 = _mm_shuffle_ps2(m2, m3, _MM_SHUFFLE(3, 3, 2, 2)); + tt = _mm_shuffle_epi32(m0, _MM_SHUFFLE(0, 0, 3, 3)); + t1 = _mm_blend_epi16(tt, t1, 0xCC); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t1); + diagonalize(&rows[0], &rows[2], &rows[3]); + t2 = _mm_unpacklo_epi64(m3, m1); + tt = _mm_blend_epi16(t2, m2, 0xC0); + t2 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(1, 3, 2, 0)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t2); + t3 = _mm_unpackhi_epi32(m1, m3); + tt = _mm_unpacklo_epi32(m2, t3); + t3 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(0, 1, 3, 2)); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t3); + undiagonalize(&rows[0], &rows[2], &rows[3]); + m0 = t0; + m1 = t1; + m2 = t2; + m3 = t3; + + // Round 7 + t0 = _mm_shuffle_ps2(m0, m1, _MM_SHUFFLE(3, 1, 1, 2)); + t0 = _mm_shuffle_epi32(t0, _MM_SHUFFLE(0, 3, 2, 1)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t0); + t1 = _mm_shuffle_ps2(m2, m3, _MM_SHUFFLE(3, 3, 2, 2)); + tt = _mm_shuffle_epi32(m0, _MM_SHUFFLE(0, 0, 3, 3)); + t1 = _mm_blend_epi16(tt, t1, 0xCC); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t1); + diagonalize(&rows[0], &rows[2], &rows[3]); + t2 = _mm_unpacklo_epi64(m3, m1); + tt = _mm_blend_epi16(t2, m2, 0xC0); + t2 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(1, 3, 2, 0)); + g1(&rows[0], &rows[1], &rows[2], &rows[3], t2); + t3 = _mm_unpackhi_epi32(m1, m3); + tt = _mm_unpacklo_epi32(m2, t3); + t3 = _mm_shuffle_epi32(tt, _MM_SHUFFLE(0, 1, 3, 2)); + g2(&rows[0], &rows[1], &rows[2], &rows[3], t3); + undiagonalize(&rows[0], &rows[2], &rows[3]); +} + +void blake3_compress_in_place_sse41(uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, + uint8_t flags) { + __m128i rows[4]; + compress_pre(rows, cv, block, block_len, counter, flags); + storeu(xorv(rows[0], rows[2]), (uint8_t *)&cv[0]); + storeu(xorv(rows[1], rows[3]), (uint8_t *)&cv[4]); +} + +void blake3_compress_xof_sse41(const uint32_t cv[8], + const uint8_t block[BLAKE3_BLOCK_LEN], + uint8_t block_len, uint64_t counter, + uint8_t flags, uint8_t out[64]) { + __m128i rows[4]; + compress_pre(rows, cv, block, block_len, counter, flags); + storeu(xorv(rows[0], rows[2]), &out[0]); + storeu(xorv(rows[1], rows[3]), &out[16]); + storeu(xorv(rows[2], loadu((uint8_t *)&cv[0])), &out[32]); + storeu(xorv(rows[3], loadu((uint8_t *)&cv[4])), &out[48]); +} + +INLINE void round_fn(__m128i v[16], __m128i m[16], size_t r) { + v[0] = addv(v[0], m[(size_t)MSG_SCHEDULE[r][0]]); + v[1] = addv(v[1], m[(size_t)MSG_SCHEDULE[r][2]]); + v[2] = addv(v[2], m[(size_t)MSG_SCHEDULE[r][4]]); + v[3] = addv(v[3], m[(size_t)MSG_SCHEDULE[r][6]]); + v[0] = addv(v[0], v[4]); + v[1] = addv(v[1], v[5]); + v[2] = addv(v[2], v[6]); + v[3] = addv(v[3], v[7]); + v[12] = xorv(v[12], v[0]); + v[13] = xorv(v[13], v[1]); + v[14] = xorv(v[14], v[2]); + v[15] = xorv(v[15], v[3]); + v[12] = rot16(v[12]); + v[13] = rot16(v[13]); + v[14] = rot16(v[14]); + v[15] = rot16(v[15]); + v[8] = addv(v[8], v[12]); + v[9] = addv(v[9], v[13]); + v[10] = addv(v[10], v[14]); + v[11] = addv(v[11], v[15]); + v[4] = xorv(v[4], v[8]); + v[5] = xorv(v[5], v[9]); + v[6] = xorv(v[6], v[10]); + v[7] = xorv(v[7], v[11]); + v[4] = rot12(v[4]); + v[5] = rot12(v[5]); + v[6] = rot12(v[6]); + v[7] = rot12(v[7]); + v[0] = addv(v[0], m[(size_t)MSG_SCHEDULE[r][1]]); + v[1] = addv(v[1], m[(size_t)MSG_SCHEDULE[r][3]]); + v[2] = addv(v[2], m[(size_t)MSG_SCHEDULE[r][5]]); + v[3] = addv(v[3], m[(size_t)MSG_SCHEDULE[r][7]]); + v[0] = addv(v[0], v[4]); + v[1] = addv(v[1], v[5]); + v[2] = addv(v[2], v[6]); + v[3] = addv(v[3], v[7]); + v[12] = xorv(v[12], v[0]); + v[13] = xorv(v[13], v[1]); + v[14] = xorv(v[14], v[2]); + v[15] = xorv(v[15], v[3]); + v[12] = rot8(v[12]); + v[13] = rot8(v[13]); + v[14] = rot8(v[14]); + v[15] = rot8(v[15]); + v[8] = addv(v[8], v[12]); + v[9] = addv(v[9], v[13]); + v[10] = addv(v[10], v[14]); + v[11] = addv(v[11], v[15]); + v[4] = xorv(v[4], v[8]); + v[5] = xorv(v[5], v[9]); + v[6] = xorv(v[6], v[10]); + v[7] = xorv(v[7], v[11]); + v[4] = rot7(v[4]); + v[5] = rot7(v[5]); + v[6] = rot7(v[6]); + v[7] = rot7(v[7]); + + v[0] = addv(v[0], m[(size_t)MSG_SCHEDULE[r][8]]); + v[1] = addv(v[1], m[(size_t)MSG_SCHEDULE[r][10]]); + v[2] = addv(v[2], m[(size_t)MSG_SCHEDULE[r][12]]); + v[3] = addv(v[3], m[(size_t)MSG_SCHEDULE[r][14]]); + v[0] = addv(v[0], v[5]); + v[1] = addv(v[1], v[6]); + v[2] = addv(v[2], v[7]); + v[3] = addv(v[3], v[4]); + v[15] = xorv(v[15], v[0]); + v[12] = xorv(v[12], v[1]); + v[13] = xorv(v[13], v[2]); + v[14] = xorv(v[14], v[3]); + v[15] = rot16(v[15]); + v[12] = rot16(v[12]); + v[13] = rot16(v[13]); + v[14] = rot16(v[14]); + v[10] = addv(v[10], v[15]); + v[11] = addv(v[11], v[12]); + v[8] = addv(v[8], v[13]); + v[9] = addv(v[9], v[14]); + v[5] = xorv(v[5], v[10]); + v[6] = xorv(v[6], v[11]); + v[7] = xorv(v[7], v[8]); + v[4] = xorv(v[4], v[9]); + v[5] = rot12(v[5]); + v[6] = rot12(v[6]); + v[7] = rot12(v[7]); + v[4] = rot12(v[4]); + v[0] = addv(v[0], m[(size_t)MSG_SCHEDULE[r][9]]); + v[1] = addv(v[1], m[(size_t)MSG_SCHEDULE[r][11]]); + v[2] = addv(v[2], m[(size_t)MSG_SCHEDULE[r][13]]); + v[3] = addv(v[3], m[(size_t)MSG_SCHEDULE[r][15]]); + v[0] = addv(v[0], v[5]); + v[1] = addv(v[1], v[6]); + v[2] = addv(v[2], v[7]); + v[3] = addv(v[3], v[4]); + v[15] = xorv(v[15], v[0]); + v[12] = xorv(v[12], v[1]); + v[13] = xorv(v[13], v[2]); + v[14] = xorv(v[14], v[3]); + v[15] = rot8(v[15]); + v[12] = rot8(v[12]); + v[13] = rot8(v[13]); + v[14] = rot8(v[14]); + v[10] = addv(v[10], v[15]); + v[11] = addv(v[11], v[12]); + v[8] = addv(v[8], v[13]); + v[9] = addv(v[9], v[14]); + v[5] = xorv(v[5], v[10]); + v[6] = xorv(v[6], v[11]); + v[7] = xorv(v[7], v[8]); + v[4] = xorv(v[4], v[9]); + v[5] = rot7(v[5]); + v[6] = rot7(v[6]); + v[7] = rot7(v[7]); + v[4] = rot7(v[4]); +} + +INLINE void transpose_vecs(__m128i vecs[DEGREE]) { + // Interleave 32-bit lanes. The low unpack is lanes 00/11 and the high is + // 22/33. Note that this doesn't split the vector into two lanes, as the + // AVX2 counterparts do. + __m128i ab_01 = _mm_unpacklo_epi32(vecs[0], vecs[1]); + __m128i ab_23 = _mm_unpackhi_epi32(vecs[0], vecs[1]); + __m128i cd_01 = _mm_unpacklo_epi32(vecs[2], vecs[3]); + __m128i cd_23 = _mm_unpackhi_epi32(vecs[2], vecs[3]); + + // Interleave 64-bit lanes. + __m128i abcd_0 = _mm_unpacklo_epi64(ab_01, cd_01); + __m128i abcd_1 = _mm_unpackhi_epi64(ab_01, cd_01); + __m128i abcd_2 = _mm_unpacklo_epi64(ab_23, cd_23); + __m128i abcd_3 = _mm_unpackhi_epi64(ab_23, cd_23); + + vecs[0] = abcd_0; + vecs[1] = abcd_1; + vecs[2] = abcd_2; + vecs[3] = abcd_3; +} + +INLINE void transpose_msg_vecs(const uint8_t *const *inputs, + size_t block_offset, __m128i out[16]) { + out[0] = loadu(&inputs[0][block_offset + 0 * sizeof(__m128i)]); + out[1] = loadu(&inputs[1][block_offset + 0 * sizeof(__m128i)]); + out[2] = loadu(&inputs[2][block_offset + 0 * sizeof(__m128i)]); + out[3] = loadu(&inputs[3][block_offset + 0 * sizeof(__m128i)]); + out[4] = loadu(&inputs[0][block_offset + 1 * sizeof(__m128i)]); + out[5] = loadu(&inputs[1][block_offset + 1 * sizeof(__m128i)]); + out[6] = loadu(&inputs[2][block_offset + 1 * sizeof(__m128i)]); + out[7] = loadu(&inputs[3][block_offset + 1 * sizeof(__m128i)]); + out[8] = loadu(&inputs[0][block_offset + 2 * sizeof(__m128i)]); + out[9] = loadu(&inputs[1][block_offset + 2 * sizeof(__m128i)]); + out[10] = loadu(&inputs[2][block_offset + 2 * sizeof(__m128i)]); + out[11] = loadu(&inputs[3][block_offset + 2 * sizeof(__m128i)]); + out[12] = loadu(&inputs[0][block_offset + 3 * sizeof(__m128i)]); + out[13] = loadu(&inputs[1][block_offset + 3 * sizeof(__m128i)]); + out[14] = loadu(&inputs[2][block_offset + 3 * sizeof(__m128i)]); + out[15] = loadu(&inputs[3][block_offset + 3 * sizeof(__m128i)]); + for (size_t i = 0; i < 4; ++i) { + _mm_prefetch((const void *)&inputs[i][block_offset + 256], _MM_HINT_T0); + } + transpose_vecs(&out[0]); + transpose_vecs(&out[4]); + transpose_vecs(&out[8]); + transpose_vecs(&out[12]); +} + +INLINE void load_counters(uint64_t counter, bool increment_counter, + __m128i *out_lo, __m128i *out_hi) { + const __m128i mask = _mm_set1_epi32(-(int32_t)increment_counter); + const __m128i add0 = _mm_set_epi32(3, 2, 1, 0); + const __m128i add1 = _mm_and_si128(mask, add0); + __m128i l = _mm_add_epi32(_mm_set1_epi32((int32_t)counter), add1); + __m128i carry = _mm_cmpgt_epi32(_mm_xor_si128(add1, _mm_set1_epi32(0x80000000)), + _mm_xor_si128( l, _mm_set1_epi32(0x80000000))); + __m128i h = _mm_sub_epi32(_mm_set1_epi32((int32_t)(counter >> 32)), carry); + *out_lo = l; + *out_hi = h; +} + +static +void blake3_hash4_sse41(const uint8_t *const *inputs, size_t blocks, + const uint32_t key[8], uint64_t counter, + bool increment_counter, uint8_t flags, + uint8_t flags_start, uint8_t flags_end, uint8_t *out) { + __m128i h_vecs[8] = { + set1(key[0]), set1(key[1]), set1(key[2]), set1(key[3]), + set1(key[4]), set1(key[5]), set1(key[6]), set1(key[7]), + }; + __m128i counter_low_vec, counter_high_vec; + load_counters(counter, increment_counter, &counter_low_vec, + &counter_high_vec); + uint8_t block_flags = flags | flags_start; + + for (size_t block = 0; block < blocks; block++) { + if (block + 1 == blocks) { + block_flags |= flags_end; + } + __m128i block_len_vec = set1(BLAKE3_BLOCK_LEN); + __m128i block_flags_vec = set1(block_flags); + __m128i msg_vecs[16]; + transpose_msg_vecs(inputs, block * BLAKE3_BLOCK_LEN, msg_vecs); + + __m128i v[16] = { + h_vecs[0], h_vecs[1], h_vecs[2], h_vecs[3], + h_vecs[4], h_vecs[5], h_vecs[6], h_vecs[7], + set1(B3_IV_0), set1(B3_IV_1), set1(B3_IV_2), set1(B3_IV_3), + counter_low_vec, counter_high_vec, block_len_vec, block_flags_vec, + }; + round_fn(v, msg_vecs, 0); + round_fn(v, msg_vecs, 1); + round_fn(v, msg_vecs, 2); + round_fn(v, msg_vecs, 3); + round_fn(v, msg_vecs, 4); + round_fn(v, msg_vecs, 5); + round_fn(v, msg_vecs, 6); + h_vecs[0] = xorv(v[0], v[8]); + h_vecs[1] = xorv(v[1], v[9]); + h_vecs[2] = xorv(v[2], v[10]); + h_vecs[3] = xorv(v[3], v[11]); + h_vecs[4] = xorv(v[4], v[12]); + h_vecs[5] = xorv(v[5], v[13]); + h_vecs[6] = xorv(v[6], v[14]); + h_vecs[7] = xorv(v[7], v[15]); + + block_flags = flags; + } + + transpose_vecs(&h_vecs[0]); + transpose_vecs(&h_vecs[4]); + // The first four vecs now contain the first half of each output, and the + // second four vecs contain the second half of each output. + storeu(h_vecs[0], &out[0 * sizeof(__m128i)]); + storeu(h_vecs[4], &out[1 * sizeof(__m128i)]); + storeu(h_vecs[1], &out[2 * sizeof(__m128i)]); + storeu(h_vecs[5], &out[3 * sizeof(__m128i)]); + storeu(h_vecs[2], &out[4 * sizeof(__m128i)]); + storeu(h_vecs[6], &out[5 * sizeof(__m128i)]); + storeu(h_vecs[3], &out[6 * sizeof(__m128i)]); + storeu(h_vecs[7], &out[7 * sizeof(__m128i)]); +} + +INLINE void hash_one_sse41(const uint8_t *input, size_t blocks, + const uint32_t key[8], uint64_t counter, + uint8_t flags, uint8_t flags_start, + uint8_t flags_end, uint8_t out[BLAKE3_OUT_LEN]) { + uint32_t cv[8]; + memcpy(cv, key, BLAKE3_KEY_LEN); + uint8_t block_flags = flags | flags_start; + while (blocks > 0) { + if (blocks == 1) { + block_flags |= flags_end; + } + blake3_compress_in_place_sse41(cv, input, BLAKE3_BLOCK_LEN, counter, + block_flags); + input = &input[BLAKE3_BLOCK_LEN]; + blocks -= 1; + block_flags = flags; + } + memcpy(out, cv, BLAKE3_OUT_LEN); +} + +void blake3_hash_many_sse41(const uint8_t *const *inputs, size_t num_inputs, + size_t blocks, const uint32_t key[8], + uint64_t counter, bool increment_counter, + uint8_t flags, uint8_t flags_start, + uint8_t flags_end, uint8_t *out) { + while (num_inputs >= DEGREE) { + blake3_hash4_sse41(inputs, blocks, key, counter, increment_counter, flags, + flags_start, flags_end, out); + if (increment_counter) { + counter += DEGREE; + } + inputs += DEGREE; + num_inputs -= DEGREE; + out = &out[DEGREE * BLAKE3_OUT_LEN]; + } + while (num_inputs > 0) { + hash_one_sse41(inputs[0], blocks, key, counter, flags, flags_start, + flags_end, out); + if (increment_counter) { + counter += 1; + } + inputs += 1; + num_inputs -= 1; + out = &out[BLAKE3_OUT_LEN]; + } +} diff --git a/Sources/Cfyaml/src/blake3/blake3_sse41_x86-64_unix.S b/Sources/Cfyaml/src/blake3/blake3_sse41_x86-64_unix.S new file mode 100644 index 000000000..d499a9ad5 --- /dev/null +++ b/Sources/Cfyaml/src/blake3/blake3_sse41_x86-64_unix.S @@ -0,0 +1,2028 @@ +#if defined(__ELF__) && defined(__linux__) +.section .note.GNU-stack,"",%progbits +#endif + +#if defined(__ELF__) && defined(__CET__) && defined(__has_include) +#if __has_include() +#include +#endif +#endif + +#if !defined(_CET_ENDBR) +#define _CET_ENDBR +#endif + +.intel_syntax noprefix +.global blake3_hash_many_sse41_asm +.global _blake3_hash_many_sse41_asm +.global blake3_compress_in_place_sse41_asm +.global _blake3_compress_in_place_sse41_asm +.global blake3_compress_xof_sse41_asm +.global _blake3_compress_xof_sse41_asm +#ifdef __APPLE__ +.text +#else +.section .text +#endif + .p2align 6 +_blake3_hash_many_sse41_asm: +blake3_hash_many_sse41_asm: + _CET_ENDBR + push r15 + push r14 + push r13 + push r12 + push rbx + push rbp + mov rbp, rsp + sub rsp, 360 + and rsp, 0xFFFFFFFFFFFFFFC0 + neg r9d + movd xmm0, r9d + pshufd xmm0, xmm0, 0x00 + movdqa xmmword ptr [rsp+0x130], xmm0 + movdqa xmm1, xmm0 + pand xmm1, xmmword ptr [ADD0+rip] + pand xmm0, xmmword ptr [ADD1+rip] + movdqa xmmword ptr [rsp+0x150], xmm0 + movd xmm0, r8d + pshufd xmm0, xmm0, 0x00 + paddd xmm0, xmm1 + movdqa xmmword ptr [rsp+0x110], xmm0 + pxor xmm0, xmmword ptr [CMP_MSB_MASK+rip] + pxor xmm1, xmmword ptr [CMP_MSB_MASK+rip] + pcmpgtd xmm1, xmm0 + shr r8, 32 + movd xmm2, r8d + pshufd xmm2, xmm2, 0x00 + psubd xmm2, xmm1 + movdqa xmmword ptr [rsp+0x120], xmm2 + mov rbx, qword ptr [rbp+0x50] + mov r15, rdx + shl r15, 6 + movzx r13d, byte ptr [rbp+0x38] + movzx r12d, byte ptr [rbp+0x48] + cmp rsi, 4 + jc 3f +2: + movdqu xmm3, xmmword ptr [rcx] + pshufd xmm0, xmm3, 0x00 + pshufd xmm1, xmm3, 0x55 + pshufd xmm2, xmm3, 0xAA + pshufd xmm3, xmm3, 0xFF + movdqu xmm7, xmmword ptr [rcx+0x10] + pshufd xmm4, xmm7, 0x00 + pshufd xmm5, xmm7, 0x55 + pshufd xmm6, xmm7, 0xAA + pshufd xmm7, xmm7, 0xFF + mov r8, qword ptr [rdi] + mov r9, qword ptr [rdi+0x8] + mov r10, qword ptr [rdi+0x10] + mov r11, qword ptr [rdi+0x18] + movzx eax, byte ptr [rbp+0x40] + or eax, r13d + xor edx, edx +9: + mov r14d, eax + or eax, r12d + add rdx, 64 + cmp rdx, r15 + cmovne eax, r14d + movdqu xmm8, xmmword ptr [r8+rdx-0x40] + movdqu xmm9, xmmword ptr [r9+rdx-0x40] + movdqu xmm10, xmmword ptr [r10+rdx-0x40] + movdqu xmm11, xmmword ptr [r11+rdx-0x40] + movdqa xmm12, xmm8 + punpckldq xmm8, xmm9 + punpckhdq xmm12, xmm9 + movdqa xmm14, xmm10 + punpckldq xmm10, xmm11 + punpckhdq xmm14, xmm11 + movdqa xmm9, xmm8 + punpcklqdq xmm8, xmm10 + punpckhqdq xmm9, xmm10 + movdqa xmm13, xmm12 + punpcklqdq xmm12, xmm14 + punpckhqdq xmm13, xmm14 + movdqa xmmword ptr [rsp], xmm8 + movdqa xmmword ptr [rsp+0x10], xmm9 + movdqa xmmword ptr [rsp+0x20], xmm12 + movdqa xmmword ptr [rsp+0x30], xmm13 + movdqu xmm8, xmmword ptr [r8+rdx-0x30] + movdqu xmm9, xmmword ptr [r9+rdx-0x30] + movdqu xmm10, xmmword ptr [r10+rdx-0x30] + movdqu xmm11, xmmword ptr [r11+rdx-0x30] + movdqa xmm12, xmm8 + punpckldq xmm8, xmm9 + punpckhdq xmm12, xmm9 + movdqa xmm14, xmm10 + punpckldq xmm10, xmm11 + punpckhdq xmm14, xmm11 + movdqa xmm9, xmm8 + punpcklqdq xmm8, xmm10 + punpckhqdq xmm9, xmm10 + movdqa xmm13, xmm12 + punpcklqdq xmm12, xmm14 + punpckhqdq xmm13, xmm14 + movdqa xmmword ptr [rsp+0x40], xmm8 + movdqa xmmword ptr [rsp+0x50], xmm9 + movdqa xmmword ptr [rsp+0x60], xmm12 + movdqa xmmword ptr [rsp+0x70], xmm13 + movdqu xmm8, xmmword ptr [r8+rdx-0x20] + movdqu xmm9, xmmword ptr [r9+rdx-0x20] + movdqu xmm10, xmmword ptr [r10+rdx-0x20] + movdqu xmm11, xmmword ptr [r11+rdx-0x20] + movdqa xmm12, xmm8 + punpckldq xmm8, xmm9 + punpckhdq xmm12, xmm9 + movdqa xmm14, xmm10 + punpckldq xmm10, xmm11 + punpckhdq xmm14, xmm11 + movdqa xmm9, xmm8 + punpcklqdq xmm8, xmm10 + punpckhqdq xmm9, xmm10 + movdqa xmm13, xmm12 + punpcklqdq xmm12, xmm14 + punpckhqdq xmm13, xmm14 + movdqa xmmword ptr [rsp+0x80], xmm8 + movdqa xmmword ptr [rsp+0x90], xmm9 + movdqa xmmword ptr [rsp+0xA0], xmm12 + movdqa xmmword ptr [rsp+0xB0], xmm13 + movdqu xmm8, xmmword ptr [r8+rdx-0x10] + movdqu xmm9, xmmword ptr [r9+rdx-0x10] + movdqu xmm10, xmmword ptr [r10+rdx-0x10] + movdqu xmm11, xmmword ptr [r11+rdx-0x10] + movdqa xmm12, xmm8 + punpckldq xmm8, xmm9 + punpckhdq xmm12, xmm9 + movdqa xmm14, xmm10 + punpckldq xmm10, xmm11 + punpckhdq xmm14, xmm11 + movdqa xmm9, xmm8 + punpcklqdq xmm8, xmm10 + punpckhqdq xmm9, xmm10 + movdqa xmm13, xmm12 + punpcklqdq xmm12, xmm14 + punpckhqdq xmm13, xmm14 + movdqa xmmword ptr [rsp+0xC0], xmm8 + movdqa xmmword ptr [rsp+0xD0], xmm9 + movdqa xmmword ptr [rsp+0xE0], xmm12 + movdqa xmmword ptr [rsp+0xF0], xmm13 + movdqa xmm9, xmmword ptr [BLAKE3_IV_1+rip] + movdqa xmm10, xmmword ptr [BLAKE3_IV_2+rip] + movdqa xmm11, xmmword ptr [BLAKE3_IV_3+rip] + movdqa xmm12, xmmword ptr [rsp+0x110] + movdqa xmm13, xmmword ptr [rsp+0x120] + movdqa xmm14, xmmword ptr [BLAKE3_BLOCK_LEN+rip] + movd xmm15, eax + pshufd xmm15, xmm15, 0x00 + prefetcht0 [r8+rdx+0x80] + prefetcht0 [r9+rdx+0x80] + prefetcht0 [r10+rdx+0x80] + prefetcht0 [r11+rdx+0x80] + paddd xmm0, xmmword ptr [rsp] + paddd xmm1, xmmword ptr [rsp+0x20] + paddd xmm2, xmmword ptr [rsp+0x40] + paddd xmm3, xmmword ptr [rsp+0x60] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + movdqa xmm8, xmmword ptr [ROT16+rip] + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + pshufb xmm15, xmm8 + movdqa xmm8, xmmword ptr [BLAKE3_IV_0+rip] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0x10] + paddd xmm1, xmmword ptr [rsp+0x30] + paddd xmm2, xmmword ptr [rsp+0x50] + paddd xmm3, xmmword ptr [rsp+0x70] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + movdqa xmm8, xmmword ptr [ROT8+rip] + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + pshufb xmm15, xmm8 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0x80] + paddd xmm1, xmmword ptr [rsp+0xA0] + paddd xmm2, xmmword ptr [rsp+0xC0] + paddd xmm3, xmmword ptr [rsp+0xE0] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + movdqa xmm8, xmmword ptr [ROT16+rip] + pshufb xmm15, xmm8 + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp+0x90] + paddd xmm1, xmmword ptr [rsp+0xB0] + paddd xmm2, xmmword ptr [rsp+0xD0] + paddd xmm3, xmmword ptr [rsp+0xF0] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + movdqa xmm8, xmmword ptr [ROT8+rip] + pshufb xmm15, xmm8 + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp+0x20] + paddd xmm1, xmmword ptr [rsp+0x30] + paddd xmm2, xmmword ptr [rsp+0x70] + paddd xmm3, xmmword ptr [rsp+0x40] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + movdqa xmm8, xmmword ptr [ROT16+rip] + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + pshufb xmm15, xmm8 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0x60] + paddd xmm1, xmmword ptr [rsp+0xA0] + paddd xmm2, xmmword ptr [rsp] + paddd xmm3, xmmword ptr [rsp+0xD0] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + movdqa xmm8, xmmword ptr [ROT8+rip] + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + pshufb xmm15, xmm8 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0x10] + paddd xmm1, xmmword ptr [rsp+0xC0] + paddd xmm2, xmmword ptr [rsp+0x90] + paddd xmm3, xmmword ptr [rsp+0xF0] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + movdqa xmm8, xmmword ptr [ROT16+rip] + pshufb xmm15, xmm8 + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp+0xB0] + paddd xmm1, xmmword ptr [rsp+0x50] + paddd xmm2, xmmword ptr [rsp+0xE0] + paddd xmm3, xmmword ptr [rsp+0x80] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + movdqa xmm8, xmmword ptr [ROT8+rip] + pshufb xmm15, xmm8 + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp+0x30] + paddd xmm1, xmmword ptr [rsp+0xA0] + paddd xmm2, xmmword ptr [rsp+0xD0] + paddd xmm3, xmmword ptr [rsp+0x70] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + movdqa xmm8, xmmword ptr [ROT16+rip] + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + pshufb xmm15, xmm8 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0x40] + paddd xmm1, xmmword ptr [rsp+0xC0] + paddd xmm2, xmmword ptr [rsp+0x20] + paddd xmm3, xmmword ptr [rsp+0xE0] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + movdqa xmm8, xmmword ptr [ROT8+rip] + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + pshufb xmm15, xmm8 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0x60] + paddd xmm1, xmmword ptr [rsp+0x90] + paddd xmm2, xmmword ptr [rsp+0xB0] + paddd xmm3, xmmword ptr [rsp+0x80] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + movdqa xmm8, xmmword ptr [ROT16+rip] + pshufb xmm15, xmm8 + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp+0x50] + paddd xmm1, xmmword ptr [rsp] + paddd xmm2, xmmword ptr [rsp+0xF0] + paddd xmm3, xmmword ptr [rsp+0x10] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + movdqa xmm8, xmmword ptr [ROT8+rip] + pshufb xmm15, xmm8 + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp+0xA0] + paddd xmm1, xmmword ptr [rsp+0xC0] + paddd xmm2, xmmword ptr [rsp+0xE0] + paddd xmm3, xmmword ptr [rsp+0xD0] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + movdqa xmm8, xmmword ptr [ROT16+rip] + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + pshufb xmm15, xmm8 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0x70] + paddd xmm1, xmmword ptr [rsp+0x90] + paddd xmm2, xmmword ptr [rsp+0x30] + paddd xmm3, xmmword ptr [rsp+0xF0] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + movdqa xmm8, xmmword ptr [ROT8+rip] + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + pshufb xmm15, xmm8 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0x40] + paddd xmm1, xmmword ptr [rsp+0xB0] + paddd xmm2, xmmword ptr [rsp+0x50] + paddd xmm3, xmmword ptr [rsp+0x10] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + movdqa xmm8, xmmword ptr [ROT16+rip] + pshufb xmm15, xmm8 + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp] + paddd xmm1, xmmword ptr [rsp+0x20] + paddd xmm2, xmmword ptr [rsp+0x80] + paddd xmm3, xmmword ptr [rsp+0x60] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + movdqa xmm8, xmmword ptr [ROT8+rip] + pshufb xmm15, xmm8 + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp+0xC0] + paddd xmm1, xmmword ptr [rsp+0x90] + paddd xmm2, xmmword ptr [rsp+0xF0] + paddd xmm3, xmmword ptr [rsp+0xE0] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + movdqa xmm8, xmmword ptr [ROT16+rip] + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + pshufb xmm15, xmm8 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0xD0] + paddd xmm1, xmmword ptr [rsp+0xB0] + paddd xmm2, xmmword ptr [rsp+0xA0] + paddd xmm3, xmmword ptr [rsp+0x80] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + movdqa xmm8, xmmword ptr [ROT8+rip] + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + pshufb xmm15, xmm8 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0x70] + paddd xmm1, xmmword ptr [rsp+0x50] + paddd xmm2, xmmword ptr [rsp] + paddd xmm3, xmmword ptr [rsp+0x60] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + movdqa xmm8, xmmword ptr [ROT16+rip] + pshufb xmm15, xmm8 + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp+0x20] + paddd xmm1, xmmword ptr [rsp+0x30] + paddd xmm2, xmmword ptr [rsp+0x10] + paddd xmm3, xmmword ptr [rsp+0x40] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + movdqa xmm8, xmmword ptr [ROT8+rip] + pshufb xmm15, xmm8 + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp+0x90] + paddd xmm1, xmmword ptr [rsp+0xB0] + paddd xmm2, xmmword ptr [rsp+0x80] + paddd xmm3, xmmword ptr [rsp+0xF0] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + movdqa xmm8, xmmword ptr [ROT16+rip] + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + pshufb xmm15, xmm8 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0xE0] + paddd xmm1, xmmword ptr [rsp+0x50] + paddd xmm2, xmmword ptr [rsp+0xC0] + paddd xmm3, xmmword ptr [rsp+0x10] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + movdqa xmm8, xmmword ptr [ROT8+rip] + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + pshufb xmm15, xmm8 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0xD0] + paddd xmm1, xmmword ptr [rsp] + paddd xmm2, xmmword ptr [rsp+0x20] + paddd xmm3, xmmword ptr [rsp+0x40] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + movdqa xmm8, xmmword ptr [ROT16+rip] + pshufb xmm15, xmm8 + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp+0x30] + paddd xmm1, xmmword ptr [rsp+0xA0] + paddd xmm2, xmmword ptr [rsp+0x60] + paddd xmm3, xmmword ptr [rsp+0x70] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + movdqa xmm8, xmmword ptr [ROT8+rip] + pshufb xmm15, xmm8 + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp+0xB0] + paddd xmm1, xmmword ptr [rsp+0x50] + paddd xmm2, xmmword ptr [rsp+0x10] + paddd xmm3, xmmword ptr [rsp+0x80] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + movdqa xmm8, xmmword ptr [ROT16+rip] + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + pshufb xmm15, xmm8 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0xF0] + paddd xmm1, xmmword ptr [rsp] + paddd xmm2, xmmword ptr [rsp+0x90] + paddd xmm3, xmmword ptr [rsp+0x60] + paddd xmm0, xmm4 + paddd xmm1, xmm5 + paddd xmm2, xmm6 + paddd xmm3, xmm7 + pxor xmm12, xmm0 + pxor xmm13, xmm1 + pxor xmm14, xmm2 + pxor xmm15, xmm3 + movdqa xmm8, xmmword ptr [ROT8+rip] + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + pshufb xmm15, xmm8 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm12 + paddd xmm9, xmm13 + paddd xmm10, xmm14 + paddd xmm11, xmm15 + pxor xmm4, xmm8 + pxor xmm5, xmm9 + pxor xmm6, xmm10 + pxor xmm7, xmm11 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + paddd xmm0, xmmword ptr [rsp+0xE0] + paddd xmm1, xmmword ptr [rsp+0x20] + paddd xmm2, xmmword ptr [rsp+0x30] + paddd xmm3, xmmword ptr [rsp+0x70] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + movdqa xmm8, xmmword ptr [ROT16+rip] + pshufb xmm15, xmm8 + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + movdqa xmmword ptr [rsp+0x100], xmm8 + movdqa xmm8, xmm5 + psrld xmm8, 12 + pslld xmm5, 20 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 12 + pslld xmm6, 20 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 12 + pslld xmm7, 20 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 12 + pslld xmm4, 20 + por xmm4, xmm8 + paddd xmm0, xmmword ptr [rsp+0xA0] + paddd xmm1, xmmword ptr [rsp+0xC0] + paddd xmm2, xmmword ptr [rsp+0x40] + paddd xmm3, xmmword ptr [rsp+0xD0] + paddd xmm0, xmm5 + paddd xmm1, xmm6 + paddd xmm2, xmm7 + paddd xmm3, xmm4 + pxor xmm15, xmm0 + pxor xmm12, xmm1 + pxor xmm13, xmm2 + pxor xmm14, xmm3 + movdqa xmm8, xmmword ptr [ROT8+rip] + pshufb xmm15, xmm8 + pshufb xmm12, xmm8 + pshufb xmm13, xmm8 + pshufb xmm14, xmm8 + paddd xmm10, xmm15 + paddd xmm11, xmm12 + movdqa xmm8, xmmword ptr [rsp+0x100] + paddd xmm8, xmm13 + paddd xmm9, xmm14 + pxor xmm5, xmm10 + pxor xmm6, xmm11 + pxor xmm7, xmm8 + pxor xmm4, xmm9 + pxor xmm0, xmm8 + pxor xmm1, xmm9 + pxor xmm2, xmm10 + pxor xmm3, xmm11 + movdqa xmm8, xmm5 + psrld xmm8, 7 + pslld xmm5, 25 + por xmm5, xmm8 + movdqa xmm8, xmm6 + psrld xmm8, 7 + pslld xmm6, 25 + por xmm6, xmm8 + movdqa xmm8, xmm7 + psrld xmm8, 7 + pslld xmm7, 25 + por xmm7, xmm8 + movdqa xmm8, xmm4 + psrld xmm8, 7 + pslld xmm4, 25 + por xmm4, xmm8 + pxor xmm4, xmm12 + pxor xmm5, xmm13 + pxor xmm6, xmm14 + pxor xmm7, xmm15 + mov eax, r13d + jne 9b + movdqa xmm9, xmm0 + punpckldq xmm0, xmm1 + punpckhdq xmm9, xmm1 + movdqa xmm11, xmm2 + punpckldq xmm2, xmm3 + punpckhdq xmm11, xmm3 + movdqa xmm1, xmm0 + punpcklqdq xmm0, xmm2 + punpckhqdq xmm1, xmm2 + movdqa xmm3, xmm9 + punpcklqdq xmm9, xmm11 + punpckhqdq xmm3, xmm11 + movdqu xmmword ptr [rbx], xmm0 + movdqu xmmword ptr [rbx+0x20], xmm1 + movdqu xmmword ptr [rbx+0x40], xmm9 + movdqu xmmword ptr [rbx+0x60], xmm3 + movdqa xmm9, xmm4 + punpckldq xmm4, xmm5 + punpckhdq xmm9, xmm5 + movdqa xmm11, xmm6 + punpckldq xmm6, xmm7 + punpckhdq xmm11, xmm7 + movdqa xmm5, xmm4 + punpcklqdq xmm4, xmm6 + punpckhqdq xmm5, xmm6 + movdqa xmm7, xmm9 + punpcklqdq xmm9, xmm11 + punpckhqdq xmm7, xmm11 + movdqu xmmword ptr [rbx+0x10], xmm4 + movdqu xmmword ptr [rbx+0x30], xmm5 + movdqu xmmword ptr [rbx+0x50], xmm9 + movdqu xmmword ptr [rbx+0x70], xmm7 + movdqa xmm1, xmmword ptr [rsp+0x110] + movdqa xmm0, xmm1 + paddd xmm1, xmmword ptr [rsp+0x150] + movdqa xmmword ptr [rsp+0x110], xmm1 + pxor xmm0, xmmword ptr [CMP_MSB_MASK+rip] + pxor xmm1, xmmword ptr [CMP_MSB_MASK+rip] + pcmpgtd xmm0, xmm1 + movdqa xmm1, xmmword ptr [rsp+0x120] + psubd xmm1, xmm0 + movdqa xmmword ptr [rsp+0x120], xmm1 + add rbx, 128 + add rdi, 32 + sub rsi, 4 + cmp rsi, 4 + jnc 2b + test rsi, rsi + jnz 3f +4: + mov rsp, rbp + pop rbp + pop rbx + pop r12 + pop r13 + pop r14 + pop r15 + ret +.p2align 5 +3: + test esi, 0x2 + je 3f + movups xmm0, xmmword ptr [rcx] + movups xmm1, xmmword ptr [rcx+0x10] + movaps xmm8, xmm0 + movaps xmm9, xmm1 + movd xmm13, dword ptr [rsp+0x110] + pinsrd xmm13, dword ptr [rsp+0x120], 1 + pinsrd xmm13, dword ptr [BLAKE3_BLOCK_LEN+rip], 2 + movaps xmmword ptr [rsp], xmm13 + movd xmm14, dword ptr [rsp+0x114] + pinsrd xmm14, dword ptr [rsp+0x124], 1 + pinsrd xmm14, dword ptr [BLAKE3_BLOCK_LEN+rip], 2 + movaps xmmword ptr [rsp+0x10], xmm14 + mov r8, qword ptr [rdi] + mov r9, qword ptr [rdi+0x8] + movzx eax, byte ptr [rbp+0x40] + or eax, r13d + xor edx, edx +2: + mov r14d, eax + or eax, r12d + add rdx, 64 + cmp rdx, r15 + cmovne eax, r14d + movaps xmm2, xmmword ptr [BLAKE3_IV+rip] + movaps xmm10, xmm2 + movups xmm4, xmmword ptr [r8+rdx-0x40] + movups xmm5, xmmword ptr [r8+rdx-0x30] + movaps xmm3, xmm4 + shufps xmm4, xmm5, 136 + shufps xmm3, xmm5, 221 + movaps xmm5, xmm3 + movups xmm6, xmmword ptr [r8+rdx-0x20] + movups xmm7, xmmword ptr [r8+rdx-0x10] + movaps xmm3, xmm6 + shufps xmm6, xmm7, 136 + pshufd xmm6, xmm6, 0x93 + shufps xmm3, xmm7, 221 + pshufd xmm7, xmm3, 0x93 + movups xmm12, xmmword ptr [r9+rdx-0x40] + movups xmm13, xmmword ptr [r9+rdx-0x30] + movaps xmm11, xmm12 + shufps xmm12, xmm13, 136 + shufps xmm11, xmm13, 221 + movaps xmm13, xmm11 + movups xmm14, xmmword ptr [r9+rdx-0x20] + movups xmm15, xmmword ptr [r9+rdx-0x10] + movaps xmm11, xmm14 + shufps xmm14, xmm15, 136 + pshufd xmm14, xmm14, 0x93 + shufps xmm11, xmm15, 221 + pshufd xmm15, xmm11, 0x93 + movaps xmm3, xmmword ptr [rsp] + movaps xmm11, xmmword ptr [rsp+0x10] + pinsrd xmm3, eax, 3 + pinsrd xmm11, eax, 3 + mov al, 7 +9: + paddd xmm0, xmm4 + paddd xmm8, xmm12 + movaps xmmword ptr [rsp+0x20], xmm4 + movaps xmmword ptr [rsp+0x30], xmm12 + paddd xmm0, xmm1 + paddd xmm8, xmm9 + pxor xmm3, xmm0 + pxor xmm11, xmm8 + movaps xmm12, xmmword ptr [ROT16+rip] + pshufb xmm3, xmm12 + pshufb xmm11, xmm12 + paddd xmm2, xmm3 + paddd xmm10, xmm11 + pxor xmm1, xmm2 + pxor xmm9, xmm10 + movdqa xmm4, xmm1 + pslld xmm1, 20 + psrld xmm4, 12 + por xmm1, xmm4 + movdqa xmm4, xmm9 + pslld xmm9, 20 + psrld xmm4, 12 + por xmm9, xmm4 + paddd xmm0, xmm5 + paddd xmm8, xmm13 + movaps xmmword ptr [rsp+0x40], xmm5 + movaps xmmword ptr [rsp+0x50], xmm13 + paddd xmm0, xmm1 + paddd xmm8, xmm9 + pxor xmm3, xmm0 + pxor xmm11, xmm8 + movaps xmm13, xmmword ptr [ROT8+rip] + pshufb xmm3, xmm13 + pshufb xmm11, xmm13 + paddd xmm2, xmm3 + paddd xmm10, xmm11 + pxor xmm1, xmm2 + pxor xmm9, xmm10 + movdqa xmm4, xmm1 + pslld xmm1, 25 + psrld xmm4, 7 + por xmm1, xmm4 + movdqa xmm4, xmm9 + pslld xmm9, 25 + psrld xmm4, 7 + por xmm9, xmm4 + pshufd xmm0, xmm0, 0x93 + pshufd xmm8, xmm8, 0x93 + pshufd xmm3, xmm3, 0x4E + pshufd xmm11, xmm11, 0x4E + pshufd xmm2, xmm2, 0x39 + pshufd xmm10, xmm10, 0x39 + paddd xmm0, xmm6 + paddd xmm8, xmm14 + paddd xmm0, xmm1 + paddd xmm8, xmm9 + pxor xmm3, xmm0 + pxor xmm11, xmm8 + pshufb xmm3, xmm12 + pshufb xmm11, xmm12 + paddd xmm2, xmm3 + paddd xmm10, xmm11 + pxor xmm1, xmm2 + pxor xmm9, xmm10 + movdqa xmm4, xmm1 + pslld xmm1, 20 + psrld xmm4, 12 + por xmm1, xmm4 + movdqa xmm4, xmm9 + pslld xmm9, 20 + psrld xmm4, 12 + por xmm9, xmm4 + paddd xmm0, xmm7 + paddd xmm8, xmm15 + paddd xmm0, xmm1 + paddd xmm8, xmm9 + pxor xmm3, xmm0 + pxor xmm11, xmm8 + pshufb xmm3, xmm13 + pshufb xmm11, xmm13 + paddd xmm2, xmm3 + paddd xmm10, xmm11 + pxor xmm1, xmm2 + pxor xmm9, xmm10 + movdqa xmm4, xmm1 + pslld xmm1, 25 + psrld xmm4, 7 + por xmm1, xmm4 + movdqa xmm4, xmm9 + pslld xmm9, 25 + psrld xmm4, 7 + por xmm9, xmm4 + pshufd xmm0, xmm0, 0x39 + pshufd xmm8, xmm8, 0x39 + pshufd xmm3, xmm3, 0x4E + pshufd xmm11, xmm11, 0x4E + pshufd xmm2, xmm2, 0x93 + pshufd xmm10, xmm10, 0x93 + dec al + je 9f + movdqa xmm12, xmmword ptr [rsp+0x20] + movdqa xmm5, xmmword ptr [rsp+0x40] + pshufd xmm13, xmm12, 0x0F + shufps xmm12, xmm5, 214 + pshufd xmm4, xmm12, 0x39 + movdqa xmm12, xmm6 + shufps xmm12, xmm7, 250 + pblendw xmm13, xmm12, 0xCC + movdqa xmm12, xmm7 + punpcklqdq xmm12, xmm5 + pblendw xmm12, xmm6, 0xC0 + pshufd xmm12, xmm12, 0x78 + punpckhdq xmm5, xmm7 + punpckldq xmm6, xmm5 + pshufd xmm7, xmm6, 0x1E + movdqa xmmword ptr [rsp+0x20], xmm13 + movdqa xmmword ptr [rsp+0x40], xmm12 + movdqa xmm5, xmmword ptr [rsp+0x30] + movdqa xmm13, xmmword ptr [rsp+0x50] + pshufd xmm6, xmm5, 0x0F + shufps xmm5, xmm13, 214 + pshufd xmm12, xmm5, 0x39 + movdqa xmm5, xmm14 + shufps xmm5, xmm15, 250 + pblendw xmm6, xmm5, 0xCC + movdqa xmm5, xmm15 + punpcklqdq xmm5, xmm13 + pblendw xmm5, xmm14, 0xC0 + pshufd xmm5, xmm5, 0x78 + punpckhdq xmm13, xmm15 + punpckldq xmm14, xmm13 + pshufd xmm15, xmm14, 0x1E + movdqa xmm13, xmm6 + movdqa xmm14, xmm5 + movdqa xmm5, xmmword ptr [rsp+0x20] + movdqa xmm6, xmmword ptr [rsp+0x40] + jmp 9b +9: + pxor xmm0, xmm2 + pxor xmm1, xmm3 + pxor xmm8, xmm10 + pxor xmm9, xmm11 + mov eax, r13d + cmp rdx, r15 + jne 2b + movups xmmword ptr [rbx], xmm0 + movups xmmword ptr [rbx+0x10], xmm1 + movups xmmword ptr [rbx+0x20], xmm8 + movups xmmword ptr [rbx+0x30], xmm9 + movdqa xmm0, xmmword ptr [rsp+0x130] + movdqa xmm1, xmmword ptr [rsp+0x110] + movdqa xmm2, xmmword ptr [rsp+0x120] + movdqu xmm3, xmmword ptr [rsp+0x118] + movdqu xmm4, xmmword ptr [rsp+0x128] + blendvps xmm1, xmm3, xmm0 + blendvps xmm2, xmm4, xmm0 + movdqa xmmword ptr [rsp+0x110], xmm1 + movdqa xmmword ptr [rsp+0x120], xmm2 + add rdi, 16 + add rbx, 64 + sub rsi, 2 +3: + test esi, 0x1 + je 4b + movups xmm0, xmmword ptr [rcx] + movups xmm1, xmmword ptr [rcx+0x10] + movd xmm13, dword ptr [rsp+0x110] + pinsrd xmm13, dword ptr [rsp+0x120], 1 + pinsrd xmm13, dword ptr [BLAKE3_BLOCK_LEN+rip], 2 + movaps xmm14, xmmword ptr [ROT8+rip] + movaps xmm15, xmmword ptr [ROT16+rip] + mov r8, qword ptr [rdi] + movzx eax, byte ptr [rbp+0x40] + or eax, r13d + xor edx, edx +2: + mov r14d, eax + or eax, r12d + add rdx, 64 + cmp rdx, r15 + cmovne eax, r14d + movaps xmm2, xmmword ptr [BLAKE3_IV+rip] + movaps xmm3, xmm13 + pinsrd xmm3, eax, 3 + movups xmm4, xmmword ptr [r8+rdx-0x40] + movups xmm5, xmmword ptr [r8+rdx-0x30] + movaps xmm8, xmm4 + shufps xmm4, xmm5, 136 + shufps xmm8, xmm5, 221 + movaps xmm5, xmm8 + movups xmm6, xmmword ptr [r8+rdx-0x20] + movups xmm7, xmmword ptr [r8+rdx-0x10] + movaps xmm8, xmm6 + shufps xmm6, xmm7, 136 + pshufd xmm6, xmm6, 0x93 + shufps xmm8, xmm7, 221 + pshufd xmm7, xmm8, 0x93 + mov al, 7 +9: + paddd xmm0, xmm4 + paddd xmm0, xmm1 + pxor xmm3, xmm0 + pshufb xmm3, xmm15 + paddd xmm2, xmm3 + pxor xmm1, xmm2 + movdqa xmm11, xmm1 + pslld xmm1, 20 + psrld xmm11, 12 + por xmm1, xmm11 + paddd xmm0, xmm5 + paddd xmm0, xmm1 + pxor xmm3, xmm0 + pshufb xmm3, xmm14 + paddd xmm2, xmm3 + pxor xmm1, xmm2 + movdqa xmm11, xmm1 + pslld xmm1, 25 + psrld xmm11, 7 + por xmm1, xmm11 + pshufd xmm0, xmm0, 0x93 + pshufd xmm3, xmm3, 0x4E + pshufd xmm2, xmm2, 0x39 + paddd xmm0, xmm6 + paddd xmm0, xmm1 + pxor xmm3, xmm0 + pshufb xmm3, xmm15 + paddd xmm2, xmm3 + pxor xmm1, xmm2 + movdqa xmm11, xmm1 + pslld xmm1, 20 + psrld xmm11, 12 + por xmm1, xmm11 + paddd xmm0, xmm7 + paddd xmm0, xmm1 + pxor xmm3, xmm0 + pshufb xmm3, xmm14 + paddd xmm2, xmm3 + pxor xmm1, xmm2 + movdqa xmm11, xmm1 + pslld xmm1, 25 + psrld xmm11, 7 + por xmm1, xmm11 + pshufd xmm0, xmm0, 0x39 + pshufd xmm3, xmm3, 0x4E + pshufd xmm2, xmm2, 0x93 + dec al + jz 9f + movdqa xmm8, xmm4 + shufps xmm8, xmm5, 214 + pshufd xmm9, xmm4, 0x0F + pshufd xmm4, xmm8, 0x39 + movdqa xmm8, xmm6 + shufps xmm8, xmm7, 250 + pblendw xmm9, xmm8, 0xCC + movdqa xmm8, xmm7 + punpcklqdq xmm8, xmm5 + pblendw xmm8, xmm6, 0xC0 + pshufd xmm8, xmm8, 0x78 + punpckhdq xmm5, xmm7 + punpckldq xmm6, xmm5 + pshufd xmm7, xmm6, 0x1E + movdqa xmm5, xmm9 + movdqa xmm6, xmm8 + jmp 9b +9: + pxor xmm0, xmm2 + pxor xmm1, xmm3 + mov eax, r13d + cmp rdx, r15 + jne 2b + movups xmmword ptr [rbx], xmm0 + movups xmmword ptr [rbx+0x10], xmm1 + jmp 4b + +.p2align 6 +blake3_compress_in_place_sse41_asm: +_blake3_compress_in_place_sse41_asm: + _CET_ENDBR + movups xmm0, xmmword ptr [rdi] + movups xmm1, xmmword ptr [rdi+0x10] + movaps xmm2, xmmword ptr [BLAKE3_IV+rip] + shl r8, 32 + add rdx, r8 + movq xmm3, rcx + movq xmm4, rdx + punpcklqdq xmm3, xmm4 + movups xmm4, xmmword ptr [rsi] + movups xmm5, xmmword ptr [rsi+0x10] + movaps xmm8, xmm4 + shufps xmm4, xmm5, 136 + shufps xmm8, xmm5, 221 + movaps xmm5, xmm8 + movups xmm6, xmmword ptr [rsi+0x20] + movups xmm7, xmmword ptr [rsi+0x30] + movaps xmm8, xmm6 + shufps xmm6, xmm7, 136 + pshufd xmm6, xmm6, 0x93 + shufps xmm8, xmm7, 221 + pshufd xmm7, xmm8, 0x93 + movaps xmm14, xmmword ptr [ROT8+rip] + movaps xmm15, xmmword ptr [ROT16+rip] + mov al, 7 +9: + paddd xmm0, xmm4 + paddd xmm0, xmm1 + pxor xmm3, xmm0 + pshufb xmm3, xmm15 + paddd xmm2, xmm3 + pxor xmm1, xmm2 + movdqa xmm11, xmm1 + pslld xmm1, 20 + psrld xmm11, 12 + por xmm1, xmm11 + paddd xmm0, xmm5 + paddd xmm0, xmm1 + pxor xmm3, xmm0 + pshufb xmm3, xmm14 + paddd xmm2, xmm3 + pxor xmm1, xmm2 + movdqa xmm11, xmm1 + pslld xmm1, 25 + psrld xmm11, 7 + por xmm1, xmm11 + pshufd xmm0, xmm0, 0x93 + pshufd xmm3, xmm3, 0x4E + pshufd xmm2, xmm2, 0x39 + paddd xmm0, xmm6 + paddd xmm0, xmm1 + pxor xmm3, xmm0 + pshufb xmm3, xmm15 + paddd xmm2, xmm3 + pxor xmm1, xmm2 + movdqa xmm11, xmm1 + pslld xmm1, 20 + psrld xmm11, 12 + por xmm1, xmm11 + paddd xmm0, xmm7 + paddd xmm0, xmm1 + pxor xmm3, xmm0 + pshufb xmm3, xmm14 + paddd xmm2, xmm3 + pxor xmm1, xmm2 + movdqa xmm11, xmm1 + pslld xmm1, 25 + psrld xmm11, 7 + por xmm1, xmm11 + pshufd xmm0, xmm0, 0x39 + pshufd xmm3, xmm3, 0x4E + pshufd xmm2, xmm2, 0x93 + dec al + jz 9f + movdqa xmm8, xmm4 + shufps xmm8, xmm5, 214 + pshufd xmm9, xmm4, 0x0F + pshufd xmm4, xmm8, 0x39 + movdqa xmm8, xmm6 + shufps xmm8, xmm7, 250 + pblendw xmm9, xmm8, 0xCC + movdqa xmm8, xmm7 + punpcklqdq xmm8, xmm5 + pblendw xmm8, xmm6, 0xC0 + pshufd xmm8, xmm8, 0x78 + punpckhdq xmm5, xmm7 + punpckldq xmm6, xmm5 + pshufd xmm7, xmm6, 0x1E + movdqa xmm5, xmm9 + movdqa xmm6, xmm8 + jmp 9b +9: + pxor xmm0, xmm2 + pxor xmm1, xmm3 + movups xmmword ptr [rdi], xmm0 + movups xmmword ptr [rdi+0x10], xmm1 + ret + +.p2align 6 +blake3_compress_xof_sse41_asm: +_blake3_compress_xof_sse41_asm: + _CET_ENDBR + movups xmm0, xmmword ptr [rdi] + movups xmm1, xmmword ptr [rdi+0x10] + movaps xmm2, xmmword ptr [BLAKE3_IV+rip] + movzx eax, r8b + movzx edx, dl + shl rax, 32 + add rdx, rax + movq xmm3, rcx + movq xmm4, rdx + punpcklqdq xmm3, xmm4 + movups xmm4, xmmword ptr [rsi] + movups xmm5, xmmword ptr [rsi+0x10] + movaps xmm8, xmm4 + shufps xmm4, xmm5, 136 + shufps xmm8, xmm5, 221 + movaps xmm5, xmm8 + movups xmm6, xmmword ptr [rsi+0x20] + movups xmm7, xmmword ptr [rsi+0x30] + movaps xmm8, xmm6 + shufps xmm6, xmm7, 136 + pshufd xmm6, xmm6, 0x93 + shufps xmm8, xmm7, 221 + pshufd xmm7, xmm8, 0x93 + movaps xmm14, xmmword ptr [ROT8+rip] + movaps xmm15, xmmword ptr [ROT16+rip] + mov al, 7 +9: + paddd xmm0, xmm4 + paddd xmm0, xmm1 + pxor xmm3, xmm0 + pshufb xmm3, xmm15 + paddd xmm2, xmm3 + pxor xmm1, xmm2 + movdqa xmm11, xmm1 + pslld xmm1, 20 + psrld xmm11, 12 + por xmm1, xmm11 + paddd xmm0, xmm5 + paddd xmm0, xmm1 + pxor xmm3, xmm0 + pshufb xmm3, xmm14 + paddd xmm2, xmm3 + pxor xmm1, xmm2 + movdqa xmm11, xmm1 + pslld xmm1, 25 + psrld xmm11, 7 + por xmm1, xmm11 + pshufd xmm0, xmm0, 0x93 + pshufd xmm3, xmm3, 0x4E + pshufd xmm2, xmm2, 0x39 + paddd xmm0, xmm6 + paddd xmm0, xmm1 + pxor xmm3, xmm0 + pshufb xmm3, xmm15 + paddd xmm2, xmm3 + pxor xmm1, xmm2 + movdqa xmm11, xmm1 + pslld xmm1, 20 + psrld xmm11, 12 + por xmm1, xmm11 + paddd xmm0, xmm7 + paddd xmm0, xmm1 + pxor xmm3, xmm0 + pshufb xmm3, xmm14 + paddd xmm2, xmm3 + pxor xmm1, xmm2 + movdqa xmm11, xmm1 + pslld xmm1, 25 + psrld xmm11, 7 + por xmm1, xmm11 + pshufd xmm0, xmm0, 0x39 + pshufd xmm3, xmm3, 0x4E + pshufd xmm2, xmm2, 0x93 + dec al + jz 9f + movdqa xmm8, xmm4 + shufps xmm8, xmm5, 214 + pshufd xmm9, xmm4, 0x0F + pshufd xmm4, xmm8, 0x39 + movdqa xmm8, xmm6 + shufps xmm8, xmm7, 250 + pblendw xmm9, xmm8, 0xCC + movdqa xmm8, xmm7 + punpcklqdq xmm8, xmm5 + pblendw xmm8, xmm6, 0xC0 + pshufd xmm8, xmm8, 0x78 + punpckhdq xmm5, xmm7 + punpckldq xmm6, xmm5 + pshufd xmm7, xmm6, 0x1E + movdqa xmm5, xmm9 + movdqa xmm6, xmm8 + jmp 9b +9: + movdqu xmm4, xmmword ptr [rdi] + movdqu xmm5, xmmword ptr [rdi+0x10] + pxor xmm0, xmm2 + pxor xmm1, xmm3 + pxor xmm2, xmm4 + pxor xmm3, xmm5 + movups xmmword ptr [r9], xmm0 + movups xmmword ptr [r9+0x10], xmm1 + movups xmmword ptr [r9+0x20], xmm2 + movups xmmword ptr [r9+0x30], xmm3 + ret + + +#ifdef __APPLE__ +.static_data +#else +.section .rodata +#endif +.p2align 6 +BLAKE3_IV: + .long 0x6A09E667, 0xBB67AE85 + .long 0x3C6EF372, 0xA54FF53A +ROT16: + .byte 2, 3, 0, 1, 6, 7, 4, 5, 10, 11, 8, 9, 14, 15, 12, 13 +ROT8: + .byte 1, 2, 3, 0, 5, 6, 7, 4, 9, 10, 11, 8, 13, 14, 15, 12 +ADD0: + .long 0, 1, 2, 3 +ADD1: + .long 4, 4, 4, 4 +BLAKE3_IV_0: + .long 0x6A09E667, 0x6A09E667, 0x6A09E667, 0x6A09E667 +BLAKE3_IV_1: + .long 0xBB67AE85, 0xBB67AE85, 0xBB67AE85, 0xBB67AE85 +BLAKE3_IV_2: + .long 0x3C6EF372, 0x3C6EF372, 0x3C6EF372, 0x3C6EF372 +BLAKE3_IV_3: + .long 0xA54FF53A, 0xA54FF53A, 0xA54FF53A, 0xA54FF53A +BLAKE3_BLOCK_LEN: + .long 64, 64, 64, 64 +CMP_MSB_MASK: + .long 0x80000000, 0x80000000, 0x80000000, 0x80000000 diff --git a/Sources/Cfyaml/src/blake3/fy-blake3.c b/Sources/Cfyaml/src/blake3/fy-blake3.c new file mode 100644 index 000000000..6931abc36 --- /dev/null +++ b/Sources/Cfyaml/src/blake3/fy-blake3.c @@ -0,0 +1,171 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include +#include +#include + +#include "blake3.h" +#include "blake3_impl.h" + +#include + +struct fy_blake3_hasher { + uint8_t output[FY_BLAKE3_OUT_LEN] FY_CACHELINE_ALIGN; + struct fy_blake3_hasher_cfg cfg; + struct blake3_host_state *hs; + struct blake3_hasher *hasher; +}; + +struct fy_blake3_hasher *fy_blake3_hasher_create(const struct fy_blake3_hasher_cfg *cfg) +{ + struct fy_blake3_hasher *fyh = NULL; + blake3_host_config hs_cfg; + + fyh = malloc(sizeof(*fyh)); + if (!fyh) + goto err_out; + + memset(fyh, 0, sizeof(*fyh)); + + /* copy config - if it exists */ + if (cfg) + fyh->cfg = *cfg; + + memset(&hs_cfg, 0, sizeof(hs_cfg)); + hs_cfg.debug = false; + hs_cfg.backend = cfg->backend; + if (!cfg->tp) { + if (cfg->num_threads >= 0) + hs_cfg.num_threads = (unsigned int)cfg->num_threads; + else + hs_cfg.no_mthread = true; + } else + hs_cfg.tp = cfg->tp; + hs_cfg.no_mmap = cfg->no_mmap; + hs_cfg.file_io_bufsz = cfg->file_buffer; + hs_cfg.mmap_min_chunk = cfg->mmap_min_chunk; + hs_cfg.mmap_max_chunk = cfg->mmap_max_chunk; + fyh->hs = blake3_host_state_create(&hs_cfg); + if (!fyh->hs) + goto err_out; + + fyh->hasher = blake3_hasher_create(fyh->hs, fyh->cfg.key, fyh->cfg.context, fyh->cfg.context ? fyh->cfg.context_len : 0); + if (!fyh->hasher) + goto err_out; + + return fyh; + +err_out: + fy_blake3_hasher_destroy(fyh); + return NULL; +} + +void fy_blake3_hasher_destroy(struct fy_blake3_hasher *fyh) +{ + if (!fyh) + return; + if (fyh->hasher) + blake3_hasher_destroy(fyh->hasher); + if (fyh->hs) + blake3_host_state_destroy(fyh->hs); + free(fyh); +} + +void fy_blake3_hasher_update(struct fy_blake3_hasher *fyh, const void *input, size_t input_len) +{ + if (!fyh) + return; + blake3_hasher_update(fyh->hasher, input, input_len); +} + +const uint8_t *fy_blake3_hasher_finalize(struct fy_blake3_hasher *fyh) +{ + if (!fyh) + return NULL; + blake3_hasher_finalize(fyh->hasher, fyh->output, FY_BLAKE3_OUT_LEN); + return fyh->output; +} + +void fy_blake3_hasher_reset(struct fy_blake3_hasher *fyh) +{ + if (!fyh) + return; + blake3_hasher_reset(fyh->hasher); +} + +const uint8_t *fy_blake3_hash_file(struct fy_blake3_hasher *fyh, const char *filename) +{ + int rc; + + if (!fyh || !filename) + return NULL; + + rc = blake3_hash_file(fyh->hasher, filename, fyh->output); + if (rc) + return NULL; + + return fyh->output; +} + +const uint8_t *fy_blake3_hash(struct fy_blake3_hasher *fyh, const void *mem, size_t size) +{ + if (!fyh || !mem) + return NULL; + + blake3_hash(fyh->hasher, mem, size, fyh->output); + + return fyh->output; +} + +const char *fy_blake3_backend_iterate(const char **prevp) +{ + const char *backend_names[64]; /* maximum 64 backends + 1 for NULL */ + const blake3_backend_info *bei; + uint64_t backends, avail; + unsigned int i, count; + + if (!prevp) + return NULL; + + avail = blake3_get_selectable_backends() & + blake3_get_detected_backends(); + + /* first pass, fill the backend name array */ + for (i = 0, backends = avail, count = 0; backends && i < B3BID_COUNT; i++) { + if (!(backends & ((uint64_t)1 << i))) + continue; + bei = blake3_get_backend_info(i); + if (!bei) + continue; + backends &= ~((uint64_t)1 << i); + backend_names[count++] = bei->name; + } + + /* start of the iterator */ + if (!*prevp) { + if (!count) + return NULL; + i = 0; + + } else { + + /* ok, find the current spot */ + for (i = 0; i < count; i++) { + if (!strcmp(*prevp, backend_names[i])) + break; + } + + /* increase for next, last or not found? */ + if (++i >= count) { + *prevp = NULL; + return NULL; + } + } + + return *prevp = backend_names[i]; +} diff --git a/Sources/Cfyaml/src/internal/.deps/fy_b3sum-fy-b3sum.Po b/Sources/Cfyaml/src/internal/.deps/fy_b3sum-fy-b3sum.Po new file mode 100644 index 000000000..9ce06a81e --- /dev/null +++ b/Sources/Cfyaml/src/internal/.deps/fy_b3sum-fy-b3sum.Po @@ -0,0 +1 @@ +# dummy diff --git a/Sources/Cfyaml/src/internal/.deps/fy_thread-fy-thread.Po b/Sources/Cfyaml/src/internal/.deps/fy_thread-fy-thread.Po new file mode 100644 index 000000000..9ce06a81e --- /dev/null +++ b/Sources/Cfyaml/src/internal/.deps/fy_thread-fy-thread.Po @@ -0,0 +1 @@ +# dummy diff --git a/Sources/Cfyaml/src/internal/fy-b3sum.c b/Sources/Cfyaml/src/internal/fy-b3sum.c new file mode 100644 index 000000000..a0e21fbeb --- /dev/null +++ b/Sources/Cfyaml/src/internal/fy-b3sum.c @@ -0,0 +1,545 @@ +/* + * fy-b3sum.c - blake3 utility for testing within fyaml + * + * Copyright (c) 2023 Pantelis Antoniou + * + * SPDX-License-Identifier: MIT + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#define OPT_NO_MMAP 128 +#define OPT_NO_MTHREAD 129 +#define OPT_NUM_THREADS 130 +#define OPT_BUFFER_SIZE 131 +#define OPT_MT_DEGREE 132 +#define OPT_LIST_BACKENDS 133 +#define OPT_ENABLE_CPUSIMD 134 +#define OPT_CPUSIMD_NUM_CPUS 135 +#define OPT_CPUSIMD_MULT_FACT 136 +#define OPT_DERIVE_KEY 137 +#define OPT_NO_NAMES 138 +#define OPT_RAW 139 +#define OPT_QUIET 140 +#define OPT_KEYED 141 + +static struct option lopts[] = { + {"check", no_argument, 0, 'c' }, + {"derive-key", required_argument, 0, OPT_DERIVE_KEY }, + {"no-names", no_argument, 0, OPT_NO_NAMES }, + {"raw", no_argument, 0, OPT_RAW }, + {"length", required_argument, 0, 'l' }, + {"quiet", no_argument, 0, OPT_QUIET }, + {"keyed", no_argument, 0, OPT_KEYED }, + + {"num-threads", required_argument, 0, OPT_NUM_THREADS }, + {"no-mmap", no_argument, 0, OPT_NO_MMAP }, + {"no-mthread", no_argument, 0, OPT_NO_MTHREAD }, + {"buffer-size", required_argument, 0, OPT_BUFFER_SIZE }, + {"mt-degree", required_argument, 0, OPT_MT_DEGREE }, + {"backend", required_argument, 0, 'b' }, + {"enable-cpusimd", no_argument, 0, OPT_ENABLE_CPUSIMD }, + {"cpusimd-num-cpus", required_argument, 0, OPT_CPUSIMD_NUM_CPUS }, + {"cpusimd-mult-fact", required_argument, 0, OPT_CPUSIMD_MULT_FACT }, + + {"list-backends", no_argument, 0, OPT_LIST_BACKENDS }, + {"help", no_argument, 0, 'h' }, + {"debug", no_argument, 0, 'd' }, + {0, 0, 0, 0 }, +}; + +static void display_usage(FILE *fp, const char *progname) +{ + const char *s; + + s = strrchr(progname, '/'); + if (s != NULL) + progname = s + 1; + + fprintf(fp, "Usage:\n\t%s [options] [args]\n", progname); + fprintf(fp, "\noptions:\n"); + fprintf(fp, "\t--derive-key : Key derivation mode, with the given context string\n"); + fprintf(fp, "\t--no-names : Omit filenames\n"); + fprintf(fp, "\t--raw : Output result in raw bytes (single input allowed)\n"); + fprintf(fp, "\t--length , -l : Output only this amount of bytes per output (max %u)\n", BLAKE3_OUT_LEN); + fprintf(fp, "\t--check, -c : Read files with BLAKE3 checksums and check files\n"); + fprintf(fp, "\t--quiet : Do not print OK for checked files that are correct\n"); + fprintf(fp, "\t--keyed : Keyed mode with secret key read from (32 raw bytes)\n"); + fprintf(fp, "\ntuning options:\n"); + fprintf(fp, "\t--num-threads : Number of threads to use (default: number of CPUs * 3 / 2)\n"); + fprintf(fp, "\t--no-mmap : Disable file mmap\n"); + fprintf(fp, "\t--no-mthread : Disable multithreading\n"); + fprintf(fp, "\t--buffer-size : Buffer size for file I/O\n"); + fprintf(fp, "\t--mt-degree : Set the multi-thread degree (default 128)\n"); + fprintf(fp, "\t--backend , -b : Backend selection\n"); + fprintf(fp, "\t--enable-cpusimd : Enable experimental CPUSIMD support\n"); + fprintf(fp, "\t--cpusimd-num-cpus : Number of CPUs assigned to CPUSIMD\n"); + fprintf(fp, "\t--cpusimd-mult-fact : Multiplication factor for CPUSIMD\n"); + fprintf(fp, "\ninformational options:\n"); + fprintf(fp, "\t--list-backends : List available backends\n"); + fprintf(fp, "\t--debug : Enable debug messages\n"); + fprintf(fp, "\t--help, -h : Display help message\n"); + fprintf(fp, "\n"); + fprintf(fp, "\nargs:\n"); + fprintf(fp, "\t... Files to hash or checkfiles to check.\n\tIf no file given (or file is '-' hash stdin\n"); +} + +static void list_backends(const char *name) +{ + const blake3_backend_info *bei; + uint64_t backends; + bool selected; + unsigned int i; + + backends = blake3_get_selectable_backends() & + blake3_get_detected_backends(); + for (i = 0; backends && i < B3BID_COUNT; i++) { + if (!(backends & ((uint64_t)1 << i))) + continue; + bei = blake3_get_backend_info(i); + if (!bei) + continue; + backends &= ~((uint64_t)1 << i); + + if (!name) + selected = backends == 0; + else + selected = !strcmp(name, bei->name); + + printf("%c %-12s\t%s\n", + selected ? '*' : ' ', bei->name, bei->description); + } +} + +static int do_hash_file(struct blake3_hasher *hasher, const char *filename, bool no_names, bool raw, unsigned int length) +{ + static const char *hexb = "0123456789abcdef"; + uint8_t output[BLAKE3_OUT_LEN]; + size_t filename_sz, line_sz, outsz; + ssize_t wrn; + uint8_t v; + void *outp; + char *line, *s; + unsigned int i; + int rc; + + filename_sz = strlen(filename); + + rc = blake3_hash_file(hasher, filename, output); + if (rc) { + fprintf(stderr, "Failed to hash file: \"%s\", error: %s\n", filename, strerror(errno)); + return -1; + } + + if (!raw) { + /* output line (optimized) */ + line_sz = (length * 2); /* the hex output */ + if (!no_names) + line_sz += 2 + filename_sz; /* 2 spaces + filename */ + line_sz++; /* '\n' */ + line = alloca(line_sz + 1); + s = line; + for (i = 0; i < length; i++) { + v = output[i]; + *s++ = hexb[v >> 4]; + *s++ = hexb[v & 15]; + } + if (!no_names) { + *s++ = ' '; + *s++ = ' '; + memcpy(s, filename, filename_sz); + s += filename_sz; + } + *s++ = '\n'; + *s = '\0'; + outp = line; + outsz = (size_t)(s - line); + } else { + outp = output; + outsz = length; + } + + wrn = fwrite(outp, 1, outsz, stdout); + if ((size_t)wrn != outsz) { + fprintf(stderr, "Unable to write to stdout! error: %s\n", strerror(errno)); + return -1; + } + + return 0; +} + +static int do_check_file(struct blake3_hasher *hasher, const char *check_filename, bool quiet) +{ + char *hash, *filename; + FILE *fp = NULL; + char linebuf[8192]; /* maximum size for a line is 8K, should be enough (PATH_MAX is 4K at linux) */ + uint8_t read_hash[BLAKE3_OUT_LEN]; + uint8_t computed_hash[BLAKE3_OUT_LEN]; + uint8_t v; + char *s; + char c; + unsigned int i, j, length; + size_t linesz; + int line, rc, exit_code; + + if (check_filename && strcmp(check_filename, "-")) { + fp = fopen(check_filename, "ra"); + if (!fp) { + fprintf(stderr, "Failed to open check file: \"%s\", error: %s\n", check_filename, strerror(errno)); + goto err_out; + } + } else { + fp = stdin; + } + + /* default error code if all is fine */ + exit_code = 0; + + line = 0; + while (fgets(linebuf, sizeof(linebuf), fp)) { + /* '\0' terminate always */ + linebuf[(sizeof(linebuf)/sizeof(linebuf[0]))-1] = '\0'; + + linesz = strlen(linebuf); + while (linesz > 0 && linebuf[linesz-1] == '\n') + linesz--; + + if (!linesz) { + fprintf(stderr, "Empty line found at file \"%s\" line #%d\n", check_filename, line); + goto err_out; + } + linebuf[linesz] = '\0'; + + length = 0; + s = linebuf; + while (isxdigit(*s)) + s++; + + length = s - linebuf; + + if (length == 0 || length > (BLAKE3_OUT_LEN * 2) || (length % 1) || !isspace(*s)) { + fprintf(stderr, "Bad line found at file \"%s\" line #%d\n", check_filename, line); + fprintf(stderr, "%s\n", linebuf); + goto err_out; + } + + *s++ = '\0'; + + while (isspace(*s)) + s++; + + length >>= 1; /* to bytes */ + hash = linebuf; + filename = s; + + for (i = 0, s = hash; i < length; i++) { + v = 0; + for (j = 0; j < 2; j++) { + v <<= 4; + c = *s++; + if (c >= '0' && c <= '9') + v |= c - '0'; + else if (c >= 'a' && c <= 'f') + v |= c - 'a' + 10; + else if (c >= 'A' && c <= 'F') + v |= c - 'A' + 10; + else + v = 0; + } + read_hash[i] = v; + } + + rc = blake3_hash_file(hasher, filename, computed_hash); + if (rc) { + fprintf(stderr, "Failed to hash file: \"%s\", error: %s\n", filename, strerror(errno)); + goto err_out; + } + + /* constant time comparison */ + v = 0; + for (i = 0; i < length; i++) + v |= (read_hash[i] ^ computed_hash[i]); + + if (v) { + printf("%s: FAILED\n", filename); + exit_code = -1; + } else if (!quiet) + printf("%s: OK\n", filename); + } + +out: + if (fp && fp != stdin) + fclose(fp); + + return exit_code; + +err_out: + exit_code = -1; + goto out; +} + +int main(int argc, char *argv[]) +{ + blake3_host_config host_cfg; + struct blake3_host_state *host_state = NULL; + struct blake3_hasher *hasher = NULL; + const char *filename; + int i, opt, lidx, rc, num_inputs, num_ok; + int exitcode = EXIT_FAILURE, opti; + size_t buffer_size = 0; + bool no_names = false, raw = false, quiet = false, keyed = false; + bool no_mmap = false, no_mthread = false, debug = false, enable_cpusimd = false; + bool do_list_backends = false, check = false, derive_key = false; + unsigned int mt_degree = 0, num_threads = 0, cpusimd_num_cpus = 0, cpusimd_mult_fact = 0, length = BLAKE3_OUT_LEN; + const char *backend = NULL, *context = NULL; + uint8_t key[BLAKE3_OUT_LEN]; + ssize_t rdn; + + while ((opt = getopt_long_only(argc, argv, "cl:b:dh", lopts, &lidx)) != -1) { + switch (opt) { + + case OPT_DERIVE_KEY: + derive_key = true; + context = optarg; + break; + case OPT_NO_NAMES: + no_names = true; + break; + case OPT_RAW: + raw = true; + break; + case 'c': + check = true; + break; + case OPT_QUIET: + quiet = true; + break; + case OPT_KEYED: + keyed = true; + break; + + case 'l': + opti = atoi(optarg);; + if (opti <= 0 || opti > BLAKE3_OUT_LEN) { + fprintf(stderr, "Error: bad length=%d (must be > 0 and <= %u)\n\n", opti, BLAKE3_OUT_LEN); + goto err_out_usage; + } + length = (unsigned int)opti; + break; + + case OPT_NO_MMAP: + no_mmap = true; + break; + case OPT_NO_MTHREAD: + no_mthread = true; + break; + case OPT_NUM_THREADS: + opti = atoi(optarg); + if (opti < 0) { + fprintf(stderr, "Error: bad num_threads=%d (must be >= 0)\n\n", opti); + goto err_out_usage; + } + num_threads = (unsigned int)opti; + break; + case OPT_BUFFER_SIZE: + opti = atoi(optarg); + if (opti <= 0) { + fprintf(stderr, "Error: bad buffer-size=%d (must be > 0)\n\n", opti); + goto err_out_usage; + } + buffer_size = (unsigned int)opti; + break; + case OPT_MT_DEGREE: + opti = atoi(optarg); + if (opti < 0) { + fprintf(stderr, "Error: bad mt_degree=%d (must be >= 0)\n\n", opti); + goto err_out_usage; + } + mt_degree = (unsigned int)opti; + break; + + case OPT_LIST_BACKENDS: + do_list_backends = true; + break; + + case OPT_ENABLE_CPUSIMD: + enable_cpusimd = true; + break; + case OPT_CPUSIMD_NUM_CPUS: + opti = atoi(optarg); + if (opti < 0) { + fprintf(stderr, "Error: bad cpusimd_num_cpus=%d (must be >= 0)\n\n", opti); + goto err_out_usage; + } + cpusimd_num_cpus = (unsigned int)opti; + break; + case OPT_CPUSIMD_MULT_FACT: + opti = atoi(optarg); + if (opti < 0) { + fprintf(stderr, "Error: bad cpusimd_mult_fact=%d (must be >= 0)\n\n", opti); + goto err_out_usage; + } + cpusimd_mult_fact = (unsigned int)opti; + break; + + case 'b': + backend = optarg; + break; + + case 'd': + debug = true; + break; + case 'h' : + display_usage(stdout, argv[0]); + goto ok_out; + default: + goto err_out_usage; + } + } + + if (enable_cpusimd) { + rc = blake3_backend_cpusimd_setup(cpusimd_num_cpus, cpusimd_mult_fact); + if (rc) { + fprintf(stderr, "Unable to enable CPUSIMD\n"); + goto err_out; + } + } + + if (do_list_backends) { + list_backends(backend); + goto ok_out; + } + + if (quiet && !check) { + fprintf(stderr, "Error: --quiet may only be used together with --check\n\n"); + goto err_out_usage; + } + + if (keyed && derive_key) { + fprintf(stderr, "Error: --keyed and --derive-key may not be used together\n\n"); + goto err_out_usage; + } + + if (check && length != BLAKE3_OUT_LEN) { + fprintf(stderr, "Error: --check and --length may not be used together\n\n"); + goto err_out_usage; + } + + if (keyed) { + rdn = fread(key, 1, BLAKE3_KEY_LEN, stdin); + if (rdn != BLAKE3_KEY_LEN) { + if (rdn >= 0 && rdn < BLAKE3_KEY_LEN) + fprintf(stderr, "Error: could not read secret key from : short key\n\n"); + else + fprintf(stderr, "Error: could not read secret key from : error %s\n\n", strerror(errno)); + goto err_out_usage; + } + rc = fgetc(stdin); + if (rc != EOF) { + fprintf(stderr, "Error: garbage trailing secret key from \n\n"); + goto err_out_usage; + } + } + + memset(&host_cfg, 0, sizeof(host_cfg)); + host_cfg.debug = debug; + host_cfg.no_mthread = no_mthread; + host_cfg.no_mmap = no_mmap; + host_cfg.num_threads = num_threads; + host_cfg.backend = backend; + host_cfg.mt_degree = mt_degree; + host_cfg.file_io_bufsz = buffer_size; + + host_state = blake3_host_state_create(&host_cfg); + if (!host_state) { + fprintf(stderr, "unable to create blake3 host state\n"); + goto err_out; + } + + hasher = blake3_hasher_create(host_state, + keyed ? key : NULL, + derive_key ? context : NULL, 0); + if (!hasher) { + fprintf(stderr, "unable to create blake3 hasher\n"); + goto err_out; + } + + num_inputs = argc - optind; + if (num_inputs <= 0) + num_inputs = 1; /* stdin mode */ + + if (raw && num_inputs > 1) { + fprintf(stderr, "Error: Raw output mode is only supported with a single input\n\n"); + goto err_out_usage; + } + + if (!length) + length = BLAKE3_OUT_LEN; + + /* we will get in the loop even when no arguments (we'll do stdin instead) */ + num_ok = 0; + i = optind; + do { + /* if no arguments, use stdin */ + filename = i < argc ? argv[i] : "-"; + + /* we can't handle '-' in keyed mode */ + if (keyed && !strcmp(filename, "-")) { + fprintf(stderr, "Cannot use in keyed mode\n"); + goto err_out_usage; + } + + if (!check) + rc = do_hash_file(hasher, filename, no_names, raw, length); + else + rc = do_check_file(hasher, filename, quiet); + if (!rc) + num_ok++; + + } while (++i < argc); + + if (num_inputs != num_ok) + goto err_out; + +ok_out: + exitcode = EXIT_SUCCESS; + +out: + if (hasher) + blake3_hasher_destroy(hasher); + + if (host_state) + blake3_host_state_destroy(host_state); + + if (enable_cpusimd) + blake3_backend_cpusimd_cleanup(); + + return exitcode; + +err_out_usage: + display_usage(stderr, argv[0]); +err_out: + exitcode = EXIT_FAILURE; + goto out; +} diff --git a/Sources/Cfyaml/src/internal/fy-thread.c b/Sources/Cfyaml/src/internal/fy-thread.c new file mode 100644 index 000000000..7bbac06f8 --- /dev/null +++ b/Sources/Cfyaml/src/internal/fy-thread.c @@ -0,0 +1,587 @@ +/* + * fy-thread.c - thread testing internal utility + * + * Copyright (c) 2023 Pantelis Antoniou + * + * SPDX-License-Identifier: MIT + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include + +#include "fy-thread.h" + +static void test_worker_thread_fn(void *arg) +{ + _Atomic(int) *p = arg; + int v, exp_v; + + /* atomically increase the counter */ + v = atomic_load(p); + for (;;) { + exp_v = v; + if (atomic_compare_exchange_strong(p, &exp_v, v + 1)) + return; + v = exp_v; + } +} + +void test_worker_threads(unsigned int num_threads) +{ + struct fy_thread_pool_cfg tp_cfg; + struct fy_thread_pool *tp; + struct fy_thread **threads, *t; + struct fy_thread_work *works; + long scval; + unsigned int i, count, num_cpus; + int rc, test_count; + + (void)rc; + + if (num_threads == 0) { + scval = sysconf(_SC_NPROCESSORS_ONLN); + assert(scval > 0); + num_cpus = (unsigned int)scval; + } else + num_cpus = num_threads; + + memset(&tp_cfg, 0, sizeof(tp_cfg)); + tp_cfg.flags = 0; + tp_cfg.num_threads = num_cpus; + tp_cfg.userdata = NULL; + + fprintf(stderr, "calling: fy_thread_pool_create()\n"); + + tp = fy_thread_pool_create(&tp_cfg); + assert(tp); + + count = tp->num_threads; + threads = alloca(count * sizeof(*threads)); + works = alloca(count * sizeof(*works)); + + test_count = 0; + + for (i = 0; i < count; i++) { + fprintf(stderr, "calling: fy_thread_reserve(#%u)\n", i); + threads[i] = fy_thread_reserve(tp); + assert(threads[i]); + t = threads[i]; + assert(t->id == i); + } + + for (i = 0; i < count; i++) { + t = threads[i]; + fprintf(stderr, "calling: fy_thread_submit_work(#%u)\n", i); + works[i].fn = test_worker_thread_fn; + works[i].arg = &test_count; + fy_thread_submit_work(t, &works[i]); + } + + for (i = 0; i < count; i++) { + t = threads[i]; + fprintf(stderr, "calling: fy_thread_wait_work(#%u)\n", i); + fy_thread_wait_work(t); + } + + fprintf(stderr, "%s: test_count=%d\n", __func__, test_count); + if (test_count != (int)num_cpus) { + fprintf(stderr, "error: test_count=%d expected %d\n", test_count, (int)num_cpus); + abort(); + } + + for (i = 0; i < count; i++) { + t = threads[i]; + fprintf(stderr, "calling: fy_thread_pool_unreserve(#%u)\n", i); + fy_thread_unreserve(t); + } + + fprintf(stderr, "calling: fy_thread_pool_destroy()\n"); + fy_thread_pool_destroy(tp); +} + +void test_thread_join(unsigned int num_threads) +{ + struct fy_thread_pool_cfg tp_cfg; + struct fy_thread_pool *tp; + void **args; + long scval; + unsigned int count, num_cpus; + int rc, test_count; + + (void)rc; + + if (num_threads == 0) { + scval = sysconf(_SC_NPROCESSORS_ONLN); + assert(scval > 0); + num_cpus = (unsigned int)scval; + } else + num_cpus = num_threads; + + memset(&tp_cfg, 0, sizeof(tp_cfg)); + tp_cfg.flags = 0; + tp_cfg.num_threads = num_cpus; + tp_cfg.userdata = NULL; + + fprintf(stderr, "calling: fy_thread_pool_create()\n"); + tp = fy_thread_pool_create(&tp_cfg); + assert(tp); + + count = tp->num_threads; + args = alloca(count * sizeof(*args)); + + test_count = 0; + + fy_thread_arg_join(tp, test_worker_thread_fn, NULL, &test_count, count); + + fprintf(stderr, "%s: test_count=%d\n", __func__, test_count); + assert(test_count == (int)num_cpus); + + fprintf(stderr, "calling: fy_thread_pool_destroy()\n"); + fy_thread_pool_destroy(tp); +} + +struct thread_latency_state { + struct timespec reserve; + struct timespec reserve_done; + struct timespec submit; + struct timespec execute; + struct timespec wait; + struct timespec wait_done; + struct timespec unreserve; + struct timespec unreserve_done; +}; + +long long delta_ns(struct timespec before, struct timespec after) +{ + if ((before.tv_sec == 0 && before.tv_nsec == 0) || + (after.tv_sec == 0 && after.tv_nsec == 0)) + return -1; + return (long long)((int64_t)(after.tv_sec - before.tv_sec) * (int64_t)1000000000UL + (int64_t)(after.tv_nsec - before.tv_nsec)); +} + +static void test_latency_worker_thread_fn(void *arg) +{ + struct thread_latency_state *s = arg; + + clock_gettime(CLOCK_MONOTONIC, &s->execute); +} + +void test_thread_latency(unsigned int num_threads) +{ + struct fy_thread_pool_cfg tp_cfg; + struct fy_thread_pool *tp; + struct fy_thread **threads, *t; + struct fy_thread_work *works; + long scval; + unsigned int i, count, num_cpus; + int rc; + struct thread_latency_state *states, *s; + + (void)rc; + + if (num_threads == 0) { + scval = sysconf(_SC_NPROCESSORS_ONLN); + assert(scval > 0); + num_cpus = (unsigned int)scval; + } else + num_cpus = num_threads; + + memset(&tp_cfg, 0, sizeof(tp_cfg)); + tp_cfg.flags = 0; + tp_cfg.num_threads = num_cpus; + tp_cfg.userdata = NULL; + + tp = fy_thread_pool_create(&tp_cfg); + assert(tp); + + + count = tp->num_threads; + threads = alloca(count * sizeof(*threads)); + works = alloca(count * sizeof(*works)); + states = alloca(count * sizeof(*states)); + + memset(states, 0, count * sizeof(*states)); + + for (i = 0; i < count; i++) { + s = &states[i]; + + clock_gettime(CLOCK_MONOTONIC, &s->reserve); + + threads[i] = fy_thread_reserve(tp); + assert(threads[i]); + t = threads[i]; + assert(t->id == i); + + clock_gettime(CLOCK_MONOTONIC, &s->reserve_done); + + } + + for (i = 0; i < count; i++) { + s = &states[i]; + clock_gettime(CLOCK_MONOTONIC, &s->submit); + + t = threads[i]; + works[i].fn = test_latency_worker_thread_fn; + works[i].arg = s; + fy_thread_submit_work(t, &works[i]); + } + + for (i = 0; i < count; i++) { + s = &states[i]; + clock_gettime(CLOCK_MONOTONIC, &s->wait); + + t = threads[i]; + fy_thread_wait_work(t); + + clock_gettime(CLOCK_MONOTONIC, &s->wait_done); + } + + for (i = 0; i < count; i++) { + + s = &states[i]; + clock_gettime(CLOCK_MONOTONIC, &s->unreserve); + + t = threads[i]; + fy_thread_unreserve(t); + + clock_gettime(CLOCK_MONOTONIC, &s->unreserve_done); + } + + fy_thread_pool_destroy(tp); + + fprintf(stderr, "latency results\n"); + for (i = 0; i < count; i++) { + s = &states[i]; + + fprintf(stderr, "#%2u: reserve:%10lld submit-execute:%10lld execute-waitdone:%10lld wait:%10lld unreserve:%10lld\n", i, + delta_ns(s->reserve, s->reserve_done), + delta_ns(s->submit, s->execute), + delta_ns(s->execute, s->wait_done), + delta_ns(s->wait, s->wait_done), + delta_ns(s->unreserve, s->unreserve_done)); + } +} + +// #define STEAL_LOOP_COUNT 100000000 +#define STEAL_LOOP_COUNT 10000 +static void test_worker_thread_steal_fn(void *arg) +{ + _Atomic(int) *p = arg; + int v, exp_v; + unsigned int i; + + /* atomically increase the counter STEAL_LOOP_COUNT times */ + for (i = 0; i < STEAL_LOOP_COUNT; i++) { + v = atomic_load(p); + for (;;) { + exp_v = v; + if (atomic_compare_exchange_strong(p, &exp_v, v + 1)) + break; + v = exp_v; + } + } +} + +void test_thread_join_steal(unsigned int num_threads) +{ + struct fy_thread_pool_cfg tp_cfg; + struct fy_thread_pool *tp; + void **args; + long scval; + unsigned int count, num_cpus; + int rc, test_count; + + (void)rc; + + if (num_threads == 0) { + scval = sysconf(_SC_NPROCESSORS_ONLN); + assert(scval > 0); + num_cpus = (unsigned int)scval; + } else + num_cpus = num_threads; + + + tp_cfg.flags = FYTPCF_STEAL_MODE; + tp_cfg.num_threads = num_cpus; + tp_cfg.userdata = NULL; + + fprintf(stderr, "calling: fy_thread_pool_create()\n"); + tp = fy_thread_pool_create(&tp_cfg); + assert(tp); + + count = tp->num_threads * 4; + args = alloca(count * sizeof(*args)); + + test_count = 0; + + fy_thread_arg_join(tp, test_worker_thread_steal_fn, NULL, &test_count, count); + + fprintf(stderr, "%s: test_count=%d\n", __func__, test_count); + if (test_count != (int)num_cpus * STEAL_LOOP_COUNT * 4) { + fprintf(stderr, "error: test_count=%d expected %d\n", test_count, (int)num_cpus * STEAL_LOOP_COUNT); + abort(); + } + + fprintf(stderr, "calling: fy_thread_pool_destroy()\n"); + fy_thread_pool_destroy(tp); +} + +struct sum_args { + struct fy_thread_pool *tp; + const uint8_t *values_start; + unsigned int count_start; + const uint8_t *values; + unsigned int count; + uint64_t sum; +}; + +static uint64_t calc_sum(const uint8_t *values, unsigned int count) +{ + unsigned int i; + uint64_t sum = 0; + + for (i = 0; i < count; i++) + sum += values[i]; + + return sum; +} + +static void test_worker_thread_sum_fn(void *arg) +{ + struct sum_args *s = arg; + struct sum_args args[2]; + uint64_t sum; + unsigned int pos; + + pos = s->values - s->values_start; + assert(pos <= s->count_start); + assert(pos + s->count <= s->count_start); + + (void)pos; + + // if (s->count <= (1 << 20) / 8) { + if (s->count <= 4096) { + // fprintf(stderr, "S<%06x-%06x>\n", pos, pos + s->count - 1); + sum = calc_sum(s->values, s->count); + } else { + memset(args, 0, sizeof(args)); + args[0].tp = args[1].tp = s->tp; + args[0].values_start = args[1].values_start = s->values_start; + args[0].count_start = args[1].count_start = s->count_start; + args[0].sum = args[1].sum = 0; + args[0].values = s->values; + args[0].count = s->count / 2; + args[1].values = s->values + args[0].count; + args[1].count = s->count - args[0].count; + + // fprintf(stderr, "M<%06x-%06x,%06x-%06x>\n", + // pos, + // pos + args[0].count - 1, + // pos + args[0].count, + // pos + args[0].count + args[1].count - 1); + + fy_thread_arg_array_join(s->tp, test_worker_thread_sum_fn, NULL, &args, sizeof(args[0]), sizeof(args)/sizeof(args[0])); + sum = args[0].sum + args[1].sum; + } + s->sum = sum; +} + +void test_thread_join_sum(unsigned int num_threads, unsigned int count, bool steal_mode, unsigned int times) +{ + struct fy_thread_pool_cfg tp_cfg; + struct fy_thread_pool *tp; + struct timespec before, after; + unsigned int i, num_cpus; + long scval; + uint8_t *values; + int rc; + uint64_t sum_single, sum_multi; + struct sum_args args[2]; + long long table_multi[times]; + long long ns; + + (void)rc; + + fprintf(stderr, "**********************************************************************\n"); + fprintf(stderr, "%s: steal_mode=%s\n", __func__, steal_mode ? "true" : "false"); + + values = malloc(count * sizeof(*values)); + assert(values); + + clock_gettime(CLOCK_MONOTONIC, &before); + for (i = 0; i < count; i++) + values[i] = (uint8_t)rand(); + + clock_gettime(CLOCK_MONOTONIC, &after); + fprintf(stderr, "%s: seeding done in %lldus\n", __func__, delta_ns(before, after) / 1000); + + clock_gettime(CLOCK_MONOTONIC, &before); + sum_single = calc_sum(values, count); + clock_gettime(CLOCK_MONOTONIC, &after); + ns = delta_ns(before, after); + fprintf(stderr, "%s: calculated sum=%"PRIu64" (single threaded) done in %lldus\n", __func__, sum_single, ns / 1000); + + if (num_threads == 0) { + scval = sysconf(_SC_NPROCESSORS_ONLN); + assert(scval > 0); + num_cpus = (unsigned int)scval; + } else + num_cpus = num_threads; + + memset(&tp_cfg, 0, sizeof(tp_cfg)); + tp_cfg.flags = steal_mode ? FYTPCF_STEAL_MODE : 0; + tp_cfg.num_threads = num_cpus; + tp_cfg.userdata = NULL; + + tp = fy_thread_pool_create(&tp_cfg); + assert(tp); + + fprintf(stderr, "%s: calculating (multi threaded) -", __func__); + for (i = 0; i < times; i++) { + clock_gettime(CLOCK_MONOTONIC, &before); + + memset(args, 0, sizeof(args)); + args[0].tp = args[1].tp = tp; + args[0].values_start = args[1].values_start = values; + args[0].count_start = args[1].count_start = count; + args[0].sum = args[1].sum = 0; + + args[0].values = values; + args[0].count = count / 2; + args[1].values = values + args[0].count; + args[1].count = count - args[0].count; + + // fprintf(stderr, "M<%06x-%06x,%06x-%06x>\n", + // 0, + // args[0].count - 1, + // args[0].count, + // args[0].count + args[1].count - 1); + + fy_thread_arg_array_join(tp, test_worker_thread_sum_fn, NULL, &args, sizeof(args[0]), sizeof(args)/sizeof(args[0])); + + sum_multi = args[0].sum + args[1].sum; + if (sum_multi != sum_single) { + fprintf(stderr, "\nFailed sum_multi %"PRIu64" should be %"PRIu64"\n", sum_multi, sum_single); + abort(); + } + + clock_gettime(CLOCK_MONOTONIC, &after); + ns = delta_ns(before, after); + fprintf(stderr, " %lldus", ns / 1000); + fflush(stderr); + table_multi[i] = ns; + } + ns = 0; + for (i = 0; i < times; i++) + ns += table_multi[i]; + ns /= times; + fprintf(stderr, " : average %lldus\n", ns / 1000); + + fy_thread_pool_destroy(tp); + + free(values); +} + +int thread_test(unsigned int num_threads) +{ +#if 0 + test_worker_threads(num_threads); + test_thread_join(num_threads); + test_thread_latency(num_threads); + test_thread_join_steal(num_threads); +#endif + test_thread_join_sum(num_threads, 1 << 20, false, 10); /* 1M of values */ + test_thread_join_sum(num_threads, 1 << 20, true, 10); /* 1M of values */ + + return 0; +} + +#define OPT_NUM_THREADS 128 + +static struct option lopts[] = { + {"num-threads", required_argument, 0, OPT_NUM_THREADS }, + {"help", no_argument, 0, 'h' }, + {0, 0, 0, 0 }, +}; + +static void display_usage(FILE *fp, const char *progname) +{ + const char *s; + + s = strrchr(progname, '/'); + if (s != NULL) + progname = s + 1; + + fprintf(fp, "Usage:\n\t%s [options]\n", progname); + fprintf(fp, "\noptions:\n"); + fprintf(fp, "\t--num-threads : Number of threads to use (default: number of CPUs * 3 / 2)\n"); + fprintf(fp, "\t--help, -h : Display help message\n"); + fprintf(fp, "\n"); +} + +int main(int argc, char *argv[]) +{ + int opt, lidx, rc; + unsigned int num_threads = 0; + int exitcode = EXIT_FAILURE, opti; + + while ((opt = getopt_long_only(argc, argv, "h", lopts, &lidx)) != -1) { + switch (opt) { + case OPT_NUM_THREADS: + opti = atoi(optarg); + if (opti < 0) { + fprintf(stderr, "Error: bad num_threads=%d (must be >= 0)\n\n", opti); + goto err_out_usage; + } + num_threads = (unsigned int)opti; + break; + case 'h' : + display_usage(stdout, argv[0]); + goto ok_out; + default: + goto err_out_usage; + } + } + + rc = thread_test(num_threads); + if (rc) { + fprintf(stderr, "Error: thread_test() failed\n"); + goto err_out; + } + +ok_out: + exitcode = EXIT_SUCCESS; + +out: + return exitcode; + +err_out_usage: + display_usage(stderr, argv[0]); +err_out: + exitcode = EXIT_FAILURE; + goto out; +} diff --git a/Sources/Cfyaml/src/internal/libfyaml-parser.c b/Sources/Cfyaml/src/internal/libfyaml-parser.c index a59c071dc..d24f03f87 100644 --- a/Sources/Cfyaml/src/internal/libfyaml-parser.c +++ b/Sources/Cfyaml/src/internal/libfyaml-parser.c @@ -18,6 +18,8 @@ #include #include #include +#include +#include #include @@ -27,6 +29,7 @@ #include "fy-parse.h" #include "fy-walk.h" +#include "fy-blob.h" #include "fy-valgrind.h" @@ -94,7 +97,7 @@ static struct option lopts[] = { #define LIBYAML_MODES "" #endif -#define MODES "parse|scan|copy|testsuite|dump|dump2|build|walk|reader|compose|iterate|comment|pathspec" LIBYAML_MODES +#define MODES "parse|scan|copy|testsuite|dump|dump2|build|walk|reader|compose|iterate|comment|pathspec|shell-split|parse-timing" LIBYAML_MODES static void display_usage(FILE *fp, char *progname) { @@ -2882,6 +2885,71 @@ int do_build(const struct fy_parse_cfg *cfg, int argc, char *argv[]) do_accel_test(cfg, argc, argv); #endif + struct fy_emitter_cfg ecfg; + struct fy_emitter* emit; + + memset(&ecfg, 0, sizeof(ecfg)); + // ecfg.flags = FYECF_MODE_BLOCK; + ecfg.flags = FYECF_MODE_MANUAL; + + emit = fy_emitter_create(&ecfg); + + // key: + // - a: 1 + + fy_emit_event(emit, fy_emit_event_create(emit, FYET_STREAM_START)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_DOCUMENT_START, false, NULL, NULL)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_MAPPING_START, FYNS_BLOCK, NULL, NULL)); + fy_emit_event(emit, + fy_emit_event_create(emit, FYET_SCALAR, FYSS_PLAIN, "key", FY_NT, NULL, NULL)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_SEQUENCE_START, FYNS_BLOCK, NULL, NULL)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_MAPPING_START, FYNS_BLOCK, NULL, NULL)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_SCALAR, FYSS_PLAIN, "a", FY_NT, NULL, NULL)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_SCALAR, FYSS_PLAIN, "1", FY_NT, NULL, NULL)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_MAPPING_END)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_SEQUENCE_END)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_MAPPING_END)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_DOCUMENT_END, true, NULL, NULL)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_STREAM_END)); + + fy_emitter_destroy(emit); + + emit = fy_emitter_create(&ecfg); + + fy_emit_event(emit, fy_emit_event_create(emit, FYET_STREAM_START)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_DOCUMENT_START, false, NULL, NULL)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_MAPPING_START, FYNS_FLOW, NULL, NULL)); + fy_emit_event(emit, + fy_emit_event_create(emit, FYET_SCALAR, FYSS_PLAIN, "key", FY_NT, NULL, NULL)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_SEQUENCE_START, FYNS_FLOW, NULL, NULL)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_MAPPING_START, FYNS_FLOW, NULL, NULL)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_SCALAR, FYSS_PLAIN, "a", FY_NT, NULL, NULL)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_SCALAR, FYSS_PLAIN, "1", FY_NT, NULL, NULL)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_MAPPING_END)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_SEQUENCE_END)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_MAPPING_END)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_DOCUMENT_END, true, NULL, NULL)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_STREAM_END)); + + fy_emitter_destroy(emit); + + emit = fy_emitter_create(&ecfg); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_STREAM_START)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_DOCUMENT_START, false, NULL, NULL)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_MAPPING_START, FYNS_BLOCK, NULL, NULL)); + fy_emit_event(emit, + fy_emit_event_create(emit, FYET_SCALAR, FYSS_PLAIN, "key", FY_NT, NULL, NULL)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_SEQUENCE_START, FYNS_BLOCK, NULL, NULL)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_MAPPING_START, FYNS_BLOCK, NULL, NULL)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_SCALAR, FYSS_PLAIN, "a", FY_NT, NULL, NULL)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_SCALAR, FYSS_PLAIN, "1", FY_NT, NULL, NULL)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_MAPPING_END)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_SEQUENCE_END)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_MAPPING_END)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_DOCUMENT_END, true, NULL, NULL)); + fy_emit_event(emit, fy_emit_event_create(emit, FYET_STREAM_END)); + fy_emitter_destroy(emit); + return 0; } @@ -3615,7 +3683,7 @@ int do_walk(struct fy_parser *fyp, const char *walkpath, const char *walkstart, struct fy_path_exec_cfg xcfg_local, *xcfg = &xcfg_local; char *path; unsigned int flags; - int rc, count; + int rc; flags = 0; if (sort) @@ -3651,7 +3719,6 @@ int do_walk(struct fy_parser *fyp, const char *walkpath, const char *walkstart, fypx = fy_path_exec_create(xcfg); assert(fypx); - count = 0; while ((fyd = fy_parse_load_document(fyp)) != NULL) { if (resolve) { @@ -3743,8 +3810,6 @@ int do_walk(struct fy_parser *fyp, const char *walkpath, const char *walkstart, fy_walk_result_free_rl(NULL, result); fy_parse_document_destroy(fyp, fyd); - - count++; } fy_path_exec_unref(fypx); @@ -3759,6 +3824,291 @@ int do_walk(struct fy_parser *fyp, const char *walkpath, const char *walkstart, return 0; } +int do_crash(const struct fy_parse_cfg *cfg, int argc, char *argv[]) +{ + struct fy_document *fyd = NULL; + struct fy_node *fyn = NULL; + // illegal> + char key[12] = {0x26, 0x2b, 0x74, 0x68, 0x65, 0x62, 0x65, 0x86, 0x6e, 0x67, 0x77, 0x00}; + int rc = -1; + + fyd = fy_document_build_from_string(cfg, "base: &base\n name: this-is-a-name\n", FY_NT); + if (!fyd) { + fprintf(stderr, "failed to build document"); + goto failed; + } + + fyn = fy_node_buildf(fyd, "abc"); + if (!fyn) { + fprintf(stderr, "failed to build a node"); + goto failed; + } + + rc = fy_document_insert_at(fyd, key, FY_NT, fyn); + fyn = NULL; + if (rc) { + fprintf(stderr, "failed to insert document\n"); + goto failed; + } + rc = fy_emit_document_to_fp(fyd, FYECF_DEFAULT | FYECF_SORT_KEYS, stdout); + if (rc) { + fprintf(stderr, "failed to emit document to stdout\n"); + goto failed; + } + + rc = 0; +failed: + fy_node_free(fyn); + fy_document_destroy(fyd); + return rc; +} + +int do_bad_utf8(const struct fy_parse_cfg *cfg, int argc, char *argv[]) +{ + // char key[12] = {0x26, 0x2b, 0x74, 0x68, 0x65, 0x62, 0x65, 0x86, 0x6e, 0x67, 0x77, 0x00}; + // char key[11] = {0x26, 0x2b, 0x74, 0x68, 0x65, 0x62, 0x65, 0x6e, 0x67, 0x77, 0x00}; + // char key[] = { + // 0x22, 0xCE, 0xA4, 0xCE, 0xB9, 0xCE, 0xBC, 0xCE, + // 0xAE, 0x20, 0xCE, 0xB5, 0xCE, 0xBB, 0xCE, 0xBB, + // 0xCE, 0xB7, 0xCE, 0xBD, 0xCE, 0xB9, 0xCE, 0xBA, + // 0xCE, 0xAE, 0x22, 0x0A, 0x00 + //}; + char key[] = { + 0x67, 0xe7, 0x67, 0x54, 0x67, 0x67, 0x67, 0x67, 0xe8, + 0x67, 0x4e, 0x64, 0x6a, 0x67, 0x67, 0xaa, 0x6b, 0x73, 0x00 + }; + int *fwd; + int *bwd; + const char *s; + const char *e; + int len, i, c, w, pos; + + len = strlen(key); + + fwd = alloca(sizeof(*fwd) * len); + bwd = alloca(sizeof(*bwd) * len); + + memset(fwd, 0, sizeof(*fwd) * len); + memset(bwd, 0, sizeof(*bwd) * len); + + s = key; + e = s + strlen(key); + + printf("forward utf8 check\n"); + pos = 0; + while (s < e) { + c = fy_utf8_get(s, e - s, &w); + if (c < 0) { + switch (c) { + case FYUG_EOF: + printf("EOF before end at pos %d\n", pos); + break; + case FYUG_INV: + printf("INV before end at pos %d\n", pos); + break; + case FYUG_PARTIAL: + printf("PARTIAL before end at pos %d\n", pos); + break; + default: + printf("UKNNOWN %d before end at pos %d\n", c, pos); + break; + } + break; + } + fwd[pos] = c; + s += w; + pos++; + } + printf("forward utf8 check complete (end pos %d)\n", pos); + + for (i = 0; i < pos; i++) + printf("0x%02x%s", fwd[i], i < (pos - 1) ? " " : "\n"); + + printf("backward utf8 check\n"); + pos = 0; + s = key; + while (s < e) { + c = fy_utf8_get_right(s, e - s, &w); + if (c < 0) { + switch (c) { + case FYUG_EOF: + printf("EOF before end at pos %d\n", pos); + break; + case FYUG_INV: + printf("INV before end at pos %d\n", pos); + break; + case FYUG_PARTIAL: + printf("PARTIAL before end at pos %d\n", pos); + break; + default: + printf("UKNNOWN %d before end at pos %d\n", c, pos); + break; + } + break; + } + bwd[pos] = c; + e -= w; + pos++; + } + printf("backward utf8 check complete (end pos %d)\n", pos); + + for (i = pos - 1; i >= 0; i--) + printf("0x%02x%s", bwd[i], i > 0 ? " " : "\n"); + + return 0; +} + +int do_shell_split(int in_argc, char *in_argv[]) +{ + char buf[256], line[256 + 1]; + char *s, *e; + const char * const *argv; + int i, argc; + void *mem; + + printf("shell split; Ctrl-D to exit\n"); + buf[sizeof(buf)-1] = '\0'; + while (fgets(buf, sizeof(buf) - 1, stdin)) { + buf[sizeof(buf)-1] = '\0'; + strcpy(line, buf); + s = line; + e = s + strlen(line); + while (e > s && e[-1] == '\n') + *--e = '\0'; + + printf("input: '%s'\n", line); + + mem = fy_utf8_split_posix(line, &argc, &argv); + if (!mem) { + fprintf(stderr, "Bad input '%s'\n", line); + } else { + for (i = 0; i < argc; i++) { + fprintf(stderr, "%d: %s\n", i, argv[i]); + } + assert(argv[argc] == NULL); + free(mem); + } + } + return 0; +} + +int do_parse_timing(int argc, char *argv[], bool disable_mmap) +{ + void *blob; + size_t blob_size; + int i, c, w; + struct timespec before, after; + int64_t ns; + const uint8_t *s, *e, *ss; + size_t count; + struct fy_utf8_result res; + +#undef BEFORE +#define BEFORE() \ + do { \ + clock_gettime(CLOCK_MONOTONIC, &before); \ + } while(0) + +#undef AFTER +#define AFTER() \ + ({ \ + clock_gettime(CLOCK_MONOTONIC, &after); \ + (int64_t)(after.tv_sec - before.tv_sec) * (int64_t)1000000000UL + (int64_t)(after.tv_nsec - before.tv_nsec); \ + }) + + for (i = optind; i < argc; i++) { + + printf("file=%s\n", argv[i]); + + BEFORE(); + blob = fy_blob_read(argv[i], &blob_size); + assert(blob); + ns = AFTER(); + + printf("read %zu bytes in %"PRId64"ns\n", blob_size, ns); + + BEFORE(); + s = blob; + e = s + blob_size; + count = 0; + while (s < e) { + if (*s++ == 'e') + count++; + } + ns = AFTER(); + printf("%zu 'e' chars method 1 in %"PRId64"ns\n", count, ns); + + BEFORE(); + s = blob; + e = s + blob_size; + count = 0; + while ((ss = memchr(s, 'e', e - s)) != NULL) { + count++; + s = ss + 1; + } + ns = AFTER(); + printf("%zu 'e' chars method 2 in %"PRId64"ns\n", count, ns); + + BEFORE(); + s = blob; + e = s + blob_size; + count = 0; + while ((c = fy_utf8_get(s, e - s, &w)) >= 0) { + if (c == 'e') + count++; + s += w; + } + ns = AFTER(); + printf("%zu 'e' utf8 characters using method 1 in %"PRId64"ns\n", count, ns); + + BEFORE(); + s = blob; + e = s + blob_size; + count = 0; + while ((c = fy_utf8_get_s(s, e, &w)) >= 0) { + if (c == 'e') + count++; + s += w; + } + ns = AFTER(); + printf("%zu 'e' utf8 characters using method 2 in %"PRId64"ns\n", count, ns); + + BEFORE(); + s = blob; + e = s + blob_size - FY_UTF8_MAX_WIDTH; + count = 0; + while (s < e && (c = fy_utf8_get_s_nocheck(s, &w)) >= 0) { + if (c == 'e') + count++; + s += w; + } + while ((c = fy_utf8_get_s(s, e, &w)) >= 0) { + if (c == 'e') + count++; + s += w; + } + ns = AFTER(); + printf("%zu 'e' utf8 characters using method 3 in %"PRId64"ns\n", count, ns); + + BEFORE(); + s = blob; + e = s + blob_size; + count = 0; + while ((res = fy_utf8_get_s_res(s, e)).c >= 0) { + if (res.c == 'e') + count++; + s += res.w; + } + ns = AFTER(); + printf("%zu 'e' utf8 characters using method 4 in %"PRId64"ns\n", count, ns); + + free(blob); + + } + + return 0; +} + int apply_flags_option(const char *arg, unsigned int *flagsp, int (*modify_flags)(const char *what, unsigned int *flagsp)) { @@ -3950,7 +4300,11 @@ int main(int argc, char *argv[]) strcmp(mode, "iterate") && strcmp(mode, "comment") && strcmp(mode, "pathspec") && - strcmp(mode, "bypath") + strcmp(mode, "bypath") && + strcmp(mode, "crash") && + strcmp(mode, "badutf8") && + strcmp(mode, "shell-split") && + strcmp(mode, "parse-timing") #if defined(HAVE_LIBYAML) && HAVE_LIBYAML && strcmp(mode, "libyaml-scan") && strcmp(mode, "libyaml-parse") @@ -4044,6 +4398,15 @@ int main(int argc, char *argv[]) return !rc ? EXIT_SUCCESS : EXIT_FAILURE; } + if (!strcmp(mode, "crash")) { + rc = do_crash(&cfg, argc - optind, argv + optind); + return !rc ? EXIT_SUCCESS : EXIT_FAILURE; + } + if (!strcmp(mode, "badutf8")) { + rc = do_bad_utf8(&cfg, argc - optind, argv + optind); + return !rc ? EXIT_SUCCESS : EXIT_FAILURE; + } + if (!strcmp(mode, "pathspec")) { rc = do_pathspec(argc - optind, argv + optind); return !rc ? EXIT_SUCCESS : EXIT_FAILURE; @@ -4191,6 +4554,18 @@ int main(int argc, char *argv[]) /* fprintf(stderr, "do_bypath() error %d\n", rc); */ goto cleanup; } + } else if (!strcmp(mode, "shell-split")) { + rc = do_shell_split(argc, argv); + if (rc < 0) { + /* fprintf(stderr, "do_shell_split() error %d\n", rc); */ + goto cleanup; + } + } else if (!strcmp(mode, "parse-timing")) { + rc = do_parse_timing(argc, argv, !!(cfg.flags & FYPCF_DISABLE_MMAP_OPT)); + if (rc < 0) { + /* fprintf(stderr, "do_parse_timing() error %d\n", rc); */ + goto cleanup; + } } #if defined(HAVE_LIBYAML) && HAVE_LIBYAML if (!strcmp(mode, "libyaml-diff")) { diff --git a/Sources/Cfyaml/src/lib/fy-atom.c b/Sources/Cfyaml/src/lib/fy-atom.c index d6e608655..e0b08cfad 100644 --- a/Sources/Cfyaml/src/lib/fy-atom.c +++ b/Sources/Cfyaml/src/lib/fy-atom.c @@ -17,7 +17,6 @@ #include #include #include -#include #include #include @@ -1346,10 +1345,13 @@ int fy_atom_iter_getc(struct fy_atom_iter *iter) return -1; /* first try the pushed ungetc */ - if (iter->unget_c != -1) { + if (iter->unget_c >= 0) { c = iter->unget_c; + /* unmatched getc/ungetc */ + if (fy_utf8_width(c) != 1) + return -1; iter->unget_c = -1; - return c & 0xff; + return c; } /* read first octet */ @@ -1362,17 +1364,17 @@ int fy_atom_iter_getc(struct fy_atom_iter *iter) int fy_atom_iter_ungetc(struct fy_atom_iter *iter, int c) { - if (!iter) + if (!iter || c >= 0x80) return -1; - if (iter->unget_c != -1) + if (iter->unget_c >= 0) return -1; - if (c == -1) { + if (c < 0) { iter->unget_c = -1; return 0; } - iter->unget_c = c & 0xff; - return c & 0xff; + iter->unget_c = c; + return c; } int fy_atom_iter_peekc(struct fy_atom_iter *iter) @@ -1396,10 +1398,10 @@ int fy_atom_iter_utf8_get(struct fy_atom_iter *iter) return -1; /* first try the pushed ungetc */ - if (iter->unget_c != -1) { + if (iter->unget_c >= 0) { c = iter->unget_c; iter->unget_c = -1; - return c & 0xff; + return c; } /* read first octet */ @@ -1432,11 +1434,11 @@ int fy_atom_iter_utf8_quoted_get(struct fy_atom_iter *iter, size_t *lenp, uint8_ return -1; /* first try the pushed ungetc */ - if (iter->unget_c != -1) { + if (iter->unget_c >= 0) { c = iter->unget_c; iter->unget_c = -1; *lenp = 0; - return c & 0xff; + return c; } /* read first octet */ @@ -1473,12 +1475,17 @@ int fy_atom_iter_utf8_quoted_get(struct fy_atom_iter *iter, size_t *lenp, uint8_ int fy_atom_iter_utf8_unget(struct fy_atom_iter *iter, int c) { - if (iter->unget_c != -1) + if (!iter) return -1; - if (c == -1) { + + if (iter->unget_c >= 0) + return -1; + if (c < 0) { iter->unget_c = -1; return 0; } + if (!fy_utf8_is_valid(c)) + return -1; iter->unget_c = c; return c; } @@ -1568,79 +1575,84 @@ bool fy_atom_is_number(struct fy_atom *atom) fy_atom_iter_start(atom, &iter); /* skip minus sign if it's there */ - c = fy_atom_iter_peekc(&iter); + c = fy_atom_iter_utf8_peek(&iter); if (c == '-') { - (void)fy_atom_iter_getc(&iter); + (void)fy_atom_iter_utf8_get(&iter); len++; } /* skip digits */ first_zero = false; dec = 0; - while ((c = fy_atom_iter_peekc(&iter)) >= 0 && isdigit(c)) { + while ((c = fy_atom_iter_utf8_peek(&iter)) >= 0 && fy_is_digit(c)) { if (dec == 0 && c == '0') first_zero = true; else if (dec == 1 && first_zero) - return false; /* 0[0-9] is bad */ - (void)fy_atom_iter_getc(&iter); + goto err_out; /* 0[0-9] is bad */ + (void)fy_atom_iter_utf8_get(&iter); dec++; len++; } /* no digits is bad */ if (!dec) - return false; + goto err_out; fract = 0; /* dot? */ - c = fy_atom_iter_peekc(&iter); + c = fy_atom_iter_utf8_peek(&iter); if (c == '.') { - (void)fy_atom_iter_getc(&iter); + (void)fy_atom_iter_utf8_get(&iter); len++; /* skip decimal part */ - while ((c = fy_atom_iter_peekc(&iter)) >= 0 && isdigit(c)) { - (void)fy_atom_iter_getc(&iter); + while ((c = fy_atom_iter_utf8_peek(&iter)) >= 0 && fy_is_digit(c)) { + (void)fy_atom_iter_utf8_get(&iter); len++; fract++; } /* . without fractional */ if (!fract) - return false; + goto err_out; } enot = 0; /* scientific notation */ - c = fy_atom_iter_peekc(&iter); + c = fy_atom_iter_utf8_peek(&iter); if (c == 'e' || c == 'E') { - (void)fy_atom_iter_getc(&iter); + (void)fy_atom_iter_utf8_get(&iter); len++; /* skip sign if it's there */ - c = fy_atom_iter_peekc(&iter); + c = fy_atom_iter_utf8_peek(&iter); if (c == '+' || c == '-') { - (void)fy_atom_iter_getc(&iter); + (void)fy_atom_iter_utf8_get(&iter); len++; } /* skip exponent part */ - while ((c = fy_atom_iter_peekc(&iter)) >= 0 && isdigit(c)) { - (void)fy_atom_iter_getc(&iter); + while ((c = fy_atom_iter_utf8_peek(&iter)) >= 0 && fy_is_digit(c)) { + (void)fy_atom_iter_utf8_get(&iter); len++; enot++; } if (!enot) - return false; + goto err_out; } - c = fy_atom_iter_peekc(&iter); + c = fy_atom_iter_utf8_peek(&iter); fy_atom_iter_finish(&iter); /* everything must be consumed (and something must) */ return c < 0 && len > 0; + +err_out: + fy_atom_iter_finish(&iter); + + return false; } int fy_atom_cmp(struct fy_atom *atom1, struct fy_atom *atom2) @@ -1730,7 +1742,7 @@ fy_atom_raw_line_iter_next(struct fy_atom_raw_line_iter *iter) return NULL; while (s > iter->is) { - c = fy_utf8_get_right(iter->is, (int)(s - iter->is), &w); + c = fy_utf8_get_right(iter->is, (size_t)(s - iter->is), &w); if (c <= 0 || fy_is_lb_m(c, iter->atom->lb_mode)) break; s -= w; @@ -1744,7 +1756,7 @@ fy_atom_raw_line_iter_next(struct fy_atom_raw_line_iter *iter) /* track until the start of the content */ while (s < iter->as) { - c = fy_utf8_get(s, (int)(iter->ae - s), &w); + c = fy_utf8_get(s, (size_t)(iter->ae - s), &w); /* we should never hit that */ if (c <= 0) return NULL; @@ -1771,7 +1783,7 @@ fy_atom_raw_line_iter_next(struct fy_atom_raw_line_iter *iter) /* track until the end of the content (or lb) */ while (s < iter->ae) { - c = fy_utf8_get(s, (int)(iter->ae - s), &w); + c = fy_utf8_get(s, (size_t)(iter->ae - s), &w); /* we should never hit that */ if (c <= 0) return NULL; @@ -1799,7 +1811,7 @@ fy_atom_raw_line_iter_next(struct fy_atom_raw_line_iter *iter) /* if the stop was due to end of the atom */ if (s >= iter->ae) { while (s < iter->ie) { - c = fy_utf8_get(s, (int)(iter->ie - s), &w); + c = fy_utf8_get(s, (size_t)(iter->ie - s), &w); /* just end of input */ if (c <= 0) break; diff --git a/Sources/Cfyaml/src/lib/fy-atom.h b/Sources/Cfyaml/src/lib/fy-atom.h index 9041f21e9..10ff7b77c 100644 --- a/Sources/Cfyaml/src/lib/fy-atom.h +++ b/Sources/Cfyaml/src/lib/fy-atom.h @@ -85,6 +85,7 @@ struct fy_atom { bool valid_anchor : 1; /* atom is a valid anchor */ bool json_mode : 1; /* atom was read in json mode */ bool ends_with_eof : 1; /* atom ends at EOF of input */ + bool is_merge_key: 1; /* atom is just << */ }; }; }; @@ -116,6 +117,11 @@ static inline enum fy_lb_mode fy_atom_lb_mode(struct fy_atom *handle) return handle->lb_mode; } +static inline bool fy_atom_is_merge_key(struct fy_atom *handle) +{ + return handle && handle->is_merge_key; +} + static inline enum fy_flow_ws_mode fy_atom_flow_ws_mode(struct fy_atom *handle) { if (!handle) @@ -180,6 +186,13 @@ fy_reader_fill_atom_end(struct fy_reader *fyr, struct fy_atom *handle) fy_reader_fill_atom_end_at(fyr, handle, NULL); } +static inline void +fy_atom_reset_storage_hints(struct fy_atom *handle) +{ + handle->storage_hint = 0; + handle->storage_hint_valid = false; +} + struct fy_atom *fy_reader_fill_atom(struct fy_reader *fyr, int advance, struct fy_atom *handle); struct fy_atom *fy_reader_fill_atom_mark(struct fy_reader *fyr, const struct fy_mark *start_mark, const struct fy_mark *end_mark, struct fy_atom *handle); diff --git a/Sources/Cfyaml/src/lib/fy-composer.c b/Sources/Cfyaml/src/lib/fy-composer.c index 3e1901795..9bdfbfb0f 100644 --- a/Sources/Cfyaml/src/lib/fy-composer.c +++ b/Sources/Cfyaml/src/lib/fy-composer.c @@ -313,6 +313,37 @@ fy_composer_process_event_private(struct fy_composer *fyc, struct fy_event *fye, return FYCR_ERROR; } +static void +fy_composer_halt(struct fy_composer *fyc, struct fy_path *fypp, enum fy_composer_return rc) +{ + const struct fy_composer_ops *ops; + struct fy_eventp ev_none; + struct fy_path_component *fypc; + + /* for normal stop, we don't teardown */ + if (rc == FYCR_OK_STOP) + return; + + ops = fyc->cfg.ops; + assert(ops); + + memset(&ev_none, 0, sizeof(ev_none)); + ev_none.e.type = FYET_NONE; + + /* pump FYET_NONEs to clean the stack */ + + while ((fypc = fy_path_component_list_tail(&fypp->components)) != NULL) { + + ops->process_event(fyc, fypp, &ev_none.e); + + fy_path_component_list_del(&fypp->components, fypc); + fy_path_component_free(fypc); + } + + /* and the final one to clean the root */ + ops->process_event(fyc, fypp, &ev_none.e); +} + enum fy_composer_return fy_composer_process_event(struct fy_composer *fyc, struct fy_event *fye) { @@ -331,6 +362,9 @@ fy_composer_process_event(struct fy_composer *fyc, struct fy_event *fye) rc = fy_composer_process_event_private(fyc, fye, fypp); + if (rc == FYCR_ERROR || rc == FYCR_OK_STOP) + fy_composer_halt(fyc, fypp, rc); + return rc; } diff --git a/Sources/Cfyaml/src/lib/fy-diag.c b/Sources/Cfyaml/src/lib/fy-diag.c index a8fc935e7..e30003f54 100644 --- a/Sources/Cfyaml/src/lib/fy-diag.c +++ b/Sources/Cfyaml/src/lib/fy-diag.c @@ -17,7 +17,6 @@ #include #include #include -#include #include #include @@ -581,7 +580,7 @@ void fy_diag_error_atom_display(struct fy_diag *diag, enum fy_error_type type, s struct fy_raw_line l_tmp; struct fy_atom_raw_line_iter iter; int content_start_col, content_end_col, content_width; - int pass, cols, min_col, max_col, total_lines, max_line_count, max_line_col8, max_width; + int pass, cols, min_col, max_col, max_line_count, max_line_col8, max_width; int start_col, end_col; const char *color_start, *color_end, *white; bool first_line, last_line; @@ -609,7 +608,6 @@ void fy_diag_error_atom_display(struct fy_diag *diag, enum fy_error_type type, s max_col = -1; max_line_count = -1; max_line_col8 = -1; - total_lines = 0; line_shift = -1; for (pass = 0; pass < 2; pass++) { @@ -643,7 +641,7 @@ void fy_diag_error_atom_display(struct fy_diag *diag, enum fy_error_type type, s rbe = rowbuf + rowbufsz; /* if the maximum column number is less than the terminal - * width everything fits, and we're fine */ + * width everything fits, and we're fine */ if (max_line_col8 < cols) { line_shift = 0; } else { @@ -690,8 +688,6 @@ void fy_diag_error_atom_display(struct fy_diag *diag, enum fy_error_type type, s if (pass == 0) { - total_lines++; - if (min_col < 0 || content_start_col < min_col) min_col = content_start_col; if (max_col < 0 || content_end_col > max_col) @@ -780,6 +776,8 @@ void fy_diag_error_atom_display(struct fy_diag *diag, enum fy_error_type type, s tilde_width = content_width; if (tilde_start + tilde_width > cols) tilde_width = cols - tilde_start; + if ((size_t)tilde_width >= rowbufsz) + tilde_width = rowbufsz - 1; /* guard */ tilde_width_m1 = tilde_width > 0 ? (tilde_width - 1) : 0; /* output the line */ @@ -1245,6 +1243,75 @@ void fy_reader_diag_report(struct fy_reader *fyr, va_end(ap); } +void fy_diag_token_vreport(struct fy_diag *diag, struct fy_token *fyt, + enum fy_error_type type, const char *fmt, va_list ap) +{ + struct fy_diag_report_ctx drc; + bool save_on_error; + + if (!fyt || !diag) + return; + + save_on_error = diag->on_error; + diag->on_error = false; + + memset(&drc, 0, sizeof(drc)); + drc.type = type; + drc.module = FYEM_UNKNOWN; + drc.fyt = fyt; + fy_diag_vreport(diag, &drc, fmt, ap); + + diag->on_error = save_on_error; +} + +void fy_diag_token_report(struct fy_diag *diag, struct fy_token *fyt, + enum fy_error_type type, const char *fmt, ...) +{ + va_list ap; + + va_start(ap, fmt); + fy_diag_token_vreport(diag, fyt, type, fmt, ap); + va_end(ap); +} + +void fy_diag_token_override_vreport(struct fy_diag *diag, struct fy_token *fyt, + enum fy_error_type type, const char *file, + int line, int column, + const char *fmt, va_list ap) +{ + struct fy_diag_report_ctx drc; + bool save_on_error; + + if (!fyt || !diag) + return; + + save_on_error = diag->on_error; + diag->on_error = false; + + memset(&drc, 0, sizeof(drc)); + drc.type = type; + drc.module = FYEM_UNKNOWN; + drc.fyt = fyt; + drc.has_override = true; + drc.override_file = file; + drc.override_line = line; + drc.override_column = column; + fy_diag_vreport(diag, &drc, fmt, ap); + + diag->on_error = save_on_error; +} + +void fy_diag_token_override_report(struct fy_diag *diag, struct fy_token *fyt, + enum fy_error_type type, const char *file, + int line, int column, const char *fmt, ...) +{ + va_list ap; + + va_start(ap, fmt); + fy_diag_token_override_vreport(diag, fyt, type, file, line, column, fmt, ap); + va_end(ap); +} + void fy_diag_node_vreport(struct fy_diag *diag, struct fy_node *fyn, enum fy_error_type type, const char *fmt, va_list ap) { @@ -1354,3 +1421,59 @@ void fy_node_override_report(struct fy_node *fyn, enum fy_error_type type, fy_node_override_vreport(fyn, type, file, line, column, fmt, ap); va_end(ap); } + +void fy_parser_vlog(struct fy_parser *fyp, enum fy_error_type type, + const char *fmt, va_list ap) +{ + struct fy_diag_ctx ctx = { + .level = type, + .module = FYEM_UNKNOWN, + .source_func = "", + .source_file = "", + .source_line = 0, + .file = NULL, + .line = 0, + .column = 0, + }; + + if (!fyp || !fyp->diag) + return; + + (void)fy_vdiag(fyp->diag, &ctx, fmt, ap); +} + +void fy_parser_log(struct fy_parser *fyp, enum fy_error_type type, + const char *fmt, ...) +{ + va_list ap; + + va_start(ap, fmt); + fy_parser_vlog(fyp, type, fmt, ap); + va_end(ap); +} + +void fy_parser_vreport(struct fy_parser *fyp, enum fy_error_type type, + struct fy_token *fyt, const char *fmt, va_list ap) +{ + struct fy_diag_report_ctx fydrc_local, *fydrc = &fydrc_local; + + if (!fyp || !fyp->diag || !fyt) + return; + + memset(fydrc, 0, sizeof(*fydrc)); + fydrc->type = type; + fydrc->module = FYEM_UNKNOWN; + fydrc->fyt = fy_token_ref(fyt); + + fy_parser_diag_vreport(fyp, fydrc, fmt, ap); +} + +void fy_parser_report(struct fy_parser *fyp, enum fy_error_type type, + struct fy_token *fyt, const char *fmt, ...) +{ + va_list ap; + + va_start(ap, fmt); + fy_parser_vreport(fyp, type, fyt, fmt, ap); + va_end(ap); +} diff --git a/Sources/Cfyaml/src/lib/fy-diag.h b/Sources/Cfyaml/src/lib/fy-diag.h index f19861db0..62b654753 100644 --- a/Sources/Cfyaml/src/lib/fy-diag.h +++ b/Sources/Cfyaml/src/lib/fy-diag.h @@ -103,11 +103,14 @@ void fy_diag_report(struct fy_diag *diag, #ifdef FY_DEVMODE #define __FY_DEBUG_UNUSED__ /* nothing */ #else +#if defined(__GNUC__) && __GNUC__ >= 4 #define __FY_DEBUG_UNUSED__ __attribute__((__unused__)) +#else +#define __FY_DEBUG_UNUSED__ /* nothing */ +#endif #endif /* parser diagnostics */ - struct fy_parser; void fy_diag_cfg_from_parser_flags(struct fy_diag_cfg *cfg, enum fy_parse_cfg_flags pflags); diff --git a/Sources/Cfyaml/src/lib/fy-doc.c b/Sources/Cfyaml/src/lib/fy-doc.c index 359ea92df..5b3a94298 100644 --- a/Sources/Cfyaml/src/lib/fy-doc.c +++ b/Sources/Cfyaml/src/lib/fy-doc.c @@ -16,6 +16,7 @@ #include #include #include +#include #include @@ -339,9 +340,6 @@ struct fy_node *fy_node_get_nearest_child_of(struct fy_node *fyn_base, void fy_parse_document_destroy(struct fy_parser *fyp, struct fy_document *fyd) { struct fy_node *fyn; - struct fy_anchor *fya; - struct fy_anchor *fyan; - struct fy_accel_entry *xle; if (!fyd) return; @@ -352,29 +350,7 @@ void fy_parse_document_destroy(struct fy_parser *fyp, struct fy_document *fyd) fyd->root = NULL; fy_node_detach_and_free(fyn); - /* remove all anchors */ - for (fya = fy_anchor_list_head(&fyd->anchors); fya; fya = fyan) { - fyan = fy_anchor_next(&fyd->anchors, fya); - fy_anchor_list_del(&fyd->anchors, fya); - - if (fy_document_is_accelerated(fyd)) { - xle = fy_accel_entry_lookup_key_value(fyd->axl, fya->anchor, fya); - fy_accel_entry_remove(fyd->axl, xle); - - xle = fy_accel_entry_lookup_key_value(fyd->naxl, fya->fyn, fya); - fy_accel_entry_remove(fyd->naxl, xle); - } - - fy_anchor_destroy(fya); - } - - if (fy_document_is_accelerated(fyd)) { - fy_accel_cleanup(fyd->axl); - free(fyd->axl); - - fy_accel_cleanup(fyd->naxl); - free(fyd->naxl); - } + fy_document_purge_anchors(fyd); fy_document_state_unref(fyd->fyds); @@ -2933,9 +2909,40 @@ static void fy_resolve_parent_node(struct fy_document *fyd, struct fy_node *fyn, } } -typedef void (*fy_node_applyf)(struct fy_node *fyn); +void fy_document_purge_anchors(struct fy_document *fyd) +{ + struct fy_anchor *fya; + struct fy_anchor *fyan; + struct fy_accel_entry *xle; + + /* remove all anchors */ + for (fya = fy_anchor_list_head(&fyd->anchors); fya; fya = fyan) { + fyan = fy_anchor_next(&fyd->anchors, fya); + fy_anchor_list_del(&fyd->anchors, fya); + + if (fy_document_is_accelerated(fyd)) { + xle = fy_accel_entry_lookup_key_value(fyd->axl, fya->anchor, fya); + fy_accel_entry_remove(fyd->axl, xle); + + xle = fy_accel_entry_lookup_key_value(fyd->naxl, fya->fyn, fya); + fy_accel_entry_remove(fyd->naxl, xle); + } + + fy_anchor_destroy(fya); + } + + if (fy_document_is_accelerated(fyd)) { + fy_accel_cleanup(fyd->axl); + free(fyd->axl); + + fy_accel_cleanup(fyd->naxl); + free(fyd->naxl); + } +} + +typedef void (*fy_node_applyf)(struct fy_node *fyn, void *user); -void fy_node_apply(struct fy_node *fyn, fy_node_applyf func) +void fy_node_apply(struct fy_node *fyn, fy_node_applyf func, void *user) { struct fy_node *fyni; struct fy_node_pair *fynp; @@ -2943,7 +2950,7 @@ void fy_node_apply(struct fy_node *fyn, fy_node_applyf func) if (!fyn || !func) return; - (*func)(fyn); + (*func)(fyn, user); switch (fyn->type) { case FYNT_SCALAR: @@ -2952,21 +2959,21 @@ void fy_node_apply(struct fy_node *fyn, fy_node_applyf func) case FYNT_SEQUENCE: for (fyni = fy_node_list_head(&fyn->sequence); fyni; fyni = fy_node_next(&fyn->sequence, fyni)) - fy_node_apply(fyni, func); + fy_node_apply(fyni, func, user); break; case FYNT_MAPPING: for (fynp = fy_node_pair_list_head(&fyn->mapping); fynp; fynp = fy_node_pair_next(&fyn->mapping, fynp)) { - fy_node_apply(fynp->key, func); - fy_node_apply(fynp->value, func); + fy_node_apply(fynp->key, func, user); + fy_node_apply(fynp->value, func, user); } break; } } -static void clear_system_marks(struct fy_node *fyn) +static void clear_system_marks(struct fy_node *fyn, void *user) { fyn->marks &= ~FYNWF_SYSTEM_MARKS; } @@ -2974,36 +2981,66 @@ static void clear_system_marks(struct fy_node *fyn) /* clear all the system markers */ void fy_node_clear_system_marks(struct fy_node *fyn) { - fy_node_apply(fyn, clear_system_marks); + fy_node_apply(fyn, clear_system_marks, NULL); +} + +static void count_aliases(struct fy_node *fyn, void *user) +{ + int *countp = user; + + if (fyn->style == FYNS_ALIAS) + (*countp)++; +} + +int fy_node_count_aliases(struct fy_node *fyn) +{ + int count; + + count = 0; + + fy_node_apply(fyn, count_aliases, &count); + + return count; } int fy_document_resolve(struct fy_document *fyd) { - int rc; + int rc, num_aliases, num_aliases_prev; bool ret; if (!fyd) return 0; - fy_node_clear_system_marks(fyd->root); + num_aliases_prev = INT_MAX; + do { + fy_node_clear_system_marks(fyd->root); - /* for resolution to work, no reference loops should exist */ - ret = fy_check_ref_loop(fyd, fyd->root, - FYNWF_MAXDEPTH_DEFAULT | FYNWF_FOLLOW, NULL); + /* for resolution to work, no reference loops should exist */ + ret = fy_check_ref_loop(fyd, fyd->root, + FYNWF_MAXDEPTH_DEFAULT | FYNWF_FOLLOW, NULL); - fy_node_clear_system_marks(fyd->root); + fy_node_clear_system_marks(fyd->root); - if (ret) - goto err_out; + if (ret) + goto err_out; + /* now resolve any anchor nodes */ + rc = fy_resolve_anchor_node(fyd, fyd->root); + if (rc) + goto err_out_rc; - /* now resolve any anchor nodes */ - rc = fy_resolve_anchor_node(fyd, fyd->root); - if (rc) - goto err_out_rc; + /* redo parent resolution */ + fy_resolve_parent_node(fyd, fyd->root, NULL); - /* redo parent resolution */ - fy_resolve_parent_node(fyd, fyd->root, NULL); + /* count the remaining aliases */ + num_aliases = fy_node_count_aliases(fyd->root); + if (num_aliases == num_aliases_prev) + goto err_out; + + } while (num_aliases > 0); + + /* remove all anchors after resolution */ + fy_document_purge_anchors(fyd); return 0; @@ -3343,6 +3380,44 @@ enum fy_node_style fy_node_get_style(struct fy_node *fyn) return fyn ? fyn->style : FYNS_PLAIN; } +struct fy_token *fy_node_get_start_token(struct fy_node *fyn) +{ + if (!fyn) + return NULL; + + switch (fyn->type) { + case FYNT_MAPPING: + return fyn->mapping_start; + case FYNT_SEQUENCE: + return fyn->sequence_start; + case FYNT_SCALAR: + return fyn->scalar; + default: + /* should not happen, but play it safe */ + break; + } + return NULL; +} + +struct fy_token *fy_node_get_end_token(struct fy_node *fyn) +{ + if (!fyn) + return NULL; + + switch (fyn->type) { + case FYNT_MAPPING: + return fyn->mapping_end; + case FYNT_SEQUENCE: + return fyn->sequence_end; + case FYNT_SCALAR: + return fyn->scalar; + default: + /* should not happen, but play it safe */ + break; + } + return NULL; +} + bool fy_node_is_null(struct fy_node *fyn) { if (!fyn) @@ -3351,7 +3426,7 @@ bool fy_node_is_null(struct fy_node *fyn) if (fyn->type != FYNT_SCALAR) return false; - return fyn->scalar == NULL; + return fyn->scalar == NULL || fyn->scalar->scalar.is_null; } bool fy_node_is_attached(struct fy_node *fyn) @@ -4070,9 +4145,10 @@ fy_node_by_path_internal(struct fy_node *fyn, __func__, __LINE__, fy_node_get_path(fyn), (int)(e - s), s); */ fyn = fy_node_follow_aliases(fyn, flags, true); - /* scalar can't match (it has no key) */ + /* scalar can be only last element in the path (it has no key) */ if (fy_node_is_scalar(fyn)) { - fyn = NULL; + if (*s) + fyn = NULL; /* not end of the path - fail */ goto out; } @@ -4338,26 +4414,41 @@ struct fy_node *fy_node_by_path(struct fy_node *fyn, const char *path, size_t len, enum fy_node_walk_flags flags) { + struct fy_document *fyd; struct fy_anchor *fya; const char *s, *e, *t, *anchor; size_t alen; char c; - int idx; + int idx, w; char *end_idx; if (!fyn || !path) return NULL; - /* if it's a YPATH, just punt to that method */ - if ((flags & FYNWF_PTR(FYNWF_PTR_MASK)) == FYNWF_PTR_YPATH) - return fy_node_by_ypath(fyn, path, len); - - s = path; if (len == (size_t)-1) len = strlen(path); + /* verify that the path string is well formed UTF8 */ + s = path; e = s + len; + fyd = fyn->fyd; + while (s < e) { + c = fy_utf8_get(s, e - s, &w); + if (c < 0) { + fyd_error(fyd, "fy_node_by_path() malformed path string\n"); + return NULL; + } + s += w; + } + + /* rewind */ + s = path; + + /* if it's a YPATH, just punt to that method */ + if ((flags & FYNWF_PTR(FYNWF_PTR_MASK)) == FYNWF_PTR_YPATH) + return fy_node_by_ypath(fyn, path, len); + /* fyd_notice(fyn->fyd, "%s: %.*s", __func__, (int)(len), s); */ /* first path component may be an alias */ @@ -5306,6 +5397,17 @@ int fy_node_set_tag(struct fy_node *fyn, const char *data, size_t len) return -1; } +int fy_node_remove_tag(struct fy_node *fyn) +{ + if (!fyn || !fyn->tag) + return -1; + + fy_token_unref(fyn->tag); + fyn->tag = NULL; + + return 0; +} + struct fy_node *fy_node_create_sequence(struct fy_document *fyd) { struct fy_node *fyn; @@ -5641,7 +5743,7 @@ const void *a, const void *b, void *arg } /* not! thread safe! */ -#if !defined(HAVE_QSORT_R) || !HAVE_QSORT_R +#if !defined(HAVE_QSORT_R) || !HAVE_QSORT_R || defined(__EMSCRIPTEN__) static struct fy_node_mapping_sort_ctx *fy_node_mapping_sort_ctx_no_qsort_r; static int fy_node_mapping_sort_cmp_no_qsort_r(const void *a, const void *b) @@ -5762,7 +5864,7 @@ void fy_node_mapping_perform_sort(struct fy_node *fyn_map, ctx.arg = key_cmp ? arg : &def_arg; ctx.fynpp = fynpp; ctx.count = count; -#if defined(HAVE_QSORT_R) && HAVE_QSORT_R +#if defined(HAVE_QSORT_R) && HAVE_QSORT_R && !defined(__EMSCRIPTEN__) #ifdef __APPLE__ qsort_r(fynpp, count, sizeof(*fynpp), &ctx, fy_node_mapping_sort_cmp); #else @@ -6012,6 +6114,75 @@ fy_flow_document_build_from_string(const struct fy_parse_cfg *cfg, return NULL; } +struct fy_document * +fy_block_document_build_from_string(const struct fy_parse_cfg *cfg, + const char *str, size_t len, size_t *consumed) +{ + struct flow_reader_container frc; + struct fy_reader *fyr = NULL; + struct fy_parser fyp_data, *fyp = &fyp_data; + struct fy_parse_cfg cfg_data; + struct fy_input *fyi; + struct fy_document *fyd; + struct fy_mark mark; + int rc; + + if (!str) + return NULL; + + if (consumed) + *consumed = 0; + + if (!cfg) { + memset(&cfg_data, 0, sizeof(cfg_data)); + cfg_data.flags = FYPCF_DEFAULT_PARSE; + cfg = &cfg_data; + } + + memset(&frc, 0, sizeof(frc)); + fyr = &frc.reader; + frc.cfg = cfg; + + fy_reader_setup(fyr, &reader_ops); + + rc = fy_parse_setup(fyp, cfg); + if (rc) + goto err_no_parse; + + fyi = fy_input_from_data(str, len, NULL, false); + if (!fyi) + goto err_no_input; + + rc = fy_reader_input_open(fyr, fyi, NULL); + if (rc) + goto err_no_input_open; + + fy_parser_set_reader(fyp, fyr); + fy_parser_set_block_only_mode(fyp, true); + + fyd = fy_parse_load_document(fyp); + + fy_parse_cleanup(fyp); + + if (fyd && consumed) { + fy_reader_get_mark(fyr, &mark); + *consumed = mark.input_pos; + } + + fy_reader_cleanup(fyr); + fy_input_unref(fyi); + + return fyd; + +err_no_input_open: + fy_input_unref(fyi); +err_no_input: + fy_parse_cleanup(fyp); +err_no_parse: + fy_reader_cleanup(fyr); + return NULL; +} + int fy_node_vscanf(struct fy_node *fyn, const char *fmt, va_list ap) { size_t len; diff --git a/Sources/Cfyaml/src/lib/fy-doc.h b/Sources/Cfyaml/src/lib/fy-doc.h index 6c1502461..d36810331 100644 --- a/Sources/Cfyaml/src/lib/fy-doc.h +++ b/Sources/Cfyaml/src/lib/fy-doc.h @@ -124,6 +124,7 @@ struct fy_document { FY_TYPE_DECL_LIST(document); struct fy_document *fy_parse_document_create(struct fy_parser *fyp, struct fy_eventp *fyep); +void fy_document_purge_anchors(struct fy_document *fyd); struct fy_node_mapping_sort_ctx { fy_node_mapping_sort_fn key_cmp; diff --git a/Sources/Cfyaml/src/lib/fy-docbuilder.c b/Sources/Cfyaml/src/lib/fy-docbuilder.c index 94f6606f1..b1d78e86d 100644 --- a/Sources/Cfyaml/src/lib/fy-docbuilder.c +++ b/Sources/Cfyaml/src/lib/fy-docbuilder.c @@ -538,3 +538,27 @@ fy_document_builder_load_document(struct fy_document_builder *fydb, /* get ownership of the document */ return fy_document_builder_take_document(fydb); } + +struct fy_document * +fy_document_builder_event_document(struct fy_document_builder *fydb, struct fy_eventp_list *evpl) +{ + struct fy_eventp *fyep = NULL; + int rc; + + if (!fydb || !evpl) + return NULL; + + for (fyep = fy_eventp_list_head(evpl); fyep; fyep = fy_eventp_next(evpl, fyep)) { + + if (fy_document_builder_is_document_complete(fydb)) + break; + + rc = fy_document_builder_process_event(fydb, fyep); + if (rc < 0) + return NULL; + + } + + /* get ownership of the document */ + return fy_document_builder_take_document(fydb); +} diff --git a/Sources/Cfyaml/src/lib/fy-docbuilder.h b/Sources/Cfyaml/src/lib/fy-docbuilder.h index aa506d684..dd2d0a030 100644 --- a/Sources/Cfyaml/src/lib/fy-docbuilder.h +++ b/Sources/Cfyaml/src/lib/fy-docbuilder.h @@ -92,6 +92,9 @@ struct fy_document * fy_document_builder_load_document(struct fy_document_builder *fydb, struct fy_parser *fyp); +struct fy_document * +fy_document_builder_event_document(struct fy_document_builder *fydb, struct fy_eventp_list *evpl); + struct fy_document * fy_parse_load_document_with_builder(struct fy_parser *fyp); diff --git a/Sources/Cfyaml/src/lib/fy-docstate.c b/Sources/Cfyaml/src/lib/fy-docstate.c index e7876e4ea..6c530bb99 100644 --- a/Sources/Cfyaml/src/lib/fy-docstate.c +++ b/Sources/Cfyaml/src/lib/fy-docstate.c @@ -392,3 +392,56 @@ fy_document_state_tag_directive_iterate(struct fy_document_state *fyds, void **i return tag; } + +struct fy_tag ** +fy_document_state_tag_directives(struct fy_document_state *fyds) +{ + struct fy_tag *tags, **tagsp; + const struct fy_tag *fytag; + size_t size, len; + void *iter; + char *s; + int i; + + if (!fyds) + return NULL; + + /* first find the extents of the area we're going to need */ + i = 0; + size = 0; + iter = NULL; + while ((fytag = fy_document_state_tag_directive_iterate(fyds, &iter)) != NULL) { + size += strlen(fytag->handle) + 1 + strlen(fytag->prefix) + 1; + i++; + } + size += sizeof(struct fy_tag) * i; + size += sizeof(struct fy_tag *) * (i + 1); + + tagsp = malloc(size); + if (!tagsp) + return NULL; + memset(tagsp, 0, size); + tags = (void *)(tagsp + i + 1); + s = (void *)(tags + i); + + i = 0; + iter = NULL; + while ((fytag = fy_document_state_tag_directive_iterate(fyds, &iter)) != NULL) { + tags[i].handle = s; + len = strlen(fytag->handle); + memcpy(s, fytag->handle, len + 1); + s += len + 1; + + tags[i].prefix = s; + len = strlen(fytag->prefix); + memcpy(s, fytag->prefix, len + 1); + s += len + 1; + + tagsp[i] = &tags[i]; + + i++; + } + tagsp[i] = NULL; /* NULL terminated */ + + return tagsp; +} diff --git a/Sources/Cfyaml/src/lib/fy-emit.c b/Sources/Cfyaml/src/lib/fy-emit.c index 36d8d8ef7..b382876a9 100644 --- a/Sources/Cfyaml/src/lib/fy-emit.c +++ b/Sources/Cfyaml/src/lib/fy-emit.c @@ -23,6 +23,20 @@ #include "fy-parse.h" #include "fy-emit.h" +static inline struct fy_token_list *token_recycle_list(struct fy_emitter *emit, struct fy_parser *fyp) +{ + if (fyp && fyp->recycled_token_list) + return fyp->recycled_token_list; + if (emit && emit->recycled_token_list) + return emit->recycled_token_list; + return NULL; +} + +static inline void fy_emit_token_unref(struct fy_emitter *emit, struct fy_parser *fyp, struct fy_token *fyt) +{ + fy_token_unref_rl(token_recycle_list(emit, fyp), fyt); +} + /* fwd decl */ void fy_emit_write(struct fy_emitter *emit, enum fy_emitter_write_type type, const char *str, int len); void fy_emit_printf(struct fy_emitter *emit, enum fy_emitter_write_type type, const char *fmt, ...) @@ -43,7 +57,7 @@ static inline bool fy_emit_is_flow_mode(const struct fy_emitter *emit) { enum fy_emitter_cfg_flags flags = emit->cfg.flags & FYECF_MODE(FYECF_MODE_MASK); - return flags == FYECF_MODE_FLOW || flags == FYECF_MODE_FLOW_ONELINE; + return flags == FYECF_MODE_FLOW || flags == FYECF_MODE_FLOW_ONELINE || fy_emit_is_json_mode(emit); } static inline bool fy_emit_is_block_mode(const struct fy_emitter *emit) @@ -74,6 +88,13 @@ static inline bool fy_emit_is_pretty_mode(const struct fy_emitter *emit) return flags == FYECF_MODE_PRETTY; } +static inline bool fy_emit_is_manual(const struct fy_emitter *emit) +{ + enum fy_emitter_cfg_flags flags = emit->cfg.flags & FYECF_MODE(FYECF_MODE_MASK); + + return flags == FYECF_MODE_MANUAL; +} + static inline int fy_emit_indent(struct fy_emitter *emit) { int indent; @@ -700,7 +721,7 @@ void fy_emit_token_write_plain(struct fy_emitter *emit, struct fy_token *fyt, in atom = fy_token_atom(fyt); /* null and json mode */ - if (fy_emit_is_json_mode(emit) && (!fyt || !atom || atom->size0)) { + if (fy_emit_is_json_mode(emit) && (/* (!fyt || !atom || atom->size0) || */ fyt->scalar.is_null)) { fy_emit_puts(emit, wtype, "null"); goto out; } @@ -1238,9 +1259,7 @@ fy_emit_token_scalar_style(struct fy_emitter *emit, struct fy_token *fyt, int flags, int indent, enum fy_node_style style, struct fy_token *fyt_tag) { - const char *value = NULL; - size_t len = 0; - bool json, flow, is_json_plain; + bool json, flow, is_null_scalar, is_json_plain; struct fy_atom *atom; int aflags = -1; const char *tag; @@ -1256,50 +1275,50 @@ fy_emit_token_scalar_style(struct fy_emitter *emit, struct fy_token *fyt, json = fy_emit_is_json_mode(emit); - /* literal in JSON mode is output as quoted */ - if (json && (style == FYNS_LITERAL || style == FYNS_FOLDED)) - return FYNS_DOUBLE_QUOTED; + is_null_scalar = !atom || fyt->scalar.is_null; /* is this a plain json atom? */ is_json_plain = (json || emit->source_json || fy_emit_is_dejson_mode(emit)) && - (!atom || atom->size0 || + (is_null_scalar || !fy_atom_strcmp(atom, "false") || !fy_atom_strcmp(atom, "true") || !fy_atom_strcmp(atom, "null") || fy_atom_is_number(atom)); - if (is_json_plain) { - tag = fy_token_get_text(fyt_tag, &tag_len); - - /* XXX hardcoded string tag resultion */ - if (tag && tag_len && - ((tag_len == 1 && *tag == '!') || - (tag_len == 21 && !memcmp(tag, "tag:yaml.org,2002:str", 21)))) + if (json) { + /* literal in JSON mode is output as quoted */ + if (style == FYNS_LITERAL || style == FYNS_FOLDED) return FYNS_DOUBLE_QUOTED; - } - /* JSON NULL, but with plain style */ - if (json && (style == FYNS_PLAIN || style == FYNS_ANY) && (!atom || (is_json_plain && !atom->size0))) - return FYNS_PLAIN; + if (is_json_plain) { + tag = fy_token_get_text(fyt_tag, &tag_len); + + /* XXX hardcoded string tag resultion */ + if (tag && tag_len && + ((tag_len == 1 && *tag == '!') || + (tag_len == 21 && !memcmp(tag, "tag:yaml.org,2002:str", 21)))) + return FYNS_DOUBLE_QUOTED; + } + + /* JSON NULL, but with plain style */ + if ((style == FYNS_PLAIN || style == FYNS_ANY) && + (is_null_scalar || (is_json_plain && !atom->size0))) + return FYNS_PLAIN; - if (json) return FYNS_DOUBLE_QUOTED; + } aflags = fy_token_text_analyze(fyt); if (flow && (style == FYNS_ANY || style == FYNS_LITERAL || style == FYNS_FOLDED)) { - if (fyt && !value) - value = fy_token_get_text(fyt, &len); - /* if there's a linebreak, use double quoted style */ - if (fy_find_any_lb(value, len)) { + if (aflags & FYTTAF_HAS_ANY_LB) { style = FYNS_DOUBLE_QUOTED; goto out; } - /* check if there's a non printable */ - if (!fy_find_non_print(value, len)) { + if (!(aflags & FYTTAF_HAS_NON_PRINT)) { style = FYNS_SINGLE_QUOTED; goto out; } @@ -1334,18 +1353,19 @@ fy_emit_token_scalar_style(struct fy_emitter *emit, struct fy_token *fyt, } out: - if (style == FYNS_ANY) { - if (fyt) - value = fy_token_get_text(fyt, &len); - - style = (aflags & FYTTAF_CAN_BE_PLAIN) ? - FYNS_PLAIN : FYNS_DOUBLE_QUOTED; + if (style == FYNS_ANY) + style = (aflags & FYTTAF_CAN_BE_PLAIN) ? FYNS_PLAIN : FYNS_DOUBLE_QUOTED; + + if (style == FYNS_PLAIN) { + /* plains in flow mode not being able to be plains + * - plain in block mode that can't be plain in flow mode + * - special handling for plains on start of line + */ + if ((flow && !(aflags & FYTTAF_CAN_BE_PLAIN_FLOW) && !is_null_scalar) || + ((aflags & FYTTAF_QUOTE_AT_0) && indent == 0)) + style = FYNS_DOUBLE_QUOTED; } - /* special handling for plains on start of line */ - if ((aflags & FYTTAF_QUOTE_AT_0) && indent == 0 && style == FYNS_PLAIN) - style = FYNS_DOUBLE_QUOTED; - return style; } @@ -1410,7 +1430,9 @@ static void fy_emit_sequence_prolog(struct fy_emitter *emit, struct fy_emit_save sc->old_indent = sc->indent; if (!json) { - if (fy_emit_is_block_mode(emit)) + if (fy_emit_is_manual(emit)) + sc->flow = (sc->xstyle == FYNS_BLOCK && was_flow) || sc->xstyle == FYNS_FLOW; + else if (fy_emit_is_block_mode(emit)) sc->flow = sc->empty; else sc->flow = fy_emit_is_flow_mode(emit) || emit->flow_level || sc->flow_token || sc->empty; @@ -1497,6 +1519,7 @@ void fy_emit_sequence(struct fy_emitter *emit, struct fy_node *fyn, int flags, i sc->empty = fy_node_list_empty(&fyn->sequence); sc->flow_token = fyn->style == FYNS_FLOW; sc->flow = !!(flags & DDNF_FLOW); + sc->xstyle = fyn->style; sc->old_indent = sc->indent; fy_emit_sequence_prolog(emit, sc); @@ -1519,10 +1542,13 @@ static void fy_emit_mapping_prolog(struct fy_emitter *emit, struct fy_emit_save_ { bool json = fy_emit_is_json_mode(emit); bool oneline = fy_emit_is_oneline(emit); + bool was_flow = sc->flow; sc->old_indent = sc->indent; if (!json) { - if (fy_emit_is_block_mode(emit)) + if (fy_emit_is_manual(emit)) + sc->flow = (sc->xstyle == FYNS_BLOCK && was_flow) || sc->xstyle == FYNS_FLOW; + else if (fy_emit_is_block_mode(emit)) sc->flow = sc->empty; else sc->flow = fy_emit_is_flow_mode(emit) || emit->flow_level || sc->flow_token || sc->empty; @@ -1642,6 +1668,7 @@ void fy_emit_mapping(struct fy_emitter *emit, struct fy_node *fyn, int flags, in sc->empty = fy_node_pair_list_empty(&fyn->mapping); sc->flow_token = fyn->style == FYNS_FLOW; sc->flow = !!(flags & DDNF_FLOW); + sc->xstyle = fyn->style; sc->old_indent = sc->indent; fy_emit_mapping_prolog(emit, sc); @@ -2048,6 +2075,14 @@ int fy_emit_setup(struct fy_emitter *emit, const struct fy_emitter_cfg *cfg) return 0; } +void fy_emit_save_ctx_cleanup(struct fy_emitter *emit, struct fy_emit_save_ctx *sc) +{ + sc = &emit->s_sc; + fy_token_unref_rl(emit->recycled_token_list, sc->fyt_last_key); + fy_token_unref_rl(emit->recycled_token_list, sc->fyt_last_value); + memset(sc, 0, sizeof(*sc)); +} + void fy_emit_cleanup(struct fy_emitter *emit) { struct fy_eventp *fyep; @@ -2057,6 +2092,10 @@ void fy_emit_cleanup(struct fy_emitter *emit) if (emit->finalizer) emit->finalizer(emit); + fy_emit_save_ctx_cleanup(emit, &emit->s_sc); + while (emit->sc_stack_top > 0) + fy_emit_save_ctx_cleanup(emit, &emit->sc_stack[--emit->sc_stack_top]); + while ((fyt = fy_token_list_pop(&emit->recycled_token)) != NULL) fy_token_free(fyt); @@ -2687,63 +2726,45 @@ char *fy_emit_node_to_string(struct fy_node *fyn, enum fy_emitter_cfg_flags flag return buf; } +/* we can consume events only if the lookaheads + * are satisfied. The lookaheads depends on the + * styling mode. Some styling modes do not require + * a lookahead at all but we do it anyway. + */ static bool fy_emit_ready(struct fy_emitter *emit) { struct fy_eventp *fyep; - int need, count, level; - - /* no events in the list, not ready */ - fyep = fy_eventp_list_head(&emit->queued_events); - if (!fyep) - return false; - - /* some events need more than one */ - switch (fyep->e.type) { - case FYET_DOCUMENT_START: - need = 1; - break; - case FYET_SEQUENCE_START: - need = 2; - break; - case FYET_MAPPING_START: - need = 3; - break; - default: - need = 0; - break; - } - - /* if we don't need any more, that's enough */ - if (!need) - return true; + int need, count; - level = 0; count = 0; - for (; fyep; fyep = fy_eventp_next(&emit->queued_events, fyep)) { - count++; - - if (count > need) - return true; + need = -1; + for (fyep = fy_eventp_list_head(&emit->queued_events); fyep; + fyep = fy_eventp_next(&emit->queued_events, fyep)) { + count++; switch (fyep->e.type) { - case FYET_STREAM_START: case FYET_DOCUMENT_START: + need++; + break; + case FYET_SEQUENCE_START: - case FYET_MAPPING_START: - level++; + if (need < 0) + need = 2; break; - case FYET_STREAM_END: - case FYET_DOCUMENT_END: - case FYET_SEQUENCE_END: - case FYET_MAPPING_END: - level--; + + case FYET_MAPPING_START: + if (need < 0) + need = 2; break; + default: + need = 0; break; } - if (!level) + if (count >= need) return true; + } return false; @@ -2779,32 +2800,35 @@ fy_emit_next_event(struct fy_emitter *emit) struct fy_eventp * fy_emit_peek_next_event(struct fy_emitter *emit) { - if (!fy_emit_ready(emit)) - return NULL; - return fy_eventp_list_head(&emit->queued_events); } bool fy_emit_streaming_sequence_empty(struct fy_emitter *emit) { struct fy_eventp *fyepn; - struct fy_event *fyen; fyepn = fy_emit_peek_next_event(emit); - fyen = fyepn ? &fyepn->e : NULL; - return !fyen || fyen->type == FYET_SEQUENCE_END; + /* should never happen, check on debugging mode */ + assert(fyepn); + if (!fyepn) + return false; + + return fyepn->e.type == FYET_SEQUENCE_END; } bool fy_emit_streaming_mapping_empty(struct fy_emitter *emit) { struct fy_eventp *fyepn; - struct fy_event *fyen; fyepn = fy_emit_peek_next_event(emit); - fyen = fyepn ? &fyepn->e : NULL; - return !fyen || fyen->type == FYET_MAPPING_END; + /* should never happen, check on debugging mode */ + assert(fyepn); + if (!fyepn) + return false; + + return fyepn->e.type == FYET_MAPPING_END; } static void fy_emit_goto_state(struct fy_emitter *emit, enum fy_emitter_state state) @@ -2873,11 +2897,11 @@ int fy_emit_pop_sc(struct fy_emitter *emit, struct fy_emit_save_ctx *sc) return 0; } -static int fy_emit_streaming_node(struct fy_emitter *emit, struct fy_eventp *fyep, int flags) +static int fy_emit_streaming_node(struct fy_emitter *emit, struct fy_parser *fyp, struct fy_eventp *fyep, int flags) { struct fy_event *fye = &fyep->e; struct fy_emit_save_ctx *sc = &emit->s_sc; - enum fy_node_style style; + enum fy_node_style style, xstyle; int ret, s_flags, s_indent; if (fye->type != FYET_ALIAS && fye->type != FYET_SCALAR && @@ -2917,6 +2941,12 @@ static int fy_emit_streaming_node(struct fy_emitter *emit, struct fy_eventp *fye s_flags = emit->s_flags; s_indent = emit->s_indent; + if (fye->sequence_start.sequence_start) + xstyle = fye->sequence_start.sequence_start->type == FYTT_BLOCK_SEQUENCE_START ? + FYNS_BLOCK : FYNS_FLOW; + else + xstyle = FYNS_ANY; + fy_emit_common_node_preamble(emit, fye->sequence_start.anchor, fye->sequence_start.tag, emit->s_flags, emit->s_indent); /* create new context */ @@ -2924,14 +2954,12 @@ static int fy_emit_streaming_node(struct fy_emitter *emit, struct fy_eventp *fye sc->flags = emit->s_flags & (DDNF_ROOT | DDNF_SEQ | DDNF_MAP); sc->indent = emit->s_indent; sc->empty = fy_emit_streaming_sequence_empty(emit); - sc->flow_token = fye->sequence_start.sequence_start && - fye->sequence_start.sequence_start->type == FYTT_FLOW_SEQUENCE_START; + sc->flow_token = xstyle == FYNS_FLOW; sc->flow = !!(s_flags & DDNF_FLOW); + sc->xstyle = xstyle; sc->old_indent = sc->indent; sc->s_flags = s_flags; sc->s_indent = s_indent; - sc->s_flags = s_flags; - sc->s_indent = s_indent; fy_emit_sequence_prolog(emit, sc); sc->flags &= ~DDNF_MAP; @@ -2952,6 +2980,12 @@ static int fy_emit_streaming_node(struct fy_emitter *emit, struct fy_eventp *fye s_flags = emit->s_flags; s_indent = emit->s_indent; + if (fye->mapping_start.mapping_start) + xstyle = fye->mapping_start.mapping_start->type == FYTT_BLOCK_MAPPING_START ? + FYNS_BLOCK : FYNS_FLOW; + else + xstyle = FYNS_ANY; + fy_emit_common_node_preamble(emit, fye->mapping_start.anchor, fye->mapping_start.tag, emit->s_flags, emit->s_indent); /* create new context */ @@ -2959,14 +2993,12 @@ static int fy_emit_streaming_node(struct fy_emitter *emit, struct fy_eventp *fye sc->flags = emit->s_flags & (DDNF_ROOT | DDNF_SEQ | DDNF_MAP); sc->indent = emit->s_indent; sc->empty = fy_emit_streaming_mapping_empty(emit); - sc->flow_token = fye->mapping_start.mapping_start && - fye->mapping_start.mapping_start->type == FYTT_FLOW_MAPPING_START; + sc->flow_token = xstyle == FYNS_FLOW; sc->flow = !!(s_flags & DDNF_FLOW); + sc->xstyle = xstyle; sc->old_indent = sc->indent; sc->s_flags = s_flags; sc->s_indent = s_indent; - sc->s_flags = s_flags; - sc->s_indent = s_indent; fy_emit_mapping_prolog(emit, sc); sc->flags &= ~DDNF_SEQ; @@ -2986,7 +3018,7 @@ static int fy_emit_streaming_node(struct fy_emitter *emit, struct fy_eventp *fye return 0; } -static int fy_emit_handle_stream_start(struct fy_emitter *emit, struct fy_eventp *fyep) +static int fy_emit_handle_stream_start(struct fy_emitter *emit, struct fy_parser *fyp, struct fy_eventp *fyep) { struct fy_event *fye = &fyep->e; @@ -3002,7 +3034,7 @@ static int fy_emit_handle_stream_start(struct fy_emitter *emit, struct fy_eventp return 0; } -static int fy_emit_handle_document_start(struct fy_emitter *emit, struct fy_eventp *fyep, bool first) +static int fy_emit_handle_document_start(struct fy_emitter *emit, struct fy_parser *fyp, struct fy_eventp *fyep, bool first) { struct fy_event *fye = &fyep->e; struct fy_document_state *fyds; @@ -3032,7 +3064,7 @@ static int fy_emit_handle_document_start(struct fy_emitter *emit, struct fy_even return 0; } -static int fy_emit_handle_document_end(struct fy_emitter *emit, struct fy_eventp *fyep) +static int fy_emit_handle_document_end(struct fy_emitter *emit, struct fy_parser *fyp, struct fy_eventp *fyep) { struct fy_document_state *fyds; struct fy_event *fye = &fyep->e; @@ -3056,30 +3088,30 @@ static int fy_emit_handle_document_end(struct fy_emitter *emit, struct fy_eventp return 0; } -static int fy_emit_handle_document_content(struct fy_emitter *emit, struct fy_eventp *fyep) +static int fy_emit_handle_document_content(struct fy_emitter *emit, struct fy_parser *fyp, struct fy_eventp *fyep) { struct fy_event *fye = &fyep->e; int ret; /* empty document? */ if (fye->type == FYET_DOCUMENT_END) - return fy_emit_handle_document_end(emit, fyep); + return fy_emit_handle_document_end(emit, fyp, fyep); ret = fy_emit_push_state(emit, FYES_DOCUMENT_END); if (ret) return ret; - return fy_emit_streaming_node(emit, fyep, DDNF_ROOT); + return fy_emit_streaming_node(emit, fyp, fyep, DDNF_ROOT); } -static int fy_emit_handle_sequence_item(struct fy_emitter *emit, struct fy_eventp *fyep, bool first) +static int fy_emit_handle_sequence_item(struct fy_emitter *emit, struct fy_parser *fyp, struct fy_eventp *fyep, bool first) { struct fy_event *fye = &fyep->e; struct fy_emit_save_ctx *sc = &emit->s_sc; struct fy_token *fyt_item = NULL; int ret; - fy_token_unref_rl(emit->recycled_token_list, sc->fyt_last_value); + fy_emit_token_unref(emit, fyp, sc->fyt_last_value); sc->fyt_last_value = NULL; switch (fye->type) { @@ -3088,14 +3120,17 @@ static int fy_emit_handle_sequence_item(struct fy_emitter *emit, struct fy_event /* emit epilog */ fy_emit_sequence_epilog(emit, sc); - /* pop state */ - ret = fy_emit_pop_sc(emit, sc); - /* pop state */ - fy_emit_goto_state(emit, fy_emit_pop_state(emit)); /* restore indent and flags */ emit->s_indent = sc->s_indent; emit->s_flags = sc->s_flags; + + /* pop state */ + ret = fy_emit_pop_sc(emit, sc); + assert(!ret); + + /* pop state */ + fy_emit_goto_state(emit, fy_emit_pop_state(emit)); return ret; case FYET_ALIAS: @@ -3130,7 +3165,7 @@ static int fy_emit_handle_sequence_item(struct fy_emitter *emit, struct fy_event fy_emit_sequence_item_prolog(emit, sc, fyt_item); - ret = fy_emit_streaming_node(emit, fyep, sc->flags); + ret = fy_emit_streaming_node(emit, fyp, fyep, sc->flags); switch (fye->type) { case FYET_ALIAS: @@ -3152,7 +3187,7 @@ static int fy_emit_handle_sequence_item(struct fy_emitter *emit, struct fy_event return ret; } -static int fy_emit_handle_mapping_key(struct fy_emitter *emit, struct fy_eventp *fyep, bool first) +static int fy_emit_handle_mapping_key(struct fy_emitter *emit, struct fy_parser *fyp, struct fy_eventp *fyep, bool first) { struct fy_event *fye = &fyep->e; struct fy_emit_save_ctx *sc = &emit->s_sc; @@ -3160,9 +3195,9 @@ static int fy_emit_handle_mapping_key(struct fy_emitter *emit, struct fy_eventp int ret, aflags; bool simple_key; - fy_token_unref_rl(emit->recycled_token_list, sc->fyt_last_key); + fy_emit_token_unref(emit, fyp, sc->fyt_last_key); + fy_emit_token_unref(emit, fyp, sc->fyt_last_value); sc->fyt_last_key = NULL; - fy_token_unref_rl(emit->recycled_token_list, sc->fyt_last_value); sc->fyt_last_value = NULL; simple_key = false; @@ -3173,14 +3208,17 @@ static int fy_emit_handle_mapping_key(struct fy_emitter *emit, struct fy_eventp /* emit epilog */ fy_emit_mapping_epilog(emit, sc); - /* pop state */ - ret = fy_emit_pop_sc(emit, sc); - /* pop state */ - fy_emit_goto_state(emit, fy_emit_pop_state(emit)); /* restore indent and flags */ emit->s_indent = sc->s_indent; emit->s_flags = sc->s_flags; + + /* pop state */ + ret = fy_emit_pop_sc(emit, sc); + assert(!ret); + + /* pop state */ + fy_emit_goto_state(emit, fy_emit_pop_state(emit)); return ret; case FYET_ALIAS: @@ -3220,7 +3258,7 @@ static int fy_emit_handle_mapping_key(struct fy_emitter *emit, struct fy_eventp fy_emit_mapping_key_prolog(emit, sc, fyt_key, simple_key); - ret = fy_emit_streaming_node(emit, fyep, sc->flags); + ret = fy_emit_streaming_node(emit, fyp, fyep, sc->flags); switch (fye->type) { case FYET_ALIAS: @@ -3242,7 +3280,7 @@ static int fy_emit_handle_mapping_key(struct fy_emitter *emit, struct fy_eventp return ret; } -static int fy_emit_handle_mapping_value(struct fy_emitter *emit, struct fy_eventp *fyep, bool simple) +static int fy_emit_handle_mapping_value(struct fy_emitter *emit, struct fy_parser *fyp, struct fy_eventp *fyep, bool simple) { struct fy_event *fye = &fyep->e; struct fy_emit_save_ctx *sc = &emit->s_sc; @@ -3277,7 +3315,7 @@ static int fy_emit_handle_mapping_value(struct fy_emitter *emit, struct fy_event fy_emit_mapping_value_prolog(emit, sc, fyt_value); - ret = fy_emit_streaming_node(emit, fyep, sc->flags); + ret = fy_emit_streaming_node(emit, fyp, fyep, sc->flags); switch (fye->type) { case FYET_ALIAS: @@ -3320,38 +3358,38 @@ int fy_emit_event_from_parser(struct fy_emitter *emit, struct fy_parser *fyp, st switch (emit->state) { case FYES_STREAM_START: - ret = fy_emit_handle_stream_start(emit, fyep); + ret = fy_emit_handle_stream_start(emit, fyp, fyep); break; case FYES_FIRST_DOCUMENT_START: case FYES_DOCUMENT_START: - ret = fy_emit_handle_document_start(emit, fyep, + ret = fy_emit_handle_document_start(emit, fyp, fyep, emit->state == FYES_FIRST_DOCUMENT_START); break; case FYES_DOCUMENT_CONTENT: - ret = fy_emit_handle_document_content(emit, fyep); + ret = fy_emit_handle_document_content(emit, fyp, fyep); break; case FYES_DOCUMENT_END: - ret = fy_emit_handle_document_end(emit, fyep); + ret = fy_emit_handle_document_end(emit, fyp, fyep); break; case FYES_SEQUENCE_FIRST_ITEM: case FYES_SEQUENCE_ITEM: - ret = fy_emit_handle_sequence_item(emit, fyep, + ret = fy_emit_handle_sequence_item(emit, fyp, fyep, emit->state == FYES_SEQUENCE_FIRST_ITEM); break; case FYES_MAPPING_FIRST_KEY: case FYES_MAPPING_KEY: - ret = fy_emit_handle_mapping_key(emit, fyep, + ret = fy_emit_handle_mapping_key(emit, fyp, fyep, emit->state == FYES_MAPPING_FIRST_KEY); break; case FYES_MAPPING_SIMPLE_VALUE: case FYES_MAPPING_VALUE: - ret = fy_emit_handle_mapping_value(emit, fyep, + ret = fy_emit_handle_mapping_value(emit, fyp, fyep, emit->state == FYES_MAPPING_SIMPLE_VALUE); break; diff --git a/Sources/Cfyaml/src/lib/fy-emit.h b/Sources/Cfyaml/src/lib/fy-emit.h index 3bbd8b5f1..6afe3997e 100644 --- a/Sources/Cfyaml/src/lib/fy-emit.h +++ b/Sources/Cfyaml/src/lib/fy-emit.h @@ -53,6 +53,7 @@ struct fy_emit_save_ctx { bool flow_token : 1; bool flow : 1; bool empty : 1; + enum fy_node_style xstyle; int old_indent; int flags; int indent; diff --git a/Sources/Cfyaml/src/lib/fy-event.c b/Sources/Cfyaml/src/lib/fy-event.c index 222b87ec2..42beab182 100644 --- a/Sources/Cfyaml/src/lib/fy-event.c +++ b/Sources/Cfyaml/src/lib/fy-event.c @@ -17,7 +17,6 @@ #include #include #include -#include #include @@ -466,7 +465,7 @@ fy_eventp_vcreate_internal(struct fy_eventp_list *recycled_list, struct fy_diag goto err_out; } - fyi = fy_input_from_data(data, len, &handle, true); + fyi = fy_input_from_malloc_data(data, len, &handle, true); if (!fyi) goto err_out; data = NULL; @@ -543,6 +542,77 @@ fy_emit_event_create(struct fy_emitter *emit, enum fy_event_type type, ...) return fye; } +int +fy_emit_vevent(struct fy_emitter *emit, enum fy_event_type type, va_list ap) +{ + struct fy_event *fye; + + if (!emit) + return -1; + + fye = fy_emit_event_vcreate(emit, type, ap); + if (!fye) + return -1; + + return fy_emit_event(emit, fye); +} + +int +fy_emit_eventf(struct fy_emitter *emit, enum fy_event_type type, ...) +{ + int rc; + va_list ap; + + va_start(ap, type); + rc = fy_emit_vevent(emit, type, ap); + va_end(ap); + + return rc; +} + +int +fy_emit_scalar_write(struct fy_emitter *fye, enum fy_scalar_style style, + const char *anchor, const char *tag, + const char *text, size_t len) +{ + return fy_emit_eventf(fye, FYET_SCALAR, style, text, len, anchor, tag); +} + +int +fy_emit_scalar_vprintf(struct fy_emitter *fye, enum fy_scalar_style style, + const char *anchor, const char *tag, + const char *fmt, va_list ap) +{ + char *buf; + size_t len; + int rc; + + rc = vasprintf(&buf, fmt, ap); + if (rc < 0) + return -1; + len = (size_t)rc; + + rc = fy_emit_scalar_write(fye, style, anchor, tag, buf, len); + free(buf); + + return rc; +} + +int +fy_emit_scalar_printf(struct fy_emitter *fye, enum fy_scalar_style style, + const char *anchor, const char *tag, + const char *fmt, ...) +{ + va_list ap; + int rc; + + va_start(ap, fmt); + rc = fy_emit_scalar_vprintf(fye, style, anchor, tag, fmt, ap); + va_end(ap); + + return rc; +} + struct fy_event * fy_parse_event_vcreate(struct fy_parser *fyp, enum fy_event_type type, va_list ap) { @@ -672,6 +742,36 @@ struct fy_token *fy_event_get_anchor_token(struct fy_event *fye) return NULL; } +struct fy_token *fy_event_get_and_clear_anchor_token(struct fy_event *fye) +{ + struct fy_token *fyt = NULL; + + if (!fye) + return NULL; + + switch (fye->type) { + case FYET_MAPPING_START: + fyt = fye->mapping_start.anchor; + fye->mapping_start.anchor = NULL; + break; + + case FYET_SEQUENCE_START: + fyt = fye->sequence_start.anchor; + fye->sequence_start.anchor = NULL; + break; + + case FYET_SCALAR: + fyt = fye->scalar.anchor; + fye->scalar.anchor = NULL; + break; + + default: + break; + } + + return fyt; +} + struct fy_token *fy_event_get_tag_token(struct fy_event *fye) { if (!fye) @@ -820,6 +920,89 @@ fy_event_get_node_style(struct fy_event *fye) return FYNS_ANY; } +struct fy_eventp *fy_parse_eventp_clone(struct fy_parser *fyp, struct fy_eventp *fyep_src, bool strip_anchors) +{ + struct fy_eventp *fyep = NULL; + struct fy_event *fye, *fye_src; + + if (!fyp || !fyep_src) + return NULL; + + if (fyp->recycled_eventp_list) + fyep = fy_eventp_list_pop(fyp->recycled_eventp_list); + if (!fyep) + fyep = fy_eventp_alloc(); + if (!fyep) + return NULL; + + fye_src = &fyep_src->e; + fye = &fyep->e; + + fye->type = fye_src->type; + switch (fye->type) { + case FYET_NONE: + break; + case FYET_STREAM_START: + fye->stream_start.stream_start = fy_token_ref(fye_src->stream_start.stream_start); + break; + case FYET_STREAM_END: + fye->stream_end.stream_end = fy_token_ref(fye_src->stream_end.stream_end); + break; + case FYET_DOCUMENT_START: + fye->document_start.document_start = fy_token_ref(fye_src->document_start.document_start); + fye->document_start.document_state = fy_document_state_ref(fye_src->document_start.document_state); + break; + case FYET_DOCUMENT_END: + fye->document_end.document_end = fy_token_ref(fye_src->document_end.document_end); + break; + case FYET_MAPPING_START: + if (!strip_anchors) + fye->mapping_start.anchor = fy_token_ref(fye_src->mapping_start.anchor); + else + fye->mapping_start.anchor = NULL; + fye->mapping_start.tag = fy_token_ref(fye_src->mapping_start.tag); + fye->mapping_start.mapping_start = fy_token_ref(fye_src->mapping_start.mapping_start); + break; + case FYET_MAPPING_END: + fye->mapping_end.mapping_end = fy_token_ref(fye_src->mapping_end.mapping_end); + break; + case FYET_SEQUENCE_START: + if (!strip_anchors) + fye->sequence_start.anchor = fy_token_ref(fye_src->sequence_start.anchor); + else + fye->sequence_start.anchor = NULL; + fye->sequence_start.tag = fy_token_ref(fye_src->sequence_start.tag); + fye->sequence_start.sequence_start = fy_token_ref(fye_src->sequence_start.sequence_start); + break; + case FYET_SEQUENCE_END: + fye->sequence_end.sequence_end = fy_token_ref(fye_src->sequence_end.sequence_end); + break; + case FYET_SCALAR: + if (!strip_anchors) + fye->scalar.anchor = fy_token_ref(fye_src->scalar.anchor); + else + fye->scalar.anchor = NULL; + fye->scalar.tag = fy_token_ref(fye_src->scalar.tag); + fye->scalar.value = fy_token_ref(fye_src->scalar.value); + break; + case FYET_ALIAS: + fye->alias.anchor = fy_token_ref(fye_src->alias.anchor); + break; + } + return fyep; +} + +const char *fy_event_get_anchor(struct fy_event *fye, size_t *anchor_lenp) +{ + struct fy_token *anchor; + + anchor = fy_event_get_anchor_token(fye); + if (!anchor) + return NULL; + + return fy_token_get_text(anchor, anchor_lenp); +} + const struct fy_version * fy_document_start_event_version(struct fy_event *fye) { diff --git a/Sources/Cfyaml/src/lib/fy-event.h b/Sources/Cfyaml/src/lib/fy-event.h index 75f20fb27..90f824152 100644 --- a/Sources/Cfyaml/src/lib/fy-event.h +++ b/Sources/Cfyaml/src/lib/fy-event.h @@ -26,7 +26,6 @@ struct fy_eventp { struct fy_event e; }; FY_TYPE_DECL_LIST(eventp); -FY_PARSE_TYPE_DECL_ALLOC(eventp); struct fy_eventp *fy_eventp_alloc(void); void fy_eventp_free(struct fy_eventp *fyep); @@ -40,6 +39,10 @@ void fy_parse_eventp_recycle(struct fy_parser *fyp, struct fy_eventp *fyep); struct fy_eventp *fy_emit_eventp_alloc(struct fy_emitter *fye); void fy_emit_eventp_recycle(struct fy_emitter *emit, struct fy_eventp *fyep); +struct fy_eventp *fy_parse_eventp_clone(struct fy_parser *fyp, struct fy_eventp *fyep_src, bool strip_anchors); +struct fy_token *fy_event_get_and_clear_anchor_token(struct fy_event *fye); +const char *fy_event_get_anchor(struct fy_event *fye, size_t *anchor_lenp); + struct fy_document_iterator; struct fy_eventp *fy_document_iterator_eventp_alloc(struct fy_document_iterator *fydi); diff --git a/Sources/Cfyaml/src/lib/fy-input.c b/Sources/Cfyaml/src/lib/fy-input.c index b7c16e062..cc29ae87b 100644 --- a/Sources/Cfyaml/src/lib/fy-input.c +++ b/Sources/Cfyaml/src/lib/fy-input.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include @@ -216,9 +217,9 @@ void fy_input_close(struct fy_input *fyi) case fyit_file: case fyit_fd: - if (fyi->addr && fyi->addr != MAP_FAILED) { + if (fyi->addr) { munmap(fyi->addr, fyi->length); - fyi->addr = MAP_FAILED; + fyi->addr = NULL; } if (fyi->fd != -1) { @@ -259,6 +260,61 @@ void fy_input_close(struct fy_input *fyi) } } +ssize_t fy_input_estimate_queued_size(const struct fy_input *fyi) +{ + struct stat sb; + int fd, rc; + + if (!fyi || fyi->state != FYIS_QUEUED) + return 0; + + memset(&sb, 0, sizeof(sb)); + + switch (fyi->cfg.type) { + case fyit_file: + rc = stat(fyi->cfg.file.filename, &sb); + if (rc) + return -1; + break; + + case fyit_stream: + fd = fileno(fyi->cfg.stream.fp); + if (fd < 0) + return -1; + rc = fstat(fd, &sb); + if (rc) + return -1; + break; + + case fyit_memory: + return (ssize_t)fyi->cfg.memory.size; + + case fyit_alloc: + return (ssize_t)fyi->cfg.alloc.size; + + case fyit_fd: + rc = fstat(fyi->cfg.fd.fd, &sb); + if (rc) + return -1; + break; + + case fyit_callback: + default: + return SSIZE_MAX; /* cannot determine */ + } + + /* only do it for regular files */ + if ((sb.st_mode & S_IFMT) != S_IFREG) + return SSIZE_MAX; + + /* check for very impossible roll-over */ + if ((size_t)sb.st_size > (size_t)SSIZE_MAX) + return SSIZE_MAX; + + /* ok, we did find it */ + return (ssize_t)sb.st_size; +} + struct fy_diag *fy_reader_get_diag(struct fy_reader *fyr) { if (fyr && fyr->ops && fyr->ops->get_diag) @@ -412,12 +468,14 @@ int fy_reader_input_open(struct fy_reader *fyr, struct fy_input *fyi, const stru fyi->addr = mmap(NULL, sb.st_size, PROT_READ, MAP_PRIVATE, fyi->fd, 0); /* convert from MAP_FAILED to NULL */ - if (fyi->addr == MAP_FAILED) + if (fyi->addr == MAP_FAILED) { fyr_debug(fyr, "mmap failed for file %s", fyi->cfg.file.filename); + fyi->addr = NULL; + } } /* if we've managed to mmap, we' good */ - if (fyi->addr != MAP_FAILED) + if (fyi->addr) break; /* if we're not ignoring stdio, open a FILE* using the fd */ @@ -462,7 +520,7 @@ int fy_reader_input_open(struct fy_reader *fyr, struct fy_input *fyi, const stru /* all the rest need it */ default: /* if we're not in mmap mode */ - if (fyi->addr != MAP_FAILED) + if (fyi->addr && !fyr->current_input_cfg.disable_mmap_opt) break; fyi->chunk = fyi->cfg.chunk; @@ -509,7 +567,7 @@ int fy_reader_input_done(struct fy_reader *fyr) switch (fyi->cfg.type) { case fyit_file: case fyit_fd: - if (fyi->addr != MAP_FAILED) + if (fyi->addr) break; /* fall-through */ @@ -609,7 +667,7 @@ const void *fy_reader_ptr_slow_path(struct fy_reader *fyr, size_t *leftp) { struct fy_input *fyi; const void *p; - int left; + size_t left; if (fyr->current_ptr) { if (leftp) @@ -625,7 +683,7 @@ const void *fy_reader_ptr_slow_path(struct fy_reader *fyr, size_t *leftp) switch (fyi->cfg.type) { case fyit_file: case fyit_fd: - if (fyi->addr != MAP_FAILED) { + if (fyi->addr) { left = fyi->length - (fyr->this_input_start + fyr->current_input_pos); p = fyi->addr + fyr->current_input_pos; break; @@ -690,7 +748,7 @@ const void *fy_reader_input_try_pull(struct fy_reader *fyr, struct fy_input *fyi case fyit_file: case fyit_fd: - if (fyi->addr != MAP_FAILED) { + if (fyi->addr) { assert(fyi->length >= (fyr->this_input_start + pos)); left = fyi->length - (fyr->this_input_start + pos); @@ -979,7 +1037,7 @@ struct fy_input *fy_input_create(const struct fy_input_cfg *fyic) fyi->chop = 0; fyi->fp = NULL; fyi->fd = -1; - fyi->addr = MAP_FAILED; + fyi->addr = NULL; fyi->length = -1; /* default modes */ diff --git a/Sources/Cfyaml/src/lib/fy-input.h b/Sources/Cfyaml/src/lib/fy-input.h index 6634fabd7..184590ee3 100644 --- a/Sources/Cfyaml/src/lib/fy-input.h +++ b/Sources/Cfyaml/src/lib/fy-input.h @@ -214,6 +214,8 @@ fy_input_unref(struct fy_input *fyi) fyi->refs--; } +ssize_t fy_input_estimate_queued_size(const struct fy_input *fyi); + struct fy_reader; enum fy_reader_mode { diff --git a/Sources/Cfyaml/src/lib/fy-parse.c b/Sources/Cfyaml/src/lib/fy-parse.c index df110e194..99fed7cf4 100644 --- a/Sources/Cfyaml/src/lib/fy-parse.c +++ b/Sources/Cfyaml/src/lib/fy-parse.c @@ -135,6 +135,37 @@ int fy_parse_get_next_input(struct fy_parser *fyp) return -1; } +ssize_t fy_parse_estimate_queued_input_size(struct fy_parser *fyp) +{ + struct fy_input *fyi; + ssize_t size, total; + + if (!fyp) + return 0; + + total = 0; + for (fyi = fy_input_list_head(&fyp->queued_inputs); fyi; fyi = fy_input_next(&fyp->queued_inputs, fyi)) { + if (fyi->state != FYIS_QUEUED) + continue; + + size = fy_input_estimate_queued_size(fyi); + if (size < 0) + return -1; + + /* something that's indetermined */ + if (size == SSIZE_MAX) + return SSIZE_MAX; + + total += size; + + /* roll-over check */ + if (total < 0) + return SSIZE_MAX; + } + + return total; +} + static inline void fy_token_queue_epilogue(struct fy_parser *fyp, struct fy_token *fyt) { @@ -452,6 +483,9 @@ int fy_reset_document_state(struct fy_parser *fyp) fyp->flow = FYFT_NONE; fy_parse_flow_list_recycle_all(fyp, &fyp->flow_stack); + /* and reset all aliases (TODO look for cross document aliases) */ + fy_parse_streaming_aliases_reset(fyp); + return 0; err_out: @@ -758,6 +792,7 @@ int fy_parse_setup(struct fy_parser *fyp, const struct fy_parse_cfg *cfg) fy_indent_list_init(&fyp->recycled_indent); fyp->indent = -2; fyp->indent_line = -1; + fyp->starting_indent = -1; fyp->generated_block_map = false; fyp->last_was_comma = false; @@ -782,6 +817,10 @@ int fy_parse_setup(struct fy_parser *fyp, const struct fy_parse_cfg *cfg) fyp->pending_complex_key_column = -1; fyp->last_block_mapping_key_line = -1; + fy_streaming_alias_list_init(&fyp->streaming_aliases); + fy_streaming_alias_list_init(&fyp->recycled_streaming_alias); + fy_eventp_list_init(&fyp->mks.args); + fyp->suppress_recycling = !!(fyp->cfg.flags & FYPCF_DISABLE_RECYCLING) || (getenv("FY_VALGRIND") && !getenv("FY_VALGRIND_RECYCLING")); @@ -814,6 +853,11 @@ void fy_parse_cleanup(struct fy_parser *fyp) struct fy_eventp *fyep; struct fy_token *fyt; + fy_parse_streaming_aliases_reset(fyp); + + fy_input_unref(fyp->last_event_handle.fyi); + fy_atom_reset(&fyp->last_event_handle); + fy_composer_destroy(fyp->fyc); fy_document_builder_destroy(fyp->fydb); @@ -823,6 +867,7 @@ void fy_parse_cleanup(struct fy_parser *fyp) fy_parse_parse_state_log_list_recycle_all(fyp, &fyp->state_stack); fy_parse_flow_list_recycle_all(fyp, &fyp->flow_stack); + fy_parse_streaming_alias_list_recycle_all(fyp, &fyp->streaming_aliases); fy_token_unref_rl(fyp->recycled_token_list, fyp->stream_end_token); @@ -842,6 +887,7 @@ void fy_parse_cleanup(struct fy_parser *fyp) fy_parse_simple_key_vacuum(fyp); fy_parse_parse_state_log_vacuum(fyp); fy_parse_flow_vacuum(fyp); + fy_parse_streaming_alias_vacuum(fyp); /* free the recycled events */ while ((fyep = fy_eventp_list_pop(&fyp->recycled_eventp)) != NULL) { @@ -1287,6 +1333,8 @@ int fy_push_indent(struct fy_parser *fyp, int indent, bool generated_block_map, fyp->parent_indent = fyp->indent; fyp->indent = indent; fyp->indent_line = indent_line; + if (fyp->parse_block_only && fyp->starting_indent < 0) + fyp->starting_indent = indent; fyp->generated_block_map = generated_block_map; fyp_scan_debug(fyp, "push_indent %d -> %d - generated_block_map=%s\n", @@ -1682,7 +1730,7 @@ int fy_fetch_stream_end(struct fy_parser *fyp) int rc; /* only reset the stream in regular mode */ - if (!fyp->parse_flow_only) + if (!fyp->parse_flow_only && !fyp->parse_block_only) fy_reader_stream_end(fyp->reader); fy_remove_all_simple_keys(fyp); @@ -2208,9 +2256,12 @@ int fy_fetch_flow_collection_mark_start(struct fy_parser *fyp, int c) fyp_error_check(fyp, fyt, err_out, "fy_token_queue_simple() failed"); - rc = fy_save_simple_key_mark(fyp, &skm, type, NULL); - fyp_error_check(fyp, !rc, err_out_rc, - "fy_save_simple_key_mark() failed"); + /* json does not have complex keys */ + if (!fyp_json_mode(fyp)) { + rc = fy_save_simple_key_mark(fyp, &skm, type, NULL); + fyp_error_check(fyp, !rc, err_out_rc, + "fy_save_simple_key_mark() failed"); + } /* increase flow level */ fyp->flow_level++; @@ -2783,8 +2834,10 @@ int fy_fetch_value(struct fy_parser *fyp, int c) fyp_error_check(fyp, fyt, err_out, "fy_token_queue_simple() failed"); - if (fysk) + if (fysk) { fy_parse_simple_key_recycle(fyp, fysk); + fysk = NULL; + } fyp->simple_key_allowed = target_simple_key_allowed; @@ -2882,20 +2935,20 @@ int fy_fetch_anchor_or_alias(struct fy_parser *fyp, int c) if (!fyp_is_blankz(fyp, c) && !fy_is_flow_indicator(c)) { - FYP_PARSE_ERROR_CHECK(fyp, length, 1, FYEM_SCAN, + FYP_PARSE_ERROR_CHECK(fyp, 0, 1, FYEM_SCAN, fy_is_unicode_control(c), err_out, "illegal unicode control character in %s", typestr); - FYP_PARSE_ERROR_CHECK(fyp, length, 1, FYEM_SCAN, + FYP_PARSE_ERROR_CHECK(fyp, 0, 1, FYEM_SCAN, fy_is_unicode_space(c), err_out, "illegal unicode space character in %s", typestr); } - FYP_PARSE_ERROR_CHECK(fyp, length, 1, FYEM_SCAN, + FYP_PARSE_ERROR_CHECK(fyp, 0, 1, FYEM_SCAN, c != FYUG_INV, err_out, "invalid character in %s", typestr); - FYP_PARSE_ERROR_CHECK(fyp, length, 1, FYEM_SCAN, + FYP_PARSE_ERROR_CHECK(fyp, 0, 1, FYEM_SCAN, c != FYUG_PARTIAL, err_out, "partial character in %s", typestr); @@ -3353,6 +3406,9 @@ int fy_fetch_block_scalar(struct fy_parser *fyp, bool is_literal, int c) line_length += fy_utf8_width(c); } + /* keep the variables without warning */ + (void)trailing_ws; + (void)leading_ws; if (doc_start_end_detected) break; @@ -3559,6 +3615,7 @@ int fy_fetch_block_scalar(struct fy_parser *fyp, bool is_literal, int c) handle.fws_mode = fyp_fws_mode(fyp); handle.tabsize = fyp_tabsize(fyp); handle.ends_with_eof = ends_with_eof; + handle.is_merge_key = false; #ifdef ATOM_SIZE_CHECK tlength = fy_atom_format_text_length(&handle); @@ -3995,6 +4052,7 @@ int fy_reader_fetch_flow_scalar_handle(struct fy_reader *fyr, int c, int indent, handle->fws_mode = fy_reader_flow_ws_mode(fyr); handle->tabsize = fy_reader_tabsize(fyr); handle->ends_with_eof = false; /* flow scalars never end with EOF and be valid */ + handle->is_merge_key = false; /* skip over block scalar end */ fy_reader_advance_by(fyr, 1); @@ -4030,7 +4088,7 @@ int fy_reader_fetch_plain_scalar_handle(struct fy_reader *fyr, int c, int indent bool has_leading_blanks; bool last_ptr; struct fy_mark mark, last_mark; - bool is_multiline, has_lb, has_ws, ends_with_eof; + bool is_multiline, has_lb, has_ws, ends_with_eof, is_merge_key; bool has_json_esc; #ifdef ATOM_SIZE_CHECK size_t tlength; @@ -4060,6 +4118,9 @@ int fy_reader_fetch_plain_scalar_handle(struct fy_reader *fyr, int c, int indent flow_level == 0 || !(c == '-' && fy_utf8_strchr(",[]{}", fy_reader_peek_at(fyr, 1))), err_out, "plain scalar cannot start with '%c' followed by ,[]{} (in flow context)", c); + /* we can prime is_merge_key here */ + is_merge_key = c == '<' && fy_reader_peek_at(fyr, 1) == '<'; + fy_reader_get_mark(fyr, &mark); fy_reader_fill_atom_start(fyr, handle); @@ -4284,6 +4345,7 @@ int fy_reader_fetch_plain_scalar_handle(struct fy_reader *fyr, int c, int indent handle->fws_mode = fy_reader_flow_ws_mode(fyr); handle->tabsize = fy_reader_tabsize(fyr); handle->ends_with_eof = ends_with_eof; + handle->is_merge_key = is_merge_key && length == 2; #ifdef ATOM_SIZE_CHECK tlength = fy_atom_format_text_length(handle); @@ -4621,7 +4683,7 @@ void fy_reader_skip_ws_lb(struct fy_reader *fyr) } s++; } else { - c = fy_utf8_get(s, (int)(e - s), &w); + c = fy_utf8_get(s, (size_t)(e - s), &w); if (c == FYUG_PARTIAL) { /* get the width (from the first octet */ @@ -4800,6 +4862,13 @@ int fy_fetch_tokens(struct fy_parser *fyp) "fy_scan_to_next_token() failed"); if (fyp_block_mode(fyp)) { + if (fyp->parse_block_only && fyp->starting_indent >= 0 && + fyp_column(fyp) < fyp->starting_indent) { + rc = fy_fetch_stream_end(fyp); + fyp_error_check(fyp, !rc, err_out_rc, + "fy_fetch_stream_end() failed"); + return 0; + } rc = fy_parse_unroll_indent(fyp, fyp_column(fyp)); fyp_error_check(fyp, !rc, err_out_rc, "fy_parse_unroll_indent() failed"); @@ -5107,7 +5176,7 @@ struct fy_token *fy_scan_peek(struct fy_parser *fyp) fyp_scan_debug(fyp, "setting stream_end_produced to true"); fyp->stream_end_produced = true; - if (!fyp->parse_flow_only) { + if (!fyp->parse_flow_only && !fyp->parse_block_only) { rc = fy_reader_input_done(fyp->reader); fyp_error_check(fyp, !rc, err_out, "fy_parse_input_done() failed"); @@ -5241,6 +5310,7 @@ fy_parse_node(struct fy_parser *fyp, struct fy_token *fyt, bool is_block) size_t handle_size; struct fy_token *fyt_td; struct fy_token *fytn; + struct fy_atom *ev_handle = NULL; fyds = fyp->current_document_state; assert(fyds); @@ -5260,6 +5330,7 @@ fy_parse_node(struct fy_parser *fyp, struct fy_token *fyt, bool is_block) fye->type = FYET_ALIAS; fye->alias.anchor = fy_scan_remove(fyp, fyt); + ev_handle = &fye->alias.anchor->handle; goto return_ok; } @@ -5318,6 +5389,8 @@ fy_parse_node(struct fy_parser *fyp, struct fy_token *fyt, bool is_block) fye->sequence_start.sequence_start = fytn; fy_parse_state_set(fyp, FYPS_INDENTLESS_SEQUENCE_ENTRY); + + ev_handle = &fye->sequence_start.sequence_start->handle; goto return_ok; } @@ -5333,6 +5406,8 @@ fy_parse_node(struct fy_parser *fyp, struct fy_token *fyt, bool is_block) fye->scalar.anchor = anchor; fye->scalar.tag = tag; fye->scalar.value = fy_scan_remove(fyp, fyt); + + ev_handle = &fye->scalar.value->handle; goto return_ok; } @@ -5348,6 +5423,8 @@ fy_parse_node(struct fy_parser *fyp, struct fy_token *fyt, bool is_block) fye->sequence_start.tag = tag; fye->sequence_start.sequence_start = fy_scan_remove(fyp, fyt); fy_parse_state_set(fyp, FYPS_FLOW_SEQUENCE_FIRST_ENTRY); + + ev_handle = &fye->sequence_start.sequence_start->handle; goto return_ok; } @@ -5363,6 +5440,8 @@ fy_parse_node(struct fy_parser *fyp, struct fy_token *fyt, bool is_block) fye->mapping_start.tag = tag; fye->mapping_start.mapping_start = fy_scan_remove(fyp, fyt); fy_parse_state_set(fyp, FYPS_FLOW_MAPPING_FIRST_KEY); + + ev_handle = &fye->mapping_start.mapping_start->handle; goto return_ok; } @@ -5378,6 +5457,8 @@ fy_parse_node(struct fy_parser *fyp, struct fy_token *fyt, bool is_block) fye->sequence_start.tag = tag; fye->sequence_start.sequence_start = fy_scan_remove(fyp, fyt); fy_parse_state_set(fyp, FYPS_BLOCK_SEQUENCE_FIRST_ENTRY); + + ev_handle = &fye->sequence_start.sequence_start->handle; goto return_ok; } @@ -5393,6 +5474,8 @@ fy_parse_node(struct fy_parser *fyp, struct fy_token *fyt, bool is_block) fye->mapping_start.tag = tag; fye->mapping_start.mapping_start = fy_scan_remove(fyp, fyt); fy_parse_state_set(fyp, FYPS_BLOCK_MAPPING_FIRST_KEY); + + ev_handle = &fye->mapping_start.mapping_start->handle; goto return_ok; } @@ -5435,9 +5518,24 @@ fy_parse_node(struct fy_parser *fyp, struct fy_token *fyt, bool is_block) fye->type = FYET_SCALAR; fye->scalar.anchor = anchor; fye->scalar.tag = tag; - fye->scalar.value = NULL; + + /* copy atom from the token and set to zero size at start */ + fye->scalar.value = fy_token_create_rl( + fyp->recycled_token_list, FYTT_SCALAR, &fyp->last_event_handle, FYSS_PLAIN); + fyp_error_check(fyp, fye->scalar.value, err_out, + "failed to allocate SCALAR token()"); + /* mark it as a special value */ + fye->scalar.value->scalar.is_null = true; return_ok: + if (ev_handle) { + fy_input_unref(fyp->last_event_handle.fyi); + fyp->last_event_handle = *ev_handle; + fyp->last_event_handle.start_mark = fyp->last_event_handle.end_mark; + fy_atom_reset_storage_hints(&fyp->last_event_handle); + fy_input_ref(fyp->last_event_handle.fyi); + } + fyp_parse_debug(fyp, "parse_node: > %s", fy_event_type_txt[fye->type]); @@ -5465,8 +5563,16 @@ fy_parse_empty_scalar(struct fy_parser *fyp) fye->type = FYET_SCALAR; fye->scalar.anchor = NULL; fye->scalar.tag = NULL; - fye->scalar.value = NULL; + + /* for empty scalar the last event handle does not change, only */ + fye->scalar.value = fy_token_create_rl( + fyp->recycled_token_list, FYTT_SCALAR, &fyp->last_event_handle, FYSS_PLAIN); + fyp_error_check(fyp, fye->scalar.value, err_out, + "failed to allocate SCALAR token()"); + /* mark it as a special value */ + fye->scalar.value->scalar.is_null = true; return fyep; + err_out: return NULL; } @@ -5475,6 +5581,7 @@ int fy_parse_stream_start(struct fy_parser *fyp) { fyp->indent = -2; fyp->indent_line = -1; + fyp->starting_indent = -1; fyp->generated_block_map = false; fyp->last_was_comma = false; fyp->flow = FYFT_NONE; @@ -5510,6 +5617,7 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) struct fy_token *version_directive; struct fy_token_list tag_directives; const struct fy_mark *fym; + struct fy_atom handle, *ev_handle; struct fy_token *fytn; char tbuf[16] __FY_DEBUG_UNUSED__; int rc; @@ -5554,6 +5662,7 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fyep = NULL; fye = NULL; + ev_handle = NULL; orig_state = fyp->state; switch (fyp->state) { @@ -5583,7 +5692,8 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fyp->stream_has_content = false; - return fyep; + ev_handle = &fye->stream_start.stream_start->handle; + break; case FYPS_IMPLICIT_DOCUMENT_START: @@ -5687,7 +5797,8 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fy_parse_state_set(fyp, fy_parse_have_more_inputs(fyp) ? FYPS_NONE : FYPS_END); - return fyep; + ev_handle = &fye->stream_end.stream_end->handle; + break; } fyep = fy_parse_eventp_alloc(fyp); @@ -5725,7 +5836,16 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) memset(&fyds->start_mark, 0, sizeof(fyds->start_mark)); if (fyt->type != FYTT_DOCUMENT_START) { - fye->document_start.document_start = NULL; + + /* copy atom from the token and set to zero size at start */ + handle = fyt->handle; + handle.end_mark = handle.start_mark; + fy_atom_reset_storage_hints(&handle); + + fye->document_start.document_start = fy_token_create_rl( + fyp->recycled_token_list, FYTT_DOCUMENT_START, &handle); + fyp_error_check(fyp, fye->document_start.document_start, err_out, + "failed to allocate DOCUMENT_START token()"); fyds->start_implicit = true; fyp_parse_debug(fyp, "document_start_implicit=true"); @@ -5753,7 +5873,8 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fye->document_start.document_state = fy_document_state_ref(fyds); fye->document_start.implicit = fyds->start_implicit; - return fyep; + ev_handle = &fye->document_start.document_start->handle; + break; case FYPS_DOCUMENT_END: @@ -5791,8 +5912,14 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) /* document end */ fye->type = FYET_DOCUMENT_END; if (fyt->type == FYTT_DOCUMENT_END) { - /* TODO pull the document end token and deliver */ - fye->document_end.document_end = NULL; + + handle = fyt->handle; + fy_atom_reset_storage_hints(&handle); + + fye->document_end.document_end = fy_token_create_rl( + fyp->recycled_token_list, FYTT_DOCUMENT_END, &handle); + fyp_error_check(fyp, fye->document_end.document_end, err_out, + "failed to allocate DOCUMENT_END token()"); fyds->end_implicit = false; /* reset document has content flag */ @@ -5803,7 +5930,15 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fyp->had_directives = false; } else { - fye->document_end.document_end = NULL; + + handle = fyt->handle; + handle.end_mark = handle.start_mark; + fy_atom_reset_storage_hints(&handle); + + fye->document_end.document_end = fy_token_create_rl( + fyp->recycled_token_list, FYTT_DOCUMENT_END, &handle); + fyp_error_check(fyp, fye->document_end.document_end, err_out, + "failed to allocate DOCUMENT_END token()"); fyds->end_implicit = true; } @@ -5825,7 +5960,8 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fy_parse_state_set(fyp, FYPS_SINGLE_DOCUMENT_END); } - return fyep; + ev_handle = &fye->document_end.document_end->handle; + break; case FYPS_DOCUMENT_CONTENT: @@ -5847,7 +5983,7 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fyep = fy_parse_empty_scalar(fyp); fyp_error_check(fyp, fyep, err_out, "fy_parse_empty_scalar() failed"); - return fyep; + break; } fyp->document_has_content = true; @@ -5861,7 +5997,7 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fyp->state == FYPS_DOCUMENT_CONTENT); fyp_error_check(fyp, fyep, err_out, "fy_parse_node() failed"); - return fyep; + break; case FYPS_BLOCK_SEQUENCE_FIRST_ENTRY: is_first = true; @@ -5912,14 +6048,14 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fyep = fy_parse_node(fyp, fyt, true); fyp_error_check(fyp, fyep, err_out, "fy_parse_node() failed"); - return fyep; + break; } fy_parse_state_set(fyp, FYPS_BLOCK_SEQUENCE_ENTRY); fyep = fy_parse_empty_scalar(fyp); fyp_error_check(fyp, fyep, err_out, "fy_parse_empty_scalar() failed"); - return fyep; + break; } /* FYTT_BLOCK_END */ @@ -5946,7 +6082,8 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) } else fye->sequence_end.sequence_end = fy_scan_remove(fyp, fyt); - return fyep; + ev_handle = &fye->sequence_end.sequence_end->handle; + break; case FYPS_BLOCK_MAPPING_FIRST_KEY: is_first = true; @@ -6005,14 +6142,14 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fyep = fy_parse_node(fyp, fyt, true); fyp_error_check(fyp, fyep, err_out, "fy_parse_node() failed"); - return fyep; + break; } fy_parse_state_set(fyp, FYPS_BLOCK_MAPPING_VALUE); fyep = fy_parse_empty_scalar(fyp); fyp_error_check(fyp, fyep, err_out, "fy_parse_empty_scalar() failed"); - return fyep; + break; } fyep = fy_parse_eventp_alloc(fyp); @@ -6024,7 +6161,9 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fy_parse_state_set(fyp, fy_parse_state_pop(fyp)); fye->type = FYET_MAPPING_END; fye->mapping_end.mapping_end = fy_scan_remove(fyp, fyt); - return fyep; + + ev_handle = &fye->mapping_end.mapping_end->handle; + break; case FYPS_BLOCK_MAPPING_VALUE: @@ -6050,7 +6189,7 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fyep = fy_parse_node(fyp, fyt, true); fyp_error_check(fyp, fyep, err_out, "fy_parse_node() failed"); - return fyep; + break; } } @@ -6059,7 +6198,7 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fyep = fy_parse_empty_scalar(fyp); fyp_error_check(fyp, fyep, err_out, "fy_parse_empty_scalar() failed"); - return fyep; + break; case FYPS_FLOW_SEQUENCE_FIRST_ENTRY: is_first = true; @@ -6103,7 +6242,9 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fye->mapping_start.anchor = NULL; fye->mapping_start.tag = NULL; fye->mapping_start.mapping_start = fy_scan_remove(fyp, fyt); - return fyep; + + ev_handle = &fye->mapping_start.mapping_start->handle; + break; } if (fyt->type != FYTT_FLOW_SEQUENCE_END) { @@ -6114,7 +6255,7 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fyep = fy_parse_node(fyp, fyt, false); fyp_error_check(fyp, fyep, err_out, "fy_parse_node() failed"); - return fyep; + break; } } @@ -6134,7 +6275,9 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fye->type = FYET_SEQUENCE_END; fye->sequence_end.sequence_end = fy_scan_remove(fyp, fyt); - return fyep; + + ev_handle = &fye->sequence_end.sequence_end->handle; + break; case FYPS_FLOW_SEQUENCE_ENTRY_MAPPING_KEY: if (fyt->type != FYTT_VALUE && fyt->type != FYTT_FLOW_ENTRY && @@ -6146,7 +6289,7 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fyep = fy_parse_node(fyp, fyt, false); fyp_error_check(fyp, fyep, err_out, "fy_parse_node() failed"); - return fyep; + break; } /* empty keys are not allowed in JSON mode */ @@ -6159,7 +6302,7 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fyep = fy_parse_empty_scalar(fyp); fyp_error_check(fyp, fyep, err_out, "fy_parse_empty_scalar() failed"); - return fyep; + break; case FYPS_FLOW_SEQUENCE_ENTRY_MAPPING_VALUE: if (fyt->type == FYTT_VALUE) { @@ -6178,7 +6321,7 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fyep = fy_parse_node(fyp, fyt, false); fyp_error_check(fyp, fyep, err_out, "fy_parse_node() failed"); - return fyep; + break; } } @@ -6192,7 +6335,7 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fyep = fy_parse_empty_scalar(fyp); fyp_error_check(fyp, fyep, err_out, "fy_parse_empty_scalar() failed"); - return fyep; + break; case FYPS_FLOW_SEQUENCE_ENTRY_MAPPING_END: fy_parse_state_set(fyp, FYPS_FLOW_SEQUENCE_ENTRY); @@ -6215,7 +6358,8 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fye->mapping_end.mapping_end = fytn; - return fyep; + ev_handle = &fye->mapping_end.mapping_end->handle; + break; case FYPS_FLOW_MAPPING_FIRST_KEY: is_first = true; @@ -6269,7 +6413,7 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fyep = fy_parse_node(fyp, fyt, false); fyp_error_check(fyp, fyep, err_out, "fy_parse_node() failed"); - return fyep; + break; } fy_parse_state_set(fyp, FYPS_FLOW_MAPPING_VALUE); @@ -6277,7 +6421,7 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fyep = fy_parse_empty_scalar(fyp); fyp_error_check(fyp, fyep, err_out, "fy_parse_empty_scalar() failed"); - return fyep; + break; } if (fyt->type != FYTT_FLOW_MAPPING_END) { @@ -6294,7 +6438,7 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fyep = fy_parse_node(fyp, fyt, false); fyp_error_check(fyp, fyep, err_out, "fy_parse_node() failed"); - return fyep; + break; } } @@ -6308,7 +6452,8 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fye->type = FYET_MAPPING_END; fye->mapping_end.mapping_end = fy_scan_remove(fyp, fyt); - return fyep; + ev_handle = &fye->mapping_end.mapping_end->handle; + break; case FYPS_FLOW_MAPPING_VALUE: if (fyt->type == FYTT_VALUE) { @@ -6330,7 +6475,7 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fyep = fy_parse_node(fyp, fyt, false); fyp_error_check(fyp, fyep, err_out, "fy_parse_node() failed"); - return fyep; + break; } } @@ -6344,7 +6489,7 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fyep = fy_parse_empty_scalar(fyp); fyp_error_check(fyp, fyep, err_out, "fy_parse_empty_scalar() failed"); - return fyep; + break; case FYPS_FLOW_MAPPING_EMPTY_VALUE: fy_parse_state_set(fyp, FYPS_FLOW_MAPPING_KEY); @@ -6352,7 +6497,7 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fyep = fy_parse_empty_scalar(fyp); fyp_error_check(fyp, fyep, err_out, "fy_parse_empty_scalar() failed"); - return fyep; + break; case FYPS_SINGLE_DOCUMENT_END: @@ -6375,7 +6520,8 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) fy_parse_state_set(fyp, fy_parse_have_more_inputs(fyp) ? FYPS_NONE : FYPS_END); - return fyep; + ev_handle = &fye->stream_end.stream_end->handle; + break; case FYPS_END: /* should never happen */ @@ -6383,6 +6529,18 @@ static struct fy_eventp *fy_parse_internal(struct fy_parser *fyp) break; } + assert(fyep); + + if (ev_handle) { + fy_input_unref(fyp->last_event_handle.fyi); + fyp->last_event_handle = *ev_handle; + fyp->last_event_handle.start_mark = fyp->last_event_handle.end_mark; + fy_atom_reset_storage_hints(&handle); + fy_input_ref(fyp->last_event_handle.fyi); + } + + return fyep; + err_out: fy_token_unref_rl(fyp->recycled_token_list, version_directive); fy_token_list_unref_all_rl(fyp->recycled_token_list, &tag_directives); @@ -6506,6 +6664,9 @@ static void fy_parse_input_reset(struct fy_parser *fyp) fyp->pending_complex_key_column = -1; fyp->last_block_mapping_key_line = -1; + + fy_input_unref(fyp->last_event_handle.fyi); + fy_atom_reset(&fyp->last_event_handle); } int fy_parser_set_input_file(struct fy_parser *fyp, const char *file) @@ -6750,16 +6911,29 @@ int fy_parser_reset(struct fy_parser *fyp) struct fy_event *fy_parser_parse(struct fy_parser *fyp) { - struct fy_eventp *fyep; + struct fy_eventp *fyep, *fyep2; enum fy_composer_return ret; if (!fyp) return NULL; + if ((fyp->cfg.flags & FYPCF_RESOLVE_DOCUMENT) && fy_reader_get_mode(fyp->reader) != fyrm_json) { + fyep = fy_parser_parse_resolve_prolog(fyp); + if (fyep) + return &fyep->e; + } + fyep = fy_parse_private(fyp); if (!fyep) return NULL; + if ((fyp->cfg.flags & FYPCF_RESOLVE_DOCUMENT) && fy_reader_get_mode(fyp->reader) != fyrm_json) { + fyep2 = fy_parser_parse_resolve_epilog(fyp, fyep); + if (!fyep2) + return NULL; + fyep = fyep2; + } + if (fyp->fyc) { ret = fy_composer_process_event(fyp->fyc, &fyep->e); if (ret == FYCR_ERROR) { @@ -6843,14 +7017,18 @@ static const struct fy_composer_ops parser_composer_ops = { int fy_parse_set_composer(struct fy_parser *fyp, fy_parse_composer_cb cb, void *userdata) { struct fy_composer_cfg ccfg; + bool can_change_composer; if (!fyp) return -1; + can_change_composer = fyp->state == FYPS_NONE || + fyp->state == FYPS_END || + fyp->state == FYPS_DOCUMENT_START; + /* must not be in the middle of something */ - fyp_error_check(fyp, fyp->state == FYPS_NONE || fyp->state == FYPS_END, - err_out, "cannot change composer state at state '%s'", - state_txt[fyp->state]); + fyp_error_check(fyp, can_change_composer, err_out, + "cannot change composer state at state '%s'", state_txt[fyp->state]); /* clear */ if (!cb) { @@ -7010,7 +7188,8 @@ int fy_parse_compose(struct fy_parser *fyp, fy_parse_composer_cb cb, void *userd rc_out = 0; /* reset the parser; the composer clear must always succeed */ - fy_parser_reset(fyp); + if (ret == FYCR_ERROR) + fy_parser_reset(fyp); /* clear composer */ rc = fy_parse_set_composer(fyp, NULL, NULL); @@ -7022,3 +7201,818 @@ int fy_parse_compose(struct fy_parser *fyp, fy_parse_composer_cb cb, void *userd err_out: return -1; } + +struct fy_streaming_alias * +fy_parser_streaming_alias_lookup(struct fy_parser *fyp, struct fy_token *fyt_anchor) +{ + struct fy_streaming_alias *fysa; + + /* XXX todo hashing */ + for (fysa = fy_streaming_alias_list_head(&fyp->streaming_aliases); fysa != NULL; fysa = fy_streaming_alias_next(&fyp->streaming_aliases, fysa)) { + if (fy_token_cmp(fyt_anchor, fysa->anchor) == 0) + return fysa; + } + return NULL; +} + +struct fy_streaming_alias * +fy_parser_streaming_alias_lookup_pivot(struct fy_parser *fyp, struct fy_streaming_alias *fysa_pivot, struct fy_token *fyt_anchor) +{ + struct fy_streaming_alias *fysa; + + assert(fysa_pivot); + /* at first do forwards starting at the pivot */ + for (fysa = fy_streaming_alias_next(&fyp->streaming_aliases, fysa_pivot); fysa != NULL; fysa = fy_streaming_alias_next(&fyp->streaming_aliases, fysa)) { + if (fysa->anchor && fy_token_cmp(fyt_anchor, fysa->anchor) == 0) + return fysa; + } + /* not found? do backwards (more recent) */ + for (fysa = fy_streaming_alias_prev(&fyp->streaming_aliases, fysa_pivot); fysa != NULL; fysa = fy_streaming_alias_prev(&fyp->streaming_aliases, fysa)) { + if (fysa->anchor && fy_token_cmp(fyt_anchor, fysa->anchor) == 0) + return fysa; + } + return NULL; +} + +struct fy_streaming_alias * +fy_parse_streaming_alias_create(struct fy_parser *fyp, struct fy_token *fyt_anchor) +{ + struct fy_streaming_alias *fysa; + + fysa = fy_parse_streaming_alias_alloc(fyp); + fyp_error_check(fyp, fysa != NULL, err_out, + "fy_parse_streaming_alias_alloc() failed!"); + fysa->anchor = fyt_anchor; + fysa->collecting = false; + fysa->mapping_nest = 0; + fysa->sequence_nest = 0; + fy_eventp_list_init(&fysa->events); + + return fysa; + +err_out: + return NULL; +} + +void +fy_parse_streaming_alias_clean(struct fy_parser *fyp, struct fy_streaming_alias *fysa) +{ + struct fy_eventp *fyep; + + if (!fyp || !fysa) + return; + + fy_token_unref(fysa->anchor); + fysa->anchor = NULL; + fysa->collecting = false; + fysa->mapping_nest = 0; + fysa->sequence_nest = 0; + while ((fyep = fy_eventp_list_pop(&fysa->events)) != NULL) + fy_parse_eventp_recycle(fyp, fyep); +} + +void fy_parse_streaming_aliases_reset(struct fy_parser *fyp) +{ + struct fy_streaming_alias *fysa; + struct fy_eventp *fyep; + + if (!fyp) + return; + + while ((fysa = fy_streaming_alias_list_pop(&fyp->streaming_aliases)) != NULL) { + fy_parse_streaming_alias_clean(fyp, fysa); + fy_parse_streaming_alias_recycle(fyp, fysa); + } + if (fyp->sas.stack != NULL && fyp->sas.stack != fyp->sas.local) + free(fyp->sas.stack); + memset(&fyp->sas, 0, sizeof(fyp->sas)); + if (fyp->cts.stack != NULL && fyp->cts.stack != fyp->cts.local) + free(fyp->cts.stack); + memset(&fyp->cts, 0, sizeof(fyp->cts)); + + while ((fyep = fy_eventp_list_pop(&fyp->mks.args)) != NULL) + fy_parse_eventp_recycle(fyp, fyep); + memset(&fyp->mks, 0, sizeof(fyp->mks)); + fy_eventp_list_init(&fyp->mks.args); +} + +struct fy_streaming_alias_state * +fy_parse_streaming_alias_state_push(struct fy_parser *fyp, struct fy_streaming_alias *fysa) +{ + struct fy_streaming_alias_state *new_stack; + struct fy_streaming_alias_state *fysas; + + /* if first one, just point to the local area */ + if (fyp->sas.stack == NULL) { + fyp->sas.stack = fyp->sas.local; + fyp->sas.top = 0; + fyp->sas.alloc = ARRAY_SIZE(fyp->sas.local); + } + /* grow the stack if required */ + if (fyp->sas.top >= fyp->sas.alloc) { + assert(fyp->sas.alloc > 0); + assert(fyp->sas.stack); + new_stack = malloc(sizeof(*new_stack) * fyp->sas.alloc * 2); + fyp_error_check(fyp, new_stack != NULL, err_out, + "realloc() failed!"); + memcpy(new_stack, fyp->sas.stack, sizeof(*new_stack) * fyp->sas.alloc); + fyp->sas.alloc *= 2; + if (fyp->sas.stack != fyp->sas.local) + free(fyp->sas.stack); + fyp->sas.stack = new_stack; + } + /* finally push it */ + fysas = &fyp->sas.stack[fyp->sas.top++]; + + fysas->fysa = fysa; + fysas->next = fy_eventp_list_head(&fysa->events); + + return fysas; +err_out: + return NULL; +} + +struct fy_streaming_alias_state * +fy_parse_streaming_alias_state_pop(struct fy_parser *fyp) +{ + struct fy_streaming_alias_state *fysas; + + if (fyp->sas.top <= 0) + return NULL; + + fysas = &fyp->sas.stack[--fyp->sas.top]; + fysas->fysa = NULL; + fysas->next = NULL; + if (fyp->sas.top <= 0) + return NULL; + return &fyp->sas.stack[fyp->sas.top - 1]; +} + +struct fy_streaming_alias_state * +fy_parse_streaming_alias_state_top(struct fy_parser *fyp) +{ + if (fyp->sas.top <= 0) + return NULL; + return &fyp->sas.stack[fyp->sas.top - 1]; +} + +void +fy_parse_streaming_alias_state_next_event(struct fy_parser *fyp) +{ + struct fy_streaming_alias_state *fysas; + + fysas = fy_parse_streaming_alias_state_top(fyp); + if (!fysas) + return; + + fysas->next = fy_eventp_next(&fysas->fysa->events, fysas->next); + while (!fysas->next) { + fysas = fy_parse_streaming_alias_state_pop(fyp); + if (!fysas) + break; + } +} + +static inline int +fy_parse_streaming_alias_collection_state_set_top(struct fy_parser *fyp, int cts) +{ + int pos, off, old_cts; + + if (fyp->cts.top < 2) + return -1; + + cts &= 3; /* keep 2 bits */ + + /* get position and offset */ + pos = (fyp->cts.top - 2) / (sizeof(*fyp->cts.stack) * 8); + off = (fyp->cts.top - 2) % (sizeof(*fyp->cts.stack) * 8); + + old_cts = (int)((fyp->cts.stack[pos] >> off) & 3); + + /* clear the bits first */ + fyp->cts.stack[pos] &= ~(3 << off); + /* set the state */ + fyp->cts.stack[pos] |= (cts & 3) << off; + + return old_cts; +} + +static inline int +fy_parse_streaming_alias_collection_state_top(struct fy_parser *fyp) +{ + int pos, off; + + if (fyp->cts.top < 2) + return -1; + + /* get position and offset */ + pos = (fyp->cts.top - 2) / (sizeof(*fyp->cts.stack) * 8); + off = (fyp->cts.top - 2) % (sizeof(*fyp->cts.stack) * 8); + + return (int)((fyp->cts.stack[pos] >> off) & 3); +} + +static inline bool +fy_parse_streaming_alias_collection_state_in_map_key(struct fy_parser *fyp) +{ + int cts = fy_parse_streaming_alias_collection_state_top(fyp); + return cts == FYCTS_MAP_KEY; +} + +static inline void +fy_parse_streaming_alias_collection_state_toggle_map(struct fy_parser *fyp) +{ + int cts = fy_parse_streaming_alias_collection_state_top(fyp); + if (cts >= 0 && (cts & FYCTS_MAP)) + fy_parse_streaming_alias_collection_state_set_top(fyp, cts ^ FYCTS_MAP_TOGGLE); +} + +int +fy_parse_streaming_alias_collection_state_push(struct fy_parser *fyp, int cts) +{ + uint32_t *new_stack; + int size; + + assert(cts >= 0); + + /* if first one, just point to the local area */ + if (fyp->cts.stack == NULL) { + fyp->cts.stack = fyp->cts.local; + fyp->cts.top = 0; + fyp->cts.alloc = sizeof(fyp->cts.local) * 8; /* in bits */ + } + /* grow the stack if required */ + if (fyp->cts.top + 2 >= fyp->cts.alloc) { + assert(fyp->cts.alloc > 0); + assert(fyp->cts.stack); + size = fyp->cts.alloc / 8; /* convert to bytes */ + new_stack = malloc(size * 2); + fyp_error_check(fyp, new_stack != NULL, err_out, + "realloc() failed!"); + memcpy(new_stack, fyp->cts.stack, size); + memset((uint8_t *)new_stack + size, 0, size); + fyp->cts.alloc *= 2; + if (fyp->cts.stack != fyp->cts.local) + free(fyp->cts.stack); + fyp->cts.stack = new_stack; + } + + fyp->cts.top += 2; + fy_parse_streaming_alias_collection_state_set_top(fyp, cts); + return cts; +err_out: + return -1; +} + +int +fy_parse_streaming_alias_collection_state_pop(struct fy_parser *fyp) +{ + int ret; + + ret = fy_parse_streaming_alias_collection_state_top(fyp); + if (ret >= 0) + fyp->cts.top -= 2; + return ret; +} + +static int +fy_parser_event_resolve_hook_collect(struct fy_parser *fyp, struct fy_eventp *fyep) +{ + struct fy_eventp *fyep_clone = NULL; + struct fy_streaming_alias *fysa; + long map_add, seq_add; + + if (!fyp || !fyep) + return -1; + + map_add = seq_add = 0; + switch (fyep->e.type) { + case FYET_MAPPING_START: + map_add = 1; + break; + case FYET_MAPPING_END: + map_add = -1; + break; + case FYET_SEQUENCE_START: + seq_add = 1; + break; + case FYET_SEQUENCE_END: + seq_add = -1; + break; + default: + break; + } + + /* for all streaming aliases that are collecting... */ + for (fysa = fy_streaming_alias_list_head(&fyp->streaming_aliases); fysa != NULL; fysa = fy_streaming_alias_next(&fyp->streaming_aliases, fysa)) { + if (!fysa->collecting) + continue; + + /* clone event, stripping the anchors */ + fyep_clone = fy_parse_eventp_clone(fyp, fyep, true); + fyp_error_check(fyp, fyep_clone != NULL, err_out, + "fy_parse_eventp_clone() failed!"); + + /* add to the list */ + fy_eventp_list_add_tail(&fysa->events, fyep_clone); + fyep_clone = NULL; + + /* the scalar will be collected every time */ + fysa->mapping_nest += map_add; + fysa->sequence_nest += seq_add; + + if (fysa->mapping_nest == 0 && fysa->sequence_nest == 0) + fysa->collecting = false; + } + + return 0; + +err_out: + fy_parse_eventp_recycle(fyp, fyep_clone); + fyp->stream_error = true; + return -1; +} + +struct fy_eventp *fy_parser_event_resolve_hook_alias(struct fy_parser *fyp, struct fy_eventp *fyep) +{ + struct fy_token *fyt_anchor = NULL; + struct fy_streaming_alias *fysa; + struct fy_streaming_alias_state *fysas; + + if (!fyp || !fyep) + return NULL; + + /* if it's not an alias, continue normal processing */ + if (fyep->e.type != FYET_ALIAS) + return fyep; + + /* it's an alias, get the token and dispose the event */ + fyt_anchor = fyep->e.alias.anchor; + fyep->e.alias.anchor = NULL; + fy_parse_eventp_recycle(fyp, fyep); + fyep = NULL; + + /* start generation of alias events */ + fysa = fy_parser_streaming_alias_lookup(fyp, fyt_anchor); + + /* we don't support forward aliases for now like we do in document mode ... */ + FYP_TOKEN_ERROR_CHECK(fyp, fyt_anchor, FYEM_PARSE, + fysa, err_out, + "alias not found; note streaming mode does not support forward alias references"); + + /* if this is a reference to a collecting alias, then it's recursive */ + FYP_TOKEN_ERROR_CHECK(fyp, fyt_anchor, FYEM_PARSE, + !fysa->collecting, err_out, + "Recursive alias reference detected"); + + fy_token_unref(fyt_anchor); + fyt_anchor = NULL; + + fysas = fy_parse_streaming_alias_state_push(fyp, fysa); + fyp_error_check(fyp, fysas, err_out, + "fy_parse_streaming_alias_push() failed!"); + assert(fysas->next); + + fyep = fy_parse_eventp_clone(fyp, fysas->next, true); + fyp_error_check(fyp, fyep != NULL, err_out, + "fy_parse_eventp_clone() failed!"); + + /* advance event */ + fy_parse_streaming_alias_state_next_event(fyp); + + return fyep; + +err_out: + fy_token_unref(fyt_anchor); + fyp->stream_error = true; + return NULL; +} + +struct fy_eventp *fy_parser_event_resolve_hook_anchor_start(struct fy_parser *fyp, struct fy_eventp *fyep) +{ + struct fy_token *fyt_anchor = NULL; + struct fy_streaming_alias *fysa = NULL; + + if (!fyep) + return NULL; + + /* is there an anchor?, is so get it and clear it */ + fyt_anchor = fy_event_get_and_clear_anchor_token(&fyep->e); + if (!fyt_anchor) + return fyep; + + fysa = fy_parse_streaming_alias_create(fyp, fyt_anchor); + fyp_error_check(fyp, fysa != NULL, err_out, + "fy_parser_streaming_alias_create() failed!"); + fyt_anchor = NULL; + + /* we just mark that we're collecting + * the collection hook will pick up the first event + * including the scalar one + */ + fysa->collecting = true; + fysa->sequence_nest = 0; + fysa->mapping_nest = 0; + + /* always add to the head of the list (overrides what follows with the same name) */ + fy_streaming_alias_list_add(&fyp->streaming_aliases, fysa); + + return fyep; + +err_out: + fy_token_unref(fyt_anchor); + fy_parse_streaming_alias_clean(fyp, fysa); + fy_parse_streaming_alias_recycle(fyp, fysa); + fy_parse_eventp_recycle(fyp, fyep); + return NULL; +} + +static struct fy_document * +fy_parser_get_merge_key_argument(struct fy_parser *fyp, struct fy_document_builder *fydb, struct fy_node *fyn) +{ + struct fy_streaming_alias *fysa; + struct fy_document *fyd_new = NULL; + struct fy_document_state *fyds = NULL; + int rc; + + if (!fy_node_is_alias(fyn)) + return NULL; + + /* get the alias */ + fysa = fy_parser_streaming_alias_lookup(fyp, fyn->scalar); + FYP_TOKEN_ERROR_CHECK(fyp, fyn->scalar, FYEM_PARSE, + fysa, err_out, + "Unable to find merge key argument alias"); + + /* if this is a reference to a collecting alias, then it's recursive */ + FYP_TOKEN_ERROR_CHECK(fyp, fyn->scalar, FYEM_PARSE, + !fysa->collecting, err_out, + "merge key recursive alias reference detected"); + + fyds = fy_parser_get_document_state(fyp); + fyp_error_check(fyp, fyds, err_out, + "fy_parser_get_document_state() failed"); + + rc = fy_document_builder_set_in_document(fydb, fyds, true); + fyp_error_check(fyp, !rc, err_out, + "fy_document_builder_set_target_document() failed\n"); + + /* build a document from the events of the alias (must be the same) */ + fyd_new = fy_document_builder_event_document(fydb, &fysa->events); + fyp_error_check(fyp, fyd_new, err_out, + "fy_document_builder_event_document() failed\n"); + + FYP_TOKEN_ERROR_CHECK(fyp, fyn->scalar, FYEM_PARSE, + fy_node_is_mapping(fyd_new->root), err_out, + "alias argument does not refer to mapping"); + + return fyd_new; + +err_out: + fy_document_destroy(fyd_new); + return NULL; +} + +static struct fy_document * +fy_parser_get_merge_key_document(struct fy_parser *fyp, struct fy_eventp *fyep) +{ + struct fy_event *fye; + struct fy_document_builder_cfg cfg; + struct fy_document_builder *fydb = NULL; + struct fy_document *fyd = NULL, *fyd_arg = NULL; + struct fy_document_state *fyds; + struct fy_node *fyn = NULL, *fyn_src = NULL; + struct fy_node *new_root = NULL; + struct fy_node_pair *fynp, *fynp_exists; + void *iters, *iterm; + int rc; + + fye = &fyep->e; + + memset(&cfg, 0, sizeof(cfg)); + cfg.parse_cfg = fyp->cfg; + cfg.diag = fy_diag_ref(fyp->diag); + + fydb = fy_document_builder_create(&cfg); + fyp_error_check(fyp, fydb, err_out, + "fy_document_builder_create() failed\n"); + + fyds = fy_parser_get_document_state(fyp); + /* start with this document state */ + fyds = fy_parser_get_document_state(fyp); + rc = fy_document_builder_set_in_document(fydb, fyds, true); + fyp_error_check(fyp, !rc, err_out, + "fy_document_builder_set_in_document() failed\n"); + + fyd = fy_document_builder_load_document(fydb, fyp); + fyp_error_check(fyp, fyd, err_out, + "fy_document_builder_load_document() failed\n"); + + FYP_TOKEN_ERROR_CHECK(fyp, fy_event_get_token(fye), FYEM_PARSE, + fyd->root, err_out, + "merge key arguments must exist"); + + /* single alias, replace */ + if (fy_node_is_alias(fyd->root)) { + fyd_arg = fy_parser_get_merge_key_argument(fyp, fydb, fyd->root); + fyp_error_check(fyp, fyd_arg, err_out, + "fy_parser_get_merge_key_argument() failed\n"); + fy_node_free(fyd->root); + fyd->root = fy_node_copy(fyd, fyd_arg->root); + + fy_document_destroy(fyd_arg); + fyd_arg = NULL; + + } else if (fy_node_is_mapping(fyd->root)) { + + /* nothing, already a mapping */ + + } else if (fy_node_is_sequence(fyd->root)) { + + new_root = fy_node_create_mapping(fyd); + fyp_error_check(fyp, new_root, err_out, + "fy_node_create_mapping() failed\n"); + + iters = NULL; + while ((fyn_src = fy_node_sequence_iterate(fyd->root, &iters)) != NULL) { + + if (fy_node_is_alias(fyn_src)) { + fyd_arg = fy_parser_get_merge_key_argument(fyp, fydb, fyn_src); + fyp_error_check(fyp, fyd_arg, err_out, + "fy_parser_get_merge_key_argument() failed\n"); + + fyn = fy_node_copy(fyd, fyd_arg->root); + fyp_error_check(fyp, fyn, err_out, + "fy_node_copy() failed\n"); + fy_document_destroy(fyd_arg); + fyd_arg = NULL; + + } else { + FYP_NODE_ERROR_CHECK(fyp, fyn_src, FYEM_PARSE, + fy_node_is_mapping(fyn_src), err_out, + "merge key argument is not a mapping or an alias to such"); + fyn = fy_node_copy(fyd, fyn_src); + fyp_error_check(fyp, fyn, err_out, + "fy_node_copy() failed\n"); + } + + iterm = NULL; + while ((fynp = fy_node_mapping_iterate(fyn, &iterm)) != NULL) { + fynp_exists = fy_node_mapping_lookup_pair(new_root, fynp->key); + + /* do not override existing keys */ + if (fynp_exists) + continue; + + /* add it to the mapping */ + rc = fy_node_mapping_append(new_root, fy_node_copy(fyd, fynp->key), fy_node_copy(fyd, fynp->value)); + fyp_error_check(fyp, !rc, err_out, + "fy_node_mapping_append() failed\n"); + } + + /* and we're done with it */ + fy_node_free(fyn); + fyn = NULL; + } + fy_node_free(fyd->root); + fyd->root = new_root; + + } else { + FYP_TOKEN_ERROR(fyp, fy_event_get_token(fye), FYEM_PARSE, + "merge key argument is neither an alias or a mapping"); + goto err_out; + } + + fy_document_builder_destroy(fydb); + fydb = NULL; + + return fyd; + +err_out: + fy_node_free(new_root); + fy_document_destroy(fyd_arg); + fy_document_destroy(fyd); + fy_document_builder_destroy(fydb); + return NULL; +} + +struct fy_eventp *fy_parser_event_resolve_hook_merge_key_start(struct fy_parser *fyp, struct fy_eventp *fyep) +{ + struct fy_document *fyd = NULL; + struct fy_document_iterator *fydi = NULL; + struct fy_eventp *fyep_next = NULL; + struct fy_event *fye; + struct fy_streaming_alias *fysa; + struct fy_streaming_alias_state *fysas; + + FYP_TOKEN_ERROR_CHECK(fyp, fyep->e.scalar.value, FYEM_PARSE, + !fyp->mks.active, err_out, + "No recursive merge key processing is supported"); + + fyd = fy_parser_get_merge_key_document(fyp, fyep); + FYP_TOKEN_ERROR_CHECK(fyp, fyep->e.scalar.value, FYEM_PARSE, + fyd, err_out, + "No merge key argument document"); + + fysa = fy_parse_streaming_alias_create(fyp, NULL); + fyp_error_check(fyp, fysa, err_out, + "fy_parse_streaming_alias_create() failed"); + + fydi = fy_document_iterator_create(); + fyp_error_check(fyp, fydi, err_out, + "fy_document_iterator_create() failed"); + + fy_document_iterator_node_start(fydi, fyd->root); + + /* now append all to the (fake) streaming anchor */ + while ((fye = fy_document_iterator_body_next(fydi)) != NULL) { + fyep_next = container_of(fye, struct fy_eventp, e); + fy_eventp_list_add_tail(&fysa->events, fyep_next); + } + + fy_document_iterator_destroy(fydi); + fy_document_destroy(fyd); + fyd = NULL; + + /* and add it to the start of the list */ + fy_streaming_alias_list_add(&fyp->streaming_aliases, fysa); + + /* OK, trim mapping start and end */ + fyep_next = fy_eventp_list_head(&fysa->events); + fyp_error_check(fyp, fyep_next->e.type == FYET_MAPPING_START, err_out, + "not a mapping merge key start"); + fy_eventp_list_del(&fysa->events, fyep_next); + fy_eventp_free(fyep_next); + + fyep_next = fy_eventp_list_tail(&fysa->events); + fyp_error_check(fyp, fyep_next->e.type == FYET_MAPPING_END, err_out, + "not a mapping merge key end"); + fy_eventp_list_del(&fysa->events, fyep_next); + fy_eventp_free(fyep_next); + + /* OK, push the new state */ + fysas = fy_parse_streaming_alias_state_push(fyp, fysa); + fyp_error_check(fyp, fysas, err_out, + "fy_parse_streaming_alias_push() failed!"); + assert(fysas->next); + + /* dispose of the event */ + fy_parse_eventp_recycle(fyp, fyep); + fyep = NULL; + + fyep = fy_parse_eventp_clone(fyp, fysas->next, true); + fyp_error_check(fyp, fyep != NULL, err_out, + "fy_parse_eventp_clone() failed!"); + + /* advance event */ + fy_parse_streaming_alias_state_next_event(fyp); + + return fyep; + +err_out: + fy_document_iterator_destroy(fydi); + fy_document_destroy(fyd); + fy_parse_eventp_recycle(fyp, fyep_next); + fy_parse_eventp_recycle(fyp, fyep); + return NULL; +} + +struct fy_eventp *fy_parser_event_resolve_hook_merge_key(struct fy_parser *fyp, struct fy_eventp *fyep) +{ + /* will toggle the map key bit if it is in a mapping */ + fy_parse_streaming_alias_collection_state_toggle_map(fyp); + switch (fyep->e.type) { + case FYET_SCALAR: + /* if a merge key is detected do the dance */ + if (fy_parse_streaming_alias_collection_state_in_map_key(fyp) && + fy_token_scalar_style(fyep->e.scalar.value) == FYSS_PLAIN && + fy_plain_atom_streq(fy_token_atom(fyep->e.scalar.value), "<<")) + return fy_parser_event_resolve_hook_merge_key_start(fyp, fyep); + break; + case FYET_ALIAS: + /* nothing for alias */ + break; + case FYET_MAPPING_START: + fy_parse_streaming_alias_collection_state_push(fyp, FYCTS_MAP_VAL); /* it will toggle to key at the first one */ + break; + case FYET_SEQUENCE_START: + fy_parse_streaming_alias_collection_state_push(fyp, FYCTS_SEQ); + break; + case FYET_MAPPING_END: + case FYET_SEQUENCE_END: + fy_parse_streaming_alias_collection_state_pop(fyp); + break; + default: + break; + } + + return fyep; +} + +/* NOTE: order is _very_ important, do not re-arrange if you're not sure */ +struct fy_eventp *fy_parser_event_resolve_hook(struct fy_parser *fyp, struct fy_eventp *fyep) +{ + int rc; + + /* merge key processing for version 1.1 only! */ + if (fy_reader_get_mode(fyp->reader) == fyrm_yaml_1_1) { + fyep = fy_parser_event_resolve_hook_merge_key(fyp, fyep); + fyp_error_check(fyp, fyep != NULL, err_out, + "fy_parser_event_resolve_hook_collection_tracking() failed!"); + } + + /* anchor marking */ + fyep = fy_parser_event_resolve_hook_anchor_start(fyp, fyep); + fyp_error_check(fyp, fyep != NULL, err_out, + "fy_parser_event_resolve_hook_anchor_start() failed!"); + + /* collect afterwards */ + rc = fy_parser_event_resolve_hook_collect(fyp, fyep); + fyp_error_check(fyp, !rc, err_out, + "fy_parser_event_resolve_hook_collect() failed!"); + + /* finally do first entry into alias processing */ + fyep = fy_parser_event_resolve_hook_alias(fyp, fyep); + fyp_error_check(fyp, fyep != NULL, err_out, + "fy_parser_event_resolve_hook_alias() failed!"); + + return fyep; + +err_out: + return NULL; +} + +struct fy_eventp *fy_parser_parse_resolve_prolog(struct fy_parser *fyp) +{ + struct fy_streaming_alias *fysa; + struct fy_streaming_alias_state *fysas; + struct fy_eventp *fyep, *fyep_src; + bool was_merge_key; + int rc; + + if (!(fyp->cfg.flags & FYPCF_RESOLVE_DOCUMENT)) + return NULL; + + fysas = fy_parse_streaming_alias_state_top(fyp); + if (!fysas) + return NULL; + + was_merge_key = false; + for (;;) { + fysa = fysas->fysa; + assert(fysa); + + assert(fysas->next != NULL); + + /* keep track of it */ + fyep_src = fysas->next; + + /* merge key entries don't have an anchor */ + was_merge_key = fysa->anchor == NULL; + + /* advance event */ + fy_parse_streaming_alias_state_next_event(fyp); + + /* not an alias, continue normally */ + if (fyep_src->e.type != FYET_ALIAS) + break; + + /* get the anchor that was defined closest to this one */ + fysa = fy_parser_streaming_alias_lookup_pivot(fyp, fysa, fyep_src->e.alias.anchor); + fyp_error_check(fyp, fysa, err_out, + "fy_parser_streaming_alias_lookup_pivot() failed!"); + + /* and push */ + fysas = fy_parse_streaming_alias_state_push(fyp, fysa); + fyp_error_check(fyp, fysas, err_out, + "fy_parse_streaming_alias_state_push() failed!"); + } + + fyep = fy_parse_eventp_clone(fyp, fyep_src, true); + fyp_error_check(fyp, fyep != NULL, err_out, + "fy_parse_eventp_clone() failed!"); + + if (was_merge_key) { + rc = fy_parser_event_resolve_hook_collect(fyp, fyep_src); + fyp_error_check(fyp, !rc, err_out, + "fy_parser_event_resolve_hook_collect() failed!"); + } + + return fyep; + +err_out: + fyp->stream_error = true; + return NULL; +} + +struct fy_eventp *fy_parser_parse_resolve_epilog(struct fy_parser *fyp, struct fy_eventp *fyep) +{ + if (!(fyp->cfg.flags & FYPCF_RESOLVE_DOCUMENT)) + return fyep; + + fyep = fy_parser_event_resolve_hook(fyp, fyep); + if (!fyep) + fyp->stream_error = true; + + return fyep; +} diff --git a/Sources/Cfyaml/src/lib/fy-parse.h b/Sources/Cfyaml/src/lib/fy-parse.h index 11e71bf61..d7e502d81 100644 --- a/Sources/Cfyaml/src/lib/fy-parse.h +++ b/Sources/Cfyaml/src/lib/fy-parse.h @@ -42,6 +42,9 @@ struct fy_parser; struct fy_input; +/* for the event */ +FY_PARSE_TYPE_DECL_ALLOC(eventp); + enum fy_flow_type { FYFT_NONE, FYFT_MAP, @@ -137,6 +140,33 @@ struct fy_parse_state_log { }; FY_PARSE_TYPE_DECL(parse_state_log); +struct fy_streaming_alias { + struct list_head node; + struct fy_token *anchor; + bool collecting; + long mapping_nest; + long sequence_nest; + struct fy_eventp_list events; +}; +FY_PARSE_TYPE_DECL(streaming_alias); + +struct fy_streaming_alias_state { + struct fy_streaming_alias *fysa; + struct fy_eventp *next; +}; + +/* 2 bits per collection tracking state + * pos: * 2 + * bit 0 - 0 map, 1 seq + * bit 1 - 0 key, 1 val (if map) + */ +#define FYCTS_SCALAR 0 +#define FYCTS_SEQ 1 +#define FYCTS_MAP 2 +#define FYCTS_MAP_KEY 2 +#define FYCTS_MAP_VAL 3 +#define FYCTS_MAP_TOGGLE 1 + struct fy_parser { struct fy_parse_cfg cfg; @@ -159,6 +189,7 @@ struct fy_parser { bool bare_document_only : 1; /* no document start indicators allowed, no directives */ bool stream_has_content : 1; bool parse_flow_only : 1; /* document is in flow form, and stop parsing at the end */ + bool parse_block_only : 1; /* document is in embedded block form, and stop parsing at the end */ bool colon_follows_colon : 1; /* "foo"::bar -> "foo": :bar */ bool had_directives : 1; /* document had directives */ int flow_level; @@ -183,6 +214,7 @@ struct fy_parser { int indent; int parent_indent; int indent_line; + int starting_indent; /* simple key stack */ struct fy_simple_key_list simple_keys; /* state stack */ @@ -203,6 +235,7 @@ struct fy_parser { struct fy_simple_key_list recycled_simple_key; struct fy_parse_state_log_list recycled_parse_state_log; struct fy_flow_list recycled_flow; + struct fy_streaming_alias_list recycled_streaming_alias; struct fy_eventp_list recycled_eventp; struct fy_token_list recycled_token; @@ -223,6 +256,31 @@ struct fy_parser { struct fy_composer *fyc; fy_parse_composer_cb fyc_cb; void *fyc_userdata; + + /* last generated event atom */ + struct fy_atom last_event_handle; + + struct fy_streaming_alias_list streaming_aliases; + /* streaming alias state */ + struct { + int alloc; + int top; + struct fy_streaming_alias_state *stack; + struct fy_streaming_alias_state local[8]; + } sas; + /* collection tracking state */ + struct { + int alloc; + int top; + uint32_t *stack; + uint32_t local[8]; /* 8 * 32 = 256 / 2 = 128 levels before needing dynamic allocation */ + } cts; + /* merge key state */ + struct { + bool active; + struct fy_eventp_list args; + struct fy_document *fyd; + } mks; }; static inline struct fy_input * @@ -533,6 +591,12 @@ fy_parser_set_flow_only_mode(struct fy_parser *fyp, bool flow_only_mode) fyp->parse_flow_only = flow_only_mode; } +static inline void +fy_parser_set_block_only_mode(struct fy_parser *fyp, bool block_only_mode) +{ + fyp->parse_block_only = block_only_mode; +} + #define fy_fill_atom_a(_fyp, _advance) \ fy_fill_atom((_fyp), (_advance), alloca(sizeof(struct fy_atom))) @@ -550,6 +614,7 @@ int fy_parse_setup(struct fy_parser *fyp, const struct fy_parse_cfg *cfg); void fy_parse_cleanup(struct fy_parser *fyp); int fy_parse_input_append(struct fy_parser *fyp, const struct fy_input_cfg *fyic); +ssize_t fy_parse_estimate_queued_input_size(struct fy_parser *fyp); struct fy_eventp *fy_parse_private(struct fy_parser *fyp); @@ -589,4 +654,12 @@ static inline int fy_document_state_version_compare(struct fy_document_state *fy int fy_parse_set_composer(struct fy_parser *fyp, fy_parse_composer_cb cb, void *userdata); +struct fy_streaming_alias * +fy_parse_streaming_alias_create(struct fy_parser *fyp, struct fy_token *fyt_anchor); +void fy_parse_streaming_alias_clean(struct fy_parser *fyp, struct fy_streaming_alias *fysa); +void fy_parse_streaming_aliases_reset(struct fy_parser *fyp); + +struct fy_eventp *fy_parser_parse_resolve_prolog(struct fy_parser *fyp); +struct fy_eventp *fy_parser_parse_resolve_epilog(struct fy_parser *fyp, struct fy_eventp *fyep); + #endif diff --git a/Sources/Cfyaml/src/lib/fy-path.c b/Sources/Cfyaml/src/lib/fy-path.c index f9d9f99a4..12fb32696 100644 --- a/Sources/Cfyaml/src/lib/fy-path.c +++ b/Sources/Cfyaml/src/lib/fy-path.c @@ -658,3 +658,60 @@ void fy_path_component_set_sequence_user_data(struct fy_path_component *fypc, vo fypc->user_data = data; } + +void *fy_path_get_parent_user_data(struct fy_path *fypp) +{ + struct fy_path_component *parent; + + if (fy_path_in_root(fypp)) + return fy_path_get_root_user_data(fypp); + + parent = fy_path_last_not_collection_root_component(fypp); + if (fy_path_in_sequence(fypp)) + return fy_path_component_get_sequence_user_data(parent); + else + return fy_path_component_get_mapping_user_data(parent); +} + +void fy_path_set_parent_user_data(struct fy_path *fypp, void *data) +{ + struct fy_path_component *parent; + + if (fy_path_in_root(fypp)) { + fy_path_set_root_user_data(fypp, data); + } else { + parent = fy_path_last_not_collection_root_component(fypp); + if (fy_path_in_sequence(fypp)) + fy_path_component_set_sequence_user_data(parent, data); + else + fy_path_component_set_mapping_user_data(parent, data); + } +} + +void *fy_path_get_last_user_data(struct fy_path *fypp) +{ + struct fy_path_component *last; + + last = fy_path_last_component(fypp); + if (!last) + return NULL; + + if (last->type == FYPCT_SEQ) + return fy_path_component_get_sequence_user_data(last); + else + return fy_path_component_get_mapping_user_data(last); +} + +void fy_path_set_last_user_data(struct fy_path *fypp, void *data) +{ + struct fy_path_component *last; + + last = fy_path_last_component(fypp); + if (!last) + return; + + if (last->type == FYPCT_SEQ) + fy_path_component_set_sequence_user_data(last, data); + else + fy_path_component_set_mapping_user_data(last, data); +} diff --git a/Sources/Cfyaml/src/lib/fy-token.c b/Sources/Cfyaml/src/lib/fy-token.c index 7fa7c0f36..bfcf27df6 100644 --- a/Sources/Cfyaml/src/lib/fy-token.c +++ b/Sources/Cfyaml/src/lib/fy-token.c @@ -17,7 +17,6 @@ #include #include #include -#include #include @@ -72,6 +71,10 @@ void fy_token_clean_rl(struct fy_token_list *fytl, struct fy_token *fyt) free(fyt->tag.suffix0); fyt->tag.suffix0 = NULL; } + if (fyt->tag.short0) { + free(fyt->tag.short0); + fyt->tag.short0 = NULL; + } break; case FYTT_TAG_DIRECTIVE: @@ -427,6 +430,7 @@ struct fy_token *fy_token_vcreate_rl(struct fy_token_list *fytl, enum fy_token_t fyt->scalar.path_key = NULL; fyt->scalar.path_key_len = 0; fyt->scalar.path_key_storage = NULL; + fyt->scalar.is_null = false; /* by default the scalar is not NULL */ break; case FYTT_TAG: fyt->tag.skip = va_arg(ap, unsigned int); @@ -439,6 +443,7 @@ struct fy_token *fy_token_vcreate_rl(struct fy_token_list *fytl, enum fy_token_t fyt->tag.fyt_td = fy_token_ref(fyt_td); fyt->tag.handle0 = NULL; fyt->tag.suffix0 = NULL; + fyt->tag.short0 = NULL; break; case FYTT_VERSION_DIRECTIVE: @@ -638,11 +643,10 @@ const struct fy_mark *fy_token_end_mark(struct fy_token *fyt) int fy_token_text_analyze(struct fy_token *fyt) { - const char *s, *e; - const char *value = NULL; + struct fy_atom_iter iter; enum fy_atom_style style; - int c, w, cn, cp, col; - size_t len; + int c, cn, cnn, cp, col; + uint8_t col0si, col0ei; /* mask for --- ... at indent 0 */ int flags; if (!fyt) @@ -674,12 +678,16 @@ int fy_token_text_analyze(struct fy_token *fyt) if (!fy_atom_style_is_block(style)) flags |= FYTTAF_DIRECT_OUTPUT; - /* get value */ - value = fy_token_get_text(fyt, &len); - if (!value || len == 0) { + fy_atom_iter_start(&fyt->handle, &iter); + + col = 0; + + /* get first character */ + cn = fy_atom_iter_utf8_get(&iter); + if (cn < 0) { + /* empty? */ flags |= FYTTAF_EMPTY | FYTTAF_CAN_BE_DOUBLE_QUOTED | FYTTAF_CAN_BE_UNQUOTED_PATH_KEY; - fyt->analyze_flags = flags; - return flags; + goto out; } flags |= FYTTAF_CAN_BE_PLAIN | @@ -691,44 +699,50 @@ int fy_token_text_analyze(struct fy_token *fyt) FYTTAF_CAN_BE_PLAIN_FLOW | FYTTAF_CAN_BE_UNQUOTED_PATH_KEY; - /* start with document indicators must be quoted at indent 0 */ - if (len >= 3 && (!memcmp(value, "---", 3) || !memcmp(value, "...", 3))) - flags |= FYTTAF_QUOTE_AT_0; - - s = value; - e = value + len; - - col = 0; - - /* get first character */ - cn = fy_utf8_get(s, e - s, &w); - s += w; - col = fy_token_is_lb(fyt, cn) ? 0 : (col + 1); + col0si = col0ei = 0; /* disable folded right off the bat, it's a pain */ flags &= ~FYTTAF_CAN_BE_FOLDED; /* plain scalars can't start with any indicator (or space/lb) */ - if ((flags & (FYTTAF_CAN_BE_PLAIN | FYTTAF_CAN_BE_PLAIN_FLOW)) && - (fy_is_indicator(cn) || fy_token_is_lb(fyt, cn) || fy_is_ws(cn))) - flags &= ~(FYTTAF_CAN_BE_PLAIN | - FYTTAF_CAN_BE_PLAIN_FLOW); + if ((flags & (FYTTAF_CAN_BE_PLAIN | FYTTAF_CAN_BE_PLAIN_FLOW))) { + if (fy_is_start_indicator(cn) || fy_token_is_lb(fyt, cn) || fy_is_ws(cn)) + flags &= ~(FYTTAF_CAN_BE_PLAIN | FYTTAF_CAN_BE_PLAIN_FLOW); + } /* plain scalars in flow mode can't start with a flow indicator */ if ((flags & FYTTAF_CAN_BE_PLAIN_FLOW) && fy_is_flow_indicator(cn)) flags &= ~FYTTAF_CAN_BE_PLAIN_FLOW; + if ((flags & (FYTTAF_CAN_BE_PLAIN | FYTTAF_CAN_BE_PLAIN_FLOW))) { + cnn = fy_atom_iter_utf8_peek(&iter); + if (fy_is_blankz_m(cnn, fy_token_atom_lb_mode(fyt)) && fy_is_indicator_before_space(cn)) + flags &= ~(FYTTAF_CAN_BE_PLAIN | FYTTAF_CAN_BE_PLAIN_FLOW); + } + /* plain unquoted path keys can only start with [a-zA-Z_] */ if ((flags & FYTTAF_CAN_BE_UNQUOTED_PATH_KEY) && !fy_is_first_alpha(cn)) flags &= ~FYTTAF_CAN_BE_UNQUOTED_PATH_KEY; cp = -1; - for (c = cn; c >= 0; s += w, cp = c, c = cn) { + for (c = cn; c >= 0; cp = c, c = cn) { + + if (col <= 2) { + if (cn == '-') { + col0si |= (uint8_t)1 << col; + if (col0si == 7) + flags |= FYTTAF_HAS_START_IND | FYTTAF_QUOTE_AT_0; + } else if (cn == '.') { + col0ei |= (uint8_t)1 << col; + if (col0ei == 7) + flags |= FYTTAF_HAS_END_IND | FYTTAF_QUOTE_AT_0; + } + } /* can be -1 on end */ - cn = fy_utf8_get(s, e - s, &w); + cn = fy_atom_iter_utf8_get(&iter); /* zero can't be output, only in double quoted mode */ if (c == 0) { @@ -779,12 +793,11 @@ int fy_token_text_analyze(struct fy_token *fyt) flags &= ~FYTTAF_CAN_BE_PLAIN_FLOW; /* non printable characters, turn off these styles */ - if ((flags & (FYTTAF_CAN_BE_SINGLE_QUOTED | - FYTTAF_CAN_BE_LITERAL | - FYTTAF_CAN_BE_FOLDED)) && !fy_is_print(c)) - flags &= ~(FYTTAF_CAN_BE_SINGLE_QUOTED | - FYTTAF_CAN_BE_LITERAL | + if (!fy_is_print(c)) { + flags &= ~(FYTTAF_CAN_BE_SINGLE_QUOTED | FYTTAF_CAN_BE_LITERAL | FYTTAF_CAN_BE_FOLDED); + flags |= FYTTAF_HAS_NON_PRINT; + } /* if there's an escape, it can't be direct */ if ((flags & FYTTAF_DIRECT_OUTPUT) && @@ -793,17 +806,25 @@ int fy_token_text_analyze(struct fy_token *fyt) (style == FYAS_DOUBLE_QUOTED && c == '\\'))) flags &= ~FYTTAF_DIRECT_OUTPUT; - col = fy_token_is_lb(fyt, c) ? 0 : (col + 1); + if (fy_token_is_lb(fyt, c)) { + col = 0; + col0si = col0ei = 0; + } else + col++; + + if (fy_is_any_lb(c)) + flags |= FYTTAF_HAS_ANY_LB; /* last character */ if (cn < 0) { /* if ends with whitespace or linebreak, can't be plain */ - if (fy_is_ws(cn) || fy_token_is_lb(fyt, cn)) + if (fy_is_ws(c) || fy_token_is_lb(fyt, c)) flags &= ~(FYTTAF_CAN_BE_PLAIN | FYTTAF_CAN_BE_PLAIN_FLOW); } } - +out: + fy_atom_iter_finish(&iter); fyt->analyze_flags = flags; return flags; } @@ -939,6 +960,58 @@ const char *fy_tag_token_suffix0(struct fy_token *fyt) return fyt->tag.suffix0; } +const char *fy_tag_token_short(struct fy_token *fyt, size_t *lenp) +{ + const char *handle, *suffix; + size_t handle_len, suffix_len; + char *text0; + + if (!fyt || fyt->type != FYTT_TAG) + return NULL; + + /* use the cache if it's there (and doesn't need a rebuild) */ + if (fyt->tag.short0 && !fy_token_text_needs_rebuild(fyt)) + return fyt->tag.short0; + + if (fyt->tag.short0) { + free(fyt->tag.short0); + fyt->tag.short0 = NULL; + } + + handle = fy_tag_token_handle(fyt, &handle_len); + if (!handle) + return NULL; + + suffix = fy_tag_token_suffix(fyt, &suffix_len); + if (!suffix) + return NULL; + + text0 = malloc(handle_len + suffix_len + 1); + if (!text0) + return NULL; + memcpy(text0, handle, handle_len); + memcpy(text0 + handle_len, suffix, suffix_len); + text0[handle_len + suffix_len] = '\0'; + + fyt->tag.short0 = text0; + fyt->tag.short_length = handle_len + suffix_len; + + *lenp = fyt->tag.short_length; + + return fyt->tag.short0; +} + +const char *fy_tag_token_short0(struct fy_token *fyt) +{ + const char *text; + size_t len; + + text = fy_tag_token_short(fyt, &len); + if (!text) + return NULL; + return text; +} + const struct fy_version * fy_version_directive_token_version(struct fy_token *fyt) { if (!fyt || fyt->type != FYTT_VERSION_DIRECTIVE) @@ -1409,7 +1482,7 @@ unsigned int fy_analyze_scalar_content(const char *data, size_t size, /* comment indicator can't be present after a space or lb */ /* : followed by blank can't be any plain */ - if (flags & (FYACF_BLOCK_PLAIN | FYACF_FLOW_PLAIN) && + if ((flags & (FYACF_BLOCK_PLAIN | FYACF_FLOW_PLAIN)) && (((fy_is_blank(c) || fy_is_generic_lb_m(c, lb_mode)) && nextc == '#') || (c == ':' && fy_is_blankz_m(nextc, lb_mode)))) flags &= ~(FYACF_BLOCK_PLAIN | FYACF_FLOW_PLAIN); @@ -1518,6 +1591,7 @@ int fy_token_cmp(struct fy_token *fyt1, struct fy_token *fyt2) const char *t1, *t2; size_t l1, l2, l; int ret; + bool aoa; /* anchor or alias */ /* handles both NULL */ if (fyt1 == fyt2) @@ -1531,8 +1605,12 @@ int fy_token_cmp(struct fy_token *fyt1, struct fy_token *fyt2) if (fyt1 && !fyt2) return 1; + /* special case for comparing anchors and aliases */ + aoa = (fyt1->type == FYTT_ANCHOR || fyt1->type == FYTT_ALIAS) && + (fyt2->type == FYTT_ANCHOR || fyt2->type == FYTT_ALIAS); + /* tokens with different types can't be equal */ - if (fyt1->type != fyt2->type) + if (!aoa && fyt1->type != fyt2->type) return fyt2->type > fyt1->type ? -1 : 1; /* special case, these can't use the atom comparisons */ @@ -1696,8 +1774,11 @@ int fy_token_iter_getc(struct fy_token_iter *iter) return -1; /* first try the pushed ungetc */ - if (iter->unget_c != -1) { + if (iter->unget_c >= 0) { c = iter->unget_c; + /* unmatched getc/ungetc */ + if (fy_utf8_width(c) != 1) + return -1; iter->unget_c = -1; return c; } @@ -1716,14 +1797,18 @@ int fy_token_iter_getc(struct fy_token_iter *iter) int fy_token_iter_ungetc(struct fy_token_iter *iter, int c) { - if (iter->unget_c != -1) + if (!iter || c >= 0x80) return -1; - if (c == -1) { + + if (iter->unget_c >= 0) + return -1; + + if (c < 0) { iter->unget_c = -1; return 0; } - iter->unget_c = c & 0xff; - return c & 0xff; + iter->unget_c = c; + return c; } int fy_token_iter_peekc(struct fy_token_iter *iter) @@ -1741,8 +1826,11 @@ int fy_token_iter_utf8_get(struct fy_token_iter *iter) { int c, w, w1; + if (!iter) + return -1; + /* first try the pushed ungetc */ - if (iter->unget_c != -1) { + if (iter->unget_c >= 0) { c = iter->unget_c; iter->unget_c = -1; return c; @@ -1774,13 +1862,18 @@ int fy_token_iter_utf8_get(struct fy_token_iter *iter) int fy_token_iter_utf8_unget(struct fy_token_iter *iter, int c) { - if (iter->unget_c != -1) + if (!iter) + return -1; + + if (iter->unget_c >= 0) return -1; - if (c == -1) { + if (c < 0) { iter->unget_c = -1; return 0; } + if (!fy_utf8_is_valid(c)) + return -1; iter->unget_c = c; return c; @@ -1868,3 +1961,9 @@ bool fy_token_has_any_comment(struct fy_token *fyt) } return false; } + +bool +fy_token_scalar_is_null(struct fy_token *fyt) +{ + return !fyt || fyt->type != FYTT_SCALAR || fyt->scalar.is_null; +} diff --git a/Sources/Cfyaml/src/lib/fy-token.h b/Sources/Cfyaml/src/lib/fy-token.h index a46495550..8ab84620a 100644 --- a/Sources/Cfyaml/src/lib/fy-token.h +++ b/Sources/Cfyaml/src/lib/fy-token.h @@ -105,6 +105,7 @@ struct fy_token { const char *path_key; size_t path_key_len; char *path_key_storage; /* if this is not null, it's \0 terminated */ + bool is_null; /* special case; the scalar was NULL */ } scalar; struct { unsigned int skip; @@ -113,6 +114,8 @@ struct fy_token { struct fy_token *fyt_td; char *handle0; /* zero terminated and allocated, only used by binding */ char *suffix0; + unsigned int short_length; + char *short0; /* zero terminated and allocated for when the short tag is requested */ struct fy_tag tag; /* prefix is now suffix */ } tag; struct { @@ -439,6 +442,10 @@ static inline bool fy_token_is_flow_ws(struct fy_token *fyt, int c) #define FYTTAF_CAN_BE_PLAIN_FLOW FY_BIT(15) #define FYTTAF_QUOTE_AT_0 FY_BIT(16) #define FYTTAF_CAN_BE_UNQUOTED_PATH_KEY FY_BIT(17) +#define FYTTAF_HAS_ANY_LB FY_BIT(18) /* any LB including unicode, not per input */ +#define FYTTAF_HAS_START_IND FY_BIT(19) /* has --- at col 0 */ +#define FYTTAF_HAS_END_IND FY_BIT(20) /* has ... at col 0 */ +#define FYTTAF_HAS_NON_PRINT FY_BIT(21) /* has any non printable utf8 */ int fy_token_text_analyze(struct fy_token *fyt); diff --git a/Sources/Cfyaml/src/lib/fy-types.c b/Sources/Cfyaml/src/lib/fy-types.c index fd34fabeb..1649e04c1 100644 --- a/Sources/Cfyaml/src/lib/fy-types.c +++ b/Sources/Cfyaml/src/lib/fy-types.c @@ -31,3 +31,4 @@ FY_PARSE_TYPE_DEFINE_SIMPLE(indent); FY_PARSE_TYPE_DEFINE_SIMPLE(simple_key); FY_PARSE_TYPE_DEFINE_SIMPLE(parse_state_log); FY_PARSE_TYPE_DEFINE_SIMPLE(flow); +FY_PARSE_TYPE_DEFINE_SIMPLE(streaming_alias); diff --git a/Sources/Cfyaml/src/thread/.deps/libfyaml_la-fy-thread.Plo b/Sources/Cfyaml/src/thread/.deps/libfyaml_la-fy-thread.Plo new file mode 100644 index 000000000..9ce06a81e --- /dev/null +++ b/Sources/Cfyaml/src/thread/.deps/libfyaml_la-fy-thread.Plo @@ -0,0 +1 @@ +# dummy diff --git a/Sources/Cfyaml/src/thread/fy-thread.c b/Sources/Cfyaml/src/thread/fy-thread.c new file mode 100644 index 000000000..d1f7eaac1 --- /dev/null +++ b/Sources/Cfyaml/src/thread/fy-thread.c @@ -0,0 +1,1156 @@ +/* + * fy-thread.c - Lighting fast thread pool implementation + * + * Copyright (c) 2023 Pantelis Antoniou + * + * SPDX-License-Identifier: MIT + */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#if defined(__linux__) +#include +#include +#endif + +#include "fy-diag.h" +#include "fy-utils.h" +#include "fy-thread.h" + +#undef WORK_SHUTDOWN +#define WORK_SHUTDOWN ((struct fy_thread_work *)(void *)-1) + +#ifdef FY_THREAD_DEBUG +#define TDBG(_fmt, ...) \ + do { fprintf(stderr, (_fmt) __VA_OPT__(,) __VA_ARGS__); } while(0) +#else +#define TDBG(_fmt, ...) \ + do { /* nothing */ } while(0) +#endif + +static void *fy_worker_thread_standard(void *arg); +static void *fy_worker_thread_steal(void *arg); + +static void fy_thread_work_join_standard(struct fy_thread_pool *tp, struct fy_thread_work *works, size_t work_count, fy_work_check_fn check_fn); +static void fy_thread_work_join_steal(struct fy_thread_pool *tp, struct fy_thread_work *works, size_t work_count, fy_work_check_fn check_fn); +static void fy_thread_work_join_steal_2(struct fy_thread_pool *tp, struct fy_thread_work works[2], fy_work_check_fn check_fn); + +#if defined(__linux__) && !defined(FY_THREAD_PORTABLE) + +/* linux pedal to the metal implementation */ +static inline int futex(_Atomic(uint32_t) *uaddr, int futex_op, uint32_t val, const struct timespec *timeout, uint32_t *uaddr2, uint32_t val3) +{ + return syscall(SYS_futex, uaddr, futex_op, val, timeout, uaddr2, val3); +} + +static inline int fwait(_Atomic(uint32_t) *futexp) +{ + long s; + uint32_t one = 1; + + while (!atomic_compare_exchange_strong(futexp, &one, 0)) { + s = futex(futexp, FUTEX_WAIT_PRIVATE, 0, NULL, NULL, 0); + if (s == -1 && errno != EAGAIN) + return -1; + } + return 0; +} + +static inline int fpost(_Atomic(uint32_t) *futexp) +{ + long s; + uint32_t zero = 0; + + if (atomic_compare_exchange_strong(futexp, &zero, 1)) { + s = futex(futexp, FUTEX_WAKE_PRIVATE, 1, NULL, NULL, 0); + if (s == -1) + return -1; + } + return 0; +} + +static inline void fy_thread_init_sync(struct fy_thread *t) +{ + /* nothing more needed for futexes */ + atomic_store(&t->submit, 0); + atomic_store(&t->done, 0); +} + +static inline struct fy_thread_work *fy_worker_wait_for_work(struct fy_thread *t) +{ + struct fy_thread_work *w; + int rc __FY_DEBUG_UNUSED__; + + while ((w = atomic_load(&t->work)) == NULL) { + rc = fwait(&t->submit); + assert(!rc); + } + return w; +} + +static inline void fy_worker_signal_work_done(struct fy_thread *t, struct fy_thread_work *work) +{ + struct fy_thread_work *exp_work; + bool ok __FY_DEBUG_UNUSED__; + int rc __FY_DEBUG_UNUSED__; + + /* note that the work won't be replaced if it's a shutdown */ + exp_work = work; + ok = atomic_compare_exchange_strong(&t->work, &exp_work, NULL); + assert(ok); + + rc = fpost(&t->done); + assert(!rc); +} + +static inline int fy_thread_submit_work_internal(struct fy_thread *t, struct fy_thread_work *work) +{ + struct fy_thread_work *exp_work; + int rc __FY_DEBUG_UNUSED__; + + /* atomically update the work */ + exp_work = NULL; + if (!atomic_compare_exchange_strong(&t->work, &exp_work, work)) + return -1; + + rc = fpost(&t->submit); + assert(!rc); + + return 0; +} + +static inline int fy_thread_wait_work_internal(struct fy_thread *t) +{ + const struct fy_thread_work *work; + + while ((work = atomic_load(&t->work)) != NULL) + fwait(&t->done); + + atomic_store(&t->done, 0); + + return 0; +} + +void fy_worker_thread_shutdown(struct fy_thread *t) +{ + int rc __FY_DEBUG_UNUSED__; + + atomic_store(&t->work, WORK_SHUTDOWN); + rc = fpost(&t->submit); + assert(!rc); + + rc = pthread_join(t->tid, NULL); + assert(!rc); + + if (!(t->tp->cfg.flags & FYTPCF_STEAL_MODE)) + atomic_store(&t->work, NULL); +} + +#else + +/* portable pthread implementation */ + +static inline void fy_thread_init_sync(struct fy_thread *t) +{ + pthread_mutex_init(&t->lock, NULL); + pthread_cond_init(&t->cond, NULL); + + pthread_mutex_init(&t->wait_lock, NULL); + pthread_cond_init(&t->wait_cond, NULL); +} + +static inline struct fy_thread_work *fy_worker_wait_for_work(struct fy_thread *t) +{ + struct fy_thread_work *work; + + pthread_mutex_lock(&t->lock); + while ((work = atomic_load(&t->work)) == NULL) + pthread_cond_wait(&t->cond, &t->lock); + pthread_mutex_unlock(&t->lock); + + return work; +} + +static inline void fy_worker_signal_work_done(struct fy_thread *t, struct fy_thread_work *work) +{ + struct fy_thread_work *exp_work; + + /* clear the work, so that the user knows we're done */ + pthread_mutex_lock(&t->wait_lock); + + /* note that the work won't be replaced if it's a shutdown */ + exp_work = work; + if (!atomic_compare_exchange_strong(&t->work, &exp_work, NULL)) + assert(exp_work == WORK_SHUTDOWN); + pthread_cond_signal(&t->wait_cond); + pthread_mutex_unlock(&t->wait_lock); +} + +static inline int fy_thread_submit_work_internal(struct fy_thread *t, struct fy_thread_work *work) +{ + struct fy_thread_work *exp_work; + int ret; + + /* atomically update the work */ + + assert(t); + assert(work); + + pthread_mutex_lock(&t->lock); + exp_work = NULL; + if (!atomic_compare_exchange_strong(&t->work, &exp_work, work)) { + assert(exp_work == WORK_SHUTDOWN); + ret = -1; + } else { + pthread_cond_signal(&t->cond); + ret = 0; + } + pthread_mutex_unlock(&t->lock); + + return ret; +} + +static inline int fy_thread_wait_work_internal(struct fy_thread *t) +{ + const struct fy_thread_work *work; + + pthread_mutex_lock(&t->wait_lock); + while ((work = atomic_load(&t->work)) != NULL) + pthread_cond_wait(&t->wait_cond, &t->wait_lock); + pthread_mutex_unlock(&t->wait_lock); + + return 0; +} + +void fy_worker_thread_shutdown(struct fy_thread *t) +{ + pthread_mutex_lock(&t->lock); + atomic_store(&t->work, WORK_SHUTDOWN); + pthread_cond_signal(&t->cond); + pthread_mutex_unlock(&t->lock); + pthread_join(t->tid, NULL); +} + +#endif + +static inline struct fy_thread *fy_thread_reserve_internal(struct fy_thread_pool *tp) +{ + struct fy_thread *t; + unsigned int slot; + _Atomic(uint64_t) *free; + uint64_t exp, v; + unsigned int i, num_threads_words; + + t = NULL; + + num_threads_words = FY_BIT64_COUNT(tp->num_threads); + for (i = 0, free = tp->freep; i < num_threads_words; i++, free++) { + v = atomic_load(free); + while (v) { + slot = FY_BIT64_LOWEST(v); + assert(v & FY_BIT64(slot)); + exp = v; /* expecting the previous value */ + v &= ~FY_BIT64(slot); /* clear this bit */ + if (atomic_compare_exchange_strong(free, &exp, v)) { + slot += i * 64; + t = tp->threads + slot; + assert(slot == t->id); + return t; + } + v = exp; + } + } + + return NULL; +} + +static inline void fy_thread_unreserve_internal(struct fy_thread *t) +{ + struct fy_thread_pool *tp; + _Atomic(uint64_t) *free; + + tp = t->tp; + free = tp->freep + (unsigned int)(t->id / 64); + atomic_fetch_or(free, FY_BIT64(t->id & 63)); +} + +static inline bool fy_thread_is_reserved_internal(struct fy_thread *t) +{ + struct fy_thread_pool *tp = t->tp; + _Atomic(uint64_t) *free; + + free = tp->freep + (unsigned int)(t->id / 64); + return !(atomic_load(free) & FY_BIT64(t->id & 63)); +} + +static inline bool fy_thread_pool_are_all_reserved_internal(struct fy_thread_pool *tp) +{ + _Atomic(uint64_t) *free; + uint64_t v, m; + unsigned int i, num_threads_words; + + num_threads_words = FY_BIT64_COUNT(tp->num_threads); + for (i = 0, free = tp->freep; i < num_threads_words - 1; i++, free++) { + v = atomic_load(free); + if (v != (uint64_t)-1) + return false; + } + v = atomic_load(free); + m = FY_BIT64(tp->num_threads & 63) - 1; + return (v & m) == m; +} + +static inline bool fy_thread_pool_is_any_reserved_internal(struct fy_thread_pool *tp) +{ + _Atomic(uint64_t) *free; + uint64_t v, m; + unsigned int i, num_threads_words; + + num_threads_words = FY_BIT64_COUNT(tp->num_threads); + for (i = 0, free = tp->freep; i < num_threads_words - 1; i++, free++) { + v = atomic_load(free); + if (!v) + return true; + } + v = atomic_load(free); + m = FY_BIT64(tp->num_threads & 63) - 1; + return !(v & m); +} + +struct fy_thread *fy_thread_reserve(struct fy_thread_pool *tp) +{ + if (!tp) + return NULL; + + /* only valid for non-work stealing thread pools */ + if (tp->cfg.flags & FYTPCF_STEAL_MODE) + return NULL; + + return fy_thread_reserve_internal(tp); +} + +void fy_thread_unreserve(struct fy_thread *t) +{ + struct fy_thread_pool *tp; + + if (!t) + return; + + tp = t->tp; + assert(tp); + + /* only valid for non-work stealing thread pools */ + if (tp->cfg.flags & FYTPCF_STEAL_MODE) + return; + + fy_thread_unreserve_internal(t); +} + +bool fy_thread_is_reserved(struct fy_thread *t) +{ + if (!t) + return false; + + return fy_thread_is_reserved_internal(t); +} + +bool fy_thread_pool_are_all_reserved(struct fy_thread_pool *tp) +{ + return fy_thread_pool_are_all_reserved_internal(tp); +} + +bool fy_thread_pool_is_any_reserved(struct fy_thread_pool *tp) +{ + return fy_thread_pool_is_any_reserved_internal(tp); +} + +int fy_thread_submit_work(struct fy_thread *t, struct fy_thread_work *work) +{ + if (!t || !work) + return -1; + + if (t->tp->cfg.flags & FYTPCF_STEAL_MODE) + return -1; + + return fy_thread_submit_work_internal(t, work); +} + +int fy_thread_wait_work(struct fy_thread *t) +{ + if (!t) + return -1; + + if (t->tp->cfg.flags & FYTPCF_STEAL_MODE) + return -1; + + return fy_thread_wait_work_internal(t); +} + +void fy_thread_pool_cleanup(struct fy_thread_pool *tp) +{ + struct fy_thread *t; + unsigned int i; + + if (!tp) + return; + + if (tp->threads) { + /* get out of steal mode */ + for (i = 0, t = tp->threads; i < tp->num_threads; i++, t++) { + fy_worker_thread_shutdown(t); + } + + fy_cacheline_free(tp->threads); + } + + memset(tp, 0, sizeof(*tp)); +} + +int fy_thread_pool_setup(struct fy_thread_pool *tp, const struct fy_thread_pool_cfg *cfg) +{ + struct fy_thread *t; + unsigned int i, num_threads, num_threads_words; + size_t size, free_offset, loot_offset, thread_bitmask_size; + void *(*start_routine)(void *); + long scval; + int rc __FY_DEBUG_UNUSED__; + + assert(tp); + + memset(tp, 0, sizeof(*tp)); + + if (!cfg) { + tp->cfg.flags = 0; + tp->cfg.num_threads = 0; + } else + tp->cfg = *cfg; + + if (!tp->cfg.num_threads) { + scval = sysconf(_SC_NPROCESSORS_ONLN); + assert(scval > 0); + num_threads = (unsigned int)scval; + } else + num_threads = tp->cfg.num_threads; + + tp->num_threads = num_threads; + + num_threads_words = FY_BIT64_COUNT(tp->num_threads); + thread_bitmask_size = FY_BIT64_SIZE(tp->num_threads); + + /* the size of the threads, aligned to a cache line */ + size = FY_CACHELINE_SIZE_ALIGN(sizeof(*tp->threads) * tp->num_threads); + + /* the free bitmask array offset */ + free_offset = size; + size = FY_CACHELINE_SIZE_ALIGN(size + thread_bitmask_size); + + /* the loot bitmask array offset, aligned to a 64 byte cacheline */ + loot_offset = size; + size = FY_CACHELINE_SIZE_ALIGN(size + thread_bitmask_size); + + /* allocate everything in one go */ + tp->threads = fy_cacheline_alloc(size); + if (!tp->threads) + goto err_out; + + memset(tp->threads, 0, size); + + rc = pthread_key_create(&tp->key, NULL); + assert(!rc); + + tp->freep = (void *)tp->threads + free_offset; + tp->lootp = (void *)tp->threads + loot_offset; + + /* prime the thread free */ + for (i = 0; i < num_threads_words - 1; i++) + tp->freep[i] = (uint64_t)-1; + tp->freep[i] = FY_BIT64(tp->num_threads & 63) - 1; + + /* the lootp's are zero */ + + for (i = 0, t = tp->threads; i < tp->num_threads; i++, t++) { + + t->tp = tp; + t->id = i; + + fy_thread_init_sync(t); + } + + start_routine = !(tp->cfg.flags & FYTPCF_STEAL_MODE) ? + fy_worker_thread_standard : + fy_worker_thread_steal; + + for (i = 0, t = tp->threads; i < tp->num_threads; i++, t++) { + rc = pthread_create(&t->tid, NULL, start_routine, t); + if (rc) + goto err_out; + } + + return 0; + +err_out: + fy_thread_pool_cleanup(tp); + return -1; +} + +struct fy_thread_pool *fy_thread_pool_create(const struct fy_thread_pool_cfg *cfg) +{ + struct fy_thread_pool *tp; + int rc; + + tp = malloc(sizeof(*tp)); + if (!tp) + return NULL; + + rc = fy_thread_pool_setup(tp, cfg); + if (rc) { + free(tp); + return NULL; + } + + return tp; +} + +void fy_thread_pool_destroy(struct fy_thread_pool *tp) +{ + if (!tp) + return; + + fy_thread_pool_cleanup(tp); + free(tp); +} + +int fy_thread_pool_get_num_threads(struct fy_thread_pool *tp) +{ + if (!tp) + return -1; + + return (int)tp->num_threads; +} + +const struct fy_thread_pool_cfg *fy_thread_pool_get_cfg(struct fy_thread_pool *tp) +{ + if (!tp) + return NULL; + return &tp->cfg; +} + +void fy_thread_work_join(struct fy_thread_pool *tp, struct fy_thread_work *works, size_t work_count, fy_work_check_fn check_fn) +{ + if (!(tp->cfg.flags & FYTPCF_STEAL_MODE)) + fy_thread_work_join_standard(tp, works, work_count, check_fn); + else if (work_count == 2) + fy_thread_work_join_steal_2(tp, works, check_fn); + else + fy_thread_work_join_steal(tp, works, work_count, check_fn); +} + +void fy_thread_args_join(struct fy_thread_pool *tp, fy_work_exec_fn fn, fy_work_check_fn check_fn, void **args, size_t count) +{ + struct fy_thread_work *works; + size_t i; + + if (!count) + return; + + works = alloca(sizeof(*works) * count); + memset(works, 0, sizeof(*works) * count); + for (i = 0; i < count; i++) { + works[i].fn = fn; + works[i].arg = args ? args[i] : NULL; + } + + fy_thread_work_join(tp, works, count, check_fn); +} + +void fy_thread_arg_array_join(struct fy_thread_pool *tp, fy_work_exec_fn fn, fy_work_check_fn check_fn, void *args, size_t argsize, size_t count) +{ + struct fy_thread_work *works; + size_t i; + + if (!count) + return; + + works = alloca(sizeof(*works) * count); + memset(works, 0, sizeof(*works) * count); + for (i = 0; i < count; i++) { + works[i].fn = fn; + works[i].arg = args; + args += argsize; + } + + fy_thread_work_join(tp, works, count, check_fn); +} + +void fy_thread_arg_join(struct fy_thread_pool *tp, fy_work_exec_fn fn, fy_work_check_fn check_fn, void *arg, size_t count) +{ + struct fy_thread_work *works; + size_t i; + + if (!count) + return; + + works = alloca(sizeof(*works) * count); + memset(works, 0, sizeof(*works) * count); + for (i = 0; i < count; i++) { + works[i].fn = fn; + works[i].arg = arg; + } + + fy_thread_work_join(tp, works, count, check_fn); +} + +/* + * the standard (non-stealing implementation) + */ +static void *fy_worker_thread_standard(void *arg) +{ + struct fy_thread *t = arg; + struct fy_thread_pool *tp; + struct fy_thread_work *work; + + tp = t->tp; + + /* store per thread info */ + pthread_setspecific(tp->key, t); + + while ((work = fy_worker_wait_for_work(t)) != WORK_SHUTDOWN) { + work->fn(work->arg); + fy_worker_signal_work_done(t, work); + } + + return NULL; +} + +static void fy_thread_work_join_standard(struct fy_thread_pool *tp, struct fy_thread_work *works, size_t work_count, fy_work_check_fn check_fn) +{ + struct fy_thread_work **direct_work, **thread_work, *w; + struct fy_thread **threads, *t; + size_t i, direct_work_count, thread_work_count; + int rc; + + /* just a single (or no) work, or no threads? execute directly */ + if (work_count <= 1 || !tp || !tp->num_threads) { + for (i = 0, w = works; i < work_count; i++, w++) + w->fn(w->arg); + return; + } + + /* allocate the keeper of direct work */ + direct_work = alloca(work_count * sizeof(*direct_work)); + direct_work_count = 0; + + threads = alloca(work_count * sizeof(*threads)); + thread_work = alloca(work_count * sizeof(*thread_work)); + thread_work_count = 0; + + for (i = 0, w = works; i < work_count; i++, w++) { + + t = NULL; + if (!check_fn || check_fn(w->arg)) + t = fy_thread_reserve_internal(tp); + + if (t) { + threads[thread_work_count] = t; + thread_work[thread_work_count++] = w; + } else + direct_work[direct_work_count++] = w; + } + + /* if we don't have any direct_work, steal the last threaded work as direct */ + if (!direct_work_count) { + assert(thread_work_count > 0); + t = threads[thread_work_count - 1]; + w = thread_work[thread_work_count - 1]; + thread_work_count--; + + /* unreserve this */ + fy_thread_unreserve_internal(t); + direct_work[direct_work_count++] = w; + } + + /* submit the threaded work */ + for (i = 0; i < thread_work_count; i++) { + t = threads[i]; + w = thread_work[i]; + rc = fy_thread_submit_work_internal(t, w); + if (rc) { + /* unable to submit? remove work, and move to direct */ + threads[i] = NULL; + thread_work[i] = NULL; + fy_thread_unreserve_internal(t); + direct_work[direct_work_count++] = w; + } + } + + /* now perform the direct work while the threaded work is being performed in parallel */ + for (i = 0; i < direct_work_count; i++) { + w = direct_work[i]; + w->fn(w->arg); + } + + /* finally wait for all threaded work to complete */ + for (i = 0; i < thread_work_count; i++) { + t = threads[i]; + assert(t); + fy_thread_wait_work_internal(t); + fy_thread_unreserve_internal(t); + } +} + +/* + * the stealing implementation + */ +static inline struct fy_work_pool *fy_work_pool_init(struct fy_work_pool *wp, size_t work_count) +{ +#if !(defined(__linux__) && !defined(FY_THREAD_PORTABLE)) + int rc __FY_DEBUG_UNUSED__; +#endif + + if (!wp) + return NULL; + + atomic_store(&wp->work_left, work_count); +#if defined(__linux__) && !defined(FY_THREAD_PORTABLE) + atomic_store(&wp->done, !work_count); +#elif defined(__APPLE__) + wp->sem = dispatch_semaphore_create(!work_count); + assert(wp->sem != NULL); + (void)rc; +#else + rc = sem_init(&wp->sem, 0, !work_count); + assert(!rc); +#endif + return wp; +} + +static inline void fy_work_pool_cleanup(struct fy_work_pool *wp) +{ +#if !(defined(__linux__) && !defined(FY_THREAD_PORTABLE)) + int rc __FY_DEBUG_UNUSED__; +#endif + + if (!wp) + return; + +#if defined(__linux__) && !defined(FY_THREAD_PORTABLE) + /* nothing */ +#elif defined(__APPLE__) + /* nothing */ + (void)rc; +#else + rc = sem_destroy(&wp->sem); + assert(!rc); +#endif +} + +static inline bool fy_work_pool_signal(struct fy_work_pool *wp) +{ + size_t prev_work_left; + int rc __FY_DEBUG_UNUSED__; + + if (!wp) + return false; + + prev_work_left = atomic_fetch_sub(&wp->work_left, 1); + if (prev_work_left == 1) { +#if defined(__linux__) && !defined(FY_THREAD_PORTABLE) + rc = fpost(&wp->done); + assert(!rc); +#elif defined(__APPLE__) + dispatch_semaphore_signal(wp->sem); + (void)rc; +#else + rc = sem_post(&wp->sem); + assert(!rc); +#endif + return true; + } + return false; +} + +static inline void fy_work_pool_wait(struct fy_work_pool *wp) +{ + int rc __FY_DEBUG_UNUSED__; + + if (!wp) + return; + + /* if there's any work left, wait for it */ + while (atomic_load(&wp->work_left) > 0) { +#if defined(__linux__) && !defined(FY_THREAD_PORTABLE) + rc = fwait(&wp->done); +#elif defined(__APPLE__) + dispatch_semaphore_wait(wp->sem, DISPATCH_TIME_FOREVER); + (void)rc; +#else + rc = sem_wait(&wp->sem); +#endif + assert(!rc || (rc == -1 && errno == EAGAIN)); + } +} + +static inline void fy_worker_thread_steal_execute(struct fy_thread *t, struct fy_thread_work *w) +{ + struct fy_work_pool *wp; + bool signalled __FY_DEBUG_UNUSED__; + + TDBG("%s: T#%u worker executing W:%p\n", __func__, t->id, w); + wp = w->wp; + assert(wp); + w->fn(w->arg); + TDBG("%s: T#%u worker executed W:%p\n", __func__, t->id, w); + + signalled = fy_work_pool_signal(wp); + (void)signalled; + TDBG("%s: T#%u W:%p WP:%p signalled=%s\n", __func__, + t->id, w, wp, signalled ? "true" : "false"); +} + +static inline struct fy_thread_work *fy_worker_thread_steal_work(struct fy_thread_pool *tp, struct fy_thread *t_thief) +{ + struct fy_thread *t; + unsigned int slot; + _Atomic(uint64_t) *loot; + uint64_t exp, v; + unsigned int i, num_threads_words; + struct fy_thread_work *w, *w_exp; + + /* the threads that have work to steal, have the loot bit set */ + t = NULL; + + num_threads_words = FY_BIT64_COUNT(tp->num_threads); + for (i = 0, loot = tp->lootp; i < num_threads_words; i++, loot++) { + v = atomic_load(loot); + while (v) { + slot = FY_BIT64_LOWEST(v); + assert(v & FY_BIT64(slot)); + exp = v; /* expecting the previous value */ + v &= ~FY_BIT64(slot); /* clear this bit */ + + if (atomic_compare_exchange_strong(loot, &exp, v)) { + slot += i * 64; + t = tp->threads + slot; + if ((w = atomic_load(&t->next_work)) != NULL) { + w_exp = w; + if (atomic_compare_exchange_strong(&t->next_work, &w_exp, NULL)) + return w; + } + } + v = exp; + } + } + + return NULL; +} + +static void *fy_worker_thread_steal(void *arg) +{ + struct fy_thread *t = arg; + struct fy_thread_pool *tp; + struct fy_thread_work *w, *w_exp, *w_stolen, *w_last; + + tp = t->tp; + + /* store per thread info */ + pthread_setspecific(tp->key, t); + + TDBG("%s: T#%u in steal mode\n", __func__, t->id); + + while ((w = fy_worker_wait_for_work(t)) != WORK_SHUTDOWN) { + + assert(fy_thread_is_reserved_internal(t)); + + for (;;) { + fy_worker_thread_steal_execute(t, w); + w_last = w; + w_stolen = fy_worker_thread_steal_work(tp, t); + w = NULL; + if (!w_stolen) + break; + + TDBG("%s: T#%u stole W:%p\n", __func__, t->id, w_stolen); + w_exp = w_last; + if (!atomic_compare_exchange_strong(&t->work, &w_exp, w_stolen)) { + assert(w_exp != WORK_SHUTDOWN); + TDBG("%s: T#%u t->work:%p w:%p w_stolen:%p\n", __func__, t->id, atomic_load(&t->work), w, w_stolen); + abort(); + } + w = w_stolen; + } + + /* unreserve first */ + fy_thread_unreserve_internal(t); + + w_exp = w_last; + if (!atomic_compare_exchange_strong(&t->work, &w_exp, NULL)) { + assert(w_exp != WORK_SHUTDOWN); + break; + } + } + TDBG("%s: T#%u leaving steal mode\n", __func__, t->id); + + return NULL; +} + +static void fy_thread_work_join_steal(struct fy_thread_pool *tp, struct fy_thread_work *works, size_t work_count, fy_work_check_fn check_fn) +{ + struct fy_work_pool wp_local, *wp; + struct fy_thread_work *dw, *expw; + struct fy_thread *t, *tw; + bool has_loot, resolved_t; + int rc __FY_DEBUG_UNUSED__; + int tid __FY_DEBUG_UNUSED__; + + t = NULL; + resolved_t = false; + tid = -1; + (void)tid; + +#ifdef FY_THREAD_DEBUG + t = pthread_getspecific(tp->key); + tid = t ? (int)t->id : -1; + resolved_t = true; +#else + t = NULL; + tid = -1; + resolved_t = false; +#endif + + dw = NULL; + wp = NULL; + + while (work_count > 0) { + if (!dw) { + dw = works++; + work_count--; + + TDBG("%s: T#%d sdir W:%p\n", __func__, tid, dw); + + continue; + } + + has_loot = false; + if (work_count > 0 && (!check_fn || check_fn(works->arg))) { + while (work_count > 0 && (tw = fy_thread_reserve_internal(tp)) != NULL) { + + assert(!works->wp); + + if (!wp) + wp = fy_work_pool_init(&wp_local, work_count + !!dw); + + works->wp = wp; + expw = NULL; + + rc = fy_thread_submit_work_internal(tw, works); + assert(!rc); + + TDBG("%s: T#%d post W:%p to T#%u\n", __func__, tid, works, tw->id); + + works++; + work_count--; + } + + if (work_count > 0) { + + if (!resolved_t) { + t = pthread_getspecific(tp->key); + tid = t ? (int)t->id : -1; + resolved_t = true; + } + + if (t && atomic_load(&t->next_work) == NULL) { + TDBG("%s: T#%d could not post, available to steal W:%p\n", __func__, tid, works); + assert(works->wp == NULL); + + if (!wp) + wp = fy_work_pool_init(&wp_local, work_count + !!dw); + + works->wp = wp; + + expw = NULL; + if (!atomic_compare_exchange_strong(&t->next_work, &expw, works)) { + TDBG("%s: T#%d could not update next_work: W:%p\n", __func__, tid, works); + abort(); + } + + /* set the has loot bit */ + atomic_fetch_or(tp->lootp + (unsigned int)(t->id / 64), FY_BIT64(t->id & 63)); + + has_loot = true; + } + } + } + + if (dw) { + TDBG("%s: T#%d exec W:%p\n", __func__, tid, dw); + + /* execute the direct work */ + dw->fn(dw->arg); + dw = NULL; + + fy_work_pool_signal(wp); + } + + if (has_loot) { + assert(t); + expw = works; + + /* clear the has loot bit unconditionally */ + atomic_fetch_and(tp->lootp + (unsigned int)(t->id / 64), ~FY_BIT64(t->id & 63)); + + if (!atomic_compare_exchange_strong(&t->next_work, &expw, NULL)) { + TDBG("%s: T#%d had W:%p stolen, good\n", __func__, tid, works); + work_count--; + works++; + } else { + TDBG("%s: T#%d had W:%p not stolen, bad\n", __func__, tid, works); + } + } + } + + /* last out and direct work */ + if (dw) { + TDBG("%s: T#%d executing final direct W:%p\n", __func__, tid, dw); + + dw->fn(dw->arg); + dw = NULL; + + fy_work_pool_signal(wp); + } + + TDBG("%s: T#%d wait WP:%p\n", __func__, tid, wp); + + fy_work_pool_wait(wp); + fy_work_pool_cleanup(wp); + + TDBG("%s: T#%d done WP:%p\n", __func__, tid, wp); +} + +static void fy_thread_work_join_steal_2(struct fy_thread_pool *tp, struct fy_thread_work works[2], fy_work_check_fn check_fn) +{ + struct fy_work_pool wp_local, *wp; + struct fy_thread_work *expw; + struct fy_thread *t, *tw; + bool has_loot, pushed, resolved_t; + int rc __FY_DEBUG_UNUSED__; + int tid __FY_DEBUG_UNUSED__; + + t = NULL; + resolved_t = false; + tid = -1; + + (void)tid; + +#ifdef FY_THREAD_DEBUG + t = pthread_getspecific(tp->key); + tid = t ? (int)t->id : -1; + resolved_t = true; +#else + t = NULL; + tid = -1; + resolved_t = false; +#endif + + wp = NULL; + + pushed = false; + has_loot = false; + if (!check_fn || check_fn(works->arg)) { + if ((tw = fy_thread_reserve_internal(tp)) != NULL) { + + assert(!works[1].wp); + + if (!wp) + wp = fy_work_pool_init(&wp_local, 1); + + works[1].wp = wp; + expw = NULL; + + rc = fy_thread_submit_work_internal(tw, &works[1]); + assert(!rc); + + TDBG("%s: T#%d post W:%p to T#%u\n", __func__, tid, &works[1], tw->id); + + pushed = true; + + } else { + if (!resolved_t) { + t = pthread_getspecific(tp->key); + tid = t ? (int)t->id : -1; + resolved_t = true; + } + + if (t && atomic_load(&t->next_work) == NULL) { + TDBG("%s: T#%d could not post, available to steal W:%p\n", __func__, tid, &works[1]); + assert(works[1].wp == NULL); + + if (!wp) + wp = fy_work_pool_init(&wp_local, 1); + + works[1].wp = wp; + + expw = NULL; + if (!atomic_compare_exchange_strong(&t->next_work, &expw, &works[1])) { + TDBG("%s: T#%d could not update next_work: W:%p\n", __func__, tid, &works[1]); + abort(); + } + + /* set the has loot bit */ + atomic_fetch_or(tp->lootp + (unsigned int)(t->id / 64), FY_BIT64(t->id & 63)); + + has_loot = true; + } + } + } + + TDBG("%s: T#%d exec W:%p (left)\n", __func__, tid, &works[0]); + + /* execute the direct work */ + works[0].fn(works[0].arg); + + if (has_loot) { + assert(t); + expw = &works[1]; + + /* clear the has loot bit unconditionally */ + atomic_fetch_and(tp->lootp + (unsigned int)(t->id / 64), ~FY_BIT64(t->id & 63)); + + if (!atomic_compare_exchange_strong(&t->next_work, &expw, NULL)) { + TDBG("%s: T#%d had W:%p stolen\n", __func__, tid, &works[1]); + } else { + TDBG("%s: T#%d had W:%p not stolen\n", __func__, tid, &works[1]); + + TDBG("%s: T#%d exec W:%p (right)\n", __func__, tid, &works[1]); + /* execute the direct work */ + works[1].fn(works[1].arg); + fy_work_pool_signal(wp); + } + + } else if (!pushed) { + + TDBG("%s: T#%d exec W:%p (right)\n", __func__, tid, &works[1]); + /* execute the direct work */ + works[1].fn(works[1].arg); + fy_work_pool_signal(wp); + } + + TDBG("%s: T#%d wait WP:%p\n", __func__, tid, wp); + + fy_work_pool_wait(wp); + fy_work_pool_cleanup(wp); + + TDBG("%s: T#%d done WP:%p\n", __func__, tid, wp); +} diff --git a/Sources/Cfyaml/src/thread/fy-thread.h b/Sources/Cfyaml/src/thread/fy-thread.h new file mode 100644 index 000000000..4ce45ac1f --- /dev/null +++ b/Sources/Cfyaml/src/thread/fy-thread.h @@ -0,0 +1,76 @@ +/* + * fy-thread.h - Lighting fast thread pool implementation + * + * Copyright (c) 2023 Pantelis Antoniou + * + * SPDX-License-Identifier: MIT + */ +#ifndef FY_THREAD_H +#define FY_THREAD_H + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include +#include + +#ifndef __APPLE__ +#include +#else +#include +#endif + +#include "fy-bit64.h" +#include "fy-align.h" + +#include + +// #define FY_THREAD_DEBUG /* define to enable debugging information to stderr */ +// #define FY_THREAD_PORTABLE /* define to use the portable implementation even on linux */ + +struct fy_work_pool { + _Atomic(size_t) work_left; +#if defined(__linux__) && !defined(FY_THREAD_PORTABLE) + _Atomic(uint32_t) done; +#elif defined(__APPLE__) + dispatch_semaphore_t sem; +#else + sem_t sem; +#endif +}; + +struct fy_thread { + struct fy_thread_pool *tp; + unsigned int id; + pthread_t tid; + _Atomic(struct fy_thread_work *)work; + _Atomic(struct fy_thread_work *)next_work; +#if defined(__linux__) && !defined(FY_THREAD_PORTABLE) + _Atomic(uint32_t) submit; + _Atomic(uint32_t) done; +#else + pthread_mutex_t lock; + pthread_cond_t cond; + pthread_mutex_t wait_lock; + pthread_cond_t wait_cond; +#endif +}; + +struct fy_thread_pool { + struct fy_thread_pool_cfg cfg; + unsigned int num_threads; + struct fy_thread *threads; + _Atomic(uint64_t) *freep; + _Atomic(uint64_t) *lootp; + pthread_key_t key; +}; + +/* those are internal only */ +int fy_thread_pool_setup(struct fy_thread_pool *tp, const struct fy_thread_pool_cfg *cfg); +void fy_thread_pool_cleanup(struct fy_thread_pool *tp); + +#endif diff --git a/Sources/Cfyaml/src/tool/fy-tool.c b/Sources/Cfyaml/src/tool/fy-tool.c index bb46c0a75..52d0d562a 100644 --- a/Sources/Cfyaml/src/tool/fy-tool.c +++ b/Sources/Cfyaml/src/tool/fy-tool.c @@ -17,6 +17,7 @@ #include #include #include +#include #include @@ -54,6 +55,7 @@ #define COLLECT_ERRORS_DEFAULT false #define ALLOW_DUPLICATE_KEYS_DEFAULT false #define STRIP_EMPTY_KV_DEFAULT false +#define TSV_FORMAT_DEFAULT false #define OPT_DUMP 1000 #define OPT_TESTSUITE 1001 @@ -65,6 +67,7 @@ #define OPT_PARSE_DUMP 1007 #define OPT_YAML_VERSION_DUMP 1008 #define OPT_COMPOSE 1009 +#define OPT_B3SUM 1010 #define OPT_STRIP_LABELS 2000 #define OPT_STRIP_TAGS 2001 @@ -85,6 +88,8 @@ #define OPT_COLLECT_ERRORS 2017 #define OPT_ALLOW_DUPLICATE_KEYS 2018 #define OPT_STRIP_EMPTY_KV 2019 +#define OPT_DISABLE_MMAP 2020 +#define OPT_TSV_FORMAT 2021 #define OPT_DISABLE_DIAG 3000 #define OPT_ENABLE_DIAG 3001 @@ -95,6 +100,20 @@ #define OPT_YAML_1_2 4001 #define OPT_YAML_1_3 4002 +/* b3sum options */ +#define OPT_CHECK 5000 +#define OPT_DERIVE_KEY 5001 +#define OPT_NO_NAMES 5002 +#define OPT_RAW 5003 +#define OPT_KEYED 5005 +#define OPT_LENGTH 5006 +#define OPT_LIST_BACKENDS 5007 +#define OPT_BACKEND 5008 +#define OPT_NUM_THREADS 5009 +#define OPT_FILE_BUFFER 5010 +#define OPT_MMAP_MIN_CHUNK 5011 +#define OPT_MMAP_MAX_CHUNK 5012 + static struct option lopts[] = { {"include", required_argument, 0, 'I' }, {"debug-level", required_argument, 0, 'd' }, @@ -120,6 +139,7 @@ static struct option lopts[] = { {"compose", no_argument, 0, OPT_COMPOSE }, {"dump-path", no_argument, 0, OPT_DUMP_PATH }, {"yaml-version-dump", no_argument, 0, OPT_YAML_VERSION_DUMP }, + {"b3sum", no_argument, 0, OPT_B3SUM }, {"strip-labels", no_argument, 0, OPT_STRIP_LABELS }, {"strip-tags", no_argument, 0, OPT_STRIP_TAGS }, {"strip-doc", no_argument, 0, OPT_STRIP_DOC }, @@ -127,6 +147,7 @@ static struct option lopts[] = { {"disable-accel", no_argument, 0, OPT_DISABLE_ACCEL }, {"disable-buffering", no_argument, 0, OPT_DISABLE_BUFFERING }, {"disable-depth-limit", no_argument, 0, OPT_DISABLE_DEPTH_LIMIT }, + {"disable-mmap", no_argument, 0, OPT_DISABLE_MMAP }, {"disable-diag", required_argument, 0, OPT_DISABLE_DIAG }, {"enable-diag", required_argument, 0, OPT_ENABLE_DIAG }, {"show-diag", required_argument, 0, OPT_SHOW_DIAG }, @@ -145,9 +166,24 @@ static struct option lopts[] = { {"collect-errors", no_argument, 0, OPT_COLLECT_ERRORS }, {"allow-duplicate-keys",no_argument, 0, OPT_ALLOW_DUPLICATE_KEYS }, {"strip-empty-kv", no_argument, 0, OPT_STRIP_EMPTY_KV }, + {"tsv-format", no_argument, 0, OPT_TSV_FORMAT }, {"to", required_argument, 0, 'T' }, {"from", required_argument, 0, 'F' }, {"quiet", no_argument, 0, 'q' }, + + {"check", no_argument, 0, OPT_CHECK }, + {"derive-key", required_argument, 0, OPT_DERIVE_KEY }, + {"no-names", no_argument, 0, OPT_NO_NAMES }, + {"raw", no_argument, 0, OPT_RAW }, + {"length", required_argument, 0, OPT_LENGTH }, + {"keyed", no_argument, 0, OPT_KEYED }, + {"list-backends", no_argument, 0, OPT_LIST_BACKENDS }, + {"backend", required_argument, 0, OPT_BACKEND }, + {"num-threads", required_argument, 0, OPT_NUM_THREADS }, + {"file-buffer", required_argument, 0, OPT_FILE_BUFFER }, + {"mmap-min-chunk", required_argument, 0, OPT_MMAP_MIN_CHUNK }, + {"mmap-max-chunk", required_argument, 0, OPT_MMAP_MAX_CHUNK }, + {"help", no_argument, 0, 'h' }, {"version", no_argument, 0, 'v' }, {0, 0, 0, 0 }, @@ -250,6 +286,9 @@ static void display_usage(FILE *fp, char *progname, int tool_mode) fprintf(fp, "\t--document-event-stream : Generate a document and then produce the event stream" " (default %s)\n", DOCUMENT_EVENT_STREAM_DEFAULT ? "true" : "false"); + fprintf(fp, "\t--tsv-format : Display testsuite in TSV format" + " (default %s)\n", + TSV_FORMAT_DEFAULT ? "true" : "false"); if (tool_mode == OPT_TOOL || tool_mode == OPT_DUMP) fprintf(fp, "\t--streaming : Use streaming output mode" " (default %s)\n", @@ -369,7 +408,24 @@ static void display_usage(FILE *fp, char *progname, int tool_mode) fprintf(fp, "\t{\n\t \"foo\": \"bar\"\n\t}\n"); break; case OPT_YAML_VERSION_DUMP: - fprintf(fp, "\tDisplay information about the YAML versions libfyaml supports)\n"); + fprintf(fp, "\tDisplay information about the YAML versions libfyaml supports\n"); + fprintf(fp, "\n"); + break; + + case OPT_B3SUM: + fprintf(fp, "\tBLAKE3 hash b3sum utility\n"); + fprintf(fp, "\t--derive-key : Key derivation mode, with the given context string\n"); + fprintf(fp, "\t--no-names : Omit filenames\n"); + fprintf(fp, "\t--raw : Output result in raw bytes (single input allowed)\n"); + fprintf(fp, "\t--length : Output only this amount of bytes per output (max %u)\n", FY_BLAKE3_OUT_LEN); + fprintf(fp, "\t--check : Read files with BLAKE3 checksums and check files\n"); + fprintf(fp, "\t--keyed : Keyed mode with secret key read from (32 raw bytes)\n"); + fprintf(fp, "\t--backend : Select a BLAKE3 backend instead of the default\n"); + fprintf(fp, "\t--list-backends : Print out a list of available backends\n"); + fprintf(fp, "\t--num-threads : Number of threads, -1 disable, 0 let system decide, >= 1 explicit\n"); + fprintf(fp, "\t--file-buffer : Size of file I/O buffer (non-mmap case), 0 let system decide\n"); + fprintf(fp, "\t--mmap-min-chunk : Size of minimum mmap chunk, 0 let system decide\n"); + fprintf(fp, "\t--mmap-max-chunk : Size of maximum mmap chunk, 0 let system decide\n"); fprintf(fp, "\n"); break; } @@ -458,6 +514,25 @@ utf8_width_by_first_octet(uint8_t c) (c & 0xf8) == 0xf0 ? 4 : 0; } +/* ANSI colors and escapes */ +#define A_RESET "\x1b[0m" +#define A_BLACK "\x1b[30m" +#define A_RED "\x1b[31m" +#define A_GREEN "\x1b[32m" +#define A_YELLOW "\x1b[33m" +#define A_BLUE "\x1b[34m" +#define A_MAGENTA "\x1b[35m" +#define A_CYAN "\x1b[36m" +#define A_LIGHT_GRAY "\x1b[37m" /* dark white is gray */ +#define A_GRAY "\x1b[1;30m" +#define A_BRIGHT_RED "\x1b[1;31m" +#define A_BRIGHT_GREEN "\x1b[1;32m" +#define A_BRIGHT_YELLOW "\x1b[1;33m" +#define A_BRIGHT_BLUE "\x1b[1;34m" +#define A_BRIGHT_MAGENTA "\x1b[1;35m" +#define A_BRIGHT_CYAN "\x1b[1;36m" +#define A_WHITE "\x1b[1;37m" + static int do_output(struct fy_emitter *fye, enum fy_emitter_write_type type, const char *str, int len, void *userdata) { struct dump_userdata *du = userdata; @@ -471,64 +546,64 @@ static int do_output(struct fy_emitter *fye, enum fy_emitter_write_type type, co if (du->colorize) { switch (type) { case fyewt_document_indicator: - color = "\x1b[36m"; + color = A_CYAN; break; case fyewt_tag_directive: case fyewt_version_directive: - color = "\x1b[33m"; + color = A_YELLOW; break; case fyewt_indent: if (du->visible) { - fputs("\x1b[32m", fp); + fputs(A_GREEN, fp); while (s < e && (w = utf8_width_by_first_octet(((uint8_t)*s))) > 0) { /* open box - U+2423 */ fputs("\xe2\x90\xa3", fp); s += w; } - fputs("\x1b[0m", fp); + fputs(A_RESET, fp); return len; } break; case fyewt_indicator: if (len == 1 && (str[0] == '\'' || str[0] == '"')) - color = "\x1b[33m"; + color = A_YELLOW; else if (len == 1 && str[0] == '&') - color = "\x1b[32;1m"; + color = A_BRIGHT_GREEN; else - color = "\x1b[35m"; + color = A_MAGENTA; break; case fyewt_whitespace: if (du->visible) { - fputs("\x1b[32m", fp); + fputs(A_GREEN, fp); while (s < e && (w = utf8_width_by_first_octet(((uint8_t)*s))) > 0) { /* symbol for space - U+2420 */ /* symbol for interpunct - U+00B7 */ fputs("\xc2\xb7", fp); s += w; } - fputs("\x1b[0m", fp); + fputs(A_RESET, fp); return len; } break; case fyewt_plain_scalar: - color = "\x1b[37;1m"; + color = A_WHITE; break; case fyewt_single_quoted_scalar: case fyewt_double_quoted_scalar: - color = "\x1b[33m"; + color = A_YELLOW; break; case fyewt_literal_scalar: case fyewt_folded_scalar: - color = "\x1b[33m"; + color = A_YELLOW; break; case fyewt_anchor: case fyewt_tag: case fyewt_alias: - color = "\x1b[32;1m"; + color = A_BRIGHT_GREEN; break; case fyewt_linebreak: if (du->visible) { - fputs("\x1b[32m", fp); + fputs(A_GREEN, fp); while (s < e && (w = utf8_width_by_first_octet(((uint8_t)*s))) > 0) { /* symbol for space - ^M */ /* fprintf(fp, "^M\n"); */ @@ -536,7 +611,7 @@ static int do_output(struct fy_emitter *fye, enum fy_emitter_write_type type, co fputs("\xe2\x86\x93\n", fp); s += w; } - fputs("\x1b[0m", fp); + fputs(A_RESET, fp); return len; } color = NULL; @@ -547,10 +622,10 @@ static int do_output(struct fy_emitter *fye, enum fy_emitter_write_type type, co case fyewt_plain_scalar_key: case fyewt_single_quoted_scalar_key: case fyewt_double_quoted_scalar_key: - color = "\x1b[36;1m"; + color = A_BRIGHT_CYAN; break; case fyewt_comment: - color = "\x1b[34;1m"; + color = A_BRIGHT_BLUE; break; } } @@ -565,35 +640,100 @@ static int do_output(struct fy_emitter *fye, enum fy_emitter_write_type type, co ret = fwrite(str, 1, len, fp); if (color) - fputs("\x1b[0m", fp); + fputs(A_RESET, fp); return ret; } -void print_escaped(const char *str, int length) +void print_escaped(const char *str, size_t length) { - int i; - char c; + const uint8_t *p; + int i, c, w; + + for (p = (const uint8_t *)str; length > 0; p += w, length -= (size_t)w) { + + /* get width from the first octet */ + w = (p[0] & 0x80) == 0x00 ? 1 : + (p[0] & 0xe0) == 0xc0 ? 2 : + (p[0] & 0xf0) == 0xe0 ? 3 : + (p[0] & 0xf8) == 0xf0 ? 4 : 0; + + /* error, clip it */ + if ((size_t)w > length) + goto err_out; + + /* initial value */ + c = p[0] & (0xff >> w); + for (i = 1; i < w; i++) { + if ((p[i] & 0xc0) != 0x80) + goto err_out; + c = (c << 6) | (p[i] & 0x3f); + } + + /* check for validity */ + if ((w == 4 && c < 0x10000) || + (w == 3 && c < 0x800) || + (w == 2 && c < 0x80) || + (c >= 0xd800 && c <= 0xdfff) || c >= 0x110000) + goto err_out; - if (length < 0) - length = strlen(str); - for (i = 0; i < length; i++) { - c = *str++; - if (c == '\\') + switch (c) { + case '\\': printf("\\\\"); - else if (c == '\0') + break; + case '\0': printf("\\0"); - else if (c == '\b') + break; + case '\b': printf("\\b"); - else if (c == '\n') + break; + case '\f': + printf("\\f"); + break; + case '\n': printf("\\n"); - else if (c == '\r') + break; + case '\r': printf("\\r"); - else if (c == '\t') + break; + case '\t': printf("\\t"); - else - printf("%c", c); + break; + case '\a': + printf("\\a"); + break; + case '\v': + printf("\\v"); + break; + case '\e': + printf("\\e"); + break; + case 0x85: + printf("\\N"); + break; + case 0xa0: + printf("\\_"); + break; + case 0x2028: + printf("\\L"); + break; + case 0x2029: + printf("\\P"); + break; + default: + if ((c >= 0x01 && c <= 0x1f) || c == 0x7f || /* C0 */ + (c >= 0x80 && c <= 0x9f)) /* C1 */ + printf("\\x%02x", c); + else + printf("%.*s", w, p); + break; + } } + + return; +err_out: + fprintf(stderr, "escape input error\n"); + abort(); } void dump_token_comments(struct fy_token *fyt, bool colorize, const char *banner) @@ -616,171 +756,250 @@ void dump_token_comments(struct fy_token *fyt, bool colorize, const char *banner continue; fputs("\n", stdout); if (colorize) - fputs("\x1b[31m", stdout); + fputs(A_RED, stdout); printf("\t%s %6s: ", banner, placement_txt[placement]); print_escaped(str, strlen(str)); if (colorize) - fputs("\x1b[0m", stdout); + fputs(A_RESET, stdout); } } -void dump_testsuite_event(struct fy_parser *fyp, struct fy_event *fye, bool colorize, - struct fy_token_iter *iter, bool disable_flow_markers) +void dump_testsuite_event(struct fy_parser *fyp, + struct fy_event *fye, bool colorize, + struct fy_token_iter *iter, + bool disable_flow_markers, bool tsv_format) { const char *anchor = NULL; const char *tag = NULL; - size_t anchor_len = 0, tag_len = 0; + const char *text = NULL; + const char *alias = NULL; + size_t anchor_len = 0, tag_len = 0, text_len = 0, alias_len = 0; enum fy_scalar_style style; - const struct fy_iter_chunk *ic; - int ret; + const struct fy_mark *sm, *em = NULL; + char separator; + size_t spos, epos; + int sline, eline, scolumn, ecolumn; + + if (!tsv_format) { + separator = ' '; + spos = epos = (size_t)-1; + sline = eline = -1; + scolumn = ecolumn = -1; + } else { + sm = fy_event_start_mark(fye); + if (sm) { + spos = sm->input_pos; + sline = sm->line + 1; + scolumn = sm->column + 1; + } else { + spos = (size_t)-1; + sline = -1; + scolumn = -1; + } + + em = fy_event_end_mark(fye); + if (em) { + epos = em->input_pos; + eline = em->line + 1; + ecolumn = em->column + 1; + } else { + epos = (size_t)-1; + eline = -1; + ecolumn = -1; + } + separator = '\t'; + /* no colors for TSV */ + colorize = false; + /* no flow markers for TSV */ + disable_flow_markers = true; + } + + /* event type */ switch (fye->type) { case FYET_NONE: if (colorize) - fputs("\x1b[31;1m", stdout); + fputs(A_BRIGHT_RED, stdout); printf("???"); break; case FYET_STREAM_START: if (colorize) - fputs("\x1b[36m", stdout); - printf("+STR"); + fputs(A_CYAN, stdout); + printf("+%s", !tsv_format ? "STR" : "str"); break; case FYET_STREAM_END: if (colorize) - fputs("\x1b[36m", stdout); - printf("-STR"); + fputs(A_CYAN, stdout); + printf("-%s", !tsv_format ? "STR" : "str"); break; case FYET_DOCUMENT_START: if (colorize) - fputs("\x1b[36m", stdout); - printf("+DOC%s", !fy_document_event_is_implicit(fye) ? " ---" : ""); + fputs(A_CYAN, stdout); + printf("+%s", !tsv_format ? "DOC" : "doc"); break; case FYET_DOCUMENT_END: if (colorize) - fputs("\x1b[36m", stdout); - printf("-DOC%s", !fy_document_event_is_implicit(fye) ? " ..." : ""); + fputs(A_CYAN, stdout); + printf("-%s", !tsv_format ? "DOC" : "doc"); break; case FYET_MAPPING_START: + if (colorize) + fputs(A_BRIGHT_CYAN, stdout); + printf("+%s", !tsv_format ? "MAP" : "map"); if (fye->mapping_start.anchor) anchor = fy_token_get_text(fye->mapping_start.anchor, &anchor_len); if (fye->mapping_start.tag) tag = fy_token_get_text(fye->mapping_start.tag, &tag_len); - if (colorize) - fputs("\x1b[36;1m", stdout); - printf("+MAP"); if (!disable_flow_markers && fy_event_get_node_style(fye) == FYNS_FLOW) - printf(" {}"); - if (anchor) { - if (colorize) - fputs("\x1b[32m", stdout); - printf(" &%.*s", (int)anchor_len, anchor); - } - if (tag) { - if (colorize) - fputs("\x1b[32m", stdout); - printf(" <%.*s>", (int)tag_len, tag); - } + printf("%c{}", separator); break; case FYET_MAPPING_END: if (colorize) - fputs("\x1b[36;1m", stdout); - printf("-MAP"); + fputs(A_BRIGHT_CYAN, stdout); + printf("-%s", !tsv_format ? "MAP" : "map"); break; case FYET_SEQUENCE_START: + if (colorize) + fputs(A_BRIGHT_YELLOW, stdout); + printf("+%s", !tsv_format ? "SEQ" : "seq"); if (fye->sequence_start.anchor) anchor = fy_token_get_text(fye->sequence_start.anchor, &anchor_len); if (fye->sequence_start.tag) tag = fy_token_get_text(fye->sequence_start.tag, &tag_len); - if (colorize) - fputs("\x1b[33;1m", stdout); - printf("+SEQ"); if (!disable_flow_markers && fy_event_get_node_style(fye) == FYNS_FLOW) - printf(" []"); - if (anchor) { - if (colorize) - fputs("\x1b[32m", stdout); - printf(" &%.*s", (int)anchor_len, anchor); - } - if (tag) { - if (colorize) - fputs("\x1b[32m", stdout); - printf(" <%.*s>", (int)tag_len, tag); - } + printf("%c[]", separator); break; case FYET_SEQUENCE_END: if (colorize) - fputs("\x1b[33;1m", stdout); - printf("-SEQ"); + fputs(A_BRIGHT_YELLOW, stdout); + printf("-%s", !tsv_format ? "SEQ" : "seq"); break; case FYET_SCALAR: + if (colorize) + fputs(A_WHITE, stdout); + printf("=%s", !tsv_format ? "VAL" : "val"); if (fye->scalar.anchor) anchor = fy_token_get_text(fye->scalar.anchor, &anchor_len); if (fye->scalar.tag) tag = fy_token_get_text(fye->scalar.tag, &tag_len); - + break; + case FYET_ALIAS: if (colorize) - fputs("\x1b[37;1m", stdout); - printf("=VAL"); + fputs(A_GREEN, stdout); + printf("=%s", !tsv_format ? "ALI" : "ali"); + break; + default: + assert(0); + } + + /* (position) anchor and tag */ + if (!tsv_format) { if (anchor) { if (colorize) - fputs("\x1b[32m", stdout); - printf(" &%.*s", (int)anchor_len, anchor); + fputs(A_GREEN, stdout); + printf("%c&%.*s", separator, (int)anchor_len, anchor); } if (tag) { if (colorize) - fputs("\x1b[32m", stdout); - printf(" <%.*s>", (int)tag_len, tag); + fputs(A_GREEN, stdout); + printf("%c<%.*s>", separator, (int)tag_len, tag); + } + } else { + if (!anchor) { + anchor = "-"; + anchor_len = 1; + } + if (!tag) { + tag = "-"; + tag_len = 1; } + printf("%c%zd%c%d%c%d", separator, (ssize_t)spos, + separator, sline, separator, scolumn); + printf("%c%zd%c%d%c%d", separator, (ssize_t)epos, + separator, eline, separator, ecolumn); + printf("%c%.*s", separator, (int)anchor_len, anchor); + printf("%c%.*s", separator, (int)tag_len, tag); + } + /* style hint */ + switch (fye->type) { + default: + break; + case FYET_DOCUMENT_START: + if (!fy_document_event_is_implicit(fye)) + printf("%c---", separator); + break; + case FYET_DOCUMENT_END: + if (!fy_document_event_is_implicit(fye)) + printf("%c...", separator); + break; + case FYET_MAPPING_START: + if (!tsv_format) + break; + printf("%c%s", separator, fy_event_get_node_style(fye) == FYNS_FLOW ? "{}" : ""); + break; + case FYET_SEQUENCE_START: + if (!tsv_format) + break; + printf("%c%s", separator, fy_event_get_node_style(fye) == FYNS_FLOW ? "[]" : ""); + break; + case FYET_SCALAR: style = fy_token_scalar_style(fye->scalar.value); switch (style) { case FYSS_PLAIN: if (colorize) - fputs("\x1b[37;1m", stdout); - printf(" :"); + fputs(A_WHITE, stdout); + printf("%c:", separator); break; case FYSS_SINGLE_QUOTED: if (colorize) - fputs("\x1b[33m", stdout); - printf(" '"); + fputs(A_YELLOW, stdout); + printf("%c'", separator); break; case FYSS_DOUBLE_QUOTED: if (colorize) - fputs("\x1b[33m", stdout); - printf(" \""); + fputs(A_YELLOW, stdout); + printf("%c\"", separator); break; case FYSS_LITERAL: if (colorize) - fputs("\x1b[33m", stdout); - printf(" |"); + fputs(A_YELLOW, stdout); + printf("%c|", separator); break; case FYSS_FOLDED: if (colorize) - fputs("\x1b[33m", stdout); - printf(" >"); + fputs(A_YELLOW, stdout); + printf("%c>", separator); break; default: abort(); } - - fy_token_iter_start(fye->scalar.value, iter); - ic = NULL; - while ((ic = fy_token_iter_chunk_next(iter, ic, &ret)) != NULL) - print_escaped(ic->str, ic->len); - fy_token_iter_finish(iter); - break; case FYET_ALIAS: - anchor = fy_token_get_text(fye->alias.anchor, &anchor_len); - if (colorize) - fputs("\x1b[32m", stdout); - printf("=ALI *%.*s", (int)anchor_len, anchor); + if (tsv_format) + printf("%c*", separator); break; + } + + /* content */ + switch (fye->type) { default: - assert(0); + break; + case FYET_SCALAR: + if (tsv_format) + printf("%c", separator); + text = fy_token_get_text(fye->scalar.value, &text_len); + if (text && text_len > 0) + print_escaped(text, text_len); + break; + case FYET_ALIAS: + alias = fy_token_get_text(fye->alias.anchor, &alias_len); + printf("%c%s%.*s", separator, !tsv_format ? "*" : "", (int)alias_len, alias); + break; } + if (colorize) - fputs("\x1b[0m", stdout); + fputs(A_RESET, stdout); fputs("\n", stdout); } @@ -814,24 +1033,24 @@ void dump_parse_event(struct fy_parser *fyp, struct fy_event *fye, bool colorize switch (fye->type) { case FYET_NONE: if (colorize) - fputs("\x1b[31;1m", stdout); + fputs(A_BRIGHT_RED, stdout); printf("???"); break; case FYET_STREAM_START: if (colorize) - fputs("\x1b[36m", stdout); + fputs(A_CYAN, stdout); printf("STREAM_START"); dump_token_comments(fye->stream_start.stream_start, colorize, ""); break; case FYET_STREAM_END: if (colorize) - fputs("\x1b[36m", stdout); + fputs(A_CYAN, stdout); printf("STREAM_END"); dump_token_comments(fye->stream_end.stream_end, colorize, ""); break; case FYET_DOCUMENT_START: if (colorize) - fputs("\x1b[36m", stdout); + fputs(A_CYAN, stdout); printf("DOCUMENT_START implicit=%s", fye->document_start.implicit ? "true" : "false"); @@ -857,23 +1076,23 @@ void dump_parse_event(struct fy_parser *fyp, struct fy_event *fye, bool colorize case FYET_DOCUMENT_END: if (colorize) - fputs("\x1b[36m", stdout); + fputs(A_CYAN, stdout); printf("DOCUMENT_END implicit=%s", fye->document_end.implicit ? "true" : "false"); dump_token_comments(fye->document_end.document_end, colorize, ""); break; case FYET_MAPPING_START: if (colorize) - fputs("\x1b[36;1m", stdout); + fputs(A_BRIGHT_CYAN, stdout); printf("MAPPING_START"); if (anchor) { if (colorize) - fputs("\x1b[32m", stdout); + fputs(A_GREEN, stdout); printf(" &%.*s", (int)anchor_len, anchor); } if (tag) { if (colorize) - fputs("\x1b[32m", stdout); + fputs(A_GREEN, stdout); printf(" <%.*s> (\"%s\",\"%s\")", (int)tag_len, tag, tagp->handle, tagp->prefix); @@ -882,22 +1101,22 @@ void dump_parse_event(struct fy_parser *fyp, struct fy_event *fye, bool colorize break; case FYET_MAPPING_END: if (colorize) - fputs("\x1b[36;1m", stdout); + fputs(A_BRIGHT_CYAN, stdout); printf("MAPPING_END"); dump_token_comments(fye->mapping_end.mapping_end, colorize, ""); break; case FYET_SEQUENCE_START: if (colorize) - fputs("\x1b[33;1m", stdout); + fputs(A_BRIGHT_YELLOW, stdout); printf("SEQUENCE_START"); if (anchor) { if (colorize) - fputs("\x1b[32m", stdout); + fputs(A_GREEN, stdout); printf(" &%.*s", (int)anchor_len, anchor); } if (tag) { if (colorize) - fputs("\x1b[32m", stdout); + fputs(A_GREEN, stdout); printf(" <%.*s> (\"%s\",\"%s\")", (int)tag_len, tag, tagp->handle, tagp->prefix); @@ -906,22 +1125,22 @@ void dump_parse_event(struct fy_parser *fyp, struct fy_event *fye, bool colorize break; case FYET_SEQUENCE_END: if (colorize) - fputs("\x1b[33;1m", stdout); + fputs(A_BRIGHT_YELLOW, stdout); printf("SEQUENCE_END"); dump_token_comments(fye->sequence_end.sequence_end, colorize, ""); break; case FYET_SCALAR: if (colorize) - fputs("\x1b[37;1m", stdout); + fputs(A_WHITE, stdout); printf("SCALAR"); if (anchor) { if (colorize) - fputs("\x1b[32m", stdout); + fputs(A_GREEN, stdout); printf(" &%.*s", (int)anchor_len, anchor); } if (tag) { if (colorize) - fputs("\x1b[32m", stdout); + fputs(A_GREEN, stdout); printf(" <%.*s> (\"%s\",\"%s\")", (int)tag_len, tag, tagp->handle, tagp->prefix); @@ -931,27 +1150,27 @@ void dump_parse_event(struct fy_parser *fyp, struct fy_event *fye, bool colorize switch (style) { case FYSS_PLAIN: if (colorize) - fputs("\x1b[37;1m", stdout); + fputs(A_WHITE, stdout); printf(" "); break; case FYSS_SINGLE_QUOTED: if (colorize) - fputs("\x1b[33m", stdout); + fputs(A_YELLOW, stdout); printf(" '"); break; case FYSS_DOUBLE_QUOTED: if (colorize) - fputs("\x1b[33m", stdout); + fputs(A_YELLOW, stdout); printf(" \""); break; case FYSS_LITERAL: if (colorize) - fputs("\x1b[33m", stdout); + fputs(A_YELLOW, stdout); printf(" |"); break; case FYSS_FOLDED: if (colorize) - fputs("\x1b[33m", stdout); + fputs(A_YELLOW, stdout); printf(" >"); break; default: @@ -965,7 +1184,7 @@ void dump_parse_event(struct fy_parser *fyp, struct fy_event *fye, bool colorize case FYET_ALIAS: anchor = fy_token_get_text(fye->alias.anchor, &anchor_len); if (colorize) - fputs("\x1b[32m", stdout); + fputs(A_GREEN, stdout); printf("ALIAS *%.*s", (int)anchor_len, anchor); dump_token_comments(fye->alias.anchor, colorize, ""); break; @@ -974,7 +1193,7 @@ void dump_parse_event(struct fy_parser *fyp, struct fy_event *fye, bool colorize break; } if (colorize) - fputs("\x1b[0m", stdout); + fputs(A_RESET, stdout); fputs("\n", stdout); } @@ -989,123 +1208,123 @@ void dump_scan_token(struct fy_parser *fyp, struct fy_token *fyt, bool colorize) switch (fy_token_get_type(fyt)) { case FYTT_NONE: if (colorize) - fputs("\x1b[31;1m", stdout); + fputs(A_BRIGHT_RED, stdout); printf("NONE"); break; case FYTT_STREAM_START: if (colorize) - fputs("\x1b[36m", stdout); + fputs(A_CYAN, stdout); printf("STREAM_START"); break; case FYTT_STREAM_END: if (colorize) - fputs("\x1b[36m", stdout); + fputs(A_CYAN, stdout); printf("STREAM_END"); break; case FYTT_VERSION_DIRECTIVE: if (colorize) - fputs("\x1b[36m", stdout); + fputs(A_CYAN, stdout); vers = fy_version_directive_token_version(fyt); assert(vers); printf("VERSION_DIRECTIVE major=%d minor=%d", vers->major, vers->minor); break; case FYTT_TAG_DIRECTIVE: if (colorize) - fputs("\x1b[36m", stdout); + fputs(A_CYAN, stdout); tag = fy_tag_directive_token_tag(fyt); assert(tag); printf("TAG_DIRECTIVE handle=\"%s\" prefix=\"%s\"", tag->handle, tag->prefix); break; case FYTT_DOCUMENT_START: if (colorize) - fputs("\x1b[36m", stdout); + fputs(A_CYAN, stdout); printf("DOCUMENT_START"); break; case FYTT_DOCUMENT_END: if (colorize) - fputs("\x1b[36m", stdout); + fputs(A_CYAN, stdout); printf("DOCUMENT_END"); break; case FYTT_BLOCK_SEQUENCE_START: if (colorize) - fputs("\x1b[36;1m", stdout); + fputs(A_BRIGHT_CYAN, stdout); printf("BLOCK_SEQUENCE_START"); break; case FYTT_BLOCK_MAPPING_START: if (colorize) - fputs("\x1b[36;1m", stdout); + fputs(A_BRIGHT_CYAN, stdout); printf("BLOCK_MAPPING_START"); break; case FYTT_BLOCK_END: if (colorize) - fputs("\x1b[36;1m", stdout); + fputs(A_BRIGHT_CYAN, stdout); printf("BLOCK_END"); break; case FYTT_FLOW_SEQUENCE_START: if (colorize) - fputs("\x1b[33;1m", stdout); + fputs(A_BRIGHT_YELLOW, stdout); printf("FLOW_SEQUENCE_START"); break; case FYTT_FLOW_SEQUENCE_END: if (colorize) - fputs("\x1b[33;1m", stdout); + fputs(A_BRIGHT_YELLOW, stdout); printf("FLOW_SEQUENCE_END"); break; case FYTT_FLOW_MAPPING_START: if (colorize) - fputs("\x1b[33;1m", stdout); + fputs(A_BRIGHT_YELLOW, stdout); printf("FLOW_MAPPING_START"); break; case FYTT_FLOW_MAPPING_END: if (colorize) - fputs("\x1b[33;1m", stdout); + fputs(A_BRIGHT_YELLOW, stdout); printf("FLOW_MAPPING_END"); break; case FYTT_BLOCK_ENTRY: if (colorize) - fputs("\x1b[36;1m", stdout); + fputs(A_BRIGHT_CYAN, stdout); printf("BLOCK_ENTRY"); break; case FYTT_FLOW_ENTRY: if (colorize) - fputs("\x1b[33;1m", stdout); + fputs(A_BRIGHT_YELLOW, stdout); printf("BLOCK_ENTRY"); break; case FYTT_KEY: if (colorize) - fputs("\x1b[33;1m", stdout); + fputs(A_BRIGHT_YELLOW, stdout); printf("KEY"); break; case FYTT_VALUE: if (colorize) - fputs("\x1b[33;1m", stdout); + fputs(A_BRIGHT_YELLOW, stdout); printf("KEY"); break; case FYTT_ALIAS: anchor = fy_token_get_text(fyt, &anchor_len); assert(anchor); if (colorize) - fputs("\x1b[32m", stdout); + fputs(A_GREEN, stdout); printf("ALIAS *%.*s", (int)anchor_len, anchor); break; case FYTT_ANCHOR: anchor = fy_token_get_text(fyt, &anchor_len); assert(anchor); if (colorize) - fputs("\x1b[32m", stdout); + fputs(A_GREEN, stdout); printf("ANCHOR &%.*s", (int)anchor_len, anchor); break; case FYTT_TAG: tag = fy_tag_token_tag(fyt); assert(tag); if (colorize) - fputs("\x1b[32m", stdout); + fputs(A_GREEN, stdout); /* prefix is a suffix for tag */ printf("TAG handle=\"%s\" suffix=\"%s\"", tag->handle, tag->prefix); break; case FYTT_SCALAR: if (colorize) - fputs("\x1b[37;1m", stdout); + fputs(A_WHITE, stdout); printf("SCALAR "); value = fy_token_get_text(fyt, &len); @@ -1114,27 +1333,27 @@ void dump_scan_token(struct fy_parser *fyp, struct fy_token *fyt, bool colorize) switch (style) { case FYSS_PLAIN: if (colorize) - fputs("\x1b[37;1m", stdout); + fputs(A_WHITE, stdout); printf(" "); break; case FYSS_SINGLE_QUOTED: if (colorize) - fputs("\x1b[33m", stdout); + fputs(A_YELLOW, stdout); printf(" '"); break; case FYSS_DOUBLE_QUOTED: if (colorize) - fputs("\x1b[33m", stdout); + fputs(A_YELLOW, stdout); printf(" \""); break; case FYSS_LITERAL: if (colorize) - fputs("\x1b[33m", stdout); + fputs(A_YELLOW, stdout); printf(" |"); break; case FYSS_FOLDED: if (colorize) - fputs("\x1b[33m", stdout); + fputs(A_YELLOW, stdout); printf(" >"); break; default: @@ -1147,7 +1366,7 @@ void dump_scan_token(struct fy_parser *fyp, struct fy_token *fyt, bool colorize) break; } if (colorize) - fputs("\x1b[0m", stdout); + fputs(A_RESET, stdout); fputs("\n", stdout); } @@ -1367,6 +1586,299 @@ compose_process_event(struct fy_parser *fyp, struct fy_event *fye, struct fy_pat return FYCR_ERROR; } +struct b3sum_config { + bool no_names : 1, + raw : 1, + keyed : 1, + check : 1, + derive_key : 1, + quiet : 1, + list_backends : 1, + no_mmap : 1; + size_t file_buffer; + size_t mmap_min_chunk; + size_t mmap_max_chunk; + unsigned int length; + const char *context; + size_t context_len; + const char *backend; + unsigned int num_threads; +}; + +struct b3sum_config default_b3sum_cfg = { + .length = FY_BLAKE3_OUT_LEN, +}; + +static int do_b3sum_hash_file(struct fy_blake3_hasher *hasher, const char *filename, bool no_names, bool raw, unsigned int length) +{ + static const char *hexb = "0123456789abcdef"; + const uint8_t *output; + size_t filename_sz, line_sz, outsz; + ssize_t wrn; + uint8_t v; + const void *outp; + char *line, *s; + unsigned int i; + + filename_sz = strlen(filename); + + output = fy_blake3_hash_file(hasher, filename); + if (!output) { + fprintf(stderr, "Failed to hash file: \"%s\", error: %s\n", filename, strerror(errno)); + return -1; + } + + if (!raw) { + /* output line (optimized) */ + line_sz = (length * 2); /* the hex output */ + if (!no_names) + line_sz += 2 + filename_sz; /* 2 spaces + filename */ + line_sz++; /* '\n' */ + line = alloca(line_sz + 1); + s = line; + for (i = 0; i < length; i++) { + v = output[i]; + *s++ = hexb[v >> 4]; + *s++ = hexb[v & 15]; + } + if (!no_names) { + *s++ = ' '; + *s++ = ' '; + memcpy(s, filename, filename_sz); + s += filename_sz; + } + *s++ = '\n'; + *s = '\0'; + outp = line; + outsz = (size_t)(s - line); + } else { + outp = output; + outsz = length; + } + + wrn = fwrite(outp, 1, outsz, stdout); + if ((size_t)wrn != outsz) { + fprintf(stderr, "Unable to write to stdout! error: %s\n", strerror(errno)); + return -1; + } + + return 0; +} + +static int do_b3sum_check_file(struct fy_blake3_hasher *hasher, const char *check_filename, bool quiet) +{ + char *hash, *filename; + FILE *fp = NULL; + char linebuf[8192]; /* maximum size for a line is 8K, should be enough (PATH_MAX is 4K at linux) */ + uint8_t read_hash[FY_BLAKE3_OUT_LEN], v; + const uint8_t *computed_hash; + char *s; + char c; + unsigned int i, j, length; + size_t linesz; + int line, exit_code; + + if (check_filename && strcmp(check_filename, "-")) { + fp = fopen(check_filename, "ra"); + if (!fp) { + fprintf(stderr, "Failed to open check file: \"%s\", error: %s\n", check_filename, strerror(errno)); + goto err_out; + } + } else { + fp = stdin; + } + + /* default error code if all is fine */ + exit_code = 0; + + line = 0; + while (fgets(linebuf, sizeof(linebuf), fp)) { + /* '\0' terminate always */ + linebuf[(sizeof(linebuf)/sizeof(linebuf[0]))-1] = '\0'; + + linesz = strlen(linebuf); + while (linesz > 0 && linebuf[linesz-1] == '\n') + linesz--; + + if (!linesz) { + fprintf(stderr, "Empty line found at file \"%s\" line #%d\n", check_filename, line); + goto err_out; + } + linebuf[linesz] = '\0'; + + length = 0; + s = linebuf; + while (isxdigit(*s)) + s++; + + length = s - linebuf; + + if (length == 0 || length > (FY_BLAKE3_OUT_LEN * 2) || (length % 1) || !isspace(*s)) { + fprintf(stderr, "Bad line found at file \"%s\" line #%d\n", check_filename, line); + fprintf(stderr, "%s\n", linebuf); + goto err_out; + } + + *s++ = '\0'; + + while (isspace(*s)) + s++; + + length >>= 1; /* to bytes */ + hash = linebuf; + filename = s; + + for (i = 0, s = hash; i < length; i++) { + v = 0; + for (j = 0; j < 2; j++) { + v <<= 4; + c = *s++; + if (c >= '0' && c <= '9') + v |= c - '0'; + else if (c >= 'a' && c <= 'f') + v |= c - 'a' + 10; + else if (c >= 'A' && c <= 'F') + v |= c - 'A' + 10; + else + v = 0; + } + read_hash[i] = v; + } + + computed_hash = fy_blake3_hash_file(hasher, filename); + if (!computed_hash) { + fprintf(stderr, "Failed to hash file: \"%s\", error: %s\n", filename, strerror(errno)); + goto err_out; + } + + /* constant time comparison */ + v = 0; + for (i = 0; i < length; i++) + v |= (read_hash[i] ^ computed_hash[i]); + + if (v) { + printf("%s: FAILED\n", filename); + exit_code = -1; + } else if (!quiet) + printf("%s: OK\n", filename); + } + +out: + if (fp && fp != stdin) + fclose(fp); + + return exit_code; + +err_out: + exit_code = -1; + goto out; +} + +static int +do_b3sum(int argc, char *argv[], int optind, const struct b3sum_config *cfg) +{ + struct fy_blake3_hasher_cfg hcfg; + struct fy_blake3_hasher *hasher; + uint8_t key[FY_BLAKE3_OUT_LEN]; + const char *filename; + int rc, num_inputs, num_ok, i; + size_t rdn; + const char *backend, *prev; + + if (cfg->list_backends) { + prev = NULL; + while ((backend = fy_blake3_backend_iterate(&prev)) != NULL) + printf("%s\n", backend); + return 0; + } + + if (cfg->quiet && !cfg->check) { + fprintf(stderr, "Error: --quiet may only be used together with --check\n\n"); + return 1; + } + + if (cfg->keyed && cfg->derive_key) { + fprintf(stderr, "Error: --keyed and --derive-key may not be used together\n\n"); + return 1; + } + + if (cfg->check && cfg->length != FY_BLAKE3_OUT_LEN) { + fprintf(stderr, "Error: --check and --length may not be used together\n\n"); + return 1; + } + + if (cfg->keyed) { + rdn = fread(key, 1, FY_BLAKE3_KEY_LEN, stdin); + if (rdn != FY_BLAKE3_KEY_LEN) { + if (rdn >= 0 && rdn < FY_BLAKE3_KEY_LEN) + fprintf(stderr, "Error: could not read secret key from : short key\n\n"); + else + fprintf(stderr, "Error: could not read secret key from : error %s\n\n", strerror(errno)); + return 1; + } + rc = fgetc(stdin); + if (rc != EOF) { + fprintf(stderr, "Error: garbage trailing secret key from \n\n"); + return -1; + } + } + + num_inputs = argc - optind; + if (num_inputs <= 0) + num_inputs = 1; /* stdin mode */ + + if (cfg->raw && num_inputs > 1) { + fprintf(stderr, "Error: Raw output mode is only supported with a single input\n\n"); + return 1; + } + + /* we can't handle '-' in keyed mode */ + if (cfg->keyed) { + for (i = optind; i < argc; i++) { + if (!strcmp(argv[i], "-")) { + fprintf(stderr, "Cannot use in keyed mode\n"); + return 1; + } + } + } + + memset(&hcfg, 0, sizeof(hcfg)); + hcfg.key = cfg->keyed ? key : NULL; + hcfg.context = cfg->derive_key ? cfg->context : NULL; + hcfg.context_len = cfg->derive_key ? cfg->context_len : 0; + hcfg.backend = cfg->backend; + hcfg.no_mmap = cfg->no_mmap; + hcfg.file_buffer = cfg->file_buffer; + hcfg.mmap_min_chunk = cfg->mmap_min_chunk; + hcfg.mmap_max_chunk = cfg->mmap_max_chunk; + hcfg.num_threads = cfg->num_threads; + hasher = fy_blake3_hasher_create(&hcfg); + if (!hasher) { + fprintf(stderr, "unable to create blake3 hasher\n"); + return -1; + } + + /* we will get in the loop even when no arguments (we'll do stdin instead) */ + num_ok = 0; + i = optind; + do { + /* if no arguments, use stdin */ + filename = i < argc ? argv[i] : "-"; + + if (!cfg->check) + rc = do_b3sum_hash_file(hasher, filename, cfg->no_names, cfg->raw, cfg->length); + else + rc = do_b3sum_check_file(hasher, filename, cfg->quiet); + if (!rc) + num_ok++; + + } while (++i < argc); + + fy_blake3_hasher_destroy(hasher); + + return num_inputs == num_ok ? 0 : -1; +} + int main(int argc, char *argv[]) { struct fy_parse_cfg cfg = { @@ -1384,7 +1896,7 @@ int main(int argc, char *argv[]) struct fy_emitter_cfg emit_cfg; struct fy_parser *fyp = NULL; struct fy_emitter *fye = NULL; - int rc, exitcode = EXIT_FAILURE, opt, lidx, count, i, j, step = 1; + int rc, exitcode = EXIT_FAILURE, opt, lidx, i, j, step = 1; enum fy_error_module errmod; unsigned int errmod_mask; bool show; @@ -1420,13 +1932,17 @@ int main(int argc, char *argv[]) bool null_output = false; bool stdin_input; void *res_iter; - bool disable_flow_markers = false; + bool disable_flow_markers = DISABLE_FLOW_MARKERS_DEFAULT; bool document_event_stream = DOCUMENT_EVENT_STREAM_DEFAULT; bool collect_errors = COLLECT_ERRORS_DEFAULT; bool allow_duplicate_keys = ALLOW_DUPLICATE_KEYS_DEFAULT; + bool tsv_format = TSV_FORMAT_DEFAULT; struct composer_data cd; bool dump_path = DUMP_PATH_DEFAULT; const char *input_arg; + /* b3sum */ + int opti; + struct b3sum_config b3cfg = default_b3sum_cfg; fy_valgrind_check(&argc, &argv); @@ -1457,6 +1973,8 @@ int main(int argc, char *argv[]) tool_mode = OPT_COMPOSE; else if (!strcmp(progname, "fy-yaml-version-dump")) tool_mode = OPT_YAML_VERSION_DUMP; + else if (!strcmp(progname, "fy-b3sum")) + tool_mode = OPT_B3SUM; else tool_mode = OPT_TOOL; @@ -1496,8 +2014,7 @@ int main(int argc, char *argv[]) indent = atoi(optarg); if (indent < 0 || indent > FYECF_INDENT_MASK) { fprintf(stderr, "bad indent option %s\n", optarg); - display_usage(stderr, progname, tool_mode); - return EXIT_FAILURE; + goto err_out_usage; } break; @@ -1505,16 +2022,14 @@ int main(int argc, char *argv[]) width = atoi(optarg); if (width < 0 || width > FYECF_WIDTH_MASK) { fprintf(stderr, "bad width option %s\n", optarg); - display_usage(stderr, progname, tool_mode); - return EXIT_FAILURE; + goto err_out_usage; } break; case 'd': dcfg.level = fy_string_to_error_type(optarg); if (dcfg.level == FYET_MAX) { fprintf(stderr, "bad debug level option %s\n", optarg); - display_usage(stderr, progname, tool_mode); - return EXIT_FAILURE; + goto err_out_usage; } break; case OPT_DISABLE_DIAG: @@ -1525,8 +2040,7 @@ int main(int argc, char *argv[]) errmod = fy_string_to_error_module(optarg); if (errmod == FYEM_MAX) { fprintf(stderr, "bad error module option %s\n", optarg); - display_usage(stderr, progname, tool_mode); - return EXIT_FAILURE; + goto err_out_usage; } errmod_mask = FY_BIT(errmod); } @@ -1550,8 +2064,7 @@ int main(int argc, char *argv[]) } else { fprintf(stderr, "bad %s option %s\n", show ? "show" : "hide", optarg); - display_usage(stderr, progname, tool_mode); - return EXIT_FAILURE; + goto err_out_usage; } break; @@ -1579,16 +2092,14 @@ int main(int argc, char *argv[]) du.colorize = false; } else { fprintf(stderr, "bad color option %s\n", optarg); - display_usage(stderr, progname, tool_mode); - return EXIT_FAILURE; + goto err_out_usage; } break; case 'm': rc = apply_mode_flags(optarg, &emit_flags); if (rc) { fprintf(stderr, "bad mode option %s\n", optarg); - display_usage(stderr, progname, tool_mode); - return EXIT_FAILURE; + goto err_out_usage; } break; case 'V': @@ -1602,6 +2113,7 @@ int main(int argc, char *argv[]) dcfg.output_fn = no_diag_output_fn; dcfg.fp = NULL; dcfg.colorize = false; + b3cfg.quiet = true; break; case 'f': file = optarg; @@ -1625,6 +2137,7 @@ int main(int argc, char *argv[]) case OPT_PARSE_DUMP: case OPT_COMPOSE: case OPT_YAML_VERSION_DUMP: + case OPT_B3SUM: tool_mode = opt; break; case OPT_STRIP_LABELS: @@ -1652,8 +2165,7 @@ int main(int argc, char *argv[]) cfg.flags |= FYPCF_JSON_FORCE; else { fprintf(stderr, "bad json option %s\n", optarg); - display_usage(stderr, progname, tool_mode); - return EXIT_FAILURE; + goto err_out_usage; } break; case OPT_DISABLE_ACCEL: @@ -1665,6 +2177,10 @@ int main(int argc, char *argv[]) case OPT_DISABLE_DEPTH_LIMIT: cfg.flags |= FYPCF_DISABLE_DEPTH_LIMIT; break; + case OPT_DISABLE_MMAP: + cfg.flags |= FYPCF_DISABLE_MMAP_OPT; + b3cfg.no_mmap = true; + break; case OPT_DUMP_PATHEXPR: dump_pathexpr = true; break; @@ -1710,6 +2226,77 @@ int main(int argc, char *argv[]) case OPT_STRIP_EMPTY_KV: emit_flags |= FYECF_STRIP_EMPTY_KV; break; + case OPT_TSV_FORMAT: + tsv_format = true; + break; + + case OPT_DERIVE_KEY: + b3cfg.derive_key = true; + b3cfg.context = optarg; + b3cfg.context_len = strlen(optarg); + break; + case OPT_NO_NAMES: + b3cfg.no_names = true; + break; + case OPT_RAW: + b3cfg.raw = true; + break; + case OPT_CHECK: + b3cfg.check = true; + break; + case OPT_KEYED: + b3cfg.keyed = true; + break; + + case OPT_LENGTH: + opti = atoi(optarg); + if (opti <= 0 || opti > FY_BLAKE3_OUT_LEN) { + fprintf(stderr, "Error: bad length=%d (must be > 0 and <= %u)\n\n", opti, FY_BLAKE3_OUT_LEN); + goto err_out_usage; + } + b3cfg.length = (unsigned int)opti; + break; + + case OPT_LIST_BACKENDS: + b3cfg.list_backends = true; + break; + + case OPT_BACKEND: + b3cfg.backend = optarg; + break; + + case OPT_NUM_THREADS: + b3cfg.num_threads = atoi(optarg); + break; + + case OPT_FILE_BUFFER: + opti = atoi(optarg); + if (opti < 0) { + fprintf(stderr, "Error: bad file-buffer=%d (must be >= 0)\n\n", opti); + goto err_out_usage; + } + b3cfg.file_buffer = (size_t)opti; + break; + + case OPT_MMAP_MIN_CHUNK: + opti = atoi(optarg); + if (opti < 0) { + fprintf(stderr, "Error: bad mmap-min-chunk=%d (must be >= 0)\n\n", opti); + goto err_out_usage; + } + b3cfg.mmap_min_chunk = (size_t)opti; + break; + + case OPT_MMAP_MAX_CHUNK: + opti = atoi(optarg); + if (opti < 0) { + fprintf(stderr, "Error: bad mmap-max-chunk=%d (must be >= 0)\n\n", opti); + goto err_out_usage; + } + b3cfg.mmap_max_chunk = (size_t)opti; + break; + + case 'h' : default: if (opt != 'h') @@ -1722,6 +2309,17 @@ int main(int argc, char *argv[]) } } + if (tool_mode == OPT_B3SUM) { + + rc = do_b3sum(argc, argv, optind, &b3cfg); + if (rc == 1) { + /* display usage */ + goto err_out_usage; + } + exitcode = !rc ? EXIT_SUCCESS : EXIT_FAILURE; + goto cleanup; + } + if (tool_mode == OPT_YAML_VERSION_DUMP) { const struct fy_version *vers; void *iter; @@ -1813,7 +2411,8 @@ int main(int argc, char *argv[]) if (!document_event_stream) { /* regular test suite */ while ((fyev = fy_parser_parse(fyp)) != NULL) { - dump_testsuite_event(fyp, fyev, du.colorize, iter, disable_flow_markers); + dump_testsuite_event(fyp, fyev, du.colorize, iter, + disable_flow_markers, tsv_format); fy_parser_event_free(fyp, fyev); } } else { @@ -1827,7 +2426,8 @@ int main(int argc, char *argv[]) fprintf(stderr, "failed to create document iterator's stream start event\n"); goto cleanup; } - dump_testsuite_event(fyp, fyev, du.colorize, iter, disable_flow_markers); + dump_testsuite_event(fyp, fyev, du.colorize, iter, + disable_flow_markers, tsv_format); fy_document_iterator_event_free(fydi, fyev); /* convert to document and then process the generator event stream it */ @@ -1838,11 +2438,13 @@ int main(int argc, char *argv[]) fprintf(stderr, "failed to create document iterator's document start event\n"); goto cleanup; } - dump_testsuite_event(fyp, fyev, du.colorize, iter, disable_flow_markers); + dump_testsuite_event(fyp, fyev, du.colorize, iter, + disable_flow_markers, tsv_format); fy_document_iterator_event_free(fydi, fyev); while ((fyev = fy_document_iterator_body_next(fydi)) != NULL) { - dump_testsuite_event(fyp, fyev, du.colorize, iter, disable_flow_markers); + dump_testsuite_event(fyp, fyev, du.colorize, iter, + disable_flow_markers, tsv_format); fy_document_iterator_event_free(fydi, fyev); } @@ -1851,7 +2453,8 @@ int main(int argc, char *argv[]) fprintf(stderr, "failed to create document iterator's stream document end\n"); goto cleanup; } - dump_testsuite_event(fyp, fyev, du.colorize, iter, disable_flow_markers); + dump_testsuite_event(fyp, fyev, du.colorize, iter, + disable_flow_markers, tsv_format); fy_document_iterator_event_free(fydi, fyev); fy_parse_document_destroy(fyp, fyd); @@ -1865,7 +2468,8 @@ int main(int argc, char *argv[]) fprintf(stderr, "failed to create document iterator's stream end event\n"); goto cleanup; } - dump_testsuite_event(fyp, fyev, du.colorize, iter, disable_flow_markers); + dump_testsuite_event(fyp, fyev, du.colorize, iter, + disable_flow_markers, tsv_format); fy_document_iterator_event_free(fydi, fyev); fy_document_iterator_destroy(fydi); @@ -1880,7 +2484,6 @@ int main(int argc, char *argv[]) break; case OPT_DUMP: - count = 0; for (i = optind; ; i++) { if (optind < argc) { @@ -1909,19 +2512,17 @@ int main(int argc, char *argv[]) if (rc) goto cleanup; - count++; } } else { while ((fyev = fy_parser_parse(fyp)) != NULL) { if (!null_output) { - rc = fy_emit_event(fye, fyev); + rc = fy_emit_event_from_parser(fye, fyp, fyev); if (rc) goto cleanup; } else { fy_parser_event_free(fyp, fyev); } } - count++; } if (fy_parser_get_stream_error(fyp)) @@ -1947,7 +2548,6 @@ int main(int argc, char *argv[]) goto cleanup; } - count = 0; while ((fyd = fy_parse_load_document(fyp)) != NULL) { for (i = optind, j = 0; i < argc; i += step, j++) { @@ -1979,7 +2579,6 @@ int main(int argc, char *argv[]) if (rc) goto cleanup; - count++; } fy_parse_document_destroy(fyp, fyd); @@ -2138,7 +2737,6 @@ int main(int argc, char *argv[]) } else stdin_input = false; - count = 0; for (;;) { if (!stdin_input) { @@ -2208,7 +2806,6 @@ int main(int argc, char *argv[]) goto cleanup; } - count = 0; for (i = optind; i < argc; i++) { rc = set_parser_input(fyp, argv[i], false); if (rc) { @@ -2227,7 +2824,6 @@ int main(int argc, char *argv[]) fy_parser_event_free(fyp, fyev); } } - count++; if (fy_parser_get_stream_error(fyp)) goto cleanup; @@ -2247,15 +2843,12 @@ int main(int argc, char *argv[]) cd.single_document = false; cd.verbose = dump_path; - count = 0; for (i = optind; i < argc; i++) { rc = set_parser_input(fyp, argv[i], false); if (rc) { fprintf(stderr, "failed to set parser input to '%s' for dump\n", argv[i]); goto cleanup; } - - count++; } /* ignore errors for now */ @@ -2309,4 +2902,9 @@ int main(int argc, char *argv[]) } return exitcode; + +err_out_usage: + exitcode = EXIT_FAILURE; + display_usage(stderr, progname, tool_mode); + goto cleanup; } diff --git a/Sources/Cfyaml/src/util/.deps/libfyaml_la-fy-blob.Plo b/Sources/Cfyaml/src/util/.deps/libfyaml_la-fy-blob.Plo new file mode 100644 index 000000000..9ce06a81e --- /dev/null +++ b/Sources/Cfyaml/src/util/.deps/libfyaml_la-fy-blob.Plo @@ -0,0 +1 @@ +# dummy diff --git a/Sources/Cfyaml/src/util/.deps/libfyaml_la-fy-ctype.Plo b/Sources/Cfyaml/src/util/.deps/libfyaml_la-fy-ctype.Plo new file mode 100644 index 000000000..9ce06a81e --- /dev/null +++ b/Sources/Cfyaml/src/util/.deps/libfyaml_la-fy-ctype.Plo @@ -0,0 +1 @@ +# dummy diff --git a/Sources/Cfyaml/src/util/.deps/libfyaml_la-fy-utf8.Plo b/Sources/Cfyaml/src/util/.deps/libfyaml_la-fy-utf8.Plo new file mode 100644 index 000000000..9ce06a81e --- /dev/null +++ b/Sources/Cfyaml/src/util/.deps/libfyaml_la-fy-utf8.Plo @@ -0,0 +1 @@ +# dummy diff --git a/Sources/Cfyaml/src/util/.deps/libfyaml_la-fy-utils.Plo b/Sources/Cfyaml/src/util/.deps/libfyaml_la-fy-utils.Plo new file mode 100644 index 000000000..9ce06a81e --- /dev/null +++ b/Sources/Cfyaml/src/util/.deps/libfyaml_la-fy-utils.Plo @@ -0,0 +1 @@ +# dummy diff --git a/Sources/Cfyaml/src/util/fy-align.h b/Sources/Cfyaml/src/util/fy-align.h new file mode 100644 index 000000000..1e7e180b5 --- /dev/null +++ b/Sources/Cfyaml/src/util/fy-align.h @@ -0,0 +1,95 @@ +/* + * fy-align.h - various align related stuff + * + * Copyright (c) 2023 Pantelis Antoniou + * + * SPDX-License-Identifier: MIT + */ + +#ifndef FY_ALIGN_H +#define FY_ALIGN_H + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include + +#if defined(__GNUC__) || defined(__clang__) +#define FY_ALIGNED_TO(x) __attribute__ ((aligned(x))) +#elif defined(_MSC_VER) +#define FY_ALIGNED_TO(x) __declspec(align(x)) +#else +#define FY_ALIGNED_TO(x) /* nothing */ +#endif + +#define FY_ALIGN(_align, _x) (((_x) + ((_align) - 1)) & ~((_align) - 1)) + +/* cachelines are universally 64 bytes */ +#define FY_CACHELINE_SIZE 64 +#define FY_CACHELINE_SIZE_ALIGN(_x) FY_ALIGN(FY_CACHELINE_SIZE, _x) +#define FY_CACHELINE_ALIGN FY_ALIGNED_TO(FY_CACHELINE_SIZE) + +/* provide posix_memalign for platforms that don't have it */ +#ifdef _WIN32 +static inline int posix_memalign(void **ptr, size_t align, size_t size) +{ + void *p; + + /* must be a power of two */ + if ((size & (size -1)) != 0) { + *ptr = NULL; + return EINVAL; + } + + p = _aligned_malloc(size, align); + if (!p) { + *ptr = NULL; + return ENOMEM; + } + return p; +} + +static inline void posix_memalign_free(void *p) +{ + _aligned_free(p); +} + +#else +/* normal implementations just use free */ +static inline void posix_memalign_free(void *p) +{ + free(p); +} +#endif + +static inline void *fy_align_alloc(size_t align, size_t size) +{ + void *p; + int rc; + + size = FY_ALIGN(align, size); + rc = posix_memalign(&p, align, size); + if (rc) + return NULL; + return p; +} + +static inline void fy_align_free(void *p) +{ + if (p) + posix_memalign_free(p); +} + +static inline void *fy_cacheline_alloc(size_t size) +{ + return fy_align_alloc(FY_CACHELINE_SIZE, size); +} + +static inline void fy_cacheline_free(void *p) +{ + fy_align_free(p); +} + +#endif diff --git a/Sources/Cfyaml/src/util/fy-bit64.h b/Sources/Cfyaml/src/util/fy-bit64.h new file mode 100644 index 000000000..b01fc6de1 --- /dev/null +++ b/Sources/Cfyaml/src/util/fy-bit64.h @@ -0,0 +1,86 @@ +/* + * fy-bit64.h - various bit64 methods + * + * Copyright (c) 2023 Pantelis Antoniou + * + * SPDX-License-Identifier: MIT + */ + +#ifndef FY_BIT64_H +#define FY_BIT64_H + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include + +#define FY_BIT64(x) ((uint64_t)1 << (x)) +#define FY_BIT64_COUNT(_x) (((_x) + 63) / 64) +#define FY_BIT64_SIZE(_x) ((size_t)((((_x) + 63) / 64) * sizeof(uint64_t))) + +#if (defined(__GNUC__) && __GNUC__ >= 4) || defined(__clang__) + +#define FY_BIT64_LOWEST(_x) ((unsigned int)__builtin_ctzll((unsigned long long)(_x))) +#define FY_BIT64_HIGHEST(_x) ((unsigned int)__builtin_clzll((unsigned long long)(_x))) +#define FY_BIT64_POPCNT(_x) ((unsigned int)__builtin_popcountl((unsigned long long)(_x))) + +static inline unsigned int fy_bit64_lowest(uint64_t x) +{ + return FY_BIT64_LOWEST(x); +} + +static inline unsigned int fy_bit64_highest(uint64_t x) +{ + return FY_BIT64_HIGHEST(x); +} + +static inline unsigned int FY_bit64_popcnt(uint64_t x) +{ + return FY_BIT64_POPCNT(x); +} + +#else /* portable implementation */ + +static inline unsigned int FY_BIT64_LOWEST(uint64_t x) +{ + unsigned int c = 0; + + if (!(x & 0x00000000ffffffffULL)) { x >>= 32; c += 32; } + if (!(x & 0x000000000000ffffULL)) { x >>= 16; c += 16; } + if (!(x & 0x00000000000000ffULL)) { x >>= 8; c += 8; } + if (!(x & 0x000000000000000fULL)) { x >>= 4; c += 4; } + if (!(x & 0x0000000000000003ULL)) { x >>= 2; c += 2; } + if (!(x & 0x0000000000000001ULL)) { c += 1; } + return c; +} + +static inline unsigned int FY_BIT64_HIGHEST(uint64_t x) +{ + unsigned int c = 0; + + if (x & 0xffffffff00000000ULL) { x >>= 32; c += 32; } + if (x & 0x00000000ffff0000ULL) { x >>= 16; c += 16; } + if (x & 0x000000000000ff00ULL) { x >>= 8; c += 8; } + if (x & 0x00000000000000f0ULL) { x >>= 4; c += 4; } + if (x & 0x000000000000000cULL) { x >>= 2; c += 2; } + if (x & 0x0000000000000002ULL) { c += 1; } + return c; +} + +static inline unsigned int FY_BIT64_POPCNT(uint64_t x) +{ + unsigned int count; + + for (count = 0; x; x &= x - 1) + count++; + return count; +} + +#define FY_BIT64_LOWEST(_x) fy_bit64_lowest(_x) +#define FY_BIT64_HIGEST(_x) fy_bit64_highest(_x) +#define FY_BIT64_POPCNT(_x) fy_bit64_popcnt(_x) + +#endif + +#endif diff --git a/Sources/Cfyaml/src/util/fy-blob.c b/Sources/Cfyaml/src/util/fy-blob.c new file mode 100644 index 000000000..152afddb5 --- /dev/null +++ b/Sources/Cfyaml/src/util/fy-blob.c @@ -0,0 +1,119 @@ +/* + * fy-blob.c - binary blob handling + * + * Copyright (c) 2023 Pantelis Antoniou + * + * SPDX-License-Identifier: MIT + */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include +#include + +#include "fy-blob.h" + +/* define optimized methods for probing */ +BR_DEFINE_WX(br_probe_w, 8, false, false); +BR_DEFINE_WX(br_probe_w, 16, false, false); +BR_DEFINE_WX(br_probe_w, 32, false, false); +BR_DEFINE_WX(br_probe_w, 64, false, false); + +/* define optimized methods for writing */ +BR_DEFINE_WX(br_native_w, 8, false, true); +BR_DEFINE_WX(br_native_w, 16, false, true); +BR_DEFINE_WX(br_native_w, 32, false, true); +BR_DEFINE_WX(br_native_w, 64, false, true); + +BR_DEFINE_WX(br_bswap_w, 8, true, true); +BR_DEFINE_WX(br_bswap_w, 16, true, true); +BR_DEFINE_WX(br_bswap_w, 32, true, true); +BR_DEFINE_WX(br_bswap_w, 64, true, true); + +void *fy_blob_read(const char *file, size_t *sizep) +{ + struct stat sb; + void *blob = NULL; + uint8_t *p; + size_t size, left; + ssize_t rdn; + int fd = -1, rc; + + if (!file || !sizep) + goto err_out; + + fd = open(file, O_RDONLY); + if (fd < 0) + goto err_out; + + rc = fstat(fd, &sb); + if (rc < 0) + goto err_out; + + size = sb.st_size; + blob = malloc(size); + if (!blob) + goto err_out; + + p = blob; + left = size; + while (left > 0) { + do { + rdn = read(fd, p, left); + } while (rdn == -1 && errno == EAGAIN); + if (rdn < 0) + goto err_out; + p += rdn; + left -= rdn; + } + close(fd); + + *sizep = size; + return blob; + +err_out: + if (blob) + free(blob); + if (fd >= 0) + close(fd); + return NULL; +} + +int fy_blob_write(const char *file, const void *blob, size_t size) +{ + int fd = -1; + const uint8_t *p; + size_t left; + ssize_t wrn; + + if (!file || !blob) + return -1; + + fd = open(file, O_WRONLY|O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IRGRP | S_IROTH); + if (fd < 0) + goto err_out; + + p = blob; + left = size; + while (left > 0) { + do { + wrn = write(fd, p, left); + } while (wrn == -1 && errno == EAGAIN); + if (wrn < 0) + goto err_out; + p += wrn; + left -= wrn; + } + close(fd); + + return 0; + +err_out: + if (fd >= 0) + close(fd); + return -1; +} diff --git a/Sources/Cfyaml/src/util/fy-blob.h b/Sources/Cfyaml/src/util/fy-blob.h new file mode 100644 index 000000000..301455d41 --- /dev/null +++ b/Sources/Cfyaml/src/util/fy-blob.h @@ -0,0 +1,455 @@ +/* + * fy-blob.h - binary blob handling support + * + * Copyright (c) 2023 Pantelis Antoniou + * + * SPDX-License-Identifier: MIT + */ +#ifndef FY_BLOB_H +#define FY_BLOB_H + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#ifdef HAVE_BYTESWAP_H +#include +#else +#ifdef HAVE___BUILTIN_BSWAP16 +#define bswap_16(value) __builtin_bswap16(value) +#else +#define bswap_16(value) ((((value)&0xff) << 8) | ((value) >> 8)) +#endif + +#ifdef HAVE___BUILTIN_BSWAP32 +#define bswap_32(value) __builtin_bswap32(value) +#else +#define bswap_32(value) \ + (((uint32_t)bswap_16((uint16_t)((value)&0xffff)) << 16) | \ + (uint32_t)bswap_16((uint16_t)((value) >> 16))) +#endif + +#ifdef HAVE___BUILTIN_BSWAP64 +#define bswap_64(value) __builtin_bswap64(value) +#else +#define bswap_64(value) \ + (((uint64_t)bswap_32((uint32_t)((value)&0xffffffff)) << 32) | \ + (uint64_t)bswap_32((uint32_t)((value) >> 32))) +#endif +#endif + +#include +#include + +#include "fy-endian.h" + +/* special unaligned types for pointer accesses */ + +#if defined(__GNUC__) && __GNUC__ >= 4 +typedef union { uint64_t v; } __attribute__((__packed__)) br_64; +typedef union { uint32_t v; } __attribute__((__packed__)) br_32; +typedef union { uint16_t v; } __attribute__((__packed__)) br_16; +typedef union { uint8_t v; } br_8; +#elif defined(_MSC_VER) +#pragma pack(push, 1) +typedef union { uint64_t v; } br_64; +typedef union { uint32_t v; } br_32; +typedef union { uint16_t v; } br_16; +typedef union { uint8_t v; } br_8; +#pragma pack(pop) +#else +#error Unsupported compiler +#endif + +enum blob_id_size { + BID_U8, + BID_U16, + BID_U32, + BID_U64, +}; + +static inline enum blob_id_size +blob_count_to_id_size(unsigned long long count) +{ + if (count < (1LLU << 8)) + return BID_U8; + if (count < (1LLU << 16)) + return BID_U16; + if (count < (1LLU << 32)) + return BID_U32; + return BID_U64; +} + +static inline unsigned int +blob_id_size_to_byte_size(enum blob_id_size size) +{ + return 1U << size; +} + +static inline unsigned int +blob_id_size_to_bit_size(enum blob_id_size size) +{ + return blob_id_size_to_byte_size(size) * 8; +} + +enum blob_endian_type { + BET_NATIVE_ENDIAN, + BET_LITTLE_ENDIAN, + BET_BIG_ENDIAN +}; + +struct blob_region { + union { + uint8_t *wstart; + const uint8_t *rstart; + }; + size_t size; + enum blob_endian_type endian; + bool bswap; + size_t curr; +}; + +#define BR_DEFINE_WX(_pfx, _bits, _bswap, _write) \ +size_t _pfx ## _bits (struct blob_region *br, uint ## _bits ## _t v) \ +{ \ + size_t pos; \ +\ + assert(br->curr < br->size); \ + if (_write) { \ + if (_bswap) \ + v = bswap_ ## _bits (v); \ + ((br_ ## _bits *)(br->wstart + br->curr))->v = v; \ + } \ + pos = br->curr; \ + br->curr += sizeof(v); \ + return pos; \ +} \ +struct __useless_struct_to_allow_semicolon + +#define BR_DEFINE_RX(_pfx, _bits, _bswap) \ +uint ## _bits ## _t _pfx ## _bits (struct blob_region *br) \ +{ \ + uint ## _bits ## _t v; \ +\ + assert(br->curr + sizeof(v) <= br->size); \ + assert(br->rstart); \ + v = ((const br_ ## _bits *)(br->rstart + br->curr))->v; \ + if (_bswap) \ + v = bswap_ ## _bits (v); \ + br->curr += sizeof(v); \ + return v; \ +} \ +struct __useless_struct_to_allow_semicolon + +static inline void br_setup_common(struct blob_region *br, size_t size, enum blob_endian_type endian) +{ + memset(br, 0, sizeof(*br)); + br->size = size; + br->endian = endian; + + switch (br->endian) { + case BET_NATIVE_ENDIAN: + /* native endian never needs swap */ + br->bswap = false; + break; + + case BET_LITTLE_ENDIAN: +#if __BYTE_ORDER == __LITTLE_ENDIAN + br->bswap = false; +#else + br->bswap = true; +#endif + break; + + case BET_BIG_ENDIAN: +#if __BYTE_ORDER == __LITTLE_ENDIAN + br->bswap = true; +#else + br->bswap = false; +#endif + break; + } + + br->curr = 0; +} + +static inline void br_wsetup(struct blob_region *br, void *data, size_t size, enum blob_endian_type endian) +{ + /* write with null data means probe */ + br_setup_common(br, size, endian); + br->wstart = data; +} + +static inline void br_rsetup(struct blob_region *br, const void *data, size_t size, enum blob_endian_type endian) +{ + /* read makes no sense without data */ + assert(data); + br_setup_common(br, size, endian); + br->rstart = data; +} + +static inline void br_reset(struct blob_region *br) +{ + br->curr = 0; +} + +static inline size_t br_curr(struct blob_region *br) +{ + return br->curr; +} + +static inline size_t br_write(struct blob_region *br, const void *data, size_t size) +{ + size_t pos; + + assert(br->curr + size <= br->size); + if (br->wstart) + memcpy(br->wstart + br->curr, data, size); + pos = br->curr; + br->curr += size; + return pos; +} + +static inline size_t br_w0(struct blob_region *br, size_t size) +{ + size_t pos; + + assert(br->curr + size <= br->size); + if (br->wstart) + memset(br->wstart + br->curr, 0, size); + pos = br->curr; + br->curr += size; + return pos; +} + +static inline size_t br_wskip(struct blob_region *br, size_t size) +{ + return br_w0(br, size); +} + +static inline size_t br_wskip_to(struct blob_region *br, size_t offset) +{ + assert(br->curr <= offset); + return br_w0(br, offset - br->curr); +} + +static inline BR_DEFINE_WX(br_w, 8, br->bswap, br->wstart != NULL); +static inline BR_DEFINE_WX(br_w, 16, br->bswap, br->wstart != NULL); +static inline BR_DEFINE_WX(br_w, 32, br->bswap, br->wstart != NULL); +static inline BR_DEFINE_WX(br_w, 64, br->bswap, br->wstart != NULL); + +typedef size_t (*br_wid_func)(struct blob_region *br, int id); + +static inline size_t br_wid8(struct blob_region *br, int id) +{ + assert((unsigned int)id < ((unsigned int)1 << 8)); + return br_w8(br, (uint8_t)id); +} + +static inline size_t br_wid16(struct blob_region *br, int id) +{ + assert((unsigned int)id < ((unsigned int)1 << 16)); + return br_w16(br, (uint16_t)id); +} + +static inline size_t br_wid32(struct blob_region *br, int id) +{ + assert((unsigned long)id < ((unsigned long)1 << 32)); + return br_w32(br, (uint32_t)id); +} + +static inline size_t br_wid64(struct blob_region *br, int id) +{ + assert(id >= 0); + return br_w64(br, (uint64_t)id); +} + +static inline br_wid_func br_wid_get_func(enum blob_id_size id_size) +{ + switch (id_size) { + case BID_U8: + return br_wid8; + + case BID_U16: + return br_wid16; + + case BID_U32: + return br_wid32; + + case BID_U64: + return br_wid64; + } + return NULL; +} + +static inline size_t br_wstr(struct blob_region *br, const char *str, size_t len) +{ + if (len == (size_t)-1) + len = strlen(str); + return br_write(br, str, len + 1); +} + +static inline size_t br_wX(struct blob_region *br, enum blob_id_size x_size, uint64_t x) +{ + switch (x_size) { + case BID_U8: + assert(x < ((uint64_t)1 << 8)); + return br_w8(br, (uint8_t)x); + + case BID_U16: + assert(x < ((uint64_t)1 << 16)); + return br_w16(br, (uint16_t)x); + + case BID_U32: + assert(x < ((uint64_t)1 << 32)); + return br_w32(br, (uint32_t)x); + + case BID_U64: + return br_w64(br, x); + } + return (size_t)-1; +} + +static inline size_t br_wid(struct blob_region *br, enum blob_id_size id_size, int id) +{ + assert(id >= 0); + switch (id_size) { + case BID_U8: + return br_wid8(br, id); + + case BID_U16: + return br_wid16(br, id); + + case BID_U32: + return br_wid32(br, id); + + case BID_U64: + return br_wid64(br, id); + } + return br->curr; +} + +static inline size_t br_read(struct blob_region *br, void *data, size_t size) +{ + size_t pos; + + assert(br->curr + size <= br->size); + assert(br->rstart); + memcpy(data, br->rstart + br->curr, size); + pos = br->curr; + br->curr += size; + return pos; +} + +static inline void br_rskip(struct blob_region *br, size_t size) +{ + assert(br->curr + size <= br->size); + br->curr += size; +} + +static inline void br_rskip_to(struct blob_region *br, size_t offset) +{ + assert(br->curr <= offset); + assert(offset <= br->size); + br->curr = offset; +} + +static inline BR_DEFINE_RX(br_r, 8, br->bswap); +static inline BR_DEFINE_RX(br_r, 16, br->bswap); +static inline BR_DEFINE_RX(br_r, 32, br->bswap); +static inline BR_DEFINE_RX(br_r, 64, br->bswap); + +typedef int (*br_rid_func)(struct blob_region *br); + +static inline int br_rid8(struct blob_region *br) +{ + return (int)br_r8(br); +} + +static inline int br_rid16(struct blob_region *br) +{ + return (int)br_r16(br); +} + +static inline int br_rid32(struct blob_region *br) +{ + return (int)br_r32(br); +} + +static inline int br_rid64(struct blob_region *br) +{ + return (int)br_r64(br); +} + +static inline br_rid_func br_rid_get_func(enum blob_id_size id_size) +{ + switch (id_size) { + case BID_U8: + return br_rid8; + + case BID_U16: + return br_rid16; + + case BID_U32: + return br_rid32; + + case BID_U64: + return br_rid64; + } + return NULL; +} + +static inline uint64_t br_rX(struct blob_region *br, enum blob_id_size x_size) +{ + switch (x_size) { + case BID_U8: + return br_r8(br); + + case BID_U16: + return br_r16(br); + + case BID_U32: + return br_r32(br); + + case BID_U64: + return br_r64(br); + } + return (uint64_t)-1; +} + +static inline int br_rid(struct blob_region *br, enum blob_id_size id_size) +{ + int id; + + switch (id_size) { + case BID_U8: + id = br_rid8(br); + break; + + case BID_U16: + id = br_rid16(br); + break; + + case BID_U32: + id = br_rid32(br); + break; + + case BID_U64: + id = br_rid64(br); + break; + + default: + id = -1; + break; + } + assert(id >= 0); + return id; +} + +void *fy_blob_read(const char *file, size_t *sizep); +int fy_blob_write(const char *file, const void *blob, size_t size); + +#endif diff --git a/Sources/Cfyaml/src/lib/fy-ctype.c b/Sources/Cfyaml/src/util/fy-ctype.c similarity index 96% rename from Sources/Cfyaml/src/lib/fy-ctype.c rename to Sources/Cfyaml/src/util/fy-ctype.c index 560fec63f..1c9463f1b 100644 --- a/Sources/Cfyaml/src/lib/fy-ctype.c +++ b/Sources/Cfyaml/src/util/fy-ctype.c @@ -10,7 +10,8 @@ #include "config.h" #endif -#include +#include +#include #include "fy-ctype.h" diff --git a/Sources/Cfyaml/src/lib/fy-ctype.h b/Sources/Cfyaml/src/util/fy-ctype.h similarity index 90% rename from Sources/Cfyaml/src/lib/fy-ctype.h rename to Sources/Cfyaml/src/util/fy-ctype.h index 5f39fab60..06b5ecd27 100644 --- a/Sources/Cfyaml/src/lib/fy-ctype.h +++ b/Sources/Cfyaml/src/util/fy-ctype.h @@ -13,12 +13,10 @@ #endif #include -#include +#include #include #include -#include - #include "fy-utf8.h" enum fy_lb_mode { @@ -48,6 +46,16 @@ static inline bool fy_is_num(int c) return c >= '0' && c <= '9'; } +static inline bool fy_is_digit(int c) +{ + return c >= '0' && c <= '9'; +} + +static inline bool fy_is_xdigit(int c) +{ + return fy_is_digit(c) || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F'); +} + static inline bool fy_is_first_alnum(int c) { return fy_is_first_alpha(c); @@ -149,9 +157,14 @@ static inline bool fy_is_ns_char(int c) return fy_is_nb_char(c) && !fy_is_ws(c); } -static inline bool fy_is_indicator(int c) +static inline bool fy_is_start_indicator(int c) +{ + return !!fy_utf8_strchr(",[]{}#&*!|>'\"%%@`", c); +} + +static inline bool fy_is_indicator_before_space(int c) { - return !!fy_utf8_strchr("-?:,[]{}#&*!|>'\"%%@`", c); + return !!fy_utf8_strchr("-:?`", c); } static inline bool fy_is_flow_indicator(int c) @@ -266,6 +279,8 @@ struct useless_struct_for_semicolon FY_CTYPE_AT_BUILDER(first_alpha); FY_CTYPE_AT_BUILDER(alpha); FY_CTYPE_AT_BUILDER(num); +FY_CTYPE_AT_BUILDER(digit); +FY_CTYPE_AT_BUILDER(xdigit); FY_CTYPE_AT_BUILDER(first_alnum); FY_CTYPE_AT_BUILDER(alnum); FY_CTYPE_AT_BUILDER(space); @@ -280,7 +295,8 @@ FY_CTYPE_AT_BUILDER(print); FY_CTYPE_AT_BUILDER(printq); FY_CTYPE_AT_BUILDER(nb_char); FY_CTYPE_AT_BUILDER(ns_char); -FY_CTYPE_AT_BUILDER(indicator); +FY_CTYPE_AT_BUILDER(start_indicator); +FY_CTYPE_AT_BUILDER(indicator_before_space); FY_CTYPE_AT_BUILDER(flow_indicator); FY_CTYPE_AT_BUILDER(path_flow_key_start); FY_CTYPE_AT_BUILDER(path_flow_key_end); @@ -295,7 +311,7 @@ FY_CTYPE_AT_BUILDER(json_unescaped); */ /* skip for a _single_ linebreak */ -static inline const void *fy_skip_lb(const void *ptr, int left) +static inline const void *fy_skip_lb(const void *ptr, size_t left) { int c, width; @@ -305,7 +321,7 @@ static inline const void *fy_skip_lb(const void *ptr, int left) return NULL; /* MS-DOS: check if next character is '\n' */ - if (c == '\r' && left > width && *(char *)ptr == '\n') + if (c == '\r' && left > (size_t)width && *(char *)ptr == '\n') width++; return ptr + width; @@ -315,7 +331,7 @@ static inline const void *fy_skip_lb(const void *ptr, int left) * ws character after the last non-ws character, or the end * of the chunk */ -static inline const void *fy_last_non_ws(const void *ptr, int left) +static inline const void *fy_last_non_ws(const void *ptr, size_t left) { const char *s, *e; int c; diff --git a/Sources/Cfyaml/src/util/fy-endian.h b/Sources/Cfyaml/src/util/fy-endian.h new file mode 100644 index 000000000..a3be6b85f --- /dev/null +++ b/Sources/Cfyaml/src/util/fy-endian.h @@ -0,0 +1,50 @@ +/* + * fy-endian.h - simple system endian header wrapper + * + * Copyright (c) 2023 Pantelis Antoniou + * + * SPDX-License-Identifier: MIT + */ +#ifndef FY_ENDIAN_H +#define FY_ENDIAN_H + +#if defined(__linux__) || defined(__CYGWIN__) || defined(__OpenBSD__) +# include +#elif defined(__APPLE__) +# include +# include +#elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) +# include +#elif defined(_MSC_VER) +# include +# ifdef __GNUC__ +# include +# endif +#else +# error unsupported platform +#endif + +#if !defined(__BYTE_ORDER) && defined(BYTE_ORDER) +#define __BYTE_ORDER BYTE_ORDER +#endif + +#if !defined(__BIG_ENDIAN) && defined(BIG_ENDIAN) +#define __BIG_ENDIAN BIG_ENDIAN +#endif + +#if !defined(__LITTLE_ENDIAN) && defined(LITTLE_ENDIAN) +#define __LITTLE_ENDIAN LITTLE_ENDIAN +#endif + +#if !defined(__BYTE_ORDER) || !defined(__BIG_ENDIAN) || !defined(__LITTLE_ENDIAN) +# error Platform does not define endian macros +#endif + +/* no-one cares about PDP endian anymore */ + +/* make the macros work for 8 bit too */ +#ifndef bswap_8 +#define bswap_8(x) (x) +#endif + +#endif diff --git a/Sources/Cfyaml/src/util/fy-id.h b/Sources/Cfyaml/src/util/fy-id.h new file mode 100644 index 000000000..95c120e25 --- /dev/null +++ b/Sources/Cfyaml/src/util/fy-id.h @@ -0,0 +1,239 @@ +/* + * fy-id.h - small ID allocator + * + * Copyright (c) 2023 Pantelis Antoniou + * + * SPDX-License-Identifier: MIT + */ +#ifndef FY_ID_H +#define FY_ID_H + +#include +#include +#include +#include + +#include + +typedef unsigned int fy_id_bits; + +#define FY_ID_BITS_SZ ((size_t)(sizeof(fy_id_bits))) +#define FY_ID_BITS_BITS (FY_ID_BITS_SZ * 8) /* yes, every character is 8 bits in 2023 */ +#define FY_ID_BITS_MASK ((size_t)(FY_ID_BITS_BITS - 1)) + +#define FY_ID_BITS_ARRAY_COUNT_BITS(_bits) \ + (((_bits) + FY_ID_BITS_MASK) & ~FY_ID_BITS_MASK) + +#define FY_ID_BITS_ARRAY_COUNT(_bits) \ + (FY_ID_BITS_ARRAY_COUNT_BITS(_bits) / FY_ID_BITS_BITS) + +#define FY_ID_OFFSET(_id) ((_id) / FY_ID_BITS_BITS) +#define FY_ID_BIT_MASK(_id) ((fy_id_bits)1 << ((_id) & FY_ID_BITS_MASK)) + +#if defined(__GNUC__) && __GNUC__ >= 4 +static inline int fy_id_ffs(const fy_id_bits id_bit) +{ + if (!id_bit) + return -1; + return __builtin_ffs(id_bit) - 1; +} + +#else +static inline int fy_id_ffs(const fy_id_bits id_bit) +{ + return ffs((int)id_bits) - 1; +} +#endif + +#if defined(__GNUC__) && __GNUC__ >= 4 +static inline int fy_id_popcount(const fy_id_bits id_bit) +{ + return __builtin_popcount(id_bit); +} + +#else +static inline int fy_id_popcount(fy_id_bits id_bit) +{ + int count, pos; + + count = 0; + while ((pos = fy_id_ffs(id_bit)) >= 0) { + count++; + id_bit &= ~((fy_id_bits)1 << pos); + } + return count; +} +#endif + +static inline void fy_id_reset(fy_id_bits *bits, const size_t count) +{ + memset(bits, 0, sizeof(*bits) * count); +} + +static inline int fy_id_alloc(fy_id_bits *bits, const size_t count) +{ + size_t i; + int pos; + + for (i = 0; i < count; i++, bits++) { + pos = fy_id_ffs(~*bits); + if (pos >= 0) { + *bits |= FY_ID_BIT_MASK(pos); + return (i * FY_ID_BITS_BITS) + pos; + } + } + return -1; +} + +static inline int fy_id_alloc_fixed(fy_id_bits *bits, const size_t count, const int id) +{ + size_t offset; + fy_id_bits m; + + offset = FY_ID_OFFSET(id); + if (offset >= count) + return -1; + bits += offset; + m = FY_ID_BIT_MASK(id); + if (*bits & m) + return -1; + *bits |= m; + return id; +} + +static inline bool fy_id_is_used(fy_id_bits *bits, const size_t count, const int id) +{ + size_t offset; + + offset = FY_ID_OFFSET(id); + if (offset >= count) + return false; + return !!(bits[offset] & FY_ID_BIT_MASK(id)); +} + +static inline bool fy_id_is_used_no_check(fy_id_bits *bits, const size_t count, const int id) +{ + size_t offset; + + offset = FY_ID_OFFSET(id); + if (offset >= count) + return false; + return !!(bits[offset] & FY_ID_BIT_MASK(id)); +} + +static inline bool fy_id_is_free(fy_id_bits *bits, const size_t count, const int id) +{ + size_t offset; + + offset = FY_ID_OFFSET(id); + if (offset >= count) + return false; + return !(bits[offset] & FY_ID_BIT_MASK(id)); +} + +static inline void fy_id_free(fy_id_bits *bits, const size_t count, int id) +{ + size_t offset; + + offset = FY_ID_OFFSET(id); + if (offset >= count) + return; + bits += offset; + *bits &= ~FY_ID_BIT_MASK(id); /* no need to check, if bit is free, it is still free */ +} + +static inline void fy_id_set_used(fy_id_bits *bits, const size_t count, const int id) +{ + assert(FY_ID_OFFSET(id) < count); + bits[FY_ID_OFFSET(id)] |= FY_ID_BIT_MASK(id); +} + +static inline void fy_id_set_free(fy_id_bits *bits, const size_t count, const int id) +{ + assert(FY_ID_OFFSET(id) < count); + bits[FY_ID_OFFSET(id)] &= ~FY_ID_BIT_MASK(id); +} + +static inline size_t fy_id_count_used(fy_id_bits *bits, const size_t count) +{ + size_t i, popcount; + + popcount = 0; + for (i = 0; i < count; i++, bits++) + popcount += fy_id_popcount(*bits); + return popcount; +} + +static inline size_t fy_id_count_free(fy_id_bits *bits, const size_t count) +{ + size_t i, popcount; + + popcount = 0; + for (i = 0; i < count; i++, bits++) + popcount += fy_id_popcount(~*bits); + return popcount; +} + +struct fy_id_iter { + const fy_id_bits *s; + fy_id_bits m; +}; + +static inline void fy_id_iter_begin(const fy_id_bits *bits, const size_t count, struct fy_id_iter *iterp) +{ + iterp->s = bits; + iterp->m = ~(fy_id_bits)0; +} + +static inline int fy_id_iter_next(const fy_id_bits *bits, const size_t count, struct fy_id_iter *iterp) +{ + const fy_id_bits *s, *e; + fy_id_bits m; + int pos; + + s = iterp->s; + if (!s) + return -1; + + m = iterp->m; + e = bits + count; + + if (s >= e) + return -1; + + /* scan until we find a set bit or hit the end */ + pos = -1; + while (s < e && (pos = fy_id_ffs(*s & m)) < 0) { + s++; + m = ~(fy_id_bits)0; + } + + /* not found */ + if (pos < 0) { + iterp->s = NULL; + iterp->m = 0; + return -1; + } + + /* remove this bit from the mask */ + m &= ~((fy_id_bits)1 << pos); + + /* advance by the number of fy_id_bits we scanned */ + pos += (int)(s - bits) * FY_ID_BITS_BITS; + + /* if we run out of mask, advance */ + if (!m) { + s++; + m = ~(fy_id_bits)0; + } + iterp->s = s; + iterp->m = m; + return pos; +} + +static inline void fy_id_iter_end(fy_id_bits *bits, const size_t count, const struct fy_id_iter *iterp) +{ + /* nothing */ +} + +#endif diff --git a/Sources/Cfyaml/src/lib/fy-list.h b/Sources/Cfyaml/src/util/fy-list.h similarity index 100% rename from Sources/Cfyaml/src/lib/fy-list.h rename to Sources/Cfyaml/src/util/fy-list.h diff --git a/Sources/Cfyaml/src/lib/fy-typelist.h b/Sources/Cfyaml/src/util/fy-typelist.h similarity index 99% rename from Sources/Cfyaml/src/lib/fy-typelist.h rename to Sources/Cfyaml/src/util/fy-typelist.h index 7fd9148ae..9739e73ba 100644 --- a/Sources/Cfyaml/src/lib/fy-typelist.h +++ b/Sources/Cfyaml/src/util/fy-typelist.h @@ -16,8 +16,6 @@ #include #include -#include - #include "fy-list.h" /* declare type methods */ diff --git a/Sources/Cfyaml/src/lib/fy-utf8.c b/Sources/Cfyaml/src/util/fy-utf8.c similarity index 51% rename from Sources/Cfyaml/src/lib/fy-utf8.c rename to Sources/Cfyaml/src/util/fy-utf8.c index 8cb5b0723..45c071c89 100644 --- a/Sources/Cfyaml/src/lib/fy-utf8.c +++ b/Sources/Cfyaml/src/util/fy-utf8.c @@ -13,11 +13,21 @@ #include #include -#include - #include "fy-utf8.h" -int fy_utf8_get_generic(const void *ptr, int left, int *widthp) +/* to avoid dragging in libfyaml.h */ +#ifndef FY_BIT +#define FY_BIT(x) (1U << (x)) +#endif + +const int8_t fy_utf8_width_table[32] = { + 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, + 0, 0, 0, 0, 0, 0, 0, 0, + 2, 2, 2, 2, 3, 3, 4, 0, +}; + +int fy_utf8_get_generic(const void *ptr, size_t left, int *widthp) { const uint8_t *p = ptr; int i, width, value; @@ -29,11 +39,11 @@ int fy_utf8_get_generic(const void *ptr, int left, int *widthp) width = fy_utf8_width_by_first_octet(p[0]); if (!width) return FYUG_INV; - if (width > left) + if ((size_t)width > left) return FYUG_PARTIAL; /* initial value */ - value = *p++ & (0x7f >> width); + value = *p++ & (0xff >> width); for (i = 1; i < width; i++) { if ((*p & 0xc0) != 0x80) return FYUG_INV; @@ -52,23 +62,67 @@ int fy_utf8_get_generic(const void *ptr, int left, int *widthp) return value; } -int fy_utf8_get_right_generic(const void *ptr, int left, int *widthp) +int fy_utf8_get_right_generic(const void *ptr, size_t left, int *widthp) { - const uint8_t *p, *s, *e; + const uint8_t *s, *e; + uint8_t v; + + s = ptr; + e = s + left; if (left < 1) return FYUG_EOF; - s = ptr; - e = s + left; - p = e - 1; - while (p >= s && (e - p) <= 4) { - if ((*p & 0xc0) != 0x80) - return fy_utf8_get(p, e - p, widthp); - p--; + /* single byte sequence */ + v = e[-1]; + if ((v & 0x80) == 0) { + if (widthp) + *widthp = 1; + return (int)v & 0x7f; } - return FYUG_PARTIAL; + /* the last byte must be & 0xc0 == 0x80 */ + if ((v & 0xc0) != 0x80) + return FYUG_INV; + + /* at least two byte sequence */ + if (left < 2) + return FYUG_EOF; + + v = e[-2]; + /* the first byte of the sequence (must be a two byte sequence) */ + if ((v & 0xc0) != 0x80) { + /* two byte start is 110x_xxxx */ + if ((v & 0xe0) != 0xc0) + return FYUG_INV; + return fy_utf8_get(e - 2, 2, widthp); + } + + /* at least three byte sequence */ + if (left < 3) + return FYUG_EOF; + + v = e[-3]; + /* the first byte of the sequence (must be a three byte sequence) */ + if ((v & 0xc0) != 0x80) { + /* three byte start is 1110_xxxx */ + if ((v & 0xf0) != 0xe0) + return FYUG_INV; + return fy_utf8_get(e - 3, 3, widthp); + } + + /* at least four byte sequence */ + if (left < 4) + return FYUG_EOF; + + v = e[-4]; + + /* the first byte of the sequence (must be a four byte sequence) */ + /* four byte start is 1111_0xxx */ + if ((v & 0xf8) != 0xf0) { + return FYUG_INV; + } + return fy_utf8_get(e - 4, 4, widthp); } struct fy_utf8_fmt_esc_map { @@ -105,10 +159,11 @@ static inline int fy_utf8_esc_map(int c, enum fy_utf8_escape esc) return esc_map(&esc_all, c); } -int fy_utf8_format_text_length(const char *buf, size_t len, - enum fy_utf8_escape esc) +size_t fy_utf8_format_text_length(const char *buf, size_t len, + enum fy_utf8_escape esc) { - int c, w, l; + int c, w; + ssize_t l; const char *s, *e; s = buf; @@ -183,11 +238,11 @@ char *fy_utf8_format(int c, char *buf, enum fy_utf8_escape esc) char *fy_utf8_format_text_alloc(const char *buf, size_t len, enum fy_utf8_escape esc) { - int outsz; + size_t outsz; char *out; outsz = fy_utf8_format_text_length(buf, len, esc); - if (outsz < 0) + if ((ssize_t)outsz < 0) return NULL; out = malloc(outsz); if (!out) @@ -538,3 +593,470 @@ uint8_t fy_utf8_low_ascii_flags[0x80] = { ['~'] = F_PUNCT, [0x7F] = F_NON_PRINT, // DEL }; + +void *fy_utf8_split_posix(const char *str, int *argcp, const char * const *argvp[]) +{ + enum split_state { + SS_WS, /* at whitespace */ + SS_WS_BS, /* backslash at whitespace */ + SS_UQ, /* at unquoted */ + SS_UQ_BS, /* backslash at unquoted */ + SS_SQ, /* at single quote */ + SS_SQ_BS, /* backslash at single quote */ + SS_DQ, /* at double quote */ + SS_DQ_BS, /* backslash at double quote */ + SS_DQ_BS_OCT1, /* in \nnn octal escape digit 1 */ + SS_DQ_BS_OCT2, /* in \nnn octal escape digit 2 */ + SS_DQ_BS_HEX0, /* in \xNN hex escape digit 0 */ + SS_DQ_BS_HEX1, /* in \xNN hex escape digit 1 */ + SS_DQ_BS_HEX2, /* in \xNN hex escape digit 2 */ + SS_DQ_BS_C, /* in \cN control character escape */ + SS_WS_BS_ERR_EOL, /* EOL while waiting for char after \ */ + SS_UQ_BS_ERR_EOL, /* EOL while waiting for char after \ */ + SS_SQ_BS_ERR_EOL, /* EOL while waiting for char after \ */ + SS_DQ_BS_ERR_EOL, /* EOL while waiting for char after \ */ + SS_DQ_BS_ERR_BAD, /* bad escape */ + SS_SQ_NC_ERR, /* no closing single quote */ + SS_DQ_NC_ERR, /* no closing double quote */ + SS_DQ_BS_ERR_OCT_BAD, /* bad octal escape */ + SS_DQ_BS_ERR_HEX_BAD, /* bad hex escape */ + SS_DQ_BS_ERR_C_BAD, /* bad control char */ + SS_DONE /* final state */ + }; + const char *s, *e; + enum split_state ss; + int c, w, val, tmp, outc, i; + size_t arg_alloc = strlen(str) + 1, tmplen; + char *arg = NULL, *args, *arge, *tmparg; + int argv_alloc = 64, argv_count = 0; + char **argv = NULL, **tmpargv; + void *mem; + + if (!str || !argcp || !argvp) + return NULL; + + /* the temporary is guaranteed to fit one split */ + arg = alloca(arg_alloc); + args = arg; + arge = arg + arg_alloc - 1; + + argv = alloca(sizeof(*argv) * argv_alloc); + + e = str + strlen(str); + +#undef OUTC +#define OUTC(_c) \ + do { \ + assert(args < arge); \ + args = fy_utf8_put(args, arge - args, (_c)); \ + assert(args); \ + } while(0) + +#undef NEW_ARGV +#define NEW_ARGV() \ + do { \ + if (args > arg) { \ + if (argv_count + 1 >= argv_alloc) { \ + argv_alloc *= 2; \ + tmpargv = alloca((sizeof(*tmpargv) * argv_alloc)); \ + memcpy(tmpargv, argv, argv_count * sizeof(*tmpargv)); \ + } \ + tmplen = args - arg; \ + tmparg = alloca(tmplen + 1); \ + memcpy(tmparg, arg, tmplen); \ + tmparg[tmplen] = '\0'; \ + argv[argv_count] = tmparg; \ + argv[++argv_count] = NULL; \ + } \ + args = arg; \ + } while(0) + +#define GOTO(_ss) \ + do { \ + ss = (_ss); \ + } while(0) + + + ss = SS_WS; + s = str; + val = 0; + while (!(ss >= SS_WS_BS_ERR_EOL && ss <= SS_DONE)) { + c = fy_utf8_get(s, e - s, &w); + switch (ss) { + case SS_WS: + if (c < 0) { + NEW_ARGV(); + GOTO(SS_DONE); + break; + } + switch (c) { + case ' ': + case '\t': + break; /* no change */ + case '\\': + GOTO(SS_WS_BS); + break; + case '"': + GOTO(SS_DQ); /* start double quoted */ + NEW_ARGV(); + break; + case '\'': + GOTO(SS_SQ); /* start single quoted */ + NEW_ARGV(); + break; + default: + GOTO(SS_UQ); /* start unquoted */ + NEW_ARGV(); + OUTC(c); + break; + } + break; + + case SS_WS_BS: + if (c < 0) { + GOTO(SS_WS_BS_ERR_EOL); + break; + } + if (c == '\n') { /* backslash newline, continuation */ + GOTO(SS_WS); + break; + } + GOTO(SS_UQ); + NEW_ARGV(); + OUTC(c); + break; + + case SS_UQ: + if (c <= 0) { + NEW_ARGV(); + GOTO(SS_DONE); + break; + } + + switch (c) { + case ' ': + case '\t': + GOTO(SS_WS); + NEW_ARGV(); + break; /* no change */ + case '\\': + GOTO(SS_UQ_BS); + break; + case '"': + GOTO(SS_DQ); /* double quoted */ + break; + case '\'': + GOTO(SS_SQ); /* single quoted */ + break; + default: + OUTC(c); + break; + } + break; + + case SS_UQ_BS: + if (c < 0) { + GOTO(SS_UQ_BS_ERR_EOL); + break; + } + if (c == '\n') { /* backslash new line only */ + GOTO(SS_UQ); + break; + } + GOTO(SS_UQ); + OUTC(c); + break; + + case SS_SQ: + if (c < 0) { + GOTO(SS_SQ_NC_ERR); /* no closing ' */ + break; + } + switch (c) { + case '\'': /* end of quote, back to unquoted */ + GOTO(SS_UQ); + break; + case '\\': + OUTC(c); + GOTO(SS_SQ_BS); /* backslash */ + break; + default: + OUTC(c); + break; + } + break; + + case SS_SQ_BS: + if (c < 0) { + GOTO(SS_SQ_BS_ERR_EOL); + break; + } + if (c == '\n') { /* backslash new line only */ + GOTO(SS_SQ); /* back to single quoted */ + break; + } + GOTO(SS_UQ); /* always back to */ + OUTC(c); + break; + + case SS_DQ: + if (c < 0) { + GOTO(SS_DQ_NC_ERR); /* no closing ' */ + break; + } + switch (c) { + case '"': /* end of quote, back to unquoted */ + GOTO(SS_UQ); + break; + case '\\': + GOTO(SS_DQ_BS); /* backslash */ + break; + default: + OUTC(c); + break; + } + break; + + case SS_DQ_BS: + if (c < 0) { + GOTO(SS_DQ_BS_ERR_EOL); + break; + } + outc = -1; + switch (c) { + case 'a': + outc = '\a'; + break; + case 'b': + outc = '\b'; + break; + case 'e': + outc = '\x1b'; /* escape */ + break; + case 'n': + outc = '\n'; + break; + case 'r': + outc = '\r'; + break; + case 't': + outc = '\t'; + break; + case 'v': + outc = '\v'; + break; + case '\\': + outc = '\\'; + break; + case '\'': + outc = '\''; + break; + case '0': + case '1': + case '2': + case '3': + case '4': + case '5': + case '6': + case '7': + val = c - '0'; + GOTO(SS_DQ_BS_OCT1); + break; + case 'x': + val = 0; + GOTO(SS_DQ_BS_HEX0); + break; + case 'c': + val = 0; + GOTO(SS_DQ_BS_C); + break; + default: + GOTO(SS_DQ_BS_ERR_BAD); /* unknown escape */ + break; + } + if (outc > 0) { + OUTC(outc); + GOTO(SS_DQ); + } + break; + + case SS_DQ_BS_OCT1: + case SS_DQ_BS_OCT2: + if (c < 0) { + OUTC(val); + NEW_ARGV(); + GOTO(SS_DONE); + break; + } + if (!(c >= '0' && c <= '7')) { + OUTC(val); + GOTO(SS_DQ); + w = 0; /* redo, same */ + break; + } + val *= 8; + val += c - '0'; + if (ss == SS_DQ_BS_OCT2) { + OUTC(val); + GOTO(SS_DQ); + } else + GOTO(SS_DQ_BS_OCT2); + break; + + case SS_DQ_BS_HEX0: + case SS_DQ_BS_HEX1: + case SS_DQ_BS_HEX2: + tmp = -1; + if (c >= '0' && c <= '9') + tmp = c - '0'; + else if (c >= 'a' && c <= 'f') + tmp = 10 + c - 'a'; + else if (c >= 'A' && c <= 'F') + tmp = 10 + c - 'A'; + + switch (ss) { + case SS_DQ_BS_HEX0: + if (tmp < 0) { + fprintf(stderr, "tmp=%d c=%c\n", tmp, c); + GOTO(SS_DQ_BS_ERR_HEX_BAD); + break; + } + val = tmp; + GOTO(SS_DQ_BS_HEX1); + break; + + case SS_DQ_BS_HEX1: + case SS_DQ_BS_HEX2: + if (tmp < 0) { + GOTO(SS_DQ); + OUTC(val); + w = 0; /* redo */ + break; + } + val *= 16; + val += tmp; + if (ss == SS_DQ_BS_HEX1) + GOTO(SS_DQ_BS_HEX2); + else { + OUTC(val); + GOTO(SS_DQ); + } + break; + + default: + abort(); + } + break; + + case SS_DQ_BS_C: + outc = -1; + if (c >= 'a' && c <= 'z') + outc = c - 'a' + 1; + else if (c >= 'A' && c <= 'Z') + outc = c - 'Z' + 1; + if (outc > 0x20) { + outc = -1; + GOTO(SS_DQ_BS_ERR_C_BAD); + } else + GOTO(SS_DQ); + if (outc > 0) + OUTC(outc); + break; + default: + abort(); + break; + } + s += w; + } + + /* someething went wrong */ + if (ss != SS_DONE) + return NULL; + + tmplen = (argv_count + 1) * sizeof(*argv); + for (i = 0; i < argv_count; i++) + tmplen += strlen(argv[i]) + 1; + + mem = malloc(tmplen); + if (!mem) + return NULL; + + tmpargv = mem; + tmparg = mem + (argv_count + 1) * sizeof(*tmpargv); + for (i = 0; i < argv_count; i++) { + tmpargv[i] = tmparg; + strcpy(tmparg, argv[i]); + tmparg += strlen(argv[i]) + 1; + } + tmpargv[i] = NULL; + + *argcp = i; + *argvp = mem; + + return mem; +} + +int fy_utf8_get_generic_s(const void *ptr, const void *ptr_end, int *widthp) +{ + const uint8_t *p = ptr; + int i, width, value; + + if (ptr >= ptr_end) + return FYUG_EOF; + + /* this is the slow path */ + width = fy_utf8_width_by_first_octet(p[0]); + if (!width) + return FYUG_INV; + if (ptr + width > ptr_end) + return FYUG_PARTIAL; + + /* initial value */ + value = *p++ & (0xff >> width); + for (i = 1; i < width; i++) { + if ((*p & 0xc0) != 0x80) + return FYUG_INV; + value = (value << 6) | (*p++ & 0x3f); + } + + /* check for validity */ + if ((width == 4 && value < 0x10000) || + (width == 3 && value < 0x800) || + (width == 2 && value < 0x80) || + (value >= 0xd800 && value <= 0xdfff) || value >= 0x110000) + return FYUG_INV; + + *widthp = width; + + return value; +} + +int fy_utf8_get_generic_s_nocheck(const void *ptr, int *widthp) +{ + const uint8_t *p = ptr; + int i, width, value; + + /* this is the slow path */ + width = fy_utf8_width_by_first_octet(p[0]); + if (!width) + return FYUG_INV; + + /* initial value */ + value = *p++ & (0xff >> width); + for (i = 1; i < width; i++) { + if ((*p & 0xc0) != 0x80) + return FYUG_INV; + value = (value << 6) | (*p++ & 0x3f); + } + + /* check for validity */ + if ((width == 4 && value < 0x10000) || + (width == 3 && value < 0x800) || + (width == 2 && value < 0x80) || + (value >= 0xd800 && value <= 0xdfff) || value >= 0x110000) + return FYUG_INV; + + *widthp = width; + + return value; +} diff --git a/Sources/Cfyaml/src/lib/fy-utf8.h b/Sources/Cfyaml/src/util/fy-utf8.h similarity index 69% rename from Sources/Cfyaml/src/lib/fy-utf8.h rename to Sources/Cfyaml/src/util/fy-utf8.h index 8f99acaf0..a877c9530 100644 --- a/Sources/Cfyaml/src/lib/fy-utf8.h +++ b/Sources/Cfyaml/src/util/fy-utf8.h @@ -13,13 +13,19 @@ #endif #include -#include +#include #include +#include + +#include "fy-utils.h" -#include +#define FY_UTF8_MIN_WIDTH 1 +#define FY_UTF8_MAX_WIDTH 4 + +extern const int8_t fy_utf8_width_table[32]; static inline int -fy_utf8_width_by_first_octet(uint8_t c) +fy_utf8_width_by_first_octet_no_table(uint8_t c) { return (c & 0x80) == 0x00 ? 1 : (c & 0xe0) == 0xc0 ? 2 : @@ -27,6 +33,12 @@ fy_utf8_width_by_first_octet(uint8_t c) (c & 0xf8) == 0xf0 ? 4 : 0; } +static inline FY_ALWAYS_INLINE int +fy_utf8_width_by_first_octet(uint8_t c) +{ + return fy_utf8_width_table[c >> 3]; +} + /* assumes valid utf8 character */ static inline size_t fy_utf8_width(int c) @@ -49,14 +61,14 @@ fy_utf8_is_printable_ascii(int c) } /* generic utf8 decoder (not inlined) */ -int fy_utf8_get_generic(const void *ptr, int left, int *widthp); +int fy_utf8_get_generic(const void *ptr, size_t left, int *widthp); /* -1 for end of input, -2 for invalid character, -3 for partial */ #define FYUG_EOF -1 #define FYUG_INV -2 #define FYUG_PARTIAL -3 -static inline int fy_utf8_get(const void *ptr, int left, int *widthp) +static inline int fy_utf8_get(const void *ptr, size_t left, int *widthp) { const uint8_t *p = ptr; @@ -73,9 +85,9 @@ static inline int fy_utf8_get(const void *ptr, int left, int *widthp) return fy_utf8_get_generic(ptr, left, widthp); } -int fy_utf8_get_right_generic(const void *ptr, int left, int *widthp); +int fy_utf8_get_right_generic(const void *ptr, size_t left, int *widthp); -static inline int fy_utf8_get_right(const void *ptr, int left, int *widthp) +static inline int fy_utf8_get_right(const void *ptr, size_t left, int *widthp) { const uint8_t *p = ptr + left; @@ -144,8 +156,8 @@ char *fy_utf8_format(int c, char *buf, enum fy_utf8_escape esc); fy_utf8_format((_c), _buf, _esc); \ }) -int fy_utf8_format_text_length(const char *buf, size_t len, - enum fy_utf8_escape esc); +size_t fy_utf8_format_text_length(const char *buf, size_t len, + enum fy_utf8_escape esc); char *fy_utf8_format_text(const char *buf, size_t len, char *out, size_t maxsz, enum fy_utf8_escape esc); @@ -216,4 +228,62 @@ int fy_utf8_parse_escape(const char **strp, size_t len, enum fy_utf8_escape esc) extern uint8_t fy_utf8_low_ascii_flags[0x80]; +void *fy_utf8_split_posix(const char *str, int *argcp, const char * const *argvp[]); + +int fy_utf8_get_generic_s(const void *ptr, const void *ptr_end, int *widthp); +int fy_utf8_get_generic_s_nocheck(const void *ptr, int *widthp); + +static inline int fy_utf8_get_s(const void *ptr, const void *ptr_end, int *widthp) +{ + const uint8_t *p = ptr; + + /* single byte (hot path) */ + if (ptr >= ptr_end) { + *widthp = 0; + return FYUG_EOF; + } + + if (!(p[0] & 0x80)) { + *widthp = 1; + return p[0]; + } + return fy_utf8_get_generic_s(ptr, ptr_end, widthp); +} + +static inline int fy_utf8_get_s_nocheck(const void *ptr, int *widthp) +{ + const uint8_t *p = ptr; + + if (!(p[0] & 0x80)) { + *widthp = 1; + return p[0]; + } + return fy_utf8_get_generic_s_nocheck(ptr, widthp); +} + +/* for most 64 bit arches this will fit in a single register */ +struct fy_utf8_result { + int c; + int w; +}; + +/* probably the most performant version */ +static inline struct fy_utf8_result fy_utf8_get_s_res(const void *ptr, const void *ptr_end) +{ + const uint8_t *p = ptr; + int c, width; + + /* single byte (hot path) */ + if (ptr >= ptr_end) + return (struct fy_utf8_result){ FYUG_EOF, 0 }; + + if (!(p[0] & 0x80)) + return (struct fy_utf8_result){ p[0], 1 }; + + c = fy_utf8_get_generic_s(ptr, ptr_end, &width); + if (c < 0) + return (struct fy_utf8_result){ c, 0 }; + return (struct fy_utf8_result){ c, width }; +} + #endif diff --git a/Sources/Cfyaml/src/lib/fy-utils.c b/Sources/Cfyaml/src/util/fy-utils.c similarity index 72% rename from Sources/Cfyaml/src/lib/fy-utils.c rename to Sources/Cfyaml/src/util/fy-utils.c index 8b55ccb7d..6b45f1541 100644 --- a/Sources/Cfyaml/src/lib/fy-utils.c +++ b/Sources/Cfyaml/src/util/fy-utils.c @@ -20,6 +20,7 @@ #include #include #include +#include #include "fy-utf8.h" #include "fy-ctype.h" @@ -632,3 +633,245 @@ int fy_term_query_size(int fd, int *rows, int *cols) return ret; } + +int fy_comment_iter_begin(const char *comment, size_t size, struct fy_comment_iter *iter) +{ + if (!comment || !iter) + return -1; + + memset(iter, 0, sizeof(*iter)); + iter->start = comment; + iter->size = size == (size_t)-1 ? strlen(comment) : size; + iter->end = iter->start + iter->size; + + if (!iter->size) + return -1; + + iter->next = iter->start; + iter->line = 0; + + return 0; +} + +const char *fy_comment_iter_next_line(struct fy_comment_iter *iter, size_t *lenp) +{ + const char *s, *e, *le, *t; + + if (!iter || !lenp || !iter->start) + return NULL; + + /* no more */ + if (iter->next >= iter->end) + return NULL; +again: + *lenp = 0; + + s = iter->next; + e = iter->end; + + /* skip whitespace */ + while (s < e && isblank(*s)) + s++; + + if (s >= e) + return NULL; + + /* find end of line */ + le = memchr(s, '\n', e - s); + if (!le) { + le = e; + iter->next = e; + } else { + iter->next = le + 1; + } + + /* final? check if ends in *\/ */ + if (le >= e && (le - s) > 2 && le[-2] == '*' && le[-1] == '/') + le -= 2; + + /* backtrack while there's space at the end of line */ + while (le > s && isblank(le[-1])) + le--; + + /* check if the whole line is punctuation so it's formatting */ + t = s; + while (t < le && ispunct(*t)) + t++; + + /* everything is punctuation? */ + if (t > s && t >= le) { + if (((le - s) == 2 && s[0] == '/' && s[1] == '/') || /* '//' -> empty line */ + ((le - s) == 1 && s[0] == '*')) { /* '*' -> empty line */ + iter->line++; + return ""; + } + /* for anything else, just try again */ + goto again; + } + + /* something is there, skip over '// ' or '* ' */ + if ((le - s) > 3 && s[0] == '/' && s[1] == '/' && isblank(s[2])) + s += 3; + else if ((le - s) > 2 && s[0] == '*' && isblank(s[1])) + s += 2; + else if (iter->line == 0 && (le - s) > 3 && s[0] == '/' && s[1] == '*' && isblank(s[2])) + s += 3; + + iter->line++; + *lenp = le - s; + return s; +} + +void fy_comment_iter_end(struct fy_comment_iter *iter) +{ + /* nothing */ +} + +char *fy_get_cooked_comment(const char *raw_comment, size_t size) +{ + struct fy_comment_iter iter; + FILE *fp; + char *buf; + const char *line; + size_t len, line_len; + int ret; + + if (!raw_comment) + return NULL; + + fp = open_memstream(&buf, &len); + if (!fp) + return NULL; + + ret = 0; + fy_comment_iter_begin(raw_comment, size, &iter); + while ((line = fy_comment_iter_next_line(&iter, &line_len)) != NULL) { + ret = fprintf(fp, "%.*s\n", (int)line_len, line); + if (ret < 0) + break; + } + fy_comment_iter_end(&iter); + + fclose(fp); + + if (ret < 0) { + if (buf) + free(buf); + return NULL; + } + + /* must be freed */ + return buf; +} + +int fy_keyword_iter_begin(const char *text, size_t size, const char *keyword, struct fy_keyword_iter *iter) +{ + if (!text || !size || !keyword || !iter) + return -1; + + memset(iter, 0, sizeof(*iter)); + iter->keyword = keyword; + iter->keyword_len = strlen(keyword); + iter->start = text; + iter->size = size == (size_t)-1 ? strlen(text) : size; + iter->end = iter->start + iter->size; + iter->pc = '\n'; + + if (!iter->size) + return -1; + + iter->next = iter->start; + + return 0; +} + +const char *fy_keyword_iter_next(struct fy_keyword_iter *iter) +{ + const char *keyword; + size_t keyword_len; + const char *s, *e; + int c, w, pc, mode; + + if (!iter || !iter->start) + return NULL; + + /* no more */ + if (iter->next >= iter->end) + return NULL; + + s = iter->next; + e = iter->end; + + keyword = iter->keyword; + keyword_len = iter->keyword_len; + + mode = 0; + pc = iter->pc; + while ((c = fy_utf8_get_s(s, e, &w)) >= 0) { + + /* simple state machine to handle quoting */ + switch (mode) { + case 0: /* unquoted */ + if (c == keyword[0] && (fy_is_any_lb(pc) || fy_is_ws(pc)) && + (size_t)(e - s) > (keyword_len + 1) && !memcmp(s, keyword, keyword_len) && + (fy_is_ws(s[keyword_len]) || fy_is_any_lb(s[keyword_len]))) { + + iter->next = s; + iter->pc = pc; + return s; + } + + if (c == '\'') + mode = 1; + else if (c == '"') + mode = 3; + break; + case 1: /* single quote */ + if (c == '\\') + mode = 2; /* escaped single quote? */ + else if (c == '\'') + mode = 0; /* back to unquoted */ + break; + case 2: /* single quote backslash */ + mode = 1; /* back to single quote mode always */ + break; + case 3: /* double quote */ + if (c == '\\') + mode = 4; /* escaped quote? */ + else if (c == '"') + mode = 0; /* back to unquoted */ + break; + case 4: + mode = 3; /* back to double quote mode always */ + break; + } + s += w; + pc = c; + } + + return NULL; +} + +void fy_keyword_iter_advance(struct fy_keyword_iter *iter, size_t advance) +{ + int w; + const char *prev; + + if (!iter || !iter->next) + return; + + prev = iter->next; + + iter->next += advance; + if (iter->next >= iter->end) + iter->next = iter->end; + + iter->pc = fy_utf8_get_right(prev, (size_t)(iter->next - prev), &w); + if (iter->pc < 0) + iter->pc = '\n'; +} + +void fy_keyword_iter_end(struct fy_keyword_iter *iter) +{ + /* nothing */ +} diff --git a/Sources/Cfyaml/src/lib/fy-utils.h b/Sources/Cfyaml/src/util/fy-utils.h similarity index 61% rename from Sources/Cfyaml/src/lib/fy-utils.h rename to Sources/Cfyaml/src/util/fy-utils.h index cf3e3c522..20758b23b 100644 --- a/Sources/Cfyaml/src/lib/fy-utils.h +++ b/Sources/Cfyaml/src/util/fy-utils.h @@ -18,6 +18,10 @@ #include #include +#if defined(__linux__) +#include +#endif + #if defined(__APPLE__) && (_POSIX_C_SOURCE < 200809L) FILE *open_memstream(char **ptr, size_t *sizeloc); #endif @@ -65,4 +69,41 @@ int fy_term_query_size_raw(int fd, int *rows, int *cols); /* the non raw methods will set the terminal to raw and then restore */ int fy_term_query_size(int fd, int *rows, int *cols); +struct fy_comment_iter { + const char *start; + size_t size; + const char *end; + const char *next; + int line; +}; + +int fy_comment_iter_begin(const char *comment, size_t size, struct fy_comment_iter *iter); +const char *fy_comment_iter_next_line(struct fy_comment_iter *iter, size_t *lenp); +void fy_comment_iter_end(struct fy_comment_iter *iter); + +char *fy_get_cooked_comment(const char *raw_comment, size_t size); + +struct fy_keyword_iter { + const char *keyword; + size_t keyword_len; + const char *start; + size_t size; + const char *end; + const char *next; + int pc; +}; + +int fy_keyword_iter_begin(const char *text, size_t size, const char *keyword, struct fy_keyword_iter *iter); +const char *fy_keyword_iter_next(struct fy_keyword_iter *iter); +void fy_keyword_iter_advance(struct fy_keyword_iter *iter, size_t advance); +void fy_keyword_iter_end(struct fy_keyword_iter *iter); + +#if !defined(S_ISREG) && defined(S_IFMT) && defined(S_IFREG) +#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) +#endif + +#if !defined(S_ISDIR) && defined(S_IFMT) && defined(S_IFDIR) +#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) +#endif + #endif diff --git a/Sources/Cfyaml/src/valgrind/fy-valgrind.h b/Sources/Cfyaml/src/valgrind/fy-valgrind.h index c8264033e..0c7074bc0 100644 --- a/Sources/Cfyaml/src/valgrind/fy-valgrind.h +++ b/Sources/Cfyaml/src/valgrind/fy-valgrind.h @@ -19,7 +19,6 @@ #include #include #include -#include #include enum fy_valgrind_tool { diff --git a/Sources/Cfyaml/test/.deps/libfyaml_test-libfyaml-test-private-id.Po b/Sources/Cfyaml/test/.deps/libfyaml_test-libfyaml-test-private-id.Po new file mode 100644 index 000000000..9ce06a81e --- /dev/null +++ b/Sources/Cfyaml/test/.deps/libfyaml_test-libfyaml-test-private-id.Po @@ -0,0 +1 @@ +# dummy diff --git a/Sources/Cfyaml/test/Makefile b/Sources/Cfyaml/test/Makefile index ff69aeb9b..6ad8f607c 100644 --- a/Sources/Cfyaml/test/Makefile +++ b/Sources/Cfyaml/test/Makefile @@ -87,22 +87,34 @@ POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : -build_triplet = aarch64-apple-darwin22.2.0 -host_triplet = aarch64-apple-darwin22.2.0 +build_triplet = aarch64-apple-darwin23.4.0 +host_triplet = aarch64-apple-darwin23.4.0 +target_triplet = aarch64-apple-darwin23.4.0 #check_PROGRAMS = libfyaml-test$(EXEEXT) -#am__append_1 = libfyaml.test + +# the private tests require static compilation +# if we're compiling shared only, disable the private parts +#am__append_1 = \ +# libfyaml-test-private.c \ +# libfyaml-test-private-id.c + +#am__append_2 = -static +#am__append_3 = libfyaml.test # normal YAML testsuite -am__append_2 = testsuite.test +am__append_4 = testsuite.test # YAML testsuite JSON generation -am__append_3 = testsuite-json.test +am__append_5 = testsuite-json.test # normal JSON testsuite # normal YAML testsuite using document event stream -am__append_4 = jsontestsuite.test \ - testsuite-evstream.test + +# resolution equivalence +am__append_6 = jsontestsuite.test \ + testsuite-evstream.test \ + testsuite-resolution.test subdir = test ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_enable_debug.m4 \ @@ -119,14 +131,16 @@ mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = -am__libfyaml_test_SOURCES_DIST = libfyaml-test.c \ - libfyaml-test-private.c libfyaml-test-core.c \ - libfyaml-test-meta.c libfyaml-test-emit.c +am__libfyaml_test_SOURCES_DIST = libfyaml-test.c libfyaml-test-core.c \ + libfyaml-test-meta.c libfyaml-test-emit.c \ + libfyaml-test-private.c libfyaml-test-private-id.c +#am__objects_1 = libfyaml_test-libfyaml-test-private.$(OBJEXT) \ +# libfyaml_test-libfyaml-test-private-id.$(OBJEXT) #am_libfyaml_test_OBJECTS = libfyaml_test-libfyaml-test.$(OBJEXT) \ -# libfyaml_test-libfyaml-test-private.$(OBJEXT) \ # libfyaml_test-libfyaml-test-core.$(OBJEXT) \ # libfyaml_test-libfyaml-test-meta.$(OBJEXT) \ -# libfyaml_test-libfyaml-test-emit.$(OBJEXT) +# libfyaml_test-libfyaml-test-emit.$(OBJEXT) \ +# $(am__objects_1) libfyaml_test_OBJECTS = $(am_libfyaml_test_OBJECTS) am__DEPENDENCIES_1 = #libfyaml_test_DEPENDENCIES = \ @@ -157,6 +171,7 @@ am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/libfyaml_test-libfyaml-test-core.Po \ ./$(DEPDIR)/libfyaml_test-libfyaml-test-emit.Po \ ./$(DEPDIR)/libfyaml_test-libfyaml-test-meta.Po \ + ./$(DEPDIR)/libfyaml_test-libfyaml-test-private-id.Po \ ./$(DEPDIR)/libfyaml_test-libfyaml-test-private.Po \ ./$(DEPDIR)/libfyaml_test-libfyaml-test.Po am__mv = mv -f @@ -415,30 +430,33 @@ AM_DEFAULT_VERBOSITY = 1 AM_MAKEFLAGS = `test -z $V && echo -s` AR = ar AS = as +ASAN_CFLAGS = +ASAN_LIBS = AUTOCONF = ${SHELL} '/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/missing' autoconf AUTOHEADER = ${SHELL} '/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/missing' autoheader AUTOMAKE = ${SHELL} '/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/missing' automake-1.16 AWK = awk CC = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave cc gcc -CCAS = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave ccas +CCAS = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave ccas gcc +CCASDEPMODE = depmode=gcc3 +CCASFLAGS = CCDEPMODE = depmode=gcc3 -CFLAGS = -Wall -Wsign-compare -O2 +CFLAGS = -D_THREAD_SAFE -pthread -Wall -Wsign-compare -fvisibility=hidden -O2 CHECK_CFLAGS = CHECK_LDFLAGS = CHECK_LIBS = -CPP = gcc -E CPPFLAGS = CSCOPE = cscope CTAGS = ctags -CXX = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave cxx g++ -CXXCPP = g++ -E +CXX = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave cxx g++ -std=gnu++11 +CXXCPP = g++ -std=gnu++11 -E CXXDEPMODE = depmode=gcc3 CXXFLAGS = CYGPATH_W = echo DEFS = -DHAVE_CONFIG_H DEPDIR = .deps -DLLTOOL = dlltool -DOCKER = /usr/local/bin/docker +DLLTOOL = false +DOCKER = /Users/kdubb/.rd/bin/docker DSYMUTIL = dsymutil DUMPBIN = ECHO_C = \c @@ -452,16 +470,19 @@ F77 = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build- FC = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave fc FGREP = /usr/bin/grep -F FILECMD = file -GIT = /opt/homebrew/bin/git +GIT = /usr/bin/git GREP = /usr/bin/grep +HAVE_ASAN = 0 HAVE_CHECK = 0 HAVE_COMPATIBLE_CHECK = 0 HAVE_DEVMODE = 1 +HAVE_LIBCLANG = 0 HAVE_LIBYAML = 1 HAVE_NETWORK = 1 +HAVE_PORTABLE_TARGET = 0 HAVE_QSORT_R = 1 -INCLTDL = -I$(top_srcdir)/libltdl -INSTALL = /usr/bin/install -c +HAVE_STATIC = 1 +INSTALL = /opt/homebrew/bin/ginstall -c INSTALL_DATA = ${INSTALL} -m 644 INSTALL_PROGRAM = ${INSTALL} INSTALL_SCRIPT = ${INSTALL} @@ -472,17 +493,21 @@ JSONTESTSUITEURL = https://github.com/nst/JSONTestSuite LD = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld LDFLAGS = LEX = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave lex -LIBLTDL = $(top_build_prefix)libltdl/libltdl.la +LIBCLANG_CFLAGS = +LIBCLANG_CPPFLAGS = +LIBCLANG_LDFLAGS = +LIBCLANG_LIBS = +LIBLTDL = LIBOBJS = -LIBS = +LIBS = -lpthread LIBTOOL = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave-libtool '$(SHELL) $(top_builddir)/libtool' -LIBTOOL_VERSION = 1:2:0 +LIBTOOL_VERSION = 1:4:2 LIBYAML_CFLAGS = -I/opt/homebrew/Cellar/libyaml/0.2.5/include LIBYAML_LIBS = -L/opt/homebrew/Cellar/libyaml/0.2.5/lib -lyaml LIPO = lipo +LLVM_CONFIG = LN_S = ln -s -LTDLDEPS = $(top_build_prefix)libltdl/libltdl.la -LTDLINCL = -I$(top_srcdir)/libltdl +LTDLINCL = LTLIBOBJS = LT_SYS_LIBRARY_PATH = M4 = /usr/bin/m4 @@ -491,8 +516,8 @@ MAKEFLAGS = -s MAKEINFO = ${SHELL} '/Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/missing' makeinfo MANIFEST_TOOL = : MCS = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave mcs -MINOR = 7 -MKDIR_P = .././build-aux/install-sh -c -d +MINOR = 9 +MKDIR_P = /opt/homebrew/bin/gmkdir -p NM = /usr/bin/nm -B NMEDIT = nmedit OBJC = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave objc @@ -503,11 +528,11 @@ OTOOL64 = : PACKAGE = libfyaml PACKAGE_BUGREPORT = pantelis.antoniou@konsulko.com PACKAGE_NAME = libfyaml -PACKAGE_STRING = libfyaml 0.7.12 +PACKAGE_STRING = libfyaml 0.9 PACKAGE_TARNAME = libfyaml PACKAGE_URL = -PACKAGE_VERSION = 0.7.12 -PATCH = 12 +PACKAGE_VERSION = 0.9 +PATCH = PATH_SEPARATOR = : PIP3 = PKG_CONFIG = /opt/homebrew/bin/pkg-config @@ -515,7 +540,7 @@ PKG_CONFIG_LIBDIR = PKG_CONFIG_PATH = PTHREAD_CC = gcc PTHREAD_CFLAGS = -D_THREAD_SAFE -pthread -PTHREAD_LIBS = +PTHREAD_LIBS = -lpthread Q = $(V:1=) RANLIB = ranlib SED = /usr/bin/sed @@ -526,7 +551,7 @@ STRIP = strip TESTSUITECHECKOUT = 6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f TESTSUITEURL = https://github.com/yaml/yaml-test-suite V = @ -VERSION = 0.7.12 +VERSION = 0.9 YACC = /bin/sh /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux/shave yacc abs_builddir = /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/test abs_srcdir = /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/test @@ -543,10 +568,10 @@ am__tar = $${TAR-tar} chof - "$$tardir" am__untar = $${TAR-tar} xf - ax_pthread_config = bindir = ${exec_prefix}/bin -build = aarch64-apple-darwin22.2.0 +build = aarch64-apple-darwin23.4.0 build_alias = build_cpu = aarch64 -build_os = darwin22.2.0 +build_os = darwin23.4.0 build_vendor = apple builddir = . datadir = ${datarootdir} @@ -554,10 +579,10 @@ datarootdir = ${prefix}/share docdir = ${datarootdir}/doc/${PACKAGE_TARNAME} dvidir = ${docdir} exec_prefix = ${prefix} -host = aarch64-apple-darwin22.2.0 +host = aarch64-apple-darwin23.4.0 host_alias = host_cpu = aarch64 -host_os = darwin22.2.0 +host_os = darwin23.4.0 host_vendor = apple htmldir = ${docdir} includedir = ${prefix}/include @@ -581,7 +606,11 @@ shavedir = /Users/kdubb/Projects/outfoxx/PotentCodables/Sources/Cfyaml/build-aux srcdir = . subdirs = libltdl sysconfdir = ${prefix}/etc +target = aarch64-apple-darwin23.4.0 target_alias = +target_cpu = aarch64 +target_os = darwin23.4.0 +target_vendor = apple top_build_prefix = ../ top_builddir = .. top_srcdir = .. @@ -607,22 +636,22 @@ TESTS_ENVIRONMENT = \ # TEST_EXTENSIONS = .test TEST_LOG_COMPILE = $(SHELL) TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/build-aux/tap-driver.sh -TESTS = $(am__append_1) $(am__append_2) $(am__append_3) \ - $(am__append_4) testerrors.test testemitter.test \ +TESTS = $(am__append_3) $(am__append_4) $(am__append_5) \ + $(am__append_6) testerrors.test testemitter.test \ testemitter-streaming.test #libfyaml_test_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/src/valgrind/ \ -# -I$(top_srcdir)/src/lib/ +# -I$(top_srcdir)/src/lib/ \ +# -I$(top_srcdir)/src/util #libfyaml_test_LDADD = $(AM_LDADD) $(CHECK_LIBS) $(top_builddir)/src/libfyaml.la #libfyaml_test_CFLAGS = $(AM_CFLAGS) $(CHECK_CFLAGS) -#libfyaml_test_LDFLAGS = $(AM_LDFLAGS) $(CHECK_LDFLAGS) -#libfyaml_test_SOURCES = \ -# libfyaml-test.c \ -# libfyaml-test-private.c \ +#libfyaml_test_LDFLAGS = $(AM_LDFLAGS) \ +# $(CHECK_LDFLAGS) $(am__append_2) +#libfyaml_test_SOURCES = libfyaml-test.c \ # libfyaml-test-core.c \ # libfyaml-test-meta.c \ -# libfyaml-test-emit.c - +# libfyaml-test-emit.c \ +# $(am__append_1) # Add the error test files @@ -698,6 +727,7 @@ EXTRA_DIST = test-env $(TESTS) test-errors/0002/=== \ emitter-examples/nodeprop2.yaml emitter-examples/nodeprop.yaml \ emitter-examples/numbers-flow.yaml \ emitter-examples/numbers.yaml emitter-examples/plainlines.yaml \ + emitter-examples/plain-scalars-with-commas.yaml \ emitter-examples/plainscalar.yaml \ emitter-examples/quotedbackslash.yaml \ emitter-examples/quoted.yaml \ @@ -818,6 +848,7 @@ distclean-compile: include ./$(DEPDIR)/libfyaml_test-libfyaml-test-core.Po # am--include-marker include ./$(DEPDIR)/libfyaml_test-libfyaml-test-emit.Po # am--include-marker include ./$(DEPDIR)/libfyaml_test-libfyaml-test-meta.Po # am--include-marker +include ./$(DEPDIR)/libfyaml_test-libfyaml-test-private-id.Po # am--include-marker include ./$(DEPDIR)/libfyaml_test-libfyaml-test-private.Po # am--include-marker include ./$(DEPDIR)/libfyaml_test-libfyaml-test.Po # am--include-marker @@ -865,20 +896,6 @@ libfyaml_test-libfyaml-test.obj: libfyaml-test.c # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ # $(AM_V_CC_no)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -c -o libfyaml_test-libfyaml-test.obj `if test -f 'libfyaml-test.c'; then $(CYGPATH_W) 'libfyaml-test.c'; else $(CYGPATH_W) '$(srcdir)/libfyaml-test.c'; fi` -libfyaml_test-libfyaml-test-private.o: libfyaml-test-private.c - $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -MT libfyaml_test-libfyaml-test-private.o -MD -MP -MF $(DEPDIR)/libfyaml_test-libfyaml-test-private.Tpo -c -o libfyaml_test-libfyaml-test-private.o `test -f 'libfyaml-test-private.c' || echo '$(srcdir)/'`libfyaml-test-private.c - $(AM_V_at)$(am__mv) $(DEPDIR)/libfyaml_test-libfyaml-test-private.Tpo $(DEPDIR)/libfyaml_test-libfyaml-test-private.Po -# $(AM_V_CC)source='libfyaml-test-private.c' object='libfyaml_test-libfyaml-test-private.o' libtool=no \ -# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ -# $(AM_V_CC_no)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -c -o libfyaml_test-libfyaml-test-private.o `test -f 'libfyaml-test-private.c' || echo '$(srcdir)/'`libfyaml-test-private.c - -libfyaml_test-libfyaml-test-private.obj: libfyaml-test-private.c - $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -MT libfyaml_test-libfyaml-test-private.obj -MD -MP -MF $(DEPDIR)/libfyaml_test-libfyaml-test-private.Tpo -c -o libfyaml_test-libfyaml-test-private.obj `if test -f 'libfyaml-test-private.c'; then $(CYGPATH_W) 'libfyaml-test-private.c'; else $(CYGPATH_W) '$(srcdir)/libfyaml-test-private.c'; fi` - $(AM_V_at)$(am__mv) $(DEPDIR)/libfyaml_test-libfyaml-test-private.Tpo $(DEPDIR)/libfyaml_test-libfyaml-test-private.Po -# $(AM_V_CC)source='libfyaml-test-private.c' object='libfyaml_test-libfyaml-test-private.obj' libtool=no \ -# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ -# $(AM_V_CC_no)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -c -o libfyaml_test-libfyaml-test-private.obj `if test -f 'libfyaml-test-private.c'; then $(CYGPATH_W) 'libfyaml-test-private.c'; else $(CYGPATH_W) '$(srcdir)/libfyaml-test-private.c'; fi` - libfyaml_test-libfyaml-test-core.o: libfyaml-test-core.c $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -MT libfyaml_test-libfyaml-test-core.o -MD -MP -MF $(DEPDIR)/libfyaml_test-libfyaml-test-core.Tpo -c -o libfyaml_test-libfyaml-test-core.o `test -f 'libfyaml-test-core.c' || echo '$(srcdir)/'`libfyaml-test-core.c $(AM_V_at)$(am__mv) $(DEPDIR)/libfyaml_test-libfyaml-test-core.Tpo $(DEPDIR)/libfyaml_test-libfyaml-test-core.Po @@ -921,6 +938,34 @@ libfyaml_test-libfyaml-test-emit.obj: libfyaml-test-emit.c # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ # $(AM_V_CC_no)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -c -o libfyaml_test-libfyaml-test-emit.obj `if test -f 'libfyaml-test-emit.c'; then $(CYGPATH_W) 'libfyaml-test-emit.c'; else $(CYGPATH_W) '$(srcdir)/libfyaml-test-emit.c'; fi` +libfyaml_test-libfyaml-test-private.o: libfyaml-test-private.c + $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -MT libfyaml_test-libfyaml-test-private.o -MD -MP -MF $(DEPDIR)/libfyaml_test-libfyaml-test-private.Tpo -c -o libfyaml_test-libfyaml-test-private.o `test -f 'libfyaml-test-private.c' || echo '$(srcdir)/'`libfyaml-test-private.c + $(AM_V_at)$(am__mv) $(DEPDIR)/libfyaml_test-libfyaml-test-private.Tpo $(DEPDIR)/libfyaml_test-libfyaml-test-private.Po +# $(AM_V_CC)source='libfyaml-test-private.c' object='libfyaml_test-libfyaml-test-private.o' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -c -o libfyaml_test-libfyaml-test-private.o `test -f 'libfyaml-test-private.c' || echo '$(srcdir)/'`libfyaml-test-private.c + +libfyaml_test-libfyaml-test-private.obj: libfyaml-test-private.c + $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -MT libfyaml_test-libfyaml-test-private.obj -MD -MP -MF $(DEPDIR)/libfyaml_test-libfyaml-test-private.Tpo -c -o libfyaml_test-libfyaml-test-private.obj `if test -f 'libfyaml-test-private.c'; then $(CYGPATH_W) 'libfyaml-test-private.c'; else $(CYGPATH_W) '$(srcdir)/libfyaml-test-private.c'; fi` + $(AM_V_at)$(am__mv) $(DEPDIR)/libfyaml_test-libfyaml-test-private.Tpo $(DEPDIR)/libfyaml_test-libfyaml-test-private.Po +# $(AM_V_CC)source='libfyaml-test-private.c' object='libfyaml_test-libfyaml-test-private.obj' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -c -o libfyaml_test-libfyaml-test-private.obj `if test -f 'libfyaml-test-private.c'; then $(CYGPATH_W) 'libfyaml-test-private.c'; else $(CYGPATH_W) '$(srcdir)/libfyaml-test-private.c'; fi` + +libfyaml_test-libfyaml-test-private-id.o: libfyaml-test-private-id.c + $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -MT libfyaml_test-libfyaml-test-private-id.o -MD -MP -MF $(DEPDIR)/libfyaml_test-libfyaml-test-private-id.Tpo -c -o libfyaml_test-libfyaml-test-private-id.o `test -f 'libfyaml-test-private-id.c' || echo '$(srcdir)/'`libfyaml-test-private-id.c + $(AM_V_at)$(am__mv) $(DEPDIR)/libfyaml_test-libfyaml-test-private-id.Tpo $(DEPDIR)/libfyaml_test-libfyaml-test-private-id.Po +# $(AM_V_CC)source='libfyaml-test-private-id.c' object='libfyaml_test-libfyaml-test-private-id.o' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -c -o libfyaml_test-libfyaml-test-private-id.o `test -f 'libfyaml-test-private-id.c' || echo '$(srcdir)/'`libfyaml-test-private-id.c + +libfyaml_test-libfyaml-test-private-id.obj: libfyaml-test-private-id.c + $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -MT libfyaml_test-libfyaml-test-private-id.obj -MD -MP -MF $(DEPDIR)/libfyaml_test-libfyaml-test-private-id.Tpo -c -o libfyaml_test-libfyaml-test-private-id.obj `if test -f 'libfyaml-test-private-id.c'; then $(CYGPATH_W) 'libfyaml-test-private-id.c'; else $(CYGPATH_W) '$(srcdir)/libfyaml-test-private-id.c'; fi` + $(AM_V_at)$(am__mv) $(DEPDIR)/libfyaml_test-libfyaml-test-private-id.Tpo $(DEPDIR)/libfyaml_test-libfyaml-test-private-id.Po +# $(AM_V_CC)source='libfyaml-test-private-id.c' object='libfyaml_test-libfyaml-test-private-id.obj' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -c -o libfyaml_test-libfyaml-test-private-id.obj `if test -f 'libfyaml-test-private-id.c'; then $(CYGPATH_W) 'libfyaml-test-private-id.c'; else $(CYGPATH_W) '$(srcdir)/libfyaml-test-private-id.c'; fi` + mostlyclean-libtool: -rm -f *.lo @@ -1173,11 +1218,9 @@ distdir-am: $(DISTFILES) || exit 1; \ fi; \ done -#check-local: -#check-local: check-am: all-am $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) - $(MAKE) $(AM_MAKEFLAGS) check-TESTS check-local + $(MAKE) $(AM_MAKEFLAGS) check-TESTS check: check-am all-am: Makefile installdirs: @@ -1225,6 +1268,7 @@ distclean: distclean-am -rm -f ./$(DEPDIR)/libfyaml_test-libfyaml-test-core.Po -rm -f ./$(DEPDIR)/libfyaml_test-libfyaml-test-emit.Po -rm -f ./$(DEPDIR)/libfyaml_test-libfyaml-test-meta.Po + -rm -f ./$(DEPDIR)/libfyaml_test-libfyaml-test-private-id.Po -rm -f ./$(DEPDIR)/libfyaml_test-libfyaml-test-private.Po -rm -f ./$(DEPDIR)/libfyaml_test-libfyaml-test.Po -rm -f Makefile @@ -1299,6 +1343,7 @@ maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/libfyaml_test-libfyaml-test-core.Po -rm -f ./$(DEPDIR)/libfyaml_test-libfyaml-test-emit.Po -rm -f ./$(DEPDIR)/libfyaml_test-libfyaml-test-meta.Po + -rm -f ./$(DEPDIR)/libfyaml_test-libfyaml-test-private-id.Po -rm -f ./$(DEPDIR)/libfyaml_test-libfyaml-test-private.Po -rm -f ./$(DEPDIR)/libfyaml_test-libfyaml-test.Po -rm -f Makefile @@ -1322,44 +1367,46 @@ uninstall-am: .MAKE: check-am install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-TESTS \ - check-am check-local clean clean-checkPROGRAMS clean-generic \ - clean-libtool cscopelist-am ctags ctags-am distclean \ - distclean-compile distclean-generic distclean-libtool \ - distclean-local distclean-tags distdir doc-clean-am \ - doc-clean-local doc-help-am doc-help-local doc-html-am \ - doc-html-local doc-latexpdf-am doc-latexpdf-local doc-man-am \ - doc-man-local doc-markdown-am doc-markdown-local 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 \ - recheck tags tags-am uninstall uninstall-am + check-am clean clean-checkPROGRAMS clean-generic clean-libtool \ + cscopelist-am ctags ctags-am distclean distclean-compile \ + distclean-generic distclean-libtool distclean-local \ + distclean-tags distdir doc-clean-am doc-clean-local \ + doc-help-am doc-help-local doc-html-am doc-html-local \ + doc-latexpdf-am doc-latexpdf-local doc-man-am doc-man-local \ + doc-markdown-am doc-markdown-local 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 recheck tags tags-am \ + uninstall uninstall-am .PRECIOUS: Makefile -testsuite.test: test-suite-data json-test-suite-data - -test-suite-data: - /opt/homebrew/bin/git clone "https://github.com/yaml/yaml-test-suite" -- $@ && \ - cd $@ && \ - /opt/homebrew/bin/git checkout --detach 6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f +testsuite.test: test-suite-data.checkout.timestamp +testsuite-json.test: test-suite-data.checkout.timestamp +testsuite-evstream.test: test-suite-data.checkout.timestamp +testsuite-resolution.test: test-suite-data.checkout.timestamp -jsontestsuite.test: json-test-suite-data +test-suite-data.checkout.timestamp: + /usr/bin/git clone -q "https://github.com/yaml/yaml-test-suite" -- test-suite-data && \ + /usr/bin/git -C test-suite-data checkout -q --detach 6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f && \ + touch test-suite-data.checkout.timestamp -json-test-suite-data: - /opt/homebrew/bin/git clone "https://github.com/nst/JSONTestSuite" -- $@ && \ - cd $@ && \ - /opt/homebrew/bin/git checkout --detach d64aefb55228d9584d3e5b2433f720ea8fd00c82 +jsontestsuite.test: json-test-suite-data.checkout.timestamp -check-local: test-suite-data json-test-suite-data +json-test-suite-data.checkout.timestamp: + /usr/bin/git clone -q "https://github.com/nst/JSONTestSuite" -- json-test-suite-data && \ + /usr/bin/git -C json-test-suite-data checkout -q --detach d64aefb55228d9584d3e5b2433f720ea8fd00c82 && \ + touch json-test-suite-data.checkout.timestamp distclean-local: - @rm -rf test-suite-data json-test-suite-data + @rm -rf test-suite-data test-suite-data.checkout.timestamp + @rm -rf json-test-suite-data json-test-suite-data.checkout.timestamp # 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. diff --git a/Sources/Cfyaml/test/Makefile.am b/Sources/Cfyaml/test/Makefile.am index 8b6802db0..f70ddc1d7 100644 --- a/Sources/Cfyaml/test/Makefile.am +++ b/Sources/Cfyaml/test/Makefile.am @@ -29,18 +29,27 @@ if HAVE_COMPATIBLE_CHECK check_PROGRAMS = libfyaml-test libfyaml_test_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/src/valgrind/ \ - -I$(top_srcdir)/src/lib/ + -I$(top_srcdir)/src/lib/ \ + -I$(top_srcdir)/src/util libfyaml_test_LDADD = $(AM_LDADD) $(CHECK_LIBS) $(top_builddir)/src/libfyaml.la libfyaml_test_CFLAGS = $(AM_CFLAGS) $(CHECK_CFLAGS) libfyaml_test_LDFLAGS = $(AM_LDFLAGS) $(CHECK_LDFLAGS) libfyaml_test_SOURCES = \ libfyaml-test.c \ - libfyaml-test-private.c \ libfyaml-test-core.c \ libfyaml-test-meta.c \ libfyaml-test-emit.c +# the private tests require static compilation +# if we're compiling shared only, disable the private parts +if HAVE_STATIC +libfyaml_test_SOURCES += \ + libfyaml-test-private.c \ + libfyaml-test-private-id.c +libfyaml_test_LDFLAGS += -static +endif + TESTS += libfyaml.test endif @@ -62,24 +71,31 @@ TESTS += jsontestsuite.test # normal YAML testsuite using document event stream TESTS += testsuite-evstream.test -testsuite.test: test-suite-data json-test-suite-data +# resolution equivalence +TESTS += testsuite-resolution.test -test-suite-data: - @GIT@ clone "@TESTSUITEURL@" -- $@ && \ - cd $@ && \ - @GIT@ checkout --detach @TESTSUITECHECKOUT@ +testsuite.test: test-suite-data.checkout.timestamp +if HAVE_JQ +testsuite-json.test: test-suite-data.checkout.timestamp +endif +testsuite-evstream.test: test-suite-data.checkout.timestamp +testsuite-resolution.test: test-suite-data.checkout.timestamp -jsontestsuite.test: json-test-suite-data +test-suite-data.checkout.timestamp: + @GIT@ clone -q "@TESTSUITEURL@" -- test-suite-data && \ + @GIT@ -C test-suite-data checkout -q --detach @TESTSUITECHECKOUT@ && \ + touch test-suite-data.checkout.timestamp -json-test-suite-data: - @GIT@ clone "@JSONTESTSUITEURL@" -- $@ && \ - cd $@ && \ - @GIT@ checkout --detach @JSONTESTSUITECHECKOUT@ +jsontestsuite.test: json-test-suite-data.checkout.timestamp -check-local: test-suite-data json-test-suite-data +json-test-suite-data.checkout.timestamp: + @GIT@ clone -q "@JSONTESTSUITEURL@" -- json-test-suite-data && \ + @GIT@ -C json-test-suite-data checkout -q --detach @JSONTESTSUITECHECKOUT@ && \ + touch json-test-suite-data.checkout.timestamp distclean-local: - @rm -rf test-suite-data json-test-suite-data + @rm -rf test-suite-data test-suite-data.checkout.timestamp + @rm -rf json-test-suite-data json-test-suite-data.checkout.timestamp endif endif @@ -210,6 +226,7 @@ EXTRA_DIST += \ emitter-examples/numbers-flow.yaml \ emitter-examples/numbers.yaml \ emitter-examples/plainlines.yaml \ + emitter-examples/plain-scalars-with-commas.yaml \ emitter-examples/plainscalar.yaml \ emitter-examples/quotedbackslash.yaml \ emitter-examples/quoted.yaml \ diff --git a/Sources/Cfyaml/test/Makefile.in b/Sources/Cfyaml/test/Makefile.in index aebe9f069..d2e8b8c50 100644 --- a/Sources/Cfyaml/test/Makefile.in +++ b/Sources/Cfyaml/test/Makefile.in @@ -89,20 +89,32 @@ PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ +target_triplet = @target@ @HAVE_COMPATIBLE_CHECK_TRUE@check_PROGRAMS = libfyaml-test$(EXEEXT) -@HAVE_COMPATIBLE_CHECK_TRUE@am__append_1 = libfyaml.test + +# the private tests require static compilation +# if we're compiling shared only, disable the private parts +@HAVE_COMPATIBLE_CHECK_TRUE@@HAVE_STATIC_TRUE@am__append_1 = \ +@HAVE_COMPATIBLE_CHECK_TRUE@@HAVE_STATIC_TRUE@ libfyaml-test-private.c \ +@HAVE_COMPATIBLE_CHECK_TRUE@@HAVE_STATIC_TRUE@ libfyaml-test-private-id.c + +@HAVE_COMPATIBLE_CHECK_TRUE@@HAVE_STATIC_TRUE@am__append_2 = -static +@HAVE_COMPATIBLE_CHECK_TRUE@am__append_3 = libfyaml.test # normal YAML testsuite -@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@am__append_2 = testsuite.test +@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@am__append_4 = testsuite.test # YAML testsuite JSON generation -@HAVE_GIT_TRUE@@HAVE_JQ_TRUE@@HAVE_NETWORK_TRUE@am__append_3 = testsuite-json.test +@HAVE_GIT_TRUE@@HAVE_JQ_TRUE@@HAVE_NETWORK_TRUE@am__append_5 = testsuite-json.test # normal JSON testsuite # normal YAML testsuite using document event stream -@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@am__append_4 = jsontestsuite.test \ -@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@ testsuite-evstream.test + +# resolution equivalence +@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@am__append_6 = jsontestsuite.test \ +@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@ testsuite-evstream.test \ +@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@ testsuite-resolution.test subdir = test ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_enable_debug.m4 \ @@ -119,14 +131,16 @@ mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = -am__libfyaml_test_SOURCES_DIST = libfyaml-test.c \ - libfyaml-test-private.c libfyaml-test-core.c \ - libfyaml-test-meta.c libfyaml-test-emit.c +am__libfyaml_test_SOURCES_DIST = libfyaml-test.c libfyaml-test-core.c \ + libfyaml-test-meta.c libfyaml-test-emit.c \ + libfyaml-test-private.c libfyaml-test-private-id.c +@HAVE_COMPATIBLE_CHECK_TRUE@@HAVE_STATIC_TRUE@am__objects_1 = libfyaml_test-libfyaml-test-private.$(OBJEXT) \ +@HAVE_COMPATIBLE_CHECK_TRUE@@HAVE_STATIC_TRUE@ libfyaml_test-libfyaml-test-private-id.$(OBJEXT) @HAVE_COMPATIBLE_CHECK_TRUE@am_libfyaml_test_OBJECTS = libfyaml_test-libfyaml-test.$(OBJEXT) \ -@HAVE_COMPATIBLE_CHECK_TRUE@ libfyaml_test-libfyaml-test-private.$(OBJEXT) \ @HAVE_COMPATIBLE_CHECK_TRUE@ libfyaml_test-libfyaml-test-core.$(OBJEXT) \ @HAVE_COMPATIBLE_CHECK_TRUE@ libfyaml_test-libfyaml-test-meta.$(OBJEXT) \ -@HAVE_COMPATIBLE_CHECK_TRUE@ libfyaml_test-libfyaml-test-emit.$(OBJEXT) +@HAVE_COMPATIBLE_CHECK_TRUE@ libfyaml_test-libfyaml-test-emit.$(OBJEXT) \ +@HAVE_COMPATIBLE_CHECK_TRUE@ $(am__objects_1) libfyaml_test_OBJECTS = $(am_libfyaml_test_OBJECTS) am__DEPENDENCIES_1 = @HAVE_COMPATIBLE_CHECK_TRUE@libfyaml_test_DEPENDENCIES = \ @@ -157,6 +171,7 @@ am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/libfyaml_test-libfyaml-test-core.Po \ ./$(DEPDIR)/libfyaml_test-libfyaml-test-emit.Po \ ./$(DEPDIR)/libfyaml_test-libfyaml-test-meta.Po \ + ./$(DEPDIR)/libfyaml_test-libfyaml-test-private-id.Po \ ./$(DEPDIR)/libfyaml_test-libfyaml-test-private.Po \ ./$(DEPDIR)/libfyaml_test-libfyaml-test.Po am__mv = mv -f @@ -415,18 +430,21 @@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AM_MAKEFLAGS = @AM_MAKEFLAGS@ AR = @AR@ AS = @AS@ +ASAN_CFLAGS = @ASAN_CFLAGS@ +ASAN_LIBS = @ASAN_LIBS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCAS = @CCAS@ +CCASDEPMODE = @CCASDEPMODE@ +CCASFLAGS = @CCASFLAGS@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CHECK_CFLAGS = @CHECK_CFLAGS@ CHECK_LDFLAGS = @CHECK_LDFLAGS@ CHECK_LIBS = @CHECK_LIBS@ -CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ @@ -454,13 +472,16 @@ FGREP = @FGREP@ FILECMD = @FILECMD@ GIT = @GIT@ GREP = @GREP@ +HAVE_ASAN = @HAVE_ASAN@ HAVE_CHECK = @HAVE_CHECK@ HAVE_COMPATIBLE_CHECK = @HAVE_COMPATIBLE_CHECK@ HAVE_DEVMODE = @HAVE_DEVMODE@ +HAVE_LIBCLANG = @HAVE_LIBCLANG@ HAVE_LIBYAML = @HAVE_LIBYAML@ HAVE_NETWORK = @HAVE_NETWORK@ +HAVE_PORTABLE_TARGET = @HAVE_PORTABLE_TARGET@ HAVE_QSORT_R = @HAVE_QSORT_R@ -INCLTDL = @INCLTDL@ +HAVE_STATIC = @HAVE_STATIC@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ @@ -472,6 +493,10 @@ JSONTESTSUITEURL = @JSONTESTSUITEURL@ LD = @LD@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ +LIBCLANG_CFLAGS = @LIBCLANG_CFLAGS@ +LIBCLANG_CPPFLAGS = @LIBCLANG_CPPFLAGS@ +LIBCLANG_LDFLAGS = @LIBCLANG_LDFLAGS@ +LIBCLANG_LIBS = @LIBCLANG_LIBS@ LIBLTDL = @LIBLTDL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ @@ -480,8 +505,8 @@ LIBTOOL_VERSION = @LIBTOOL_VERSION@ LIBYAML_CFLAGS = @LIBYAML_CFLAGS@ LIBYAML_LIBS = @LIBYAML_LIBS@ LIPO = @LIPO@ +LLVM_CONFIG = @LLVM_CONFIG@ LN_S = @LN_S@ -LTDLDEPS = @LTDLDEPS@ LTDLINCL = @LTDLINCL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ @@ -581,7 +606,11 @@ shavedir = @shavedir@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ +target = @target@ target_alias = @target_alias@ +target_cpu = @target_cpu@ +target_os = @target_os@ +target_vendor = @target_vendor@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ @@ -607,22 +636,22 @@ TESTS_ENVIRONMENT = \ # TEST_EXTENSIONS = .test TEST_LOG_COMPILE = $(SHELL) TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/build-aux/tap-driver.sh -TESTS = $(am__append_1) $(am__append_2) $(am__append_3) \ - $(am__append_4) testerrors.test testemitter.test \ +TESTS = $(am__append_3) $(am__append_4) $(am__append_5) \ + $(am__append_6) testerrors.test testemitter.test \ testemitter-streaming.test @HAVE_COMPATIBLE_CHECK_TRUE@libfyaml_test_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/src/valgrind/ \ -@HAVE_COMPATIBLE_CHECK_TRUE@ -I$(top_srcdir)/src/lib/ +@HAVE_COMPATIBLE_CHECK_TRUE@ -I$(top_srcdir)/src/lib/ \ +@HAVE_COMPATIBLE_CHECK_TRUE@ -I$(top_srcdir)/src/util @HAVE_COMPATIBLE_CHECK_TRUE@libfyaml_test_LDADD = $(AM_LDADD) $(CHECK_LIBS) $(top_builddir)/src/libfyaml.la @HAVE_COMPATIBLE_CHECK_TRUE@libfyaml_test_CFLAGS = $(AM_CFLAGS) $(CHECK_CFLAGS) -@HAVE_COMPATIBLE_CHECK_TRUE@libfyaml_test_LDFLAGS = $(AM_LDFLAGS) $(CHECK_LDFLAGS) -@HAVE_COMPATIBLE_CHECK_TRUE@libfyaml_test_SOURCES = \ -@HAVE_COMPATIBLE_CHECK_TRUE@ libfyaml-test.c \ -@HAVE_COMPATIBLE_CHECK_TRUE@ libfyaml-test-private.c \ +@HAVE_COMPATIBLE_CHECK_TRUE@libfyaml_test_LDFLAGS = $(AM_LDFLAGS) \ +@HAVE_COMPATIBLE_CHECK_TRUE@ $(CHECK_LDFLAGS) $(am__append_2) +@HAVE_COMPATIBLE_CHECK_TRUE@libfyaml_test_SOURCES = libfyaml-test.c \ @HAVE_COMPATIBLE_CHECK_TRUE@ libfyaml-test-core.c \ @HAVE_COMPATIBLE_CHECK_TRUE@ libfyaml-test-meta.c \ -@HAVE_COMPATIBLE_CHECK_TRUE@ libfyaml-test-emit.c - +@HAVE_COMPATIBLE_CHECK_TRUE@ libfyaml-test-emit.c \ +@HAVE_COMPATIBLE_CHECK_TRUE@ $(am__append_1) # Add the error test files @@ -698,6 +727,7 @@ EXTRA_DIST = test-env $(TESTS) test-errors/0002/=== \ emitter-examples/nodeprop2.yaml emitter-examples/nodeprop.yaml \ emitter-examples/numbers-flow.yaml \ emitter-examples/numbers.yaml emitter-examples/plainlines.yaml \ + emitter-examples/plain-scalars-with-commas.yaml \ emitter-examples/plainscalar.yaml \ emitter-examples/quotedbackslash.yaml \ emitter-examples/quoted.yaml \ @@ -818,6 +848,7 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfyaml_test-libfyaml-test-core.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfyaml_test-libfyaml-test-emit.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfyaml_test-libfyaml-test-meta.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfyaml_test-libfyaml-test-private-id.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfyaml_test-libfyaml-test-private.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfyaml_test-libfyaml-test.Po@am__quote@ # am--include-marker @@ -865,20 +896,6 @@ libfyaml_test-libfyaml-test.obj: libfyaml-test.c @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -c -o libfyaml_test-libfyaml-test.obj `if test -f 'libfyaml-test.c'; then $(CYGPATH_W) 'libfyaml-test.c'; else $(CYGPATH_W) '$(srcdir)/libfyaml-test.c'; fi` -libfyaml_test-libfyaml-test-private.o: libfyaml-test-private.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -MT libfyaml_test-libfyaml-test-private.o -MD -MP -MF $(DEPDIR)/libfyaml_test-libfyaml-test-private.Tpo -c -o libfyaml_test-libfyaml-test-private.o `test -f 'libfyaml-test-private.c' || echo '$(srcdir)/'`libfyaml-test-private.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libfyaml_test-libfyaml-test-private.Tpo $(DEPDIR)/libfyaml_test-libfyaml-test-private.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libfyaml-test-private.c' object='libfyaml_test-libfyaml-test-private.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -c -o libfyaml_test-libfyaml-test-private.o `test -f 'libfyaml-test-private.c' || echo '$(srcdir)/'`libfyaml-test-private.c - -libfyaml_test-libfyaml-test-private.obj: libfyaml-test-private.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -MT libfyaml_test-libfyaml-test-private.obj -MD -MP -MF $(DEPDIR)/libfyaml_test-libfyaml-test-private.Tpo -c -o libfyaml_test-libfyaml-test-private.obj `if test -f 'libfyaml-test-private.c'; then $(CYGPATH_W) 'libfyaml-test-private.c'; else $(CYGPATH_W) '$(srcdir)/libfyaml-test-private.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libfyaml_test-libfyaml-test-private.Tpo $(DEPDIR)/libfyaml_test-libfyaml-test-private.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libfyaml-test-private.c' object='libfyaml_test-libfyaml-test-private.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -c -o libfyaml_test-libfyaml-test-private.obj `if test -f 'libfyaml-test-private.c'; then $(CYGPATH_W) 'libfyaml-test-private.c'; else $(CYGPATH_W) '$(srcdir)/libfyaml-test-private.c'; fi` - libfyaml_test-libfyaml-test-core.o: libfyaml-test-core.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -MT libfyaml_test-libfyaml-test-core.o -MD -MP -MF $(DEPDIR)/libfyaml_test-libfyaml-test-core.Tpo -c -o libfyaml_test-libfyaml-test-core.o `test -f 'libfyaml-test-core.c' || echo '$(srcdir)/'`libfyaml-test-core.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libfyaml_test-libfyaml-test-core.Tpo $(DEPDIR)/libfyaml_test-libfyaml-test-core.Po @@ -921,6 +938,34 @@ libfyaml_test-libfyaml-test-emit.obj: libfyaml-test-emit.c @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -c -o libfyaml_test-libfyaml-test-emit.obj `if test -f 'libfyaml-test-emit.c'; then $(CYGPATH_W) 'libfyaml-test-emit.c'; else $(CYGPATH_W) '$(srcdir)/libfyaml-test-emit.c'; fi` +libfyaml_test-libfyaml-test-private.o: libfyaml-test-private.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -MT libfyaml_test-libfyaml-test-private.o -MD -MP -MF $(DEPDIR)/libfyaml_test-libfyaml-test-private.Tpo -c -o libfyaml_test-libfyaml-test-private.o `test -f 'libfyaml-test-private.c' || echo '$(srcdir)/'`libfyaml-test-private.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libfyaml_test-libfyaml-test-private.Tpo $(DEPDIR)/libfyaml_test-libfyaml-test-private.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libfyaml-test-private.c' object='libfyaml_test-libfyaml-test-private.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -c -o libfyaml_test-libfyaml-test-private.o `test -f 'libfyaml-test-private.c' || echo '$(srcdir)/'`libfyaml-test-private.c + +libfyaml_test-libfyaml-test-private.obj: libfyaml-test-private.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -MT libfyaml_test-libfyaml-test-private.obj -MD -MP -MF $(DEPDIR)/libfyaml_test-libfyaml-test-private.Tpo -c -o libfyaml_test-libfyaml-test-private.obj `if test -f 'libfyaml-test-private.c'; then $(CYGPATH_W) 'libfyaml-test-private.c'; else $(CYGPATH_W) '$(srcdir)/libfyaml-test-private.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libfyaml_test-libfyaml-test-private.Tpo $(DEPDIR)/libfyaml_test-libfyaml-test-private.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libfyaml-test-private.c' object='libfyaml_test-libfyaml-test-private.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -c -o libfyaml_test-libfyaml-test-private.obj `if test -f 'libfyaml-test-private.c'; then $(CYGPATH_W) 'libfyaml-test-private.c'; else $(CYGPATH_W) '$(srcdir)/libfyaml-test-private.c'; fi` + +libfyaml_test-libfyaml-test-private-id.o: libfyaml-test-private-id.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -MT libfyaml_test-libfyaml-test-private-id.o -MD -MP -MF $(DEPDIR)/libfyaml_test-libfyaml-test-private-id.Tpo -c -o libfyaml_test-libfyaml-test-private-id.o `test -f 'libfyaml-test-private-id.c' || echo '$(srcdir)/'`libfyaml-test-private-id.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libfyaml_test-libfyaml-test-private-id.Tpo $(DEPDIR)/libfyaml_test-libfyaml-test-private-id.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libfyaml-test-private-id.c' object='libfyaml_test-libfyaml-test-private-id.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -c -o libfyaml_test-libfyaml-test-private-id.o `test -f 'libfyaml-test-private-id.c' || echo '$(srcdir)/'`libfyaml-test-private-id.c + +libfyaml_test-libfyaml-test-private-id.obj: libfyaml-test-private-id.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -MT libfyaml_test-libfyaml-test-private-id.obj -MD -MP -MF $(DEPDIR)/libfyaml_test-libfyaml-test-private-id.Tpo -c -o libfyaml_test-libfyaml-test-private-id.obj `if test -f 'libfyaml-test-private-id.c'; then $(CYGPATH_W) 'libfyaml-test-private-id.c'; else $(CYGPATH_W) '$(srcdir)/libfyaml-test-private-id.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libfyaml_test-libfyaml-test-private-id.Tpo $(DEPDIR)/libfyaml_test-libfyaml-test-private-id.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='libfyaml-test-private-id.c' object='libfyaml_test-libfyaml-test-private-id.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libfyaml_test_CPPFLAGS) $(CPPFLAGS) $(libfyaml_test_CFLAGS) $(CFLAGS) -c -o libfyaml_test-libfyaml-test-private-id.obj `if test -f 'libfyaml-test-private-id.c'; then $(CYGPATH_W) 'libfyaml-test-private-id.c'; else $(CYGPATH_W) '$(srcdir)/libfyaml-test-private-id.c'; fi` + mostlyclean-libtool: -rm -f *.lo @@ -1173,11 +1218,9 @@ distdir-am: $(DISTFILES) || exit 1; \ fi; \ done -@HAVE_GIT_FALSE@check-local: -@HAVE_NETWORK_FALSE@check-local: check-am: all-am $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) - $(MAKE) $(AM_MAKEFLAGS) check-TESTS check-local + $(MAKE) $(AM_MAKEFLAGS) check-TESTS check: check-am all-am: Makefile installdirs: @@ -1225,6 +1268,7 @@ distclean: distclean-am -rm -f ./$(DEPDIR)/libfyaml_test-libfyaml-test-core.Po -rm -f ./$(DEPDIR)/libfyaml_test-libfyaml-test-emit.Po -rm -f ./$(DEPDIR)/libfyaml_test-libfyaml-test-meta.Po + -rm -f ./$(DEPDIR)/libfyaml_test-libfyaml-test-private-id.Po -rm -f ./$(DEPDIR)/libfyaml_test-libfyaml-test-private.Po -rm -f ./$(DEPDIR)/libfyaml_test-libfyaml-test.Po -rm -f Makefile @@ -1299,6 +1343,7 @@ maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/libfyaml_test-libfyaml-test-core.Po -rm -f ./$(DEPDIR)/libfyaml_test-libfyaml-test-emit.Po -rm -f ./$(DEPDIR)/libfyaml_test-libfyaml-test-meta.Po + -rm -f ./$(DEPDIR)/libfyaml_test-libfyaml-test-private-id.Po -rm -f ./$(DEPDIR)/libfyaml_test-libfyaml-test-private.Po -rm -f ./$(DEPDIR)/libfyaml_test-libfyaml-test.Po -rm -f Makefile @@ -1322,44 +1367,46 @@ uninstall-am: .MAKE: check-am install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-TESTS \ - check-am check-local clean clean-checkPROGRAMS clean-generic \ - clean-libtool cscopelist-am ctags ctags-am distclean \ - distclean-compile distclean-generic distclean-libtool \ - distclean-local distclean-tags distdir doc-clean-am \ - doc-clean-local doc-help-am doc-help-local doc-html-am \ - doc-html-local doc-latexpdf-am doc-latexpdf-local doc-man-am \ - doc-man-local doc-markdown-am doc-markdown-local 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 \ - recheck tags tags-am uninstall uninstall-am + check-am clean clean-checkPROGRAMS clean-generic clean-libtool \ + cscopelist-am ctags ctags-am distclean distclean-compile \ + distclean-generic distclean-libtool distclean-local \ + distclean-tags distdir doc-clean-am doc-clean-local \ + doc-help-am doc-help-local doc-html-am doc-html-local \ + doc-latexpdf-am doc-latexpdf-local doc-man-am doc-man-local \ + doc-markdown-am doc-markdown-local 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 recheck tags tags-am \ + uninstall uninstall-am .PRECIOUS: Makefile -@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@testsuite.test: test-suite-data json-test-suite-data - -@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@test-suite-data: -@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@ @GIT@ clone "@TESTSUITEURL@" -- $@ && \ -@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@ cd $@ && \ -@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@ @GIT@ checkout --detach @TESTSUITECHECKOUT@ +@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@testsuite.test: test-suite-data.checkout.timestamp +@HAVE_GIT_TRUE@@HAVE_JQ_TRUE@@HAVE_NETWORK_TRUE@testsuite-json.test: test-suite-data.checkout.timestamp +@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@testsuite-evstream.test: test-suite-data.checkout.timestamp +@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@testsuite-resolution.test: test-suite-data.checkout.timestamp -@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@jsontestsuite.test: json-test-suite-data +@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@test-suite-data.checkout.timestamp: +@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@ @GIT@ clone -q "@TESTSUITEURL@" -- test-suite-data && \ +@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@ @GIT@ -C test-suite-data checkout -q --detach @TESTSUITECHECKOUT@ && \ +@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@ touch test-suite-data.checkout.timestamp -@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@json-test-suite-data: -@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@ @GIT@ clone "@JSONTESTSUITEURL@" -- $@ && \ -@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@ cd $@ && \ -@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@ @GIT@ checkout --detach @JSONTESTSUITECHECKOUT@ +@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@jsontestsuite.test: json-test-suite-data.checkout.timestamp -@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@check-local: test-suite-data json-test-suite-data +@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@json-test-suite-data.checkout.timestamp: +@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@ @GIT@ clone -q "@JSONTESTSUITEURL@" -- json-test-suite-data && \ +@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@ @GIT@ -C json-test-suite-data checkout -q --detach @JSONTESTSUITECHECKOUT@ && \ +@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@ touch json-test-suite-data.checkout.timestamp @HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@distclean-local: -@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@ @rm -rf test-suite-data json-test-suite-data +@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@ @rm -rf test-suite-data test-suite-data.checkout.timestamp +@HAVE_GIT_TRUE@@HAVE_NETWORK_TRUE@ @rm -rf json-test-suite-data json-test-suite-data.checkout.timestamp # 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. diff --git a/Sources/Cfyaml/test/emitter-examples/plain-scalars-with-commas.yaml b/Sources/Cfyaml/test/emitter-examples/plain-scalars-with-commas.yaml new file mode 100644 index 000000000..ed82142ad --- /dev/null +++ b/Sources/Cfyaml/test/emitter-examples/plain-scalars-with-commas.yaml @@ -0,0 +1,6 @@ +- Aa, + Bb, C, + D +- Eee, + F, Gg, + E diff --git a/Sources/Cfyaml/test/libfyaml-test-core.c b/Sources/Cfyaml/test/libfyaml-test-core.c index 517d0b358..8d3e4e6ff 100644 --- a/Sources/Cfyaml/test/libfyaml-test-core.c +++ b/Sources/Cfyaml/test/libfyaml-test-core.c @@ -490,6 +490,56 @@ START_TEST(doc_short_path) } END_TEST +START_TEST(doc_scalar_path) +{ + struct fy_document *fyd; + struct fy_node *fyn_root, *fyn_foo; + + /* build document */ + fyd = fy_document_build_from_string(NULL, "--- foo\n", FY_NT); + ck_assert_ptr_ne(fyd, NULL); + + fyn_root = fy_document_root(fyd); + ck_assert_ptr_ne(fyn_root, NULL); + + /* get the scalar root and verify */ + fyn_foo = fy_node_by_path(fyn_root, "/", FY_NT, FYNWF_DONT_FOLLOW); + ck_assert_ptr_ne(fyn_foo, NULL); + ck_assert_str_eq(fy_node_get_scalar0(fyn_foo), "foo"); + + fy_document_destroy(fyd); +} +END_TEST + +START_TEST(doc_scalar_path_array) +{ + struct fy_document *fyd; + struct fy_node *fyn_root, *fynt; + + /* build document */ + fyd = fy_document_build_from_string(NULL, "--- [ foo, bar, baz ]\n", FY_NT); + ck_assert_ptr_ne(fyd, NULL); + + fyn_root = fy_document_root(fyd); + ck_assert_ptr_ne(fyn_root, NULL); + + /* get the scalars in the array and verify */ + fynt = fy_node_by_path(fyn_root, "/0", FY_NT, FYNWF_DONT_FOLLOW); + ck_assert_ptr_ne(fynt, NULL); + ck_assert_str_eq(fy_node_get_scalar0(fynt), "foo"); + + fynt = fy_node_by_path(fyn_root, "/1", FY_NT, FYNWF_DONT_FOLLOW); + ck_assert_ptr_ne(fynt, NULL); + ck_assert_str_eq(fy_node_get_scalar0(fynt), "bar"); + + fynt = fy_node_by_path(fyn_root, "/2", FY_NT, FYNWF_DONT_FOLLOW); + ck_assert_ptr_ne(fynt, NULL); + ck_assert_str_eq(fy_node_get_scalar0(fynt), "baz"); + + fy_document_destroy(fyd); +} +END_TEST + START_TEST(doc_nearest_anchor) { struct fy_document *fyd; @@ -1826,6 +1876,126 @@ START_TEST(alloca_check) } END_TEST +START_TEST(scanf_check) +{ + struct fy_document *fyd; + struct fy_node *fyn_root; + int ret, ival; + char sval[256]; + + /* build document */ + fyd = fy_document_build_from_string(NULL, "{ " + "foo: 10, bar : 20, baz:{ frob: boo }, " + "frooz: [ 1, { key: value }, three ]" + "}", FY_NT); + ck_assert_ptr_ne(fyd, NULL); + + fyn_root = fy_document_root(fyd); + ck_assert_ptr_ne(fyn_root, NULL); + + /* check scanf accesses to scalars */ + ret = fy_node_scanf(fyn_root, "/foo %d", &ival); + ck_assert_int_eq(ret, 1); + ck_assert_int_eq(ival, 10); + + ret = fy_node_scanf(fyn_root, "/bar %d", &ival); + ck_assert_int_eq(ret, 1); + ck_assert_int_eq(ival, 20); + + ret = fy_node_scanf(fyn_root, "/baz/frob %s", sval); + ck_assert_int_eq(ret, 1); + ck_assert_str_eq(sval, "boo"); + + ret = fy_node_scanf(fyn_root, "/frooz/0 %d", &ival); + ck_assert_int_eq(ret, 1); + ck_assert_int_eq(ival, 1); + + ret = fy_node_scanf(fyn_root, "/frooz/1/key %s", sval); + ck_assert_int_eq(ret, 1); + ck_assert_str_eq(sval, "value"); + + ret = fy_node_scanf(fyn_root, "/frooz/2 %s", sval); + ck_assert_int_eq(ret, 1); + ck_assert_str_eq(sval, "three"); + + fy_document_destroy(fyd); +} +END_TEST + +START_TEST(token_test) { + struct fy_document *fyd; + struct fy_node *fyn_sequence, *fyn_mapping, *fyn_scalar; + struct fy_token *fyn_sequence_start, *fyn_sequence_end, + *fyn_mapping_start, *fyn_mapping_end, *fyn_scalar_token; + struct fy_parse_cfg cfg = { + .flags = FYPCF_PARSE_COMMENTS + }; + + /* build document */ + + fyd = fy_document_build_from_string(&cfg, "- name: key\n" + " value: value\n", FY_NT); + + + /* Root (sequence) */ + fyn_sequence = fy_document_root(fyd); + ck_assert_ptr_ne(fyn_sequence, NULL); + + fyn_sequence_start = fy_node_get_start_token(fyn_sequence); + ck_assert_ptr_ne(fyn_sequence_start, NULL); + + ck_assert_ptr_ne(fy_token_start_mark(fyn_sequence_start), NULL); + + ck_assert_int_eq(fy_token_start_mark(fyn_sequence_start)->line, 0); + ck_assert_int_eq(fy_token_start_mark(fyn_sequence_start)->column, 0); + + fyn_sequence_end = fy_node_get_end_token(fyn_sequence); + ck_assert_ptr_ne(fyn_sequence_end, NULL); + + ck_assert_int_eq(fy_token_end_mark(fyn_sequence_end)->line, 2); + ck_assert_int_eq(fy_token_end_mark(fyn_sequence_end)->column, 0); + + /* Mapping (sequence item) */ + fyn_mapping = fy_node_sequence_get_by_index(fyn_sequence, 0); + ck_assert_ptr_ne(fyn_mapping, NULL); + + fyn_mapping_start = fy_node_get_start_token(fyn_mapping); + ck_assert_ptr_ne(fyn_mapping_start, NULL); + + ck_assert_ptr_ne(fy_token_start_mark(fyn_mapping_start), NULL); + + ck_assert_int_eq(fy_token_start_mark(fyn_mapping_start)->line, 0); + ck_assert_int_eq(fy_token_start_mark(fyn_mapping_start)->column, 2); + + fyn_mapping_end = fy_node_get_end_token(fyn_mapping); + ck_assert_ptr_ne(fyn_mapping_end, NULL); + + ck_assert_ptr_ne(fy_token_start_mark(fyn_mapping_end), NULL); + + ck_assert_int_eq(fy_token_start_mark(fyn_mapping_end)->line, 2); + ck_assert_int_eq(fy_token_start_mark(fyn_mapping_end)->column, 0); + + /* Scalar (key) */ + fyn_scalar = fy_node_pair_key(fy_node_mapping_get_by_index(fyn_mapping, 0)); + ck_assert_ptr_ne(fyn_scalar, NULL); + + fyn_scalar_token = fy_node_get_start_token(fyn_scalar); + ck_assert_ptr_ne(fyn_scalar_token, NULL); + ck_assert_ptr_eq(fyn_scalar_token, fy_node_get_end_token(fyn_scalar)); + + ck_assert_ptr_ne(fy_token_start_mark(fyn_scalar_token), NULL); + ck_assert_int_eq(fy_token_start_mark(fyn_scalar_token)->line, 0); + ck_assert_int_eq(fy_token_start_mark(fyn_scalar_token)->column, 2); + + ck_assert_ptr_ne(fy_token_end_mark(fyn_scalar_token), NULL); + ck_assert_int_eq(fy_token_end_mark(fyn_scalar_token)->line, 0); + ck_assert_int_eq(fy_token_end_mark(fyn_scalar_token)->column, 6); + + /* cleanup */ + fy_document_destroy(fyd); +} +END_TEST + TCase *libfyaml_case_core(void) { TCase *tc; @@ -1842,6 +2012,8 @@ TCase *libfyaml_case_core(void) tcase_add_test(tc, doc_path_node); tcase_add_test(tc, doc_path_parent); tcase_add_test(tc, doc_short_path); + tcase_add_test(tc, doc_scalar_path); + tcase_add_test(tc, doc_scalar_path_array); tcase_add_test(tc, doc_nearest_anchor); tcase_add_test(tc, doc_references); @@ -1891,5 +2063,9 @@ TCase *libfyaml_case_core(void) tcase_add_test(tc, alloca_check); + tcase_add_test(tc, scanf_check); + + tcase_add_test(tc, token_test); + return tc; } diff --git a/Sources/Cfyaml/test/libfyaml-test-private-id.c b/Sources/Cfyaml/test/libfyaml-test-private-id.c new file mode 100644 index 000000000..a01621119 --- /dev/null +++ b/Sources/Cfyaml/test/libfyaml-test-private-id.c @@ -0,0 +1,359 @@ +/* + * libfyaml-test-private-id.c - libfyaml id allocation and handling + * + * Copyright (c) 2023 Pantelis Antoniou + * + * SPDX-License-Identifier: MIT + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include + +#include "fy-utils.h" +#include "fy-id.h" + +/* check ffs works */ +START_TEST(id_ffs) +{ + static const struct { + fy_id_bits v; + int r; + } ffs_check[] = { + { .v = 0, .r = -1 }, + { .v = ~(fy_id_bits)0, .r = 0 }, + { .v = ((fy_id_bits)1 << 0), .r = 0 }, + { .v = ((fy_id_bits)1 << (FY_ID_BITS_BITS - 1)), .r = (FY_ID_BITS_BITS - 1) }, + { .v = ((fy_id_bits)1 << 0) | ((fy_id_bits)1 << (FY_ID_BITS_BITS - 1)), .r = 0 }, + { .v = ((fy_id_bits)1 << (FY_ID_BITS_BITS / 2)), .r = (FY_ID_BITS_BITS / 2), }, + }; + unsigned int i; + int r; + + for (i = 0; i < ARRAY_SIZE(ffs_check); i++) { + r = fy_id_ffs(ffs_check[i].v); + ck_assert_int_eq(r, ffs_check[i].r); + } +} +END_TEST + +/* a random bit number for the following tests, not a power of 2 */ +#define BA_BITS 67 + +#define BA_DECL \ + size_t ba_count = FY_ID_BITS_ARRAY_COUNT(BA_BITS); \ + fy_id_bits *ba = alloca(ba_count * sizeof(*ba)) + +/* verify that reset clears everything */ +START_TEST(id_reset) +{ + BA_DECL; + unsigned int i; + + fy_id_reset(ba, ba_count); + for (i = 0; i < ba_count; i++) + ck_assert_int_eq(ba[i], 0); +} +END_TEST + +/* verify that allocation to the full works, and then fails */ +START_TEST(id_alloc_full) +{ + BA_DECL; + unsigned int ba_bits_actual = FY_ID_BITS_ARRAY_COUNT_BITS(BA_BITS); + unsigned int i; + int id, expected_id; + + fy_id_reset(ba, ba_count); + + /* allocate all, verify that we get numbers in sequence */ + expected_id = 0; + for (i = 0; i < ba_bits_actual; i++) { + id = fy_id_alloc(ba, ba_count); + ck_assert_int_eq(id, expected_id); + expected_id++; + } + + /* full, it must fail now */ + id = fy_id_alloc(ba, ba_count); + ck_assert_int_eq(id, -1); +} +END_TEST + +/* verify that allocation when almost full works, and then fails */ +START_TEST(id_alloc_almost_full) +{ + BA_DECL; + unsigned int ba_bits_actual = FY_ID_BITS_ARRAY_COUNT_BITS(BA_BITS); + unsigned int i; + int id, expected_id; + + /* fill the array */ + fy_id_reset(ba, ba_count); + for (i = 0; i < ba_bits_actual; i++) + fy_id_set_used(ba, ba_count, i); + + /* allocate all, verify that we get numbers in sequence */ + expected_id = 0; + for (i = 0; i < ba_bits_actual; i++) { + /* free one, and allocate, it must succeed at the exact spot */ + fy_id_free(ba, ba_count, i); + id = fy_id_alloc(ba, ba_count); + ck_assert_int_eq(id, expected_id); + expected_id++; + + /* now it must fail */ + id = fy_id_alloc(ba, ba_count); + ck_assert_int_eq(id, -1); + } +} +END_TEST + +/* verify that allocation of even bits works */ +START_TEST(id_alloc_even) +{ + BA_DECL; + unsigned int ba_bits_actual = FY_ID_BITS_ARRAY_COUNT_BITS(BA_BITS); + unsigned int i, j; + int id, expected_id; + + /* fill the array */ + fy_id_reset(ba, ba_count); + for (i = 0; i < ba_bits_actual; i++) + fy_id_set_used(ba, ba_count, i); + + /* free the even ids */ + j = ba_bits_actual / 2; + for (i = 0; i < j; i++) + fy_id_free(ba, ba_count, i * 2); + + /* allocate all, verify that we get numbers in sequence */ + expected_id = 0; + for (i = 0; i < j; i++) { + id = fy_id_alloc(ba, ba_count); + ck_assert_int_eq(id, expected_id); + expected_id += 2; + } +} +END_TEST + +/* verify that allocation of odd bits works */ +START_TEST(id_alloc_odd) +{ + BA_DECL; + unsigned int ba_bits_actual = FY_ID_BITS_ARRAY_COUNT_BITS(BA_BITS); + unsigned int i, j; + int id, expected_id; + + /* fill the array */ + fy_id_reset(ba, ba_count); + for (i = 0; i < ba_bits_actual; i++) + fy_id_set_used(ba, ba_count, i); + + /* free the even ids */ + j = ba_bits_actual / 2; + for (i = 0; i < j; i++) + fy_id_free(ba, ba_count, i * 2 + 1); + + /* allocate all, verify that we get numbers in sequence */ + expected_id = 1; + for (i = 0; i < j; i++) { + id = fy_id_alloc(ba, ba_count); + ck_assert_int_eq(id, expected_id); + expected_id += 2; + } +} +END_TEST + +/* verify that a specific allocation sequence works */ +START_TEST(id_alloc_seq) +{ + BA_DECL; + unsigned int ba_bits_actual = FY_ID_BITS_ARRAY_COUNT_BITS(BA_BITS); + unsigned int i; + int id, expected_id; + int check_ids[] = { + 0, + ba_bits_actual / 2 - 1, + ba_bits_actual / 2, + ba_bits_actual / 2 + 1, + ba_bits_actual - 1 + }; + + /* fill the array */ + fy_id_reset(ba, ba_count); + for (i = 0; i < ba_bits_actual; i++) + fy_id_set_used(ba, ba_count, i); + + /* free those specific bits */ + for (i = 0; i < ARRAY_SIZE(check_ids); i++) + fy_id_free(ba, ba_count, check_ids[i]); + + /* now allocate in sequence */ + expected_id = 0; + for (i = 0; i < ARRAY_SIZE(check_ids); i++) { + expected_id = check_ids[i]; + id = fy_id_alloc(ba, ba_count); + ck_assert_int_eq(id, expected_id); + } +} +END_TEST + +/* verify that a iterator works for a single bit in array */ +START_TEST(id_iter_single) +{ + BA_DECL; + unsigned int ba_bits_actual = FY_ID_BITS_ARRAY_COUNT_BITS(BA_BITS); + unsigned int i; + int id, expected_id, found_id; + struct fy_id_iter iter; + + for (i = 0; i < ba_bits_actual; i++) { + fy_id_reset(ba, ba_count); + fy_id_set_used(ba, ba_count, i); + + expected_id = i; + found_id = -1; + fy_id_iter_begin(ba, ba_count, &iter); + while ((id = fy_id_iter_next(ba, ba_count, &iter)) >= 0) { + /* must find a single one */ + ck_assert_int_lt(found_id, 0); + found_id = id; + ck_assert_int_eq(id, expected_id); + } + fy_id_iter_end(ba, ba_count, &iter); + } + +} +END_TEST + +/* verify that a iterator works for a full array */ +START_TEST(id_iter_full) +{ + BA_DECL; + unsigned int ba_bits_actual = FY_ID_BITS_ARRAY_COUNT_BITS(BA_BITS); + unsigned int i; + int id, expected_id; + struct fy_id_iter iter; + + fy_id_reset(ba, ba_count); + for (i = 0; i < ba_bits_actual; i++) + fy_id_set_used(ba, ba_count, i); + + expected_id = 0; + fy_id_iter_begin(ba, ba_count, &iter); + while ((id = fy_id_iter_next(ba, ba_count, &iter)) >= 0) { + ck_assert_int_eq(id, expected_id); + expected_id++; + } + + /* we must have run through the whole array */ + ck_assert_int_eq(expected_id, ba_bits_actual); + + fy_id_iter_end(ba, ba_count, &iter); +} +END_TEST + +/* verify that a iterator works for sequences up to 3 bits */ +START_TEST(id_iter_seq) +{ + BA_DECL; + unsigned int ba_bits_actual = FY_ID_BITS_ARRAY_COUNT_BITS(BA_BITS); + int idtab[][3] = { + { 0, ba_bits_actual - 1, -1 }, + { 0, 1, -1 }, + { ba_bits_actual - 2, ba_bits_actual - 1, -1 }, + { 0, FY_ID_BITS_BITS - 1, -1 }, + { 0, FY_ID_BITS_BITS, -1 }, + { FY_ID_BITS_BITS - 1, FY_ID_BITS_BITS, -1 }, + { FY_ID_BITS_BITS, FY_ID_BITS_BITS + 1, -1 }, + { 0, 1, 2 }, + { 0, ba_bits_actual - 2, ba_bits_actual - 1 }, + { ba_bits_actual - 3, ba_bits_actual - 2, ba_bits_actual - 1 }, + }; + unsigned int i; + int id, expected_id; + int p0, p1, p2; + struct fy_id_iter iter; + + for (i = 0; i < ARRAY_SIZE(idtab); i++) { + + p0 = idtab[i][0]; + p1 = idtab[i][1]; + p2 = idtab[i][2]; + + fy_id_reset(ba, ba_count); + if (p0 >= 0) + fy_id_set_used(ba, ba_count, p0); + if (p1 >= 0) + fy_id_set_used(ba, ba_count, p1); + if (p2 >= 0) + fy_id_set_used(ba, ba_count, p2); + + fy_id_iter_begin(ba, ba_count, &iter); + + if (p0 >= 0) { + id = fy_id_iter_next(ba, ba_count, &iter); + expected_id = p0; + ck_assert_int_eq(id, expected_id); + fy_id_set_free(ba, ba_count, expected_id); + } + + if (p1 >= 0) { + id = fy_id_iter_next(ba, ba_count, &iter); + expected_id = p1; + ck_assert_int_eq(id, expected_id); + fy_id_set_free(ba, ba_count, expected_id); + } + + if (p2 >= 0) { + id = fy_id_iter_next(ba, ba_count, &iter); + expected_id = p2; + ck_assert_int_eq(id, expected_id); + fy_id_set_free(ba, ba_count, expected_id); + } + fy_id_iter_end(ba, ba_count, &iter); + + /* and now it should be empty */ + fy_id_iter_begin(ba, ba_count, &iter); + id = fy_id_iter_next(ba, ba_count, &iter); + ck_assert_int_eq(id, -1); + fy_id_iter_end(ba, ba_count, &iter); + } +} +END_TEST + +TCase *libfyaml_case_private_id(void) +{ + TCase *tc; + + tc = tcase_create("private-id"); + + tcase_add_test(tc, id_ffs); + + tcase_add_test(tc, id_reset); + tcase_add_test(tc, id_alloc_full); + tcase_add_test(tc, id_alloc_almost_full); + tcase_add_test(tc, id_alloc_even); + tcase_add_test(tc, id_alloc_odd); + tcase_add_test(tc, id_alloc_seq); + + tcase_add_test(tc, id_iter_single); + tcase_add_test(tc, id_iter_full); + tcase_add_test(tc, id_iter_seq); + + return tc; +} diff --git a/Sources/Cfyaml/test/libfyaml-test.c b/Sources/Cfyaml/test/libfyaml-test.c index 1a336efbd..0f45c4211 100644 --- a/Sources/Cfyaml/test/libfyaml-test.c +++ b/Sources/Cfyaml/test/libfyaml-test.c @@ -37,7 +37,10 @@ static void display_usage(FILE *fp, char *progname) fprintf(fp, "\ne.g. %s\n", progname); } +#if defined(HAVE_STATIC) && HAVE_STATIC extern TCase *libfyaml_case_private(void); +extern TCase *libfyaml_case_private_id(void); +#endif extern TCase *libfyaml_case_core(void); extern TCase *libfyaml_case_meta(void); extern TCase *libfyaml_case_emit(void); @@ -48,7 +51,10 @@ Suite *libfyaml_suite(void) s = suite_create("libfyaml"); +#if defined(HAVE_STATIC) && HAVE_STATIC suite_add_tcase(s, libfyaml_case_private()); + suite_add_tcase(s, libfyaml_case_private_id()); +#endif suite_add_tcase(s, libfyaml_case_core()); suite_add_tcase(s, libfyaml_case_meta()); suite_add_tcase(s, libfyaml_case_emit()); diff --git a/Sources/Cfyaml/test/testsuite-resolution.test b/Sources/Cfyaml/test/testsuite-resolution.test new file mode 100755 index 000000000..2aaf07d84 --- /dev/null +++ b/Sources/Cfyaml/test/testsuite-resolution.test @@ -0,0 +1,99 @@ +#!/bin/bash + +count=0 +for basetst in test-suite-data/[A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9]/; do + for tst in ${basetst} ${basetst}[0-9][0-9]/ ${basetst}[0-9][0-9][0-9]/; do + # there must be a test there + if [ ! -e "$tst/===" ]; then + continue + fi + # skip tests that are expected to fail + if [ -e "$tst/error" ]; then + continue + fi + # there must be an alias in the test + grep -q '\*[A-Za-z]' "$tst/in.yaml" + if [ $? -ne 0 ]; then + continue + fi + count=`expr $count + 1` + done +done + +# output plan +echo 1..$count + +# X38W has duplicate keys after resolution +skiplist="2JQS X38W" +xfaillist="" + +i=0 +for basetst in test-suite-data/[A-Z0-9][A-Z0-9][A-Z0-9][A-Z0-9]/; do + + for tst in ${basetst} ${basetst}[0-9][0-9]/ ${basetst}[0-9][0-9][0-9]/; do + + # there must be a test there + if [ ! -e "$tst/===" ]; then + continue + fi + + # skip tests that are expected to fail + if [ -e "$tst/error" ]; then + continue + fi + + # there must be an alias in the test + grep -q '\*[A-Za-z]' "$tst/in.yaml" + if [ $? -ne 0 ]; then + continue + fi + + i=`expr $i + 1` + + # strip trailing / + t=${tst%/} + # remove test-suite-data/ + test_subtest_id=`echo $t | cut -d/ -f2-` + test_id=`echo $test_subtest_id | cut -d/ -f1` + subtest_id=`echo $test_subtest_id | cut -s -d/ -f2` + + desctxt=`cat 2>/dev/null "$tst/==="` + + t1=`mktemp` + t2=`mktemp` + + directive="" + for skip in $skiplist; do + if [ "$test_subtest_id" == "$skip" ]; then + directive=" # skip: duplicate keys in testcase; cannot load as document" + break + fi + done + + res="ok" + if [ "x$directive" == "x" ]; then + res="not ok" + + ${TOP_BUILDDIR}/src/fy-tool --dump --resolve "$tst/in.yaml" | ${TOP_BUILDDIR}/src/fy-tool --testsuite --disable-flow-markers - >"$t1" + ${TOP_BUILDDIR}/src/fy-tool --dump --resolve --streaming "$tst/in.yaml" | ${TOP_BUILDDIR}/src/fy-tool --testsuite --disable-flow-markers - >"$t2" + + diff -u "$t1" "$t2" + if [ $? -eq 0 ]; then + res="ok" + else + res="not ok" + fi + + rm -f "$t1" "$t2" + + for xfail in $xfaillist; do + if [ "$test_subtest_id" == "$xfail" ]; then + directive=" # TODO: known failure." + break + fi + done + fi + + echo "$res $i $test_subtest_id - $desctxt$directive" + done +done diff --git a/Sources/PotentYAML/YAMLWriter.swift b/Sources/PotentYAML/YAMLWriter.swift index 59235ef1d..c9849f693 100644 --- a/Sources/PotentYAML/YAMLWriter.swift +++ b/Sources/PotentYAML/YAMLWriter.swift @@ -180,7 +180,6 @@ internal struct YAMLWriter { private static func emit(emitter: OpaquePointer, type: fy_event_type, args: CVarArg...) { withVaList(args) { valist in let event = fy_emit_event_vcreate(emitter, type, valist) - event?.pointee.type = type fy_emit_event(emitter, event) } } diff --git a/Tests/YAMLTests.swift b/Tests/YAMLTests.swift index 253115ac1..da937fc1f 100644 --- a/Tests/YAMLTests.swift +++ b/Tests/YAMLTests.swift @@ -47,7 +47,7 @@ class YAMLTests: XCTestCase { XCTAssertEqual(yaml["test1"]!, nil) XCTAssertEqual(yaml["test2"]!, nil) - XCTAssertEqual(yaml["test3"]!, nil) + XCTAssertEqual(yaml["test3"]!, "") XCTAssertEqual(yaml["test4"]!, false) XCTAssertEqual(yaml["test5"]!, true) XCTAssertEqual(yaml["test6"]!, 123) From f5582574e333ff98586c263c0060d60e9d94b62d Mon Sep 17 00:00:00 2001 From: Kevin Wooten Date: Thu, 16 May 2024 00:08:08 -0700 Subject: [PATCH 3/4] Cleanup CI tool install --- .github/workflows/ci.yml | 10 +--------- Makefile | 4 +--- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8f1f0e232..9b5f10819 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,8 +17,7 @@ jobs: - name: Install Tools run: | - brew tap a7ex/homebrew-formulae - brew install xcbeautify sonar-scanner findsimulator + brew install sonar-scanner env: HOMEBREW_NO_INSTALL_CLEANUP: 1 @@ -58,13 +57,6 @@ jobs: steps: - - name: Install Tools - run: | - brew tap a7ex/homebrew-formulae - brew install xcbeautify findsimulator - env: - HOMEBREW_NO_INSTALL_CLEANUP: 1 - - uses: actions/checkout@v3 - name: Select Xcode diff --git a/Makefile b/Makefile index 59ac728e4..b26f1e06b 100644 --- a/Makefile +++ b/Makefile @@ -5,12 +5,10 @@ comma:=, build-test-all: clean build-test-macos build-test-ios build-test-watchos build-test-tvos check-tools: - @which findsimulator || (echo "findsimulator is required. run 'make install-tools'" && exit 1) @which xcbeautify || (echo "xcbeautify is required. run 'make install-tools'" && exit 1) install-tools: - brew tap a7ex/homebrew-formulae - brew install xcbeautify findsimulator + brew install xcbeautify clean: @rm -rf TestResults From 23143404e7df660acc3560af3f2c822a4439212a Mon Sep 17 00:00:00 2001 From: Kevin Wooten Date: Thu, 16 May 2024 00:47:56 -0700 Subject: [PATCH 4/4] Update CI actions --- .github/workflows/ci.yml | 12 ++++++------ .github/workflows/publish-docs.yaml | 12 ++++++------ .github/workflows/publish-release.yaml | 17 +++++++++-------- 3 files changed, 21 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9b5f10819..ed5c342e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: env: HOMEBREW_NO_INSTALL_CLEANUP: 1 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -57,7 +57,7 @@ jobs: steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Select Xcode run: sudo xcode-select -s /Applications/Xcode_15.2.app/Contents/Developer @@ -67,7 +67,7 @@ jobs: - name: Report Test Results uses: kishikawakatsumi/xcresulttool@v1 - if: always() + if: success() || failure() with: title: Test Results ${{ matrix.platform }} path: ./TestResults/${{ matrix.platform }}.xcresult @@ -80,17 +80,17 @@ jobs: steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup Swift - uses: swift-actions/setup-swift@v1 + uses: swift-actions/setup-swift@v2 - name: Build/Test run: swift test --parallel --xunit-output test-results.xml - name: Report Test Results uses: dorny/test-reporter@v1 - if: always() + if: success() || failure() with: name: Test Results linux path: test-results.xml diff --git a/.github/workflows/publish-docs.yaml b/.github/workflows/publish-docs.yaml index 857214b83..464951706 100644 --- a/.github/workflows/publish-docs.yaml +++ b/.github/workflows/publish-docs.yaml @@ -15,13 +15,13 @@ jobs: build: - runs-on: macos-12 + runs-on: macos-13 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Select Xcode - run: sudo xcode-select -s /Applications/Xcode_14.1.app/Contents/Developer + run: sudo xcode-select -s /Applications/Xcode_15.2.app/Contents/Developer - run: | mkdir -p docs @@ -49,7 +49,7 @@ jobs: run: tar -czf docs.tar.gz docs - name: Upload Docs Archive - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: docs-${{ github.ref_name }} path: docs.tar.gz @@ -60,10 +60,10 @@ jobs: needs: [ build ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download Docs Archive - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: docs-${{ github.ref_name }} path: '.' diff --git a/.github/workflows/publish-release.yaml b/.github/workflows/publish-release.yaml index 2bbe536f5..9d45e3c3a 100644 --- a/.github/workflows/publish-release.yaml +++ b/.github/workflows/publish-release.yaml @@ -15,13 +15,13 @@ jobs: build: - runs-on: macos-12 + runs-on: macos-13 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Select Xcode - run: sudo xcode-select -s /Applications/Xcode_14.1.app/Contents/Developer + run: sudo xcode-select -s /Applications/Xcode_15.2.app/Contents/Developer - run: | mkdir -p docs @@ -49,7 +49,7 @@ jobs: run: tar -czf docs.tar.gz docs - name: Upload Docs Archive - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: docs-${{ github.ref_name }} path: docs.tar.gz @@ -60,10 +60,10 @@ jobs: needs: [ build ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download Docs Archive - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: docs-${{ github.ref_name }} path: '.' @@ -79,10 +79,10 @@ jobs: - name: Check Version Format in Tag id: version - uses: nowsprinting/check-version-format-action@v3 + uses: nowsprinting/check-version-format-action@v4 - name: Create GitHub Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -90,4 +90,5 @@ jobs: tag_name: ${{ github.ref_name }} generate_release_notes: true prerelease: ${{ steps.version.outputs.is_stable != 'true' }} + make_latest: ${{ steps.version.outputs.is_stable == 'true' }} draft: false